/* AMECEC Community Platform — Final Design System
   Bold tivaevae patterns from Canva + warm coral Pacific aesthetic
   Built by RTS (Romero Tagi Solutions) · April 2026 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --coral: #D96B4F;
  --coral-light: #E8845C;
  --coral-soft: #F2C4B3;
  --navy: #1a2540;
  --navy-mid: #2a3a5a;
  --reef: #00A5B5;
  --sunset: #E0AC4C;
  --sand: #F5EDE4;
  --sand-light: #FAF6F1;
  --cream: #FFF9F4;
  --white: #ffffff;
  --charcoal: #2a2a2a;
  --grey: #6b7370;
  --grey-line: #e0dbd4;
  --palm: #2D5A27;
  --shadow: 0 1px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
}

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

h1, h2, h3, h4 { font-family: 'Inter', Arial, sans-serif; font-weight: 800; color: var(--navy); line-height: 1.15; }
h1 { font-size: 3rem; margin-bottom: 0.4em; letter-spacing: -0.02em; }
h2 { font-size: 2rem; margin-bottom: 0.5em; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
p { margin-bottom: 1em; }
ul { margin: 0 0 1em 1.2em; }
li { margin-bottom: 0.4em; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* Accent underline on h2 */
h2::after {
  content: ''; display: block; width: 80px; height: 4px;
  background: var(--coral); margin-top: 12px;
}

/* ========================================
   TIVAEVAE PATTERN SYSTEM
   ======================================== */

/* Section divider — real tivaevae pattern strip */
.tapa-border, .tapa-border-warm, .tapa-crescent, .tapa-crescent-up {
  height: 56px;
  background: url("patterns/tivaevae-divider-hq.png") repeat-x center/auto 100%;
}

/* Pattern accent on sections — subtle background motif */
.tv-accent { position: relative; overflow: hidden; }
.tv-accent > * { position: relative; z-index: 1; }

/* Real tivaevae icon accents — 4 icons rotating across sections */
.tv-monstera::after, .tv-fern::after, .tv-floral::after,
.tv-hibiscus::after, .tv-scroll::after,
.tiare-accent::after, .leaf-accent::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 350px; height: 350px; top: -60px; right: -60px;
  background: url("patterns/icon-monstera-sky-sm.png") no-repeat center/contain;
  opacity: 0.12;
}
.tv-breadfruit::after, .tv-tropical::after, .tv-fern-red::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 320px; height: 320px; bottom: -50px; left: -50px;
  background: url("patterns/icon-monstera-orange-sm.png") no-repeat center/contain;
  opacity: 0.12;
}
.tiare-accent-left::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 300px; height: 300px; bottom: -50px; left: -50px;
  background: url("patterns/icon-tiare-blue-sm.png") no-repeat center/contain;
  opacity: 0.1;
}

/* Specific accent classes for each icon */
.accent-sky::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 350px; height: 350px; top: -60px; right: -60px;
  background: url("patterns/icon-monstera-sky-sm.png") no-repeat center/contain;
  opacity: 0.12;
}
.accent-orange::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 320px; height: 320px; bottom: -50px; left: -50px;
  background: url("patterns/icon-monstera-orange-sm.png") no-repeat center/contain;
  opacity: 0.12;
}
.accent-blue::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 300px; height: 300px; top: -40px; right: -40px;
  background: url("patterns/icon-tiare-blue-sm.png") no-repeat center/contain;
  opacity: 0.1;
}
.accent-red::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 320px; height: 320px; bottom: -50px; right: -50px;
  background: url("patterns/icon-hibiscus-red-sm.png") no-repeat center/contain;
  opacity: 0.1;
}

/* Logo watermark accent — used as a subtle background element */
.logo-accent { position: relative; overflow: hidden; }
.logo-accent > * { position: relative; z-index: 1; }
.logo-accent::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 200px; height: 265px;
  bottom: 20px; right: 24px;
  background: url("logo.png") no-repeat center/contain;
  opacity: 0.06;
}
/* Logo on left side */
.logo-accent-left { position: relative; overflow: hidden; }
.logo-accent-left > * { position: relative; z-index: 1; }
.logo-accent-left::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 180px; height: 238px;
  top: 20px; left: 24px;
  background: url("logo.png") no-repeat center/contain;
  opacity: 0.06;
}
/* Ensure proper z-index on all accent containers */
.tv-fern, .tv-hibiscus, .tv-floral, .tv-scroll,
.tv-tropical, .tv-fern-red, .tv-monstera, .tv-breadfruit,
.tiare-accent, .tiare-accent-left, .leaf-accent,
.tivaevae-bg, .woven-bg {
  position: relative; overflow: hidden;
}
.tv-fern > *, .tv-hibiscus > *, .tv-floral > *, .tv-scroll > *,
.tv-tropical > *, .tv-fern-red > *, .tv-monstera > *, .tv-breadfruit > *,
.tiare-accent > *, .tiare-accent-left > *, .leaf-accent > *,
.tivaevae-bg > *, .woven-bg > * {
  position: relative; z-index: 1;
}

