/* ============================================================
   Autism Support Hub — Main Stylesheet
   autismsupporthub.com.au
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --navy:       #1a2744;
  --navy-light: #243460;
  --teal:       #2a9d8f;
  --teal-light: #52c7b8;
  --sand:       #f5f0e8;
  --white:      #ffffff;
  --charcoal:   #3d3d3d;
  --mid-grey:   #7a7a7a;
  --light-grey: #f0eff0;
  --border:     #e0ddd8;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  32px;

  --shadow-sm:  0 2px 12px rgba(26,39,68,0.08);
  --shadow-md:  0 8px 32px rgba(26,39,68,0.13);
  --shadow-lg:  0 20px 60px rgba(26,39,68,0.18);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Page Transition Overlay ───────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
#page-transition.enter {
  transform: scaleY(1);
  transform-origin: bottom;
}
#page-transition.exit {
  transform: scaleY(0);
  transform-origin: top;
}

/* ─── Page Fade In ───────────────────────────────────────── */
.page-content {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.page-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.nav.dark-bg {
  background: transparent;
}
.nav.dark-bg .nav-logo span,
.nav.dark-bg .nav-links a {
  color: var(--white);
}
.nav.dark-bg .nav-logo svg path { fill: var(--teal-light); }
.nav.dark-bg .hamburger span { background: var(--white); }
.nav.scrolled .nav-logo span,
.nav.scrolled .nav-links a { color: var(--navy); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}
.nav-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  transition: color var(--transition);
  line-height: 1.2;
}
.nav-logo span em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-lg) !important;
  transition: background var(--transition), transform var(--transition) !important;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy) !important; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
  background: none;
  border: none;
  aria-label: "Menu";
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--teal-light); }
.mobile-nav .mobile-cta {
  margin-top: 1rem;
  background: var(--teal);
  color: var(--white) !important;
  padding: 14px 36px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 600;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/team-leader.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.2;
  filter: saturate(0.4);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 40%, rgba(42,157,143,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 5% 80px;
  width: 100%;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,157,143,0.2);
  border: 1px solid rgba(82,199,184,0.4);
  color: var(--teal-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.8s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--white);
  line-height: 1.1;
  max-width: 780px;
  margin-bottom: 28px;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal-light);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeSlideUp 0.8s 0.4s ease both;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--teal-light);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeSlideUp 1s 0.8s ease both;
  cursor: pointer;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,157,143,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ─── Section Basics ─────────────────────────────────────── */
section { padding: 100px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 580px;
  line-height: 1.8;
}

/* ─── Mission / Intro Strip ─────────────────────────────── */
.mission {
  background: var(--sand);
  padding: 80px 5%;
}
.mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mission-text { }
.mission-visual {
  position: relative;
  height: 420px;
}
.mission-img-main {
  position: absolute;
  top: 0; right: 0;
  width: 82%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.mission-img-accent {
  position: absolute;
  bottom: -30px; left: 0;
  width: 48%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}
.mission-badge {
  position: absolute;
  top: 30px; left: -10px;
  background: var(--teal);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.mission-badge strong { display: block; font-size: 1.5rem; font-family: var(--font-display); }

/* ─── Services Grid ──────────────────────────────────────── */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-body {
  padding: 28px;
}
.service-icon {
  width: 44px; height: 44px;
  background: rgba(42,157,143,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--teal); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }
.service-link svg { width: 16px; height: 16px; stroke: var(--teal); }

/* ─── Why Us Strip ───────────────────────────────────────── */
.why {
  background: var(--navy);
  color: var(--white);
  padding: 100px 5%;
}
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why .section-label { color: var(--teal-light); }
.why .section-label::before { background: var(--teal-light); }
.why .section-heading { color: var(--white); }
.why .section-sub { color: rgba(255,255,255,0.65); }
.why-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.pillar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: background var(--transition), transform var(--transition);
}
.pillar:hover {
  background: rgba(42,157,143,0.15);
  transform: translateY(-3px);
}
.pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.pillar h4 {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 0.95rem;
}
.pillar p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.why-img-stack {
  position: relative;
  height: 480px;
}
.why-img-1 {
  position: absolute;
  top: 0; right: 0;
  width: 78%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.why-img-2 {
  position: absolute;
  bottom: 0; left: 0;
  width: 65%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid var(--navy);
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonials { background: var(--sand); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  color: #f4a623;
  font-size: 0.95rem;
}
.testimonial-card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}
.author-info span {
  font-size: 0.8rem;
  color: var(--mid-grey);
}

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 80px 5%;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 5% 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-logo span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.1rem;
}
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; stroke: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--teal-light); }

/* ─── Page Header (inner pages) ─────────────────────────── */
.page-header {
  background: var(--navy);
  padding: calc(var(--nav-height) + 60px) 5% 80px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 50%, rgba(42,157,143,0.25) 100%);
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  line-height: 1.8;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--teal-light); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ─── Services Detail (inner page) ──────────────────────── */
.service-detail { padding: 100px 5%; }
.service-detail-inner { max-width: 1200px; margin: 0 auto; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.service-block-content .section-label { margin-bottom: 16px; }
.service-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ─── About Page ─────────────────────────────────────────── */
.about-values {
  background: var(--sand);
  padding: 100px 5%;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.value-card p { font-size: 0.88rem; color: var(--mid-grey); line-height: 1.7; }
.about-team { padding: 100px 5%; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 60px;
}
.team-card {
  text-align: center;
}
.team-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}
.team-card .role { font-size: 0.85rem; color: var(--teal); font-weight: 600; margin-top: 4px; }
.team-card p { font-size: 0.85rem; color: var(--mid-grey); line-height: 1.7; margin-top: 12px; }

/* ─── Contact Page ───────────────────────────────────────── */
.contact-section { padding: 100px 5%; }
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info-block { margin-bottom: 36px; }
.contact-info-block h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-info-block p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.contact-detail svg { width: 18px; height: 18px; stroke: var(--teal); flex-shrink: 0; }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-form-card .subtitle {
  font-size: 0.9rem;
  color: var(--mid-grey);
  margin-bottom: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}
.form-note {
  font-size: 0.78rem;
  color: var(--mid-grey);
  text-align: center;
  margin-top: 14px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .success-icon {
  width: 60px; height: 60px;
  background: rgba(42,157,143,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-success p { font-size: 0.9rem; color: var(--mid-grey); }

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Accessibility ──────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--teal);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mission-inner { grid-template-columns: 1fr; }
  .mission-visual { height: 300px; margin-top: 20px; }
  .why-inner { grid-template-columns: 1fr; }
  .why-img-stack { height: 300px; }
  .service-block { grid-template-columns: 1fr; gap: 40px; }
  .service-block.reverse { direction: ltr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  section { padding: 70px 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .why-pillars { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .values-grid { grid-template-columns: 1fr; }
}
