/* ============================================
   Knowledge Nest - v5 ORGANIC
   Nature-inspired, warm, textured
   "A beautifully illustrated children's book
    meets the clarity of an educational resource"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* Brand navy - exact match from logo pixel sample */
  --navy: #112e5b;
  --navy-light: #1a4a8a;
  --sky-hero: #beeaf8;

  /* Natural palette */
  --sandstone: #f0dfc8;
  --sandstone-light: #f5efe4;
  --sandstone-pale: #faf6f0;
  --eucalyptus: #6a9e7e;
  --eucalyptus-light: #8dba9a;
  --eucalyptus-pale: #e4efea;
  --terracotta: #c47e5e;
  --terracotta-light: #d4a088;
  --terracotta-pale: #f5e6de;
  --gold: #c9a84c;
  --gold-light: #e8d48a;
  --gold-pale: #f5eed8;
  --coral: #c47e5e;

  /* Backgrounds */
  --cream: #faf5ee;
  --linen: #f4ede2;
  --parchment: #f0e8da;

  /* Text */
  --text-dark: #2a2a2a;
  --text-body: #4a4a4a;
  --text-light: #7a7a7a;
  --text-on-navy: rgba(255,255,255,0.9);

  /* Other */
  --border: #e0d5c5;
  --shadow: rgba(11, 42, 92, 0.08);
  --shadow-hover: rgba(11, 42, 92, 0.14);

  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --section-pad: clamp(3rem, 6vw, 4.5rem);
  --container: 1080px;
  --radius: 12px;
  --radius-organic: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-body);
  background: #ffffff;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Paper base color — matches the paper texture image tone */

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--text-dark); line-height: 1.3;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 4.5vw, 3.2rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.8vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.5rem); font-weight: 600; }

.container { width: min(var(--container), 88%); margin: 0 auto; }
.container-wide { width: min(1200px, 90%); margin: 0 auto; }

/* ===== PAPER TEXTURE — handled via section-paper background-blend-mode ===== */
/* No longer using a ::before overlay (it tinted wave SVGs via mix-blend-mode) */

/* ===== ORGANIC WAVE DIVIDERS ===== */
.wave-top {
  position: absolute; top: -1px; left: 0; right: 0; overflow: hidden;
  line-height: 0; z-index: 2;
}
.wave-bottom {
  position: absolute; bottom: -4px; left: 0; right: 0; overflow: hidden;
  line-height: 0; z-index: 2;
}
.wave-top svg, .wave-bottom svg {
  display: block; width: 100%; height: auto;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gentleSway {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== TOP BAR ===== */
.top-bar {
  display: none;
}
.top-bar-inner {
  display: flex; justify-content: flex-end; align-items: center; gap: 1.75rem;
}
.top-bar a {
  color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.3s ease;
}
.top-bar a:hover { color: white; }
.top-bar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.15); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0;
}

.nav-brand { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; }
.nav-brand img {
  height: 90px; width: auto;
}
.nav-brand-text {
  font-family: var(--font-display); font-size: 2.4rem;
  color: white; font-weight: 600;
}
.nav-brand-text span {
  display: block; font-family: var(--font-body); font-size: 0.82rem;
  font-weight: 400; color: var(--gold-light); letter-spacing: 0.22em;
  text-transform: uppercase; margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  position: relative; padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  border-radius: 2px; transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: white; }

/* Nav CTA — must use .nav-links prefix to beat .nav-links a specificity (0,1,1) */
.nav-links .nav-cta-link {
  background: var(--sandstone); color: var(--navy);
  padding: 0.85rem 2.4rem; border-radius: 50px;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.06em; white-space: nowrap;
  border: none; display: inline-block;
  transition: all 0.3s ease;
  outline: 1.5px dashed rgba(255,255,255,0.6);
  outline-offset: -6px;
}
.nav-links .nav-cta-link::after { display: none; }
.nav-links .nav-cta-link:hover {
  background: var(--gold-light); color: var(--navy);
  transform: translateY(-1px);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 6px 0; border-radius: 2px; transition: all 0.3s ease; }