/* Pattern banner — disabled for now */
.pattern-banner { display: none; }

/* Wave dividers hidden */
.wave-divider { display: none; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  background: var(--white); position: sticky; top: 0; z-index: 100;
  padding: 14px 0; border-bottom: 1px solid var(--grey-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.site-header::after {
  content: ''; display: block; height: 3px; background: var(--coral);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--navy); font-size: 1rem; font-weight: 800; }
.brand-text span { color: var(--grey); font-size: 0.72rem; margin-top: 1px; }

nav.primary { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
nav.primary a {
  color: var(--navy); font-weight: 600; font-size: 0.88rem;
  padding: 8px 14px; transition: background 0.2s, color 0.2s;
}
nav.primary a:hover { background: var(--sand); color: var(--navy); text-decoration: none; }
nav.primary a.active { background: var(--navy); color: var(--white); }
nav.primary a.cta-nav { background: var(--coral); color: var(--white); padding: 10px 22px; font-weight: 700; }
nav.primary a.cta-nav:hover { background: var(--navy); }

/* ========================================
   HERO
   ======================================== */
.hero { position: relative; overflow: hidden; padding: 88px 0 80px; }
.hero.ocean { background: var(--navy); color: var(--white); }
.hero.ocean::before {
  content: ''; position: absolute;
  width: 500px; height: 500px; top: -100px; right: -100px;
  background: url("patterns/icon-monstera-sky-sm.png") no-repeat center/contain;
  opacity: 0.1; pointer-events: none;
}
.hero.ocean::after { display: none; }
.hero.ocean h1, .hero.ocean h2 { color: var(--white); }
.hero.ocean h1::after { background: var(--coral); width: 100px; }
.hero > .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 16px; margin-bottom: 20px;
  background: var(--coral); color: var(--white);
}
.hero .lede { font-size: 1.2rem; max-width: 640px; opacity: 0.9; line-height: 1.75; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block; font-weight: 700; font-size: 0.9rem;
  padding: 14px 32px; border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none; letter-spacing: 0.02em;
}
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--coral); color: var(--white); }
.btn.primary:hover { background: var(--navy); color: var(--white); }
.btn.sunset { background: var(--sunset); color: var(--navy); }
.btn.sunset:hover { background: var(--coral); color: var(--white); }
.btn.outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn.outline:hover { background: var(--white); color: var(--navy); }
.btn.outline-dark { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn.outline-dark:hover { background: var(--navy); color: var(--white); }
.btn + .btn { margin-left: 12px; }

/* ========================================
   SECTIONS
   ======================================== */
section { padding: 56px 0; }
section.sand { background: var(--sand); }

.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 8px;
}
.section-intro { max-width: 640px; font-size: 1.05rem; color: var(--grey); margin-bottom: 44px; line-height: 1.75; }

/* ========================================
   STATS BAR
   ======================================== */
