/*
Theme Name: AIMS Consulting Engineering & Marketing
Theme URI: https://aimsengineering.site
Author: AIMS Consulting Engineering & Marketing (S) Pte. Ltd.
Description: Custom WordPress theme for AIMS Consulting Engineering & Marketing (S) Pte. Ltd., a Singapore engineering consultancy and industrial equipment supplier.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aims-consulting
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --radius: 0.5rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.20 0.02 250);
  --card: oklch(1 0 0);
  --primary: oklch(0.45 0.15 250);
  --primary-foreground: oklch(0.99 0 0);
  --primary-soft: oklch(0.95 0.03 250);
  --secondary: oklch(0.96 0.01 250);
  --secondary-foreground: oklch(0.25 0.03 250);
  --muted: oklch(0.97 0.005 250);
  --muted-foreground: oklch(0.50 0.02 250);
  --accent: oklch(0.93 0.04 245);
  --border: oklch(0.92 0.01 250);
  --navy: oklch(0.22 0.06 250);
  --navy-foreground: oklch(0.99 0 0);
  --steel: oklch(0.35 0.02 250);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Sora", "Inter", sans-serif;
  --shadow-elegant: 0 20px 40px -20px color-mix(in oklab, var(--primary) 25%, transparent);
  --shadow-card: 0 1px 3px oklch(0 0 0 / 0.04), 0 8px 24px -12px oklch(0 0 0 / 0.08);
  --gradient-hero: linear-gradient(135deg, oklch(0.22 0.05 245 / 0.92) 0%, oklch(0.30 0.09 245 / 0.85) 60%, oklch(0.15 0.04 245 / 0.95) 100%);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container-page {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section--muted { background-color: color-mix(in oklab, var(--secondary) 60%, transparent); }
.section--navy { background-color: var(--navy); color: var(--navy-foreground); }
.section--no-top { padding-top: 0; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.section-header { margin-bottom: 3rem; max-width: 42rem; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header h2 { margin-top: 0.5rem; font-size: 1.875rem; font-weight: 700; color: var(--navy); }
@media (min-width: 768px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p { margin-top: 0.75rem; font-size: 1rem; line-height: 1.6; color: var(--muted-foreground); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-elegant); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-outline { border: 1px solid color-mix(in oklab, white 25%, transparent); background: color-mix(in oklab, white 5%, transparent); color: #fff; backdrop-filter: blur(4px); }
.btn-outline:hover { background: color-mix(in oklab, white 10%, transparent); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--background);
  transition: all 0.2s ease;
}
.site-header.is-scrolled {
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
@media (min-width: 768px) { .site-header__row { height: 5rem; } }

.site-logo { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.site-logo__mark {
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
}
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.site-logo__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-logo__tag {
  display: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .site-logo__tag { display: block; } }

.primary-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .primary-nav { display: flex; } }
.primary-nav a {
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
  transition: all 0.15s ease;
}
.primary-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.primary-nav a.is-active { background: var(--primary-soft); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-actions .btn-primary { display: none; padding: 0.6rem 1rem; }
@media (min-width: 768px) { .header-actions .btn-primary { display: inline-flex; } }

.menu-toggle {
  display: grid;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 1.25rem; height: 1.25rem; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav__list { display: flex; flex-direction: column; padding-block: 0.75rem; }
.mobile-nav__list a {
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--steel);
}
.mobile-nav__list a.is-active { background: var(--primary-soft); color: var(--primary); }
.mobile-nav__list .btn-primary { margin-top: 0.5rem; justify-content: center; }

/* ==========================================================================
   Page hero
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--navy-foreground);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    radial-gradient(circle at 20% 20%, oklch(0.55 0.20 250 / 0.35), transparent 40%),
    radial-gradient(circle at 80% 60%, oklch(0.45 0.15 250 / 0.35), transparent 45%);
}
.page-hero__inner { position: relative; padding-block: 5rem; }
@media (min-width: 768px) { .page-hero__inner { padding-block: 7rem; } }
.page-hero h1 {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
}
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p.desc { margin-top: 1rem; max-width: 42rem; font-size: 1rem; line-height: 1.6; color: color-mix(in oklab, white 75%, transparent); }
@media (min-width: 768px) { .page-hero p.desc { font-size: 1.125rem; } }
.breadcrumb { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: color-mix(in oklab, white 60%, transparent); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span.current { color: color-mix(in oklab, white 85%, transparent); }
.breadcrumb .crumb { display: flex; align-items: center; gap: 0.5rem; }

/* Home hero */
.home-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--navy-foreground); }
.home-hero img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: 0.4; }
.home-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.home-hero__inner { position: relative; padding-block: 6rem 9rem; }
@media (min-width: 768px) { .home-hero__inner { padding-block: 9rem; } }
.home-hero h1 { margin-top: 1rem; max-width: 56rem; font-size: 2.25rem; font-weight: 700; line-height: 1.05; }
@media (min-width: 768px) { .home-hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .home-hero h1 { font-size: 4.5rem; } }
.home-hero h1 .accent { color: var(--primary); }
.home-hero p.desc { margin-top: 1.5rem; max-width: 42rem; font-size: 1rem; line-height: 1.6; color: color-mix(in oklab, white 80%, transparent); }
@media (min-width: 768px) { .home-hero p.desc { font-size: 1.125rem; } }
.home-hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Grids & cards
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.grid-split { grid-template-columns: 1fr; align-items: center; gap: 3rem; }
@media (min-width: 1024px) { .grid-split { grid-template-columns: repeat(2, 1fr); } }