/* ===== TAGLINE RIBBON — stitched fabric band below nav ===== */
.tagline-ribbon {
  background: var(--sandstone);
  padding: 1.1rem 0;
  text-align: center;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  /* Stitched top and bottom borders */
  border-top: none;
  border-bottom: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      rgba(255,255,255,0.6) 8px,
      rgba(255,255,255,0.6) 14px,
      transparent 14px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      rgba(255,255,255,0.6) 8px,
      rgba(255,255,255,0.6) 14px,
      transparent 14px,
      transparent 22px
    );
  background-size: 100% 2px, 100% 2px;
  background-position: top 6px left, bottom 6px left;
  background-repeat: no-repeat;
}
.tagline-ribbon-text {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
}
.tagline-heart {
  width: 18px; height: 18px; object-fit: contain;
  display: inline-block; vertical-align: middle;
  opacity: 0.7;
}

/* ===== PAPER SECTIONS ===== */
.section-paper {
  background: #ffffff;
  position: relative;
}

/* ===== WAVE SEAM FIX ===== */
/* Navy sections pull up to overlap the wave from the section above */
.navy-ribbon,
.connect-banner,
.footer {
  margin-top: -4px;
  padding-top: calc(var(--section-pad, 3rem) + 4px);
}
/* White/paper sections that follow a navy wave also pull up */
.navy-ribbon + .section,
.navy-ribbon + .section-paper,
.connect-banner + .section,
.connect-banner + .section-paper,
.connect-banner + .footer,
.page-hero + .section {
  margin-top: -4px;
  padding-top: calc(var(--section-pad, 3rem) + 4px);
}

/* ===== BUTTONS - organic, rounded, generous padding ===== */
.btn {
  display: inline-block; padding: 1.1rem 2.8rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s ease; border-radius: 50px;
  position: relative;
}
/* Focus styles — visible ring for keyboard navigation */
.btn:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
.nav-links a:focus-visible { outline-color: var(--gold-light); }
.carousel-dot:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* Primary — navy */
.btn-primary {
  background: var(--navy); color: white;
  outline: 1.5px dashed rgba(255,255,255,0.35); outline-offset: -6px;
}
.btn-primary:hover { background: var(--navy-light); color: white; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(11,42,92,0.2); }
/* Secondary — sandstone (used for all warm/soft CTAs) */
.btn-sandstone,
.btn-coral {
  background: var(--sandstone); color: var(--navy);
  outline: 1.5px dashed rgba(255,255,255,0.6); outline-offset: -6px;
}
.btn-sandstone:hover,
.btn-coral:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.2); }
/* Ghost white — for dark backgrounds */
.btn-ghost-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.35); outline-color: rgba(255,255,255,0.2); }
.btn-ghost-white:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
  background: var(--sky-hero); position: relative;
  padding: 5rem 0 7rem;
  margin-bottom: -4px;
}

.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem; align-items: center; position: relative; z-index: 3;
}

.hero-text { animation: fadeUp 0.8s ease both; }
.hero-tagline {
  font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}