.stats-section { background: var(--coral); color: var(--white); padding: 0; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { text-align: center; padding: 32px 16px; position: relative; }
.stat--wide { grid-column: span 2; }
.stat--wide .num { font-size: 1.7rem; letter-spacing: -0.01em; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 20%; height: 60%;
  width: 1px; background: rgba(255,255,255,0.25);
}
.stat .num { display: block; font-size: 2.2rem; font-weight: 900; color: var(--white); }
.stat .label { display: block; font-size: 0.78rem; margin-top: 4px; opacity: 0.85; }

/* ========================================
   PILLAR CARDS
   ======================================== */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pillar-card {
  background: var(--white); box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex; flex-direction: column; overflow: hidden;
  border-top: 6px solid var(--coral);
}
.pillar-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pillar-card::before, .pillar-card::after { display: none; }
.pillar-card .card-body { padding: 28px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.pillar-card .icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px; color: var(--coral); background: var(--sand);
}
.pillar-card .icon.edu { color: var(--reef); background: #e6f5f6; }
.pillar-card .icon.culture { color: var(--coral); background: #fef0ec; }
.pillar-card .icon.whanau { color: var(--sunset); background: #fdf5e6; }
.pillar-card .icon.workforce { color: var(--palm); background: #edf5ec; }
.pillar-card .icon.place { color: var(--navy); background: #e8ebf0; }
.pillar-card h3 { font-size: 1.1rem; }
.pillar-card h3::after { display: none; }
.pillar-card p { font-size: 0.92rem; color: var(--grey); flex-grow: 1; }
.status-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; margin-top: 14px; align-self: flex-start;
}
.status-tag.live { background: #e6f5ec; color: var(--palm); }
.status-tag.dev { background: #fdf5e6; color: #8a6d20; }

/* ========================================
   STORY CARDS
   ======================================== */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.story-card {
  background: var(--white); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.25s, transform 0.25s;
}
.story-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.story-card .photo {
  width: 100%; height: 240px; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey); font-size: 0.82rem; overflow: hidden;
}
.story-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.story-card .body { padding: 24px; }
.story-card .tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px;
}
.story-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.story-card h3::after { display: none; }
.story-card p { font-size: 0.9rem; color: var(--grey); }
.story-card cite {
  display: block; font-style: normal; font-size: 0.8rem; color: var(--grey);
  margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--sand);
}

/* ========================================
   QUOTE BLOCK
   ======================================== */
.quote-block {
  background: var(--sand); padding: 36px 40px 36px 48px;
  position: relative; margin: 36px 0; border-left: 6px solid var(--coral);
}
.quote-block::before {
  content: '\201C'; position: absolute; top: 8px; left: 14px;
  font-size: 3.5rem; color: var(--coral); opacity: 0.4; line-height: 1;
}
.quote-block p { font-size: 1.1rem; font-style: italic; color: var(--navy); margin-bottom: 0.5em; }
.quote-block cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--grey); }

/* ========================================
   GALLERY
   ======================================== */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.gallery .photo-slot {
  aspect-ratio: 4/3; overflow: hidden; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--grey);
  border: 2px dashed var(--grey-line); transition: transform 0.25s;
}
.gallery .photo-slot:hover { transform: scale(1.02); }
.gallery .photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.gallery .photo-slot.has-img { border: none; }

/* ========================================
   PARTNERSHIP CARDS
   ======================================== */
.partnership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.partner-card {
  background: var(--white); box-shadow: var(--shadow);
  overflow: hidden; border-top: 6px solid var(--coral);
}
.partner-card::before { display: none; }
.partner-card .card-body { padding: 24px; }
.partner-card h3 { font-size: 1.05rem; }
.partner-card h3::after { display: none; }
.partner-card p { font-size: 0.9rem; color: var(--grey); }
.partner-card ul { font-size: 0.9rem; color: var(--grey); }

/* ========================================
   PEOPLE
   ======================================== */
/* People section — large square headshots, editorial style */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.person { text-align: left; }
.person .avatar {
  width: 100%; aspect-ratio: 1; border-radius: 0;
  margin: 0 0 16px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 2.4rem; font-weight: 700;
  border: none; border-bottom: 4px solid var(--coral);
  background-size: cover; background-position: center top;
}
.person .avatar::after { display: none; }
.person .avatar.temaria { background: url('photos/temaria-pro.png') center top/cover; font-size: 0; }
.person .avatar.luke { background: url('photos/luke-pro.png') center top/cover; font-size: 0; }
.person .avatar.auntymoe { background: url('photos/temaria.jpg') center/cover; font-size: 0; }
.person .avatar.default { background: linear-gradient(135deg, var(--reef), var(--navy)); }
.person .avatar.green { background: linear-gradient(135deg, var(--palm), var(--navy)); }
.person .avatar.warm { background: linear-gradient(135deg, var(--coral), var(--sunset)); }
.person h4 { font-size: 1.05rem; margin-bottom: 4px; }
.person h4::after { display: none; }
.person .role { font-size: 0.85rem; color: var(--grey); }

/* ========================================
   TWO COLUMN + SIDEBAR
   ======================================== */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.sidebar-card {
  background: var(--sand); padding: 28px; border-left: 5px solid var(--coral);
}
.sidebar-card h4 { margin-bottom: 12px; font-size: 1rem; }
.sidebar-card h4::after { display: none; }
.sidebar-card p { font-size: 0.9rem; margin-bottom: 0.6em; }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--coral); color: var(--white);
  padding: 60px 48px; text-align: center;
}
.cta-banner::before {
  content: ''; position: absolute;
  width: 350px; height: 350px; bottom: -70px; left: -60px;
  background: url("patterns/icon-monstera-orange-sm.png") no-repeat center/contain;
  opacity: 0.15; filter: brightness(2); pointer-events: none;
}
.cta-banner::after { display: none; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-top: 0; }
.cta-banner h2::after { background: var(--white); }
.cta-banner p { opacity: 0.92; max-width: 600px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ========================================
   FORM
   ======================================== */
form.enquiry { max-width: 600px; }
form.enquiry label { display: block; font-weight: 600; font-size: 0.88rem; margin: 18px 0 6px; }
form.enquiry input, form.enquiry textarea, form.enquiry select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-line);
  font-family: inherit; font-size: 0.95rem; background: var(--white);
  transition: border-color 0.2s;
}
form.enquiry input:focus, form.enquiry textarea:focus, form.enquiry select:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 2px rgba(217,107,79,0.15);
}
form.enquiry textarea { min-height: 140px; resize: vertical; }
form.enquiry button { margin-top: 24px; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 0; font-size: 0.88rem; }
.footer-tapa { height: 56px; background: url("patterns/tivaevae-divider-hq.png") repeat-x center/auto 100%; }
.footer-content { padding: 48px 0 28px; }
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: var(--coral-soft); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px;
}
.site-footer h4::after { display: none; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  margin-top: 32px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.75rem; opacity: 0.5; padding-bottom: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
/* ========================================
   PILLAR BLOCKS — alternating image + text
   ======================================== */
.pillar-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.pillar-block.reverse { direction: rtl; grid-template-columns: 1fr 1.4fr; }
.pillar-block.reverse > * { direction: ltr; }
/* Accent graphics for depth */
.pillar-block::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  width: 280px; height: 280px; top: -50px; right: -50px;
  background: url("patterns/icon-monstera-sky-sm.png") no-repeat center/contain;
  opacity: 0.06;
}
.pillar-block.reverse::after {
  right: auto; left: -50px; top: auto; bottom: -50px;
  background: url("patterns/icon-monstera-orange-sm.png") no-repeat center/contain;
}
.pillar-block:nth-child(5n)::after {
  background: url("patterns/icon-tiare-blue-sm.png") no-repeat center/contain;
}
.pillar-block > * { position: relative; z-index: 1; }
.pillar-block .pillar-img {
  overflow: hidden;
  border-radius: 6px;
  max-height: 320px;
}
.pillar-block .pillar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pillar-block .pillar-text {
  padding: 32px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pillar-block .pillar-text .section-label { margin-bottom: 8px; }
.pillar-block .pillar-text h2 { font-size: 1.5rem; margin-bottom: 10px; }
.pillar-block .pillar-text h2::after { margin-top: 8px; }
.pillar-block .pillar-text p { font-size: 0.9rem; color: var(--grey); margin-bottom: 0.7em; line-height: 1.65; }
.pillar-block .pillar-text .btn { align-self: flex-start; margin-top: 8px; font-size: 0.82rem; padding: 10px 22px; }

/* ========================================
   TABLET (max 800px)
   ======================================== */
@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { padding: 0 20px; }

  /* Pillar blocks — stack on tablet */
  .pillar-block, .pillar-block.reverse { grid-template-columns: 1fr; direction: ltr; padding: 24px 20px; }
  .pillar-block .pillar-img { max-height: 240px; border-radius: 6px; }
  .pillar-block .pillar-text { padding: 24px 0; }

  /* Carousel */
  .partner-carousel-track img { height: 60px; }
  .partner-carousel-track { gap: 48px; }

  /* Nav */
  .site-header .container { flex-direction: column; gap: 10px; }
  nav.primary { width: 100%; justify-content: center; flex-wrap: wrap; }
  .brand-text strong { font-size: 0.9rem; }

  /* Hero */
  .hero { padding: 48px 0 44px; }

  /* Buttons */
  .btn { padding: 12px 24px; font-size: 0.85rem; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 20px 12px; }
  .stat .num { font-size: 1.6rem; }
  .stat--wide { grid-column: span 2; }
  .stat--wide .num { font-size: 1.4rem; }

  /* Grids */
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .partnership-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* Quote */
  .quote-block { padding: 24px 20px 24px 28px; margin: 24px 0; }
  .quote-block::before { font-size: 2.5rem; left: 8px; }
  .quote-block p { font-size: 1rem; }

  /* CTA */
  .cta-banner { padding: 40px 24px; }

  /* Tapa dividers */
  .tapa-border, .tapa-border-warm, .tapa-crescent, .tapa-crescent-up,
  .footer-tapa { height: 36px; }

  /* Footer */
  .site-footer .container { grid-template-columns: 1fr; gap: 24px; }
  .footer-content { padding: 36px 0 20px; }

  /* Sidebar cards */
  .sidebar-card { padding: 20px; }
}