.card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.card-icon {
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.85rem;
  background: var(--primary-soft);
  color: var(--primary);
  transition: all 0.2s ease;
}
.card:hover .card-icon { background: var(--primary); color: var(--primary-foreground); }
.card h3 { margin-top: 1.25rem; font-weight: 600; color: var(--navy); font-family: var(--font-sans); letter-spacing: normal; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.icon-tile:hover { border-color: var(--primary); }
.icon-tile .circle {
  display: grid;
  place-items: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.icon-tile span { font-size: 0.875rem; font-weight: 500; color: var(--navy); }

.reason-card { display: flex; gap: 1rem; border-radius: 1rem; background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.reason-card .card-icon { height: 2.75rem; width: 2.75rem; border-radius: 0.65rem; background: var(--primary); color: var(--primary-foreground); flex-shrink: 0; }
.reason-card h3 { margin-top: 0; font-weight: 600; color: var(--navy); font-family: var(--font-sans); letter-spacing: normal; }
.reason-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-radius: 1rem;
  background: var(--navy);
  color: var(--navy-foreground);
  padding: 2rem;
  box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); padding: 2.5rem; } }
.stats .stat-value { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--primary); }
@media (min-width: 768px) { .stats .stat-value { font-size: 3rem; } }
.stats .stat-label { margin-top: 0.25rem; font-size: 0.875rem; color: color-mix(in oklab, white 70%, transparent); }

/* Testimonials */
.testimonial { border-radius: 1.25rem; background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-card); }
.testimonial svg.quote-icon { width: 2rem; height: 2rem; color: color-mix(in oklab, var(--primary) 40%, transparent); }
.testimonial p.quote { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; }
.testimonial .stars { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.25rem; color: var(--primary); }
.testimonial .stars svg { width: 1rem; height: 1rem; fill: currentColor; }
.testimonial .who { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.testimonial .who .name { font-weight: 600; color: var(--navy); }
.testimonial .who .role { font-size: 0.75rem; color: var(--muted-foreground); }

/* News / articles */
.news-card { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; transition: all 0.2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.news-card time { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.news-card h3 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.news-card:hover h3 { color: var(--primary); }
.news-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.news-card .read-more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }

.post-card { overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-card); transition: all 0.2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.post-card__cover { height: 10rem; }
.post-card__body { padding: 1.5rem; }
.post-card .meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; }
.post-card .tag { border-radius: 999px; background: var(--primary-soft); padding: 0.25rem 0.6rem; font-weight: 600; color: var(--primary); }
.post-card .date { color: var(--muted-foreground); }
.post-card h2 { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.post-card:hover h2 { color: var(--primary); }
.post-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.project-card { overflow: hidden; border-radius: 1.25rem; background: var(--card); box-shadow: var(--shadow-card); transition: all 0.2s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.project-card__cover { position: relative; height: 12rem; background: var(--navy); }
.project-card__cover .tag {
  position: absolute; top: 1rem; left: 1rem;
  border-radius: 999px; background: color-mix(in oklab, white 15%, transparent);
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: #fff; backdrop-filter: blur(4px);
}
.project-card__cover .num { position: absolute; bottom: 1rem; right: 1rem; font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: color-mix(in oklab, white 20%, transparent); }
.project-card__body { padding: 1.5rem; }
.project-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--navy); }
.project-card:hover h3 { color: var(--primary); }
.project-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.category-card { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-card); }
.category-card .circle { margin-inline: auto; display: grid; place-items: center; height: 3.5rem; width: 3.5rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.category-card .count { margin-top: 1rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--primary); }
.category-card .name { font-size: 0.875rem; font-weight: 500; color: var(--navy); }