.hero-text h1 {
  color: var(--navy); margin-bottom: 1.5rem;
  font-size: clamp(2.1rem, 4.2vw, 2.9rem);
}
.hero-text h1 em { font-style: italic; color: #b5622a; }
.hero-text > p {
  color: var(--text-body); font-size: 1.15rem;
  margin-bottom: 2.5rem; max-width: 500px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Hero logo - organic blob frame */
.hero-logo-area {
  display: flex; justify-content: center; align-items: center;
  animation: fadeIn 1s ease 0.3s both;
  position: relative;
}
.hero-logo-blob {
  width: 440px; height: 360px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-blob img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
/* Stitched border inside the image */
.hero-logo-blob::after {
  content: ''; position: absolute;
  inset: 8px;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  border: 2px dashed rgba(255,255,255,0.45);
  pointer-events: none;
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
  background: var(--navy); padding: 4.5rem 0 5.5rem;
  position: relative; overflow: hidden;
  margin-bottom: -4px;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 60%, rgba(106,158,126,0.06) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 3; }
.page-hero .hero-tagline { color: var(--gold-light); font-size: clamp(0.85rem, 1.4vw, 1rem); }
.page-hero h1 { color: white; margin-bottom: 0.75rem; }
.page-hero-text p:not(.hero-tagline) {
  color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px;
}

/* Page hero grid — text + sticker side by side */
.page-hero-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 2rem; align-items: center;
}
.page-hero-text { position: relative; z-index: 2; }
.page-hero-sticker {
  display: flex; align-items: center; justify-content: center;
  width: 160px; height: 160px;
  position: relative;
  animation: fadeIn 1s ease 0.3s both;
}
.page-hero-sticker img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25));
  transition: transform 0.4s ease;
}
.page-hero-sticker:hover img {
  transform: rotate(3deg) scale(1.05);
}

/* Old illustration class — no longer used but keep for safety */
.page-hero-illustration { display: none; }

/* ===== SECTIONS ===== */
.section { padding: var(--section-pad) 0; position: relative; }
/* Ensure all adjacent sections overlap to prevent wave seams */
.section + .section,
.section-paper + .section-paper {
  margin-top: -4px;
}

.section-linen { background: #ffffff; position: relative; }
.section-sandstone-pale { background: var(--sandstone-pale); position: relative; }

.section-header {
  text-align: center; margin-bottom: 4rem;
  max-width: 680px; margin-left: auto; margin-right: auto;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-light); font-size: 1.15rem; line-height: 1.75; text-wrap: balance; }
.section-rule {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--eucalyptus), var(--gold));
  margin: 1rem auto 0; border-radius: 3px;
}

/* ===== MISSION PATCH — stitched fabric look ===== */
.mission-patch {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 2.5rem 3.5rem;
  text-align: center;
  position: relative;
  background: var(--sandstone-pale);
  border-radius: 12px;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04);
  /* Stitched border — dashed outline offset inward */
  outline: 2.5px dashed var(--sandstone);
  outline-offset: -12px;
}
/* Subtle fabric grain on the patch */
.mission-patch::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23f)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
}
.mission-patch-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.mission-patch p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  color: var(--text-body); line-height: 1.8;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.mission-patch p:last-of-type { margin-bottom: 0; }
.mission-patch .mission-closing {
  color: var(--navy); font-weight: 500; font-style: italic;
}
/* Stitched heart image — transparent PNG, no blend tricks needed */
.mission-patch-heart {
  width: 55px; height: 55px;
  margin: 0 auto 1rem;
}
.mission-patch-heart img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* ===== NAVY RIBBON ===== */
.navy-ribbon {
  background: var(--navy); padding: 4rem 0 6rem;
  text-align: center; position: relative; overflow: hidden;
}
.navy-ribbon p {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: rgba(255,255,255,0.85);
  max-width: 680px; margin: 0 auto; line-height: 1.7;
  position: relative; z-index: 1;
}

/* ===== VALUES ===== */
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; text-align: center; padding: 2rem 0;
  max-width: 960px; margin: 0 auto;
}
.value-item h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.value-item p { color: var(--text-body); font-size: 1.1rem; line-height: 1.75; }
.value-icon {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}
.value-icon::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 50%;
  border: 2px dashed;
  opacity: 0.35;
}
.value-icon svg { width: 44px; height: 44px; }
.value-icon.navy { background: rgba(11,42,92,0.08); color: var(--navy); }
.value-icon.navy::after { border-color: var(--navy); }
.value-icon.terracotta { background: rgba(196,126,94,0.1); color: var(--terracotta); }
.value-icon.terracotta::after { border-color: var(--terracotta); }
.value-icon.eucalyptus { background: rgba(106,158,126,0.1); color: var(--eucalyptus); }
.value-icon.eucalyptus::after { border-color: var(--eucalyptus); }