/* ========================================
   MOBILE (max 600px)
   ======================================== */
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; letter-spacing: -0.01em; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  h2::after { width: 60px; height: 3px; margin-top: 8px; }
  body { font-size: 15px; line-height: 1.6; }
  .container { padding: 0 16px; }
  section { padding: 40px 0; }

  /* Pillar blocks — tighter on mobile */
  .pillar-block, .pillar-block.reverse { padding: 20px 16px; }
  .pillar-block .pillar-img { max-height: 200px; }
  .pillar-block .pillar-text { padding: 20px 0; }
  .pillar-block .pillar-text h2 { font-size: 1.3rem; }
  .pillar-block::after { width: 150px; height: 150px; opacity: 0.04; }

  /* Carousel smaller on mobile */
  .partner-carousel-track img { height: 40px; }
  .partner-carousel-track { gap: 36px; }

  /* Footer mobile */
  .site-footer .container { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Header */
  .site-header { padding: 10px 0; }
  .brand img { height: 40px; }
  .brand-text strong { font-size: 0.85rem; }
  .brand-text span { font-size: 0.65rem; }
  nav.primary a { padding: 6px 10px; font-size: 0.8rem; }
  nav.primary a.cta-nav { padding: 6px 14px; }

  /* Hero — stack the 3 background images vertically on mobile */
  section[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats — 2 columns on small mobile, wide stat takes a full row */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 14px 10px; }
  .stat .num { font-size: 1.35rem; }
  .stat .label { font-size: 0.68rem; line-height: 1.3; }
  .stat--wide { grid-column: 1 / -1; order: 10; padding: 18px 10px; background: rgba(0,0,0,0.08); border-top: 1px solid rgba(255,255,255,0.18); }
  .stat--wide .num { font-size: 1.2rem; letter-spacing: 0.01em; }
  /* Hide 6th stat on small mobile so 4 small + 1 wide row cleanly */
  .stat:nth-of-type(6) { display: none; }
  /* Hide the desktop vertical divider on mobile (multi-row 2-col layout looks wrong with it) */
  .stat::before { display: none !important; }

  /* Pillar cards — already 1 col from tablet */
  .pillar-card .card-body { padding: 20px 18px; }
  .pillar-card .icon { width: 40px; height: 40px; }

  /* Story cards */
  .story-card .photo { height: 180px; }
  .story-card .body { padding: 18px; }

  /* Gallery — single column */
  .gallery { grid-template-columns: 1fr; }

  /* People */
  .person .avatar { width: 100px; height: 100px; }

  /* Buttons — full width */
  .btn { display: block; width: 100%; text-align: center; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }

  /* Tapa dividers thinner */
  .tapa-border, .tapa-border-warm, .tapa-crescent, .tapa-crescent-up,
  .footer-tapa { height: 28px; }

  /* Quote smaller */
  .quote-block { padding: 20px 16px 20px 24px; font-size: 0.92rem; }
  .quote-block::before { font-size: 2rem; left: 6px; top: 4px; }

  /* CTA */
  .cta-banner { padding: 32px 20px; }
  .cta-banner h2 { font-size: 1.3rem; }

  /* Section labels */
  .section-label { font-size: 0.65rem; }
  .section-intro { font-size: 0.95rem; margin-bottom: 28px; }
}

