/* ============================================================
   GrowCarte — About Page
   Stylesheet (extracted from inline <style>, aligned with the
   homepage's responsive system: ≥1400 desktop, 1024–1399 laptop,
   768–1023 tablet, 481–767 large phone, ≤480 phone)
   ============================================================ */

/* ============================================
   TOKENS — identical to homepage
   ============================================ */
:root{
  --ink:        #040037;
  --ink-soft:   #4A4776;
  --blue:       #0077FC;
  --blue-deep:  #0058C4;
  --blue-pale:  #E7F0FE;
  --paper:      #F7F8FC;
  --paper-alt:  #FFFFFF;
  --mist:       #EEF2FB;
  --line:       #DEE4F5;
  --lift:       #12995A;
  --lift-pale:  #E4F6EC;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max: 1160px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(4,0,55,0.06);
  --shadow-md: 0 12px 32px -12px rgba(4,0,55,0.18);
  --shadow-lg: 0 24px 60px -20px rgba(4,0,55,0.28);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  width:100%;
}

img, svg{ max-width:100%; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  margin:0;
  line-height:1.15;
  letter-spacing:-0.01em;
}

p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
a{ color:inherit; text-decoration:none; }
a.inline-link{ color:var(--blue); }
a.inline-link:hover{ color:var(--blue-deep); }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2.5px solid var(--blue);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{ max-width:var(--max); margin:0 auto; padding:0 24px; width:100%; }

.eyebrow{
  font-family:var(--font-mono);
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue-deep);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{ content:""; width:16px; height:2px; background:var(--blue); display:inline-block; flex:none; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:100px;
  font-family:var(--font-body); font-weight:600; font-size:0.95rem;
  border:1.5px solid transparent;
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--blue); color:#fff; box-shadow:0 10px 24px -10px rgba(0,119,252,0.55); }
.btn-primary:hover{ background:var(--blue-deep); transform:translateY(-2px); box-shadow:0 14px 28px -10px rgba(0,119,252,0.6); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue-deep); transform:translateY(-2px); }

/* ============================================
   REVEAL ON SCROLL — identical to homepage
   ============================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *{ transition-delay:calc(var(--i) * 90ms); }

/* ============================================
   HEADER
   ============================================ */
header.site-header{
  position:sticky; top:0; z-index:100;
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease;
  width:100%;
  isolation:isolate;
}
/* Blur lives on a ::before layer instead of directly on the header.
   backdrop-filter on the header itself creates a new CSS containing
   block for position:fixed descendants on most mobile browsers,
   which traps the full-screen mobile nav inside the header's own
   (tiny) box instead of letting it cover the viewport. */
header.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

header.site-header.is-scrolled{ border-bottom-color:var(--line); box-shadow:var(--shadow-sm); }
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; height:78px; }
.brand{ display:flex; align-items:center; gap:10px; min-width:0; flex:none; }
.brand img{ height:154px; width:auto; object-fit:contain; }

