/* ============================================================
   G-CART — shared design system
   Phone-first. White-led palette, deep forest green accent.
   ============================================================ */

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

:root {
  /* palette */
  --white:        #ffffff;
  --paper:        #faf9f6;  /* warm off-white */
  --paper-2:      #f3f1ea;  /* deeper off-white */
  --ink:          #1c1b18;  /* warm near-black */
  --ink-soft:     #4a4843;
  --ink-mute:     #8a877f;
  --line:         #e6e3db;  /* hairline */
  --line-strong:  #d6d2c8;

  /* accent — deep forest green */
  --green:        #1f3d2b;
  --green-700:    #285034;
  --green-600:    #2f6342;
  --green-tint:   #eef2ee;

  /* type */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* rhythm */
  --maxw: 1240px;
  --gut: 22px;          /* mobile gutter */
  --shadow-soft: 0 18px 50px -22px rgba(28,27,24,.28);
  --shadow-card: 0 2px 4px rgba(28,27,24,.03), 0 18px 40px -28px rgba(28,27,24,.22);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- type scale ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
.display {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(2rem, 6.4vw, 3.4rem); font-weight: 300; }
.h-lg { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 400; }
.h-md { font-size: clamp(1.35rem, 4vw, 1.8rem); font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow.mute { color: var(--ink-mute); }

.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 1.65; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 11vw, 120px); }
.section-tight { padding-block: clamp(40px, 8vw, 80px); }
.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s, 1rem); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1.05em 1.9em;
  border: 1px solid var(--green);
  background: var(--green); color: #fff;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  min-height: 52px;
  white-space: nowrap;
}
.btn:hover { background: var(--green-600); border-color: var(--green-600); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn--outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--lg { padding: 1.2em 2.4em; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: gap .25s ease, border-color .25s ease;
}
.link-arrow:hover { gap: .9em; }
.link-arrow .ar { transition: transform .25s ease; }
.link-arrow:hover .ar { transform: translateX(3px); }

/* ---------- placeholder imagery ---------- */
.ph {
  position: relative;
  background-color: var(--paper-2);
  background-image:
    repeating-linear-gradient(135deg, rgba(28,27,24,.035) 0 2px, transparent 2px 11px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--ink-mute);
}
.ph::after {
  content: attr(data-label);
  font-family: 'Hanken Grotesk', monospace;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: .55em .9em;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.72);
  border-radius: 2px;
  max-width: 80%; text-align: center;
  backdrop-filter: blur(2px);
}
.ph--dark {
  background-color: #20211d;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 11px);
}
.ph--dark::after { color: #cfcdc4; border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.3); }
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-4x3 { aspect-ratio: 4/3; }
.ratio-1x1 { aspect-ratio: 1/1; }
.ratio-3x4 { aspect-ratio: 3/4; }
.ratio-21x9 { aspect-ratio: 21/9; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 26px; padding-block: 8px; }
.topbar a { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); transition: color .2s; white-space: nowrap; }
.topbar a:hover { color: var(--green); }

.header-inner {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  padding-block: 14px; gap: 16px;
}
.header-inner .brand { grid-column: 2; justify-self: center; }
.header-inner .burger { grid-column: 1; justify-self: start; }
.header-inner .nav-desktop, .header-inner .header-cta { display: none; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.brand-logo { display: block; height: 30px; width: auto; }
.brand .mark { width: 30px; height: 22px; color: var(--green); }
.brand .word {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.18rem; letter-spacing: .34em; text-transform: uppercase;
  padding-left: .34em; color: var(--ink);
}
.brand .word small { display:block; font-family: var(--sans); font-size: .42rem; letter-spacing:.42em; color: var(--ink-mute); font-weight:600; margin-top:4px; padding-left:.42em;}

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: clamp(14px, 1.8vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); padding-block: 6px; position: relative; transition: color .2s; white-space: nowrap;
}
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--green); transition: width .25s ease;
}
.nav-desktop a:hover { color: var(--green); }
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { width: 100%; }
.nav-desktop a.is-active { color: var(--ink); }

.header-cta { display: none; }
.header-ctas { display: none; }

.burger {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; border-radius: 2px;
}
.burger span { width: 20px; height: 1.5px; background: var(--ink); transition: .3s; }
.burger.is-open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 80;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.5,.05,.2,1);
  display: flex; flex-direction: column;
  padding: 22px var(--gut) 40px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav .mn-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.mobile-nav .mn-close { width: 46px; height: 46px; border: 1px solid var(--line); background:#fff; font-size: 22px; cursor: pointer; border-radius:2px; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: 1.7rem; font-weight: 300; color: var(--ink);
  padding: 18px 2px; letter-spacing: -.01em;
}
.mobile-nav li a .idx { font-family: var(--sans); font-size: .7rem; color: var(--ink-mute); letter-spacing: .1em; }
.mobile-nav li a.is-active { color: var(--green); }
.mn-foot { margin-top: 28px; display: grid; gap: 12px; }
.mn-foot .row { display:flex; gap:14px; font-size:.8rem; color:var(--ink-mute); letter-spacing:.04em;}

/* ---------- footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 56px 30px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.brand-logo--footer { height: 32px; margin-bottom: 4px; }
.footer-brand .word { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .3em; text-transform: uppercase; }
.footer-brand p { color: var(--ink-soft); font-size: .92rem; max-width: 34ch; margin: 16px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-cols h5 { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; font-weight: 700; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-cols a { font-size: .9rem; color: var(--ink-soft); transition: color .2s; }
.footer-cols a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  font-size: .8rem; color: var(--ink-mute);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.trust-row .chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line-strong); padding: .5em .8em; border-radius: 100px; background:#fff;
}
.trust-row .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--green); color: #fff;
  padding: 13px 16px; border-radius: 100px;
  box-shadow: 0 12px 30px -8px rgba(31,61,43,.55);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  transition: transform .25s ease, background .25s ease;
}
.wa-fab:hover { transform: translateY(-2px); background: var(--green-600); }
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab .wa-text { display: none; }

/* ---------- reusable cards / bits ---------- */
.pill {
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; font-weight:600;
  color: var(--green); background: var(--green-tint); padding:.55em .9em; border-radius:100px;
}
.rule-top { border-top: 1px solid var(--line); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 720px) {
  :root { --gut: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 2fr; gap: 60px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .wa-fab .wa-text { display: inline; }
}

@media (min-width: 980px) {
  .topbar { display: block; }
  .header-inner { display: flex; justify-content: space-between; padding-block: 18px; }
  .header-inner .brand { grid-column: auto; justify-self: auto; }
  .header-inner .nav-desktop { display: block; }
  .header-inner .header-ctas { display: flex; gap: 10px; }
  .header-inner .header-cta { display: inline-flex; }
  .burger { display: none; }
  .brand { flex-direction: row; align-items: center; gap: 9px; }
  .brand .mark { width: 26px; height: 20px; }
  .brand .word { font-size: 1.32rem; }
  .brand .word small { display: none; }
  .brand-logo { height: 36px; }
}

/* utility grids used across pages */
.grid { display: grid; gap: 24px; }
@media (min-width: 720px){
  .g-2 { grid-template-columns: repeat(2,1fr); }
  .g-3 { grid-template-columns: repeat(3,1fr); }
  .g-4 { grid-template-columns: repeat(4,1fr); }
}