/* ========================================
   MOBILE: Fix inline styles that break
   These use !important to override inline grids
   ======================================== */
@media (max-width: 800px) {
  /* Pillar card rows — stack to 1 column */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  /* Voyage section — stack waka above route */
  div[style*="grid-template-columns:240px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Hero background images — show only first image on mobile */
  div[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr 1fr 1fr"] > div:nth-child(2),
  div[style*="grid-template-columns:1fr 1fr 1fr"] > div:nth-child(3) {
    display: none !important;
  }

  /* Logo banner — smaller logos, wrap tighter */
  div[style*="justify-content:space-evenly"] {
    gap: 28px 20px !important;
    padding: 0 16px !important;
  }
  div[style*="justify-content:space-evenly"] img {
    height: 32px !important;
  }

  /* Voyage waypoint circles */
  div[style*="width:44px;height:44px"] {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.75rem !important;
  }
  div[style*="width:52px;height:52px"] {
    width: 40px !important;
    height: 40px !important;
  }

  /* Waka perspective on mobile — flatten it a bit */
  div[style*="perspective:600px"] {
    perspective: none !important;
  }
  div[style*="perspective:600px"] img {
    transform: none !important;
  }
}

@media (max-width: 600px) {
  /* Logo banner even smaller */
  div[style*="justify-content:space-evenly"] img {
    height: 24px !important;
  }
  div[style*="justify-content:space-evenly"] {
    gap: 20px 16px !important;
  }

  /* Partner cards */
  .partner-card .card-body { padding: 18px; }
}

/* Hero sections with inline backgrounds — ensure white text */
section[style*="align-items:center"] h1,
section[style*="align-items:center"] h2 {
  color: var(--white) !important;
}
section[style*="align-items:center"] h1::after,
section[style*="align-items:center"] h2::after {
  background: var(--coral);
}
section[style*="align-items:center"] .lede,
section[style*="align-items:center"] p {
  color: rgba(255,255,255,0.88);
}

/* ========================================
   PARTNER LOGO CAROUSEL
   ======================================== */
@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes float-on-water {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-6px); }
  50% { transform: translateY(2px); }
  75% { transform: translateY(-4px); }
}
.partner-carousel {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partner-carousel-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}
.partner-carousel-track img {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  animation: float-on-water 4s ease-in-out infinite;
}
.partner-carousel-track img:nth-child(2) { animation-delay: -0.6s; }
.partner-carousel-track img:nth-child(3) { animation-delay: -1.2s; }
.partner-carousel-track img:nth-child(4) { animation-delay: -1.8s; }
.partner-carousel-track img:nth-child(5) { animation-delay: -2.4s; }
.partner-carousel-track img:nth-child(6) { animation-delay: -3.0s; }
.partner-carousel-track img:nth-child(7) { animation-delay: -0.3s; }
.partner-carousel-track img:nth-child(8) { animation-delay: -0.9s; }
.partner-carousel-track img:nth-child(9) { animation-delay: -1.5s; }
.partner-carousel-track img:nth-child(10) { animation-delay: -2.1s; }
.partner-carousel-track img:nth-child(11) { animation-delay: -2.7s; }
.partner-carousel-track img:nth-child(12) { animation-delay: -3.3s; }
.partner-carousel-track img:nth-child(13) { animation-delay: -0.45s; }
.partner-carousel-track img:nth-child(14) { animation-delay: -1.05s; }