nav.main-nav{ display:flex; align-items:center; gap:6px; }
nav.main-nav a.nav-link{
  padding:10px 14px; border-radius:100px; font-size:0.93rem; font-weight:500;
  color:var(--ink-soft); transition:background .18s ease, color .18s ease;
  white-space:nowrap;
}
nav.main-nav a.nav-link:hover{ background:var(--mist); color:var(--ink); }
nav.main-nav a.nav-link.is-current{ color:var(--blue-deep); background:var(--blue-pale); }
.header-actions{ display:flex; align-items:center; gap:10px; flex:none; }
.nav-cta{ display:none; }
.nav-toggle{
  display:none; width:42px; height:42px; border:1.5px solid var(--line); border-radius:10px;
  background:#fff; align-items:center; justify-content:center; flex-direction:column; gap:4px;
  flex:none;
}
.nav-toggle span{ display:block; width:18px; height:2px; background:var(--ink); border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
.nav-toggle.is-open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* ============================================
   SERVICES DROPDOWN (header nav)
   This block was missing entirely, which is why the 8 service
   links were rendering as plain inline flex children of the nav
   instead of a hidden popup — pushing the header to wrap onto a
   second line. Identical to the dropdown used on every other page
   (homepage, case studies): a hover-triggered popup on desktop,
   an inline expandable section on mobile (see the 720px block
   below), toggled by the matching JS in about.html.
   ============================================ */
.nav-dropdown{ position:relative; }
.nav-dropdown > .nav-link{ display:inline-flex; align-items:center; gap:5px; }
.nav-dropdown .caret{ font-size:0.6rem; transition:transform 200ms ease; }
.nav-dropdown-menu{
  position:absolute; top:100%; left:0; padding-top:8px; min-width:230px; z-index:110;
  opacity:0; transform:translateY(-6px); pointer-events:none;
  transition:opacity 180ms ease, transform 180ms ease;
}
.nav-dropdown-menu-inner{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
  box-shadow:var(--shadow-md); padding:8px; display:flex; flex-direction:column; gap:2px;
}
.nav-dropdown-menu a{ padding:10px 12px; border-radius:8px; font-size:0.9rem; font-weight:500; color:var(--ink-soft); transition:background .18s ease, color .18s ease; }
.nav-dropdown-menu a:hover{ background:var(--mist); color:var(--ink); }
@media (hover:hover) and (pointer:fine){
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-dropdown:hover .caret{ transform:rotate(180deg); }
}
.nav-dropdown.is-open .nav-dropdown-menu{ opacity:1; transform:translateY(0); pointer-events:auto; }
.nav-dropdown.is-open .caret{ transform:rotate(180deg); }

/* ============================================
   FOOTER
   ============================================ */
footer.site-footer{ background:var(--ink); color:rgba(255,255,255,0.72); padding:64px 0 28px; width:100%; }
.footer-top{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,0.12); }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-brand img{ height:30px; }
.footer-col p.foot-desc{ font-size:0.88rem; max-width:32ch; color:rgba(255,255,255,0.55); }
.footer-col h4{ color:#fff; font-size:0.82rem; letter-spacing:0.06em; text-transform:uppercase; font-family:var(--font-mono); font-weight:600; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:11px; }
.footer-col ul a{ font-size:0.9rem; color:rgba(255,255,255,0.72); transition:color .18s ease; }
.footer-col ul a:hover{ color:#fff; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; padding-top:24px; font-size:0.82rem; color:rgba(255,255,255,0.5); flex-wrap:wrap; gap:12px; }
.footer-legal{ display:flex; gap:20px; }

/* ============================================
   SHARED SECTION / CARD PATTERNS
   ============================================ */
.section{ padding:88px 0; width:100%; }
.section-alt{ background:var(--paper-alt); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); margin-top:14px; }
.section-head p{ margin-top:14px; color:var(--ink-soft); font-size:1.02rem; }
.service-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:26px; min-width:0; }

/* ============================================
   ABOUT INTRO
   ============================================ */
.about-hero{ position:relative; padding:72px 0 56px; overflow:hidden; width:100%; }
.about-hero .blob-accent{ position:absolute; top:-40px; right:-60px; width:340px; opacity:0.16; pointer-events:none; z-index:0; }
.about-hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center; }
.about-hero h1{ font-size:clamp(1.9rem, 3.6vw, 3rem); margin-top:16px; }
.about-hero h1 .accent{ color:var(--blue); }
.about-hero p{ margin-top:18px; font-size:1.06rem; color:var(--ink-soft); max-width:520px; }
.about-hero-media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg); position:relative; z-index:1; background:var(--mist); min-width:0; }
.about-hero-media img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }

/* ============================================
   OUR STORY
   ============================================ */
.story-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; align-items:center; }
.story-media{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); background:var(--mist); min-width:0; }
.story-media img{ width:100%; object-fit:cover; aspect-ratio:5/4; }
.story-copy p{ font-size:1.02rem; color:var(--ink-soft); margin-top:16px; }
.story-copy p:first-of-type{ margin-top:14px; }
.gap-list{ display:flex; flex-direction:column; gap:10px; margin-top:20px; }
.gap-list li{ display:flex; align-items:flex-start; gap:10px; font-size:0.95rem; color:var(--ink-soft); }
.gap-list li::before{ content:""; width:7px; height:7px; margin-top:7px; border-radius:2px; background:var(--blue); flex:none; }

/* ============================================
   HOW WE'RE DIFFERENT
   ============================================ */
.diff-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
.diff-card{ display:flex; flex-direction:column; gap:12px; min-width:0; }
.diff-card .num{ font-family:var(--font-display); font-weight:700; font-size:1.4rem; color:var(--blue); }
.diff-card h3{ font-size:1.05rem; }
.diff-card p{ font-size:0.92rem; color:var(--ink-soft); }

/* ============================================
   TEAM / EXPERTISE
   ============================================ */
