/* ==========================================================================
   GrowTraq — shared site styles
   Fonts (Hanken Grotesk, Schibsted Grotesk, IBM Plex Mono) are loaded via
   <link> in each page's <head>.
   ========================================================================== */

:root{
  --green:#117A4F;
  --green-dark:#0C5D3C;
  --lime:#C7F24A;
  --ink:#0F140F;
  --body:#51564D;
  --muted:#767C71;
  --border:#E7E8E1;
  --soft:#FAFAF8;
  --green-soft:#E4F1EA;
  --blue:#2563EB;
  --purple:#7C3AED;
  --amber:#B4740B;
  --maxw:1200px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:#fff;
  color:var(--body);
  font-family:'Hanken Grotesk',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
::selection{ background:var(--lime); color:var(--ink); }

h1,h2,h3{ font-family:'Schibsted Grotesk',sans-serif; color:var(--ink); margin:0; }
p{ margin:0; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 48px; }
.eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--green); }
.section{ padding:80px 0; }
.section-alt{ background:var(--soft); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.lead{ font-size:18px; line-height:1.6; color:var(--body); max-width:620px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; padding:16px 48px;
  background:rgba(255,255,255,.85); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.site-header .brand img{ height:30px; width:auto; }
.nav{ display:flex; align-items:center; gap:30px; }
.nav a{ font-size:15px; font-weight:500; color:var(--body); transition:color .2s ease; }
.nav a:hover{ color:var(--ink); }
.nav a.active{ color:var(--ink); font-weight:600; }
.menu-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.menu-toggle span{ display:block; width:22px; height:2px; background:var(--ink); margin:4px 0; border-radius:2px; }

/* Services dropdown */
.has-drop{ position:relative; }
.has-drop > a::after{ content:'▾'; font-size:10px; margin-left:5px; color:var(--muted); }
.drop{ position:absolute; top:100%; left:50%; transform:translateX(-50%); padding-top:12px; opacity:0; visibility:hidden; transition:opacity .18s ease; z-index:50; }
.has-drop:hover .drop, .has-drop:focus-within .drop{ opacity:1; visibility:visible; }
.drop-inner{ min-width:250px; background:#fff; border:1px solid var(--border); border-radius:14px; padding:8px; box-shadow:0 20px 46px -24px rgba(15,20,15,.28); }
.drop a{ display:block; padding:10px 12px; border-radius:9px; font-size:14px; font-weight:500; color:var(--body); transition:background .15s ease, color .15s ease; }
.drop a:hover{ background:var(--green-soft); color:var(--green); }
.drop .all{ color:var(--green); font-weight:600; border-bottom:1px solid var(--border); border-radius:9px 9px 0 0; margin-bottom:4px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:15px;
  padding:13px 24px; border-radius:11px; cursor:pointer; border:1px solid transparent;
  transition:background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-lg{ font-size:16px; padding:16px 30px; }
.btn-primary{ background:var(--green); color:#fff; }
.btn-primary:hover{ background:var(--green-dark); transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(17,122,79,.65); }
.btn-ghost{ color:var(--ink); border-color:#D9DAD2; background:transparent; }
.btn-ghost:hover{ background:var(--ink); color:#fff; border-color:var(--ink); transform:translateY(-2px); }
.btn-invert{ background:#fff; color:var(--green); }
.btn-invert:hover{ background:var(--lime); color:var(--ink); transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(199,242,74,.5); }

/* ---------- Page hero ---------- */
.hero{
  position:relative; z-index:0; overflow:hidden;
  padding:86px 48px 72px; text-align:center;
  background:radial-gradient(120% 120% at 50% 0%, #EDF4EE 0%, #FFFFFF 62%);
}
.hero-inner{ max-width:820px; margin:0 auto; }
.hero h1{ font-weight:800; font-size:56px; line-height:1.04; letter-spacing:-.025em; margin:20px 0 0; }
.hero .lead{ margin:22px auto 0; }
.hero .btn-row{ display:flex; gap:14px; justify-content:center; margin-top:32px; flex-wrap:wrap; }
.hero-orb{ position:absolute; border-radius:50%; filter:blur(64px); z-index:-1; will-change:transform; }
.hero-orb.a{ width:420px; height:420px; background:radial-gradient(circle,#C7F24A 0%,rgba(199,242,74,0) 70%); opacity:.5; top:-130px; left:-60px; animation:orb-a 19s ease-in-out infinite; }
.hero-orb.b{ width:480px; height:480px; background:radial-gradient(circle,#117A4F 0%,rgba(17,122,79,0) 70%); opacity:.28; top:-80px; right:-80px; animation:orb-b 23s ease-in-out infinite; }
@keyframes orb-a{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,40px)} }
@keyframes orb-b{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,50px)} }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:16px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:28px; display:block; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover{ border-color:#B7CBBD; box-shadow:0 6px 22px -12px rgba(15,20,15,.18); }
.card h3{ font-size:21px; font-weight:700; margin:0 0 8px; }
.card p{ font-size:14.5px; line-height:1.55; color:var(--body); }
.card .arrow{ font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:13px; color:var(--green); }

/* Service cards — green fill on hover */
.svc-card .num{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); }
.svc-card{ transition:background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.svc-card:hover{ background:var(--green); border-color:var(--green); transform:translateY(-4px); box-shadow:0 20px 44px -22px rgba(17,122,79,.55); }
.svc-card:hover h3, .svc-card:hover p, .svc-card:hover .num{ color:#fff; }
.svc-card:hover .arrow{ color:var(--lime); }

/* Industry cards — accent themed */
.ind-card{ border-top:3px solid var(--accent); }
.ind-card:hover{ transform:translateY(-6px); box-shadow:0 24px 48px -26px var(--accent); border-color:var(--accent); }
.ind-chip{ display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:13px; background:var(--accent-soft); color:var(--accent); font-family:'Schibsted Grotesk',sans-serif; font-weight:800; font-size:21px; margin-bottom:16px; }
.ind-card:hover .arrow{ color:var(--accent); }

/* Case study cards */
.cs-card{ overflow:hidden; padding:0; }
.cs-media{ width:100%; height:200px; object-fit:cover; border-bottom:1px solid var(--border); }
.cs-body{ padding:24px; }
.cs-meta{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--muted); margin-bottom:8px; }
.cs-card h3{ font-size:19px; line-height:1.25; margin:0 0 8px; }

/* Blog cards */
.blog-card{ display:flex; flex-direction:column; }
.blog-card:hover{ transform:translateY(-4px); box-shadow:0 18px 40px -22px rgba(15,20,15,.22); border-color:#C7D6C9; }
.blog-tag{ display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.08em; text-transform:uppercase; padding:5px 10px; border-radius:100px; }
.blog-meta{ display:flex; align-items:center; gap:10px; margin-bottom:18px; }
.blog-meta .time{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:#9AA093; }
.blog-card h3{ font-size:18.5px; line-height:1.32; margin:0 0 22px; flex:1; }
.blog-read{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:13px; color:var(--green); transition:gap .2s ease; }
.blog-card:hover .blog-read{ gap:10px; }

/* ---------- Stat band ---------- */
.stats{ display:flex; border:1px solid var(--border); border-radius:16px; overflow:hidden; background:#fff; }
.stats > div{ flex:1; padding:26px 20px; border-right:1px solid var(--border); }
.stats > div:last-child{ border-right:0; }
.stat-num{ font-family:'Schibsted Grotesk',sans-serif; font-weight:800; font-size:36px; color:var(--ink); }
.stat-lbl{ font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-top:4px; }

/* ---------- Dark band / CTA ---------- */
.band-dark{ background:var(--ink); color:#fff; }
.band-green{ background:var(--green); color:#fff; }
.cta-band{ text-align:center; padding:84px 48px; }
.cta-band h2{ font-weight:800; font-size:42px; line-height:1.06; letter-spacing:-.02em; color:#fff; max-width:720px; margin:0 auto; }
.cta-band p{ font-size:17px; line-height:1.6; color:rgba(255,255,255,.8); margin:18px auto 30px; max-width:540px; }

/* ---------- Calendly inline embed ---------- */
.cal-embed{ border:1px solid var(--border); border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 12px 44px -26px rgba(15,20,15,.22); }

/* ---------- Contact form ---------- */
.form{ display:grid; gap:16px; }
.form .row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; font-family:inherit; font-size:15px; color:var(--ink);
  padding:13px 14px; border:1px solid var(--border); border-radius:10px; background:#fff; transition:border-color .2s ease, box-shadow .2s ease;
}
.field textarea{ min-height:130px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(17,122,79,.12); }

/* ---------- Footer ---------- */
.site-footer{ padding:56px 48px 36px; border-top:1px solid var(--border); background:var(--soft); }
.footer-grid{ max-width:var(--maxw); margin:0 auto; display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr 1.1fr; gap:36px; }
.footer-grid img{ height:28px; width:auto; margin-bottom:16px; }
.footer-col .h{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#6E7367; margin-bottom:16px; }
.footer-col .links{ display:flex; flex-direction:column; gap:10px; font-size:14px; }
.footer-col a{ color:var(--body); transition:color .2s ease; }
.footer-col a:hover{ color:var(--ink); }
.footer-bottom{ max-width:var(--maxw); margin:40px auto 0; padding-top:22px; border-top:1px solid var(--border); font-family:'IBM Plex Mono',monospace; font-size:12px; color:#6E7367; }

/* ---------- Process steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.step{ padding:24px; border:1px solid var(--border); border-radius:14px; background:#fff; }
.step .n{ font-family:'Schibsted Grotesk',sans-serif; font-weight:800; font-size:14px; color:#fff; background:var(--green); width:30px; height:30px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; margin-bottom:14px; }
.step h3{ font-size:17px; margin:0 0 6px; }
.step p{ font-size:14px; line-height:1.5; color:var(--body); }

/* ---------- Feature list ---------- */
.feat{ display:flex; gap:14px; align-items:flex-start; }
.feat .ic{ flex:none; width:40px; height:40px; border-radius:11px; background:var(--green-soft); color:var(--green); display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-family:'Schibsted Grotesk',sans-serif; }
.feat h3{ font-size:17px; margin:2px 0 6px; }
.feat p{ font-size:14.5px; line-height:1.55; color:var(--body); }

/* ---------- Case study page ---------- */
.case-media{ width:100%; max-height:460px; object-fit:cover; border-radius:18px; border:1px solid var(--border); }
.metrics{ display:flex; flex-wrap:wrap; gap:16px; }
.metric{ flex:1 1 150px; padding:24px 20px; border:1px solid var(--border); border-radius:14px; background:#fff; text-align:center; }
.metric .v{ font-family:'Schibsted Grotesk',sans-serif; font-weight:800; font-size:30px; color:var(--green); line-height:1; }
.metric .l{ font-family:'IBM Plex Mono',monospace; font-size:10px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-top:8px; }
.cso{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.cso .card h3{ font-size:18px; }
.cso .tag{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; }
.quote{ background:var(--ink); border-radius:18px; padding:48px; color:#fff; }
.quote p{ font-family:'Schibsted Grotesk',sans-serif; font-weight:500; font-size:26px; line-height:1.4; letter-spacing:-.01em; }

/* ---------- FAQ ---------- */
.faq details{ border-bottom:1px solid #E0E1DA; padding:20px 0; }
.faq summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; gap:16px; font-family:'Schibsted Grotesk',sans-serif; font-weight:600; font-size:17px; color:var(--ink); }
.faq summary::-webkit-details-marker{ display:none; }
.faq .sign{ font-family:'IBM Plex Mono',monospace; color:var(--green); transition:transform .2s; }
.faq details[open] .sign{ transform:rotate(45deg); }
.faq p{ font-size:15px; line-height:1.6; margin:14px 0 0; color:var(--body); }

/* ---------- Article (blog post) ---------- */
.article{ max-width:760px; }
.article .meta{ display:flex; align-items:center; justify-content:center; gap:10px; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); margin-top:16px; }
.article .callout{ background:var(--green-soft); border:1px solid #CDE6D8; border-radius:14px; padding:22px 24px; margin:0 0 28px; }
.article .callout .h{ font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--green); margin-bottom:10px; }
.article .callout ul{ margin:0; padding-left:18px; }
.article .callout li{ font-size:14.5px; line-height:1.6; margin:0 0 6px; color:var(--ink); }
.article h2{ font-size:24px; margin:34px 0 12px; }
.article p{ font-size:16px; line-height:1.75; color:var(--body); margin:0 0 16px; }
.article ul, .article ol{ padding-left:22px; margin:0 0 16px; }
.article li{ font-size:16px; line-height:1.7; color:var(--body); margin:0 0 8px; }
.article strong{ color:var(--ink); }
.article .back{ display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:14px; color:var(--green); margin-bottom:8px; }

/* ---------- Legal pages ---------- */
.legal{ max-width:820px; }
.legal .updated{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--muted); margin-bottom:8px; }
.legal h2{ font-size:22px; margin:34px 0 10px; }
.legal p, .legal li{ font-size:15px; line-height:1.7; color:var(--body); margin:0 0 12px; }
.legal ul{ padding-left:20px; margin:0 0 12px; }
.legal a{ color:var(--green); }

/* ---------- Newsletter ---------- */
.subscribe{ display:flex; gap:12px; max-width:460px; margin-top:22px; }
.subscribe input{ flex:1; font-family:inherit; font-size:15px; padding:14px 16px; border:1px solid var(--border); border-radius:11px; }
.subscribe input:focus{ outline:none; border-color:var(--green); box-shadow:0 0 0 3px rgba(17,122,79,.12); }

/* ---------- Lead form popup modal ---------- */
.modal-overlay{ position:fixed; inset:0; z-index:200; display:none; align-items:flex-start; justify-content:center; background:rgba(15,20,15,.55); backdrop-filter:blur(3px); padding:40px 20px; overflow-y:auto; }
.modal-overlay.open{ display:flex; }
.modal{ background:#fff; border-radius:18px; padding:34px 32px; width:100%; max-width:480px; position:relative; box-shadow:0 30px 80px -30px rgba(0,0,0,.5); animation:modal-in .25s ease; }
@keyframes modal-in{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
.modal-close{ position:absolute; top:14px; right:16px; background:none; border:0; font-size:26px; line-height:1; color:var(--muted); cursor:pointer; }
.modal-close:hover{ color:var(--ink); }

/* ---------- Floating "Book a meeting" button ---------- */
.book-fab{ position:fixed; bottom:26px; right:22px; z-index:120; width:56px; height:56px; border-radius:50%; background:var(--green); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 30px -8px rgba(17,122,79,.7); transition:transform .2s ease, background .2s ease; animation:fab-bob 2.6s ease-in-out infinite; }
.book-fab::after{ content:''; position:absolute; inset:0; border-radius:50%; background:var(--green); z-index:-1; animation:fab-pulse 2s ease-out infinite; }
.book-fab:hover{ background:var(--green-dark); transform:scale(1.1); animation-play-state:paused; }
.book-fab svg{ width:25px; height:25px; }
.book-fab .tip{ position:absolute; right:66px; white-space:nowrap; background:var(--ink); color:#fff; font-size:12px; font-weight:600; padding:7px 11px; border-radius:8px; opacity:0; transform:translateX(6px); pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.book-fab:hover .tip{ opacity:1; transform:translateX(0); }
@keyframes fab-pulse{ 0%{ transform:scale(1); opacity:.55; } 100%{ transform:scale(2); opacity:0; } }
@keyframes fab-bob{ 0%,100%{ margin-top:0; } 50%{ margin-top:-6px; } }
@media (max-width:720px){ .book-fab{ width:50px; height:50px; right:14px; } .book-fab .tip{ display:none; } }
@media (prefers-reduced-motion: reduce){ .book-fab, .book-fab::after{ animation:none; } }

/* ---------- Utilities ---------- */
.center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-40{ margin-top:40px; }
.muted{ color:var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .cso{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .hero h1{ font-size:44px; }
}
@media (max-width:720px){
  .wrap, .hero, .site-header, .site-footer, .cta-band{ padding-left:22px; padding-right:22px; }
  .nav{ display:none; }
  .menu-toggle{ display:block; }
  .site-header.open .nav{ display:flex; position:absolute; top:100%; left:0; right:0; flex-direction:column; gap:0; background:#fff; border-bottom:1px solid var(--border); padding:8px 22px 16px; align-items:stretch; }
  .site-header.open .nav > a, .has-drop > a{ padding:12px 0; border-bottom:1px solid var(--border); display:block; }
  .has-drop > a::after{ content:''; }
  /* keep the mobile menu clean — do NOT auto-expand Services sub-items */
  .drop{ display:none !important; }
  .steps{ grid-template-columns:1fr; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .form .row{ grid-template-columns:1fr; }
  .stats{ flex-wrap:wrap; }
  .stats > div{ flex:1 1 50%; border-bottom:1px solid var(--border); }
  .hero h1{ font-size:36px; }
  .hero{ padding-top:56px; padding-bottom:48px; }
  .cta-band{ padding:56px 22px; }
  .cta-band h2{ font-size:30px; }
  .section{ padding:56px 0; }
  .band-dark{ padding-left:22px; padding-right:22px; }
  /* Header: logo + hamburger only (hide CTA) */
  .site-header .btn-primary{ display:none; }
  .site-header{ gap:12px; }
  /* Footer: stack cleanly */
  .footer-grid{ grid-template-columns:1fr 1fr; gap:24px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; gap:10px; }
  /* Wide 2-col page layouts stack */
  .wrap[style*="grid-template-columns"]{ display:block !important; }
  .wrap[style*="grid-template-columns"] > *{ margin-bottom:24px; }
  .quote{ padding:28px; }
  .quote p{ font-size:20px; }
}
@media (max-width:520px){
  .footer-grid{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-orb{ animation:none; }
}