/* Service detail cards (services page) */
.service-detail { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.75rem; box-shadow: var(--shadow-card); transition: all 0.2s ease; }
.service-detail:hover { transform: translateY(-4px); box-shadow: var(--shadow-elegant); }
.service-detail__head { display: flex; align-items: flex-start; gap: 1rem; }
.service-detail__head .card-icon { flex-shrink: 0; }
.service-detail h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.service-detail__head p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.service-detail ul.points { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.service-detail ul.points li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.service-detail ul.points svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--primary); }

/* Value cards (about page) */
.value-card { border-radius: 1.25rem; background: var(--card); padding: 2rem; box-shadow: var(--shadow-card); }
.value-card .card-icon { background: var(--primary); color: var(--primary-foreground); }
.value-card h3 { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.value-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

.commit-card { border-radius: 1rem; border: 1px solid var(--border); padding: 1.5rem; }
.commit-card svg.icon { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.commit-card h4 { margin-top: 1rem; font-weight: 600; color: var(--navy); }
.commit-card p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.info-box { border-radius: 0.75rem; border: 1px solid var(--border); padding: 1.25rem; }
.info-box h3 { font-weight: 600; color: var(--navy); }
.info-box p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* FAQ accordion */
.faq-item { border-radius: 0.85rem; border: 1px solid var(--border); background: var(--card); transition: box-shadow 0.2s ease; }
.faq-item:hover { box-shadow: var(--shadow-card); }
.faq-item__q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  text-align: left;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}
.faq-item__q svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); transition: transform 0.2s ease; }
.faq-item.is-open .faq-item__q svg { transform: rotate(180deg); }
.faq-item__a { display: none; padding: 0 1.25rem 1.25rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }
.faq-item.is-open .faq-item__a { display: block; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { margin-bottom: 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

/* CTA banner */
.cta-banner { border-radius: 1.5rem; background: var(--navy); color: var(--navy-foreground); box-shadow: var(--shadow-elegant); overflow: hidden; }
.cta-banner__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .cta-banner__grid { grid-template-columns: repeat(2, 1fr); } }
.cta-banner__content { padding: 2.5rem; }
@media (min-width: 768px) { .cta-banner__content { padding: 3.5rem; } }
.cta-banner__content h2 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .cta-banner__content h2 { font-size: 2.25rem; } }
.cta-banner__content p { margin-top: 1rem; color: color-mix(in oklab, white 75%, transparent); }
.cta-banner .contact-lines { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.875rem; }
.cta-banner .contact-lines > div { display: flex; gap: 0.75rem; align-items: flex-start; }
.cta-banner .contact-lines svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.cta-banner__map { position: relative; min-height: 20rem; background: color-mix(in oklab, white 5%, transparent); }
.cta-banner__map iframe { position: absolute; inset: 0; height: 100%; width: 100%; border: 0; filter: grayscale(0.4); }

.cta-banner-flat { border-radius: 1.5rem; background: var(--navy); color: var(--navy-foreground); padding: 2.5rem; }
@media (min-width: 768px) { .cta-banner-flat { padding: 3.5rem; } }
.cta-banner-flat__grid { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .cta-banner-flat__grid { grid-template-columns: 2fr 1fr; } }
.cta-banner-flat h2 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .cta-banner-flat h2 { font-size: 2.25rem; } }
.cta-banner-flat p { margin-top: 0.75rem; color: color-mix(in oklab, white 75%, transparent); }

.simple-cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 768px) { .simple-cta { flex-direction: row; align-items: center; } }
.simple-cta h2 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .simple-cta h2 { font-size: 1.875rem; } }
.simple-cta p { margin-top: 0.5rem; color: color-mix(in oklab, white 70%, transparent); }