/* ===== CARDS - organic, soft ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: white; border-radius: 16px; padding: 2.75rem 2.25rem;
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  box-shadow: 0 2px 12px var(--shadow);
  /* Stitched border inset */
  outline: 2px dashed var(--border);
  outline-offset: -8px;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: 16px 16px 0 0;
  transition: height 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; text-wrap: balance; }

.card-icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}
.card-icon::after {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.4);
}
.card-icon svg { width: 34px; height: 34px; }
.card-icon.navy { background: var(--navy); color: white; }
.card-icon.terracotta { background: var(--terracotta); color: white; }
.card-icon.eucalyptus { background: var(--eucalyptus); color: white; }
.card-icon.gold { background: var(--gold); color: white; }

/* Card banner variants */
.card-with-banner { text-align: center; }
.card-with-banner::before { background: var(--navy); }
.card-with-banner.banner-terracotta::before { background: var(--terracotta); }
.card-with-banner.banner-eucalyptus::before { background: var(--eucalyptus); }
.card-with-banner.banner-gold::before { background: var(--gold); }
.card-with-banner.banner-blue-light::before { background: var(--navy-light); }
.card-with-banner.banner-terra::before { background: var(--terracotta); }

/* ===== PILLAR CARDS ===== */
.pillar-card {
  background: white; border-radius: 16px;
  padding: 2.5rem 2rem; border: none;
  border-top: 4px solid var(--navy);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 12px var(--shadow);
  outline: 2px dashed var(--border);
  outline-offset: -8px;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.pillar-card.border-terracotta { border-top-color: var(--terracotta); }
.pillar-card.border-eucalyptus { border-top-color: var(--eucalyptus); }
.pillar-card.border-gold { border-top-color: var(--gold); }

.pillar-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.pillar-header .card-icon { margin: 0; flex-shrink: 0; }
.pillar-header h3 { margin-bottom: 0; }
.pillar-desc { color: var(--text-body); margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.7; }
.pillar-card ul { list-style: none; padding: 0; }
.pillar-card ul li {
  position: relative; padding-left: 1.4rem;
  margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text-light);
}
.pillar-card ul li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--eucalyptus-light);
}

/* ===== SERVICE GRID ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-item {
  text-align: center; padding: 2.5rem 2rem;
  background: white; border: none; border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 2px 12px var(--shadow);
  outline: 2px dashed var(--border);
  outline-offset: -8px;
}
.service-item:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.service-item .card-icon { margin: 0 auto 1.5rem; }
.service-item h3 { margin-bottom: 0.75rem; }
.service-item p { color: var(--text-light); font-size: 1.05rem; line-height: 1.7; }

/* ===== ACCORDION ===== */
.accordion { max-width: 680px; margin: 0 auto; }
.accordion-item {
  background: white; border: none; border-radius: 12px;
  margin-bottom: 0.75rem; overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  outline: 2px dashed var(--border);
  outline-offset: -8px;
}
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; cursor: pointer; transition: background 0.2s ease;
}
.accordion-header:hover { background: var(--sandstone-pale); }
.accordion-header h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--text-dark); }
.accordion-header .chevron { width: 20px; height: 20px; color: var(--text-light); transition: transform 0.3s ease; }
.accordion-item.open .chevron { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; padding: 0 1.5rem; transition: max-height 0.4s ease, padding 0.3s ease; }
.accordion-item.open .accordion-body { max-height: 300px; padding: 0 1.5rem 1.25rem; }
.accordion-body p { color: var(--text-light); font-size: 1rem; }