.team-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.team-card{ display:flex; gap:16px; align-items:flex-start; min-width:0; }
.team-card-media{ width:140px; height:140px; border-radius:var(--radius-sm); overflow:hidden; flex:none; box-shadow:var(--shadow-sm); background:var(--mist); }
.team-card-media img{ width:100%; height:100%; object-fit:cover; }
.team-card-body{ min-width:0; }
.team-card h3{ font-size:1rem; }
.team-card p{ font-size:0.9rem; color:var(--ink-soft); margin-top:6px; }

/* ============================================
   ENGAGEMENT PHILOSOPHY
   ============================================ */
.philosophy-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
.philosophy-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:26px; display:flex; flex-direction:column; gap:10px; min-width:0; }
.philosophy-card .step-num{ font-family:var(--font-mono); font-size:0.72rem; font-weight:600; color:var(--blue-deep); letter-spacing:0.08em; }
.philosophy-card h3{ font-size:1.02rem; }
.philosophy-card p{ font-size:0.9rem; color:var(--ink-soft); }

.values-strip{ display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; margin-top:20px; }
.value-item{ padding-top:16px; border-top:2px solid var(--line); min-width:0; }
.value-item h4{ font-size:0.92rem; }
.value-item p{ font-size:0.88rem; color:var(--ink-soft); margin-top:6px; }

/* ============================================
   ABOUT PAGE CTA
   ============================================ */