/* About page image callout */
.about-media { position: relative; }
.about-media__badge {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  display: none; border-radius: 0.85rem; background: var(--primary); color: var(--primary-foreground);
  padding: 1.25rem; box-shadow: var(--shadow-elegant);
}
@media (min-width: 768px) { .about-media__badge { display: block; } }
.about-media__badge .year { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
.about-media__badge .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: color-mix(in oklab, white 80%, transparent); }

.mission-grid { margin-top: 2rem; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mission-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact page */
.contact-card { display: flex; gap: 1rem; border-radius: 0.85rem; border: 1px solid var(--border); background: var(--card); padding: 1.25rem; }
.contact-card .card-icon { height: 2.75rem; width: 2.75rem; border-radius: 0.65rem; background: var(--primary); color: var(--primary-foreground); flex-shrink: 0; }
.contact-card h3 { font-weight: 600; color: var(--navy); }
.contact-card .body { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-card a:hover { color: var(--primary); }

.contact-form-wrap { border-radius: 1.25rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .contact-form-wrap { padding: 2rem; } }
.contact-form-wrap h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.contact-form-wrap > p.hint { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.contact-form { margin-top: 1.5rem; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-form { grid-template-columns: repeat(2, 1fr); } }
.contact-form .col-span-2 { grid-column: 1 / -1; }
.field label { margin-bottom: 0.4rem; display: block; font-size: 0.875rem; font-weight: 500; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent);
}
.form-success { display: flex; align-items: flex-start; gap: 0.75rem; border-radius: 0.85rem; background: var(--primary-soft); padding: 1.25rem; font-size: 0.875rem; margin-top: 1.5rem; }
.form-success svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); margin-top: 0.15rem; }
.form-success .title { font-weight: 600; color: var(--navy); }
.form-success .sub { margin-top: 0.25rem; color: var(--muted-foreground); }

.map-frame { overflow: hidden; border-radius: 1.25rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* Legal pages */
.legal-content { max-width: 48rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 0.875rem; line-height: 1.6; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.legal-content p { margin-top: 0.5rem; color: var(--muted-foreground); }
.legal-content > p:first-child { color: var(--foreground); }

/* Newsletter box */
.newsletter-box { margin-top: 4rem; border-radius: 1.25rem; background: var(--primary-soft); padding: 2rem; text-align: center; }
@media (min-width: 768px) { .newsletter-box { padding: 3rem; } }
.newsletter-box h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
@media (min-width: 768px) { .newsletter-box h2 { font-size: 1.875rem; } }
.newsletter-box p { margin-inline: auto; margin-top: 0.5rem; max-width: 36rem; color: var(--muted-foreground); }
.newsletter-form { margin-inline: auto; margin-top: 1.5rem; display: flex; max-width: 28rem; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 20%, transparent); }
.newsletter-form button { border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground); padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; border: none; }
.newsletter-form button:hover { filter: brightness(1.1); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 6rem; background: var(--navy); color: var(--navy-foreground); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer .brand-row { display: flex; align-items: center; gap: 0.65rem; }
.site-footer .brand-row .mark { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; border-radius: var(--radius); background: var(--primary); }
.site-footer .brand-row .name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.site-footer .about-text { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in oklab, white 70%, transparent); }
.site-footer .social-row { margin-top: 1.25rem; display: flex; gap: 0.75rem; }
.site-footer .social-row a { display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: var(--radius); background: color-mix(in oklab, white 10%, transparent); }
.site-footer .social-row a:hover { background: var(--primary); }
.site-footer .social-row svg { width: 1rem; height: 1rem; }
.site-footer h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: color-mix(in oklab, white 90%, transparent); }
.site-footer ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.875rem; color: color-mix(in oklab, white 70%, transparent); }
.site-footer ul a:hover { color: #fff; }
.site-footer .contact-list li { display: flex; gap: 0.65rem; }
.site-footer .contact-list svg { width: 1rem; height: 1rem; margin-top: 0.15rem; flex-shrink: 0; color: var(--primary); }
.site-footer__bottom { border-top: 1px solid color-mix(in oklab, white 10%, transparent); }
.site-footer__bottom .row {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-block: 1.25rem; font-size: 0.75rem; color: color-mix(in oklab, white 60%, transparent);
}
@media (min-width: 640px) { .site-footer__bottom .row { flex-direction: row; } }

/* Utility */
.text-center { text-align: center; }
.mt-lg { margin-top: 2rem; }
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: inline-flex; } }