/* ========================================
   DYNAMIC SCROLL + FLOAT EFFECTS
   ======================================== */

/* Vaka floating/levitating animation */
@keyframes vaka-float {
  0%, 100% { transform: rotateX(12deg) rotateY(-8deg) scale(1.05) translateY(0); }
  33% { transform: rotateX(12deg) rotateY(-8deg) scale(1.05) translateY(-12px); }
  66% { transform: rotateX(12deg) rotateY(-8deg) scale(1.05) translateY(4px); }
}
@keyframes vaka-glow {
  0%, 100% { filter: drop-shadow(0 8px 32px rgba(224,172,76,0.4)); }
  50% { filter: drop-shadow(0 20px 48px rgba(224,172,76,0.65)); }
}
.vaka-float {
  animation: vaka-float 5s ease-in-out infinite, vaka-glow 5s ease-in-out infinite;
  transform-origin: center bottom;
}

/* Scroll fade-in for sections */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pillar block slide-in */
.pillar-block .pillar-img {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.pillar-block.reverse .pillar-img {
  transform: translateX(24px);
}
.pillar-block .pillar-text {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.pillar-block.reverse .pillar-text {
  transform: translateX(-24px);
}
.pillar-block.visible .pillar-img,
.pillar-block.visible .pillar-text {
  opacity: 1;
  transform: translateX(0);
}

/* Stat counter pop */
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(217, 107, 79, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(217, 107, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 107, 79, 0); }
}
#back-to-top:hover { background: var(--coral); }
.story-card .photo img { transition: transform 0.6s ease; }
.story-card:hover .photo img { transform: scale(1.06); }

@keyframes stat-pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.stat.visible .num {
  animation: stat-pop 0.5s ease forwards;
}

/* Subtle parallax on hero accents */
@keyframes drift-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, 6px) rotate(2deg); }
}
.drift { animation: drift-slow 12s ease-in-out infinite; }