.about-cta{ position:relative; background:var(--ink); border-radius:var(--radius); padding:52px 48px; text-align:center; overflow:hidden; }
.about-cta .growth-icon{ position:absolute; top:50%; right:24px; transform:translateY(-50%); width:120px; opacity:0.9; pointer-events:none; }
.about-cta h2{ color:#fff; font-size:clamp(1.5rem, 3vw, 2.1rem); }
.about-cta p{ color:rgba(255,255,255,0.68); margin-top:14px; max-width:560px; margin-left:auto; margin-right:auto; }
.about-cta-actions{ display:flex; justify-content:center; gap:12px; margin-top:26px; flex-wrap:wrap; }

/* ============================================================
   RESPONSIVE
   Breakpoints: 1024 (laptop/tablet), 980 (grid stacking, matches
   homepage), 720 (mobile nav + single-column), 600 / 480 / 360
   (progressive phone tightening).
   ============================================================ */

@media (max-width: 1024px){
  .wrap{ padding:0 20px; }
  .section{ padding:76px 0; }
  .section-head{ margin-bottom:38px; }
}

@media (max-width: 980px){
  .about-hero-grid{ grid-template-columns:1fr; gap:40px; }
  .about-hero-media{ order:-1; }
  .about-hero p{ max-width:none; }

  .story-grid{ grid-template-columns:1fr; gap:36px; }
  .story-grid .story-media{ order:-1; }

  .diff-grid{ grid-template-columns:repeat(2,1fr); }
  .team-grid{ grid-template-columns:1fr; gap:28px; }
  .philosophy-grid{ grid-template-columns:repeat(2,1fr); }
  .values-strip{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:36px; }
}

@media (max-width: 720px){
  .header-inner{ height:64px; }

  /* Full-screen mobile dropdown. Sized with dvh (falls back to vh
     on older browsers) so mobile browser toolbars showing/hiding
     never leave part of the menu unreachable or force an inner
     scroll for a handful of links. Paired with header::before
     above (blur off the header itself) so this fixed panel isn't
     trapped inside the header's own small box. */
  nav.main-nav{
    position:fixed;
    top:64px;
    left:0;
    right:0;
    height:calc(100vh - 64px);
    height:calc(100dvh - 64px);
    background:#fff;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:14px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    gap:2px;
    transform:translateY(-12px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .22s ease, transform .22s ease, visibility .22s;
    border-top:1px solid var(--line);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    z-index:99;
  }
  nav.main-nav.is-open{
    opacity:1;
    transform:translateY(0);
    visibility:visible;
    pointer-events:auto;
  }
  nav.main-nav a.nav-link{
    padding:16px 14px;
    font-size:1.05rem;
    border-bottom:1px solid var(--mist);
  }
  .nav-toggle{ display:flex; }
  .header-actions .btn-primary{ display:none; }
  nav.main-nav .nav-cta{ display:inline-flex; justify-content:center; margin-top:18px; width:100%; }

  /* Services dropdown becomes an inline expandable section on
     mobile instead of the hover popup used on desktop. */
  .nav-dropdown-menu{
    position:static; opacity:1; transform:none; pointer-events:auto; padding-top:0;
    max-height:0; overflow:hidden;
    transition:max-height 260ms ease;
  }
  .nav-dropdown-menu-inner{ background:var(--paper); border:none; box-shadow:none; padding:0 8px; border-radius:var(--radius-sm); }
  .nav-dropdown-menu a{ padding:13px 12px; font-size:0.98rem; }
  .nav-dropdown.is-open .nav-dropdown-menu{ max-height:420px; }
  .nav-dropdown.is-open .nav-dropdown-menu-inner{ padding:8px; margin:4px 0 6px; }
  .nav-dropdown > .nav-link{ width:100%; justify-content:space-between; border-bottom:1px solid var(--mist); }
  .nav-dropdown.is-open > .nav-link{ border-bottom-color:transparent; }

  .diff-grid{ grid-template-columns:1fr; }
  .philosophy-grid{ grid-template-columns:1fr; }
  .values-strip{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .section{ padding:64px 0; }

  .about-hero{ padding:44px 0 40px; }
  .about-hero .blob-accent{ width:220px; top:-20px; right:-40px; }

  .about-cta{ padding:40px 24px; }
  .about-cta .growth-icon{ display:none; }
  .about-cta-actions{ flex-direction:column; }
  .about-cta-actions .btn{ width:100%; }

  .team-card{ gap:14px; }
  .team-card-media{ width:96px; height:96px; }
}

/* When the mobile nav is open, body scroll is locked via JS
   (position:fixed technique) — see the inline script. This class
   supplies the fixed positioning so the lock can't leave the page
   scrolled to the wrong spot when it's released. */
body.nav-open{
  position:fixed;
  inset:0;
  overflow:hidden;
  width:100%;
}

/* ---- Large phones / small tablets (600px) ---- */
@media (max-width: 600px){
  .wrap{ padding:0 18px; }
  .section{ padding:56px 0; }
  .section-head{ margin-bottom:30px; }
  .section-head p{ font-size:0.96rem; }

  .brand img{ height:112px; }

  .btn{ padding:13px 22px; font-size:0.92rem; }

  .about-hero{ padding:36px 0 32px; }
  .about-hero h1{ font-size:clamp(1.6rem, 7vw, 2.1rem); }
  .about-hero p{ font-size:0.98rem; }
  .about-hero-media img{ aspect-ratio:16/11; }

  .story-media img{ aspect-ratio:16/11; }
  .story-copy p{ font-size:0.96rem; }

  .diff-card p, .philosophy-card p, .value-item p{ font-size:0.9rem; }
  .philosophy-card{ padding:20px; }

  .team-card{ flex-direction:column; }
  .team-card-media{ width:100%; height:auto; aspect-ratio:16/9; }

  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:10px; }
  .footer-legal{ gap:16px; }
}

/* ---- Small phones (≤480px) ---- */
@media (max-width: 480px){
  html{ font-size:15px; }
  .wrap{ padding:0 16px; }
  .header-inner{ gap:10px; }

  .about-hero h1{ font-size:clamp(1.5rem, 8vw, 1.9rem); }
  .about-hero .blob-accent{ width:160px; top:-10px; right:-30px; }

  .section-head h2{ font-size:clamp(1.5rem, 8vw, 1.9rem); }

  .diff-grid, .philosophy-grid, .values-strip{ grid-template-columns:1fr; }

  .about-cta{ padding:32px 20px; border-radius:var(--radius-sm); }
  .about-cta h2{ font-size:1.35rem; }
  .about-cta p{ font-size:0.92rem; }

  .footer-top{ gap:28px; }
  .footer-col p.foot-desc{ max-width:none; }
}

/* ---- Very small phones (≤360px) ---- */
@media (max-width: 360px){
  html{ font-size:14px; }
  .wrap{ padding:0 14px; }
  .btn{ padding:12px 18px; font-size:0.88rem; }
  .about-hero h1{ font-size:1.4rem; }
}

/* ---- Landscape phones (short height) ---- */
@media (max-height: 480px) and (orientation: landscape){
  .about-hero{ padding:28px 0; }
}

/* ---- Guard against any accidental horizontal scroll ---- */
img, svg, video, canvas, iframe, table{ max-width:100%; height:auto; }
.wrap, .section, header.site-header, footer.site-footer{ max-width:100%; }