/* ===== CAROUSEL ===== */
.carousel-section { overflow: hidden; }
.carousel-track-wrap { position: relative; }
.carousel-track { display: flex; gap: 1.5rem; transition: transform 0.5s ease; cursor: grab; }
.carousel-track:active { cursor: grabbing; }
.carousel-card {
  min-width: 340px; max-width: 340px; flex-shrink: 0;
  background: white; border-radius: 16px;
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none; color: inherit;
  box-shadow: 0 2px 12px var(--shadow);
  outline: 2px dashed var(--border);
  outline-offset: -8px;
}
.carousel-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); color: inherit; }
.carousel-card-img {
  width: 100%; height: 200px; object-fit: cover;
}
.carousel-card-body { padding: 1.5rem; }
.carousel-card-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #a5623e; margin-bottom: 0.5rem;
}
.carousel-card-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.carousel-card-body p { color: var(--text-light); font-size: 0.95rem; }
/* Carousel arrows */
.carousel-track-wrap { position: relative; }
.carousel-arrow {
  position: absolute; top: calc(50% - 2rem);
  transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: white; border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  color: var(--navy);
  transition: all 0.3s ease;
}
.carousel-arrow:hover {
  background: var(--navy); color: white;
  box-shadow: 0 4px 16px rgba(11,42,92,0.2);
}
.carousel-arrow:disabled {
  opacity: 0.3; cursor: default;
  pointer-events: none;
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow-left { left: -24px; }
.carousel-arrow-right { right: -24px; }

.carousel-nav { display: flex; justify-content: center; gap: 0.6rem; margin-top: 1.75rem; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; transition: all 0.3s ease;
}
.carousel-dot.active { background: var(--navy); width: 28px; border-radius: 5px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 240px 1fr; gap: 4rem; align-items: start; }
.profile-photo {
  max-width: 240px;
  position: relative;
}
.profile-photo img {
  width: 100%; border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  box-shadow: 0 12px 40px var(--shadow);
}
/* Stitched border inside the photo */
.profile-photo::after {
  content: ''; position: absolute;
  inset: 8px;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  border: 2.5px dashed rgba(255,255,255,0.5);
  pointer-events: none;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1rem; font-size: 1.1rem; }
.pullquote {
  border-left: 3px solid var(--eucalyptus);
  padding: 1.25rem 0 1.25rem 2rem; margin: 2rem 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; font-weight: 400; line-height: 1.6;
  color: var(--text-dark);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; list-style: none; }
.tags li {
  background: var(--sandstone-pale); padding: 0.45rem 1.2rem; border-radius: 50px;
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  border: 1px solid var(--sandstone);
}

/* ===== RESOURCE CARDS ===== */
.resource-card {
  background: white; border-radius: 16px;
  border: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px var(--shadow);
  outline: 2px dashed var(--border);
  outline-offset: -8px;
}
.resource-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px var(--shadow); }
.resource-card-accent { height: 4px; background: var(--navy); }
.resource-card-accent.terracotta { background: var(--terracotta); }
.resource-card-accent.eucalyptus { background: var(--eucalyptus); }
.resource-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.resource-card-tag {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: #a5623e; margin-bottom: 0.75rem;
}
.resource-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.resource-card p { color: var(--text-light); font-size: 1rem; flex: 1; }
.resource-card .btn { margin-top: 1.5rem; align-self: flex-start; font-size: 0.9rem; padding: 0.9rem 2rem; }

/* ===== CONTACT ===== */
.contact-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; font-size: 1.05rem; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sandstone-pale);
  display: flex; align-items: center; justify-content: center;
  border: none;
  position: relative;
}
.contact-icon::after {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%;
  border: 2px dashed var(--sandstone);
  opacity: 0.6;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--navy); }

/* ===== CIRCULAR LOGO WATERMARK ===== */
.logo-watermark-circle {
  width: 90px; height: 90px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-watermark-circle img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.logo-watermark-circle.large { width: 120px; height: 120px; }

/* ===== LINKEDIN CONNECT BANNER ===== */
.connect-banner {
  background: var(--navy);
  padding: 3rem 0;
  position: relative; overflow: hidden;
}
.connect-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; position: relative; z-index: 1;
  flex-wrap: wrap;
}
.connect-inner .logo-watermark-circle { opacity: 0.15; }
.connect-inner .logo-watermark-circle img { mix-blend-mode: screen; }
.connect-text {
  text-align: center;
}
.connect-text h3 {
  font-family: var(--font-display); color: white; font-size: 1.4rem;
  font-weight: 500; margin-bottom: 0.5rem;
}
.connect-text p {
  color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 1.25rem;
  max-width: 400px;
}
.connect-links {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.btn-linkedin {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #0077b5; color: white; padding: 0.9rem 2.2rem;
  border-radius: 50px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; transition: all 0.3s ease; border: none;
}
.btn-linkedin:hover {
  background: #005f8f; color: white; transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,119,181,0.3);
}
.btn-linkedin svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem; position: relative;
}
.footer-compact {
  display: flex; align-items: flex-start; gap: 2.5rem;
  text-align: center; justify-content: center;
  position: relative;
}
.footer-logo-watermark {
  display: none;
}
.footer-compact-main {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  position: relative; z-index: 1;
}
.footer-brand-row { text-align: center; }
.footer-brand-name {
  font-family: var(--font-display); color: rgba(255,255,255,0.95);
  font-size: 1.4rem; font-weight: 500; display: block;
}
.footer-brand-sub {
  font-family: var(--font-body); color: var(--gold-light);
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; display: block; margin-top: 3px;
}
.footer-tagline {
  color: rgba(255,255,255,0.55); font-size: 0.95rem;
  font-style: italic; line-height: 1.5; margin: 0;
}
.footer-nav {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  margin-top: 0.25rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.7); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.3s ease;
}
.footer-nav a:hover { color: white; }
.footer-connect-row {
  display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
  align-items: center;
}
.footer-connect-row a {
  color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color 0.3s ease;
}
.footer-connect-row a:hover { color: white; }
.footer-sep { color: rgba(255,255,255,0.2); font-size: 0.85rem; }
.footer-cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.25rem; }
.btn-sm { padding: 0.65rem 1.6rem; font-size: 0.85rem; }
.footer-bottom {
  text-align: center; margin-top: 2rem; padding-top: 1.25rem;
  border-top: 2px dashed rgba(255,255,255,0.08); font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .top-bar-inner { justify-content: center; gap: 1.25rem; font-size: 0.85rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text > p { margin: 0 auto 2.5rem; }
  .hero-buttons { justify-content: center; }
  .hero-logo-blob { width: 280px; height: 225px; }
  .hero-logo-blob img { width: 100%; height: 100%; }
  .page-hero-illustration { display: none; }
  .page-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .page-hero-text p:not(.hero-tagline) { margin: 0 auto; }
  .page-hero-sticker { width: 100px; height: 100px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-photo { max-width: 200px; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-logo-watermark { display: none; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  body { font-size: 1.1rem; line-height: 1.8; }
  .nav-brand img { height: 56px; }
  .nav-brand-text { font-size: 1.5rem; }
  .nav-brand-text span { font-size: 0.72rem; letter-spacing: 0.15em; }
  .nav-inner { padding: 0.8rem 0; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 1.5rem 2rem 2rem; gap: 0.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 0.75rem 1rem; font-size: 1.1rem;
    border-radius: 8px; min-height: 48px;
    display: flex; align-items: center;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.08); }
  .nav-links .nav-cta-link {
    text-align: center; justify-content: center;
    padding: 0.9rem 2rem; margin-top: 0.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; padding: 0.75rem; min-width: 48px; min-height: 48px; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

  .tagline-ribbon { padding: 0.85rem 0; }
  .tagline-ribbon-text { font-size: 0.78rem; letter-spacing: 0.1em; gap: 0.6rem; flex-wrap: wrap; }
  .tagline-heart { width: 14px; height: 14px; }

  .hero { padding: 3rem 0 6rem; }
  .hero-text h1 { font-size: clamp(1.9rem, 6vw, 2.4rem); }
  .hero-text > p { font-size: 1.08rem; }
  .hero-buttons { flex-direction: column; align-items: center; gap: 0.75rem; }
  .hero-buttons .btn { width: 100%; max-width: 320px; text-align: center; }

  .page-hero { padding: 2.5rem 0 3.5rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 5.5vw, 2.2rem); }
  .page-hero-sticker { width: 80px; height: 80px; }

  .btn { padding: 1rem 2rem; font-size: 0.95rem; min-height: 48px; }
  .contact-row { flex-direction: column; align-items: center; gap: 1.5rem; }
  .contact-item { font-size: 1.08rem; }
  .contact-item a { min-height: 48px; display: flex; align-items: center; }

  .card { padding: 2rem 1.5rem; }
  .card p { font-size: 1.05rem; }
  .pillar-card { padding: 2rem 1.5rem; }
  .pillar-header { flex-direction: column; text-align: center; }
  .pillar-header .card-icon { margin: 0 auto; }
  .pillar-desc { text-align: center; }
  .section { padding: clamp(2.5rem, 8vw, 4.5rem) 0; }
  .section-header { margin-bottom: 2.5rem; }
  .mission-patch { padding: 2rem 1.5rem; outline-offset: -8px; }
  .mission-patch-heart { width: 55px; height: 55px; }
  .mission-patch p { font-size: 1.05rem; }

  /* Carousel — full-width swipeable cards on mobile */
  .carousel-card { min-width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); }
  .carousel-card-img { height: 180px; }
  .carousel-card-body h3 { font-size: 1.05rem; }
  .carousel-card-body p { font-size: 0.95rem; }
  .carousel-arrow-left { left: 4px; }
  .carousel-arrow-right { right: 4px; }
  .carousel-arrow { width: 40px; height: 40px; opacity: 0.85; }

  /* About page */
  .about-text p { font-size: 1.08rem; }
  .pullquote { font-size: 1.08rem; padding-left: 1.5rem; }
  .tags { justify-content: center; }
  .tags li { font-size: 0.9rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer-nav { gap: 1rem; }
  .footer-nav a { font-size: 0.9rem; min-height: 44px; display: flex; align-items: center; }
  .footer-connect-row { flex-direction: column; gap: 0.4rem; }
  .footer-sep { display: none; }
  .footer-connect-row a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 44px; padding: 0.7rem 1.6rem; font-size: 0.88rem; }

  /* Connect banner */
  .connect-inner { gap: 1.5rem; }
  .connect-text h3 { font-size: 1.3rem; }
  .connect-text p { font-size: 1rem; }
  .connect-links { flex-direction: column; align-items: center; }
  .btn-linkedin { width: 100%; max-width: 300px; justify-content: center; min-height: 48px; }
}

/* Enquiry form mobile */
@media (max-width: 768px) {
  .enquiry-form { padding: 2rem 1.25rem; }
}

@media (max-width: 420px) {
  body { font-size: 1.05rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  .nav-brand img { height: 48px; }
  .nav-brand-text { font-size: 1.3rem; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero-logo-blob { width: 220px; height: 180px; }
  .card-icon { width: 64px; height: 64px; }
  .card-icon svg { width: 30px; height: 30px; }
  .value-icon { width: 64px; height: 64px; }
  .value-icon svg { width: 30px; height: 30px; }
  .container { width: min(var(--container), 92%); }
  .container-wide { width: min(1200px, 92%); }
  .navy-ribbon { padding: 3rem 0 4.5rem; }
  .navy-ribbon p { font-size: clamp(1.05rem, 4vw, 1.3rem); }
  .mission-patch { padding: 1.75rem 1.25rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== SKIP NAV ===== */
.skip-nav {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: white; padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px; font-size: 0.9rem; font-weight: 600;
  z-index: 10000; text-decoration: none;
}
.skip-nav:focus { top: 0; }
