/* ==========================================================================
   DonDon & Co. — Design tokens
   Palette and type sampled directly from the client's own logo file and
   brand deck (not invented): paper #F4F4F4, ink #2B3940 blue-charcoal,
   plus two accents pulled from the brand's own commissioned photography —
   a steel-blue from the mountain-summit process imagery, and a warm stone
   tone from the desert/fabric philosophy imagery.
   ========================================================================== */

:root {
  /* Color — sampled from DonDon's real logo + photography */
  --paper: #f4f4f4;
  --panel: #ffffff;
  --ink: #2b3940;
  --ink-mid: #56646b;
  --muted: #7b848a;
  --faint: #b7bcbf;
  --mark-gray: #757575;
  --accent: #3e6e8e;       /* steel blue — from the mountain-process photography */
  --accent-warm: #8c7b6b;  /* stone taupe — from the desert philosophy photography */
  --line: rgba(43, 57, 64, 0.13);
  --line-soft: rgba(43, 57, 64, 0.07);

  /* Type */
  --font-display: "Fredoka", sans-serif;
  --font-label: "Poppins", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Quicksand", sans-serif;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

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

@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; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 18px;
  display: block;
}

.tagline {
  font-family: var(--font-accent);
  font-weight: 500;
  color: var(--faint);
  font-size: 1.15rem;
}

/* Watermark signature — the DonDon mark, oversized and faint, echoing how
   it appears behind "OUR EXPERTS" in the brand deck itself. */
.watermark {
  position: absolute;
  width: 620px;
  max-width: 65vw;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.watermark.tl { top: -60px; left: -120px; }
.watermark.br { bottom: -80px; right: -140px; transform: rotate(12deg); }
section > .container > * { position: relative; z-index: 1; }

/* Buttons — quiet pill-outline with arrow, matching the deck's own CTA style */
.btn {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* Header / Nav ------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}
.logo img { width: 26px; height: 26px; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-mid);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 66px 20px auto 20px;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    display: none;
    padding: 18px 22px;
    gap: 16px;
    border-radius: var(--radius);
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: flex;
    width: 40px; height: 40px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: none;
    align-items: center; justify-content: center;
    cursor: pointer;
  }
  .nav-cta { display: none; }
}

/* Hero ----------------------------------------------------------------*/
.hero { padding: clamp(60px, 10vw, 130px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: 1.1rem; max-width: 52ch; margin-top: 20px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Sections --------------------------------------------------------------*/
section { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); overflow: hidden; }
section:first-of-type { border-top: none; }
section.panel { background: var(--panel); }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h2, section.dark h3, section.dark .eyebrow { color: var(--paper); }
section.dark p { color: rgba(244,244,244,0.65); }
section.dark .watermark { filter: invert(1); opacity: 0.06; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Grids -------------------------------------------------------------------*/
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards — thin hairline, no heavy shadow, quiet by default -----------------*/
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .index { font-family: var(--font-label); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }

/* Photo frames --------------------------------------------------------*/
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Stats ------------------------------------------------------------------*/
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: left; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); color: var(--ink); }
.stats .label { font-family: var(--font-label); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; }

/* Process stages (genuine 5-stage sequence, echoing the mountain-path deck)*/
.stage-track { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.stage-pill {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--muted);
}
.stage-pill.is-active { border-color: var(--accent); color: var(--accent); }

.stage-block { padding: 34px 0; border-top: 1px solid var(--line); }
.stage-block:first-of-type { border-top: none; padding-top: 0; }
.stage-block .stage-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); margin-bottom: 6px; }
.stage-services { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stage-services span {
  font-family: var(--font-label);
  font-size: 0.8rem;
  color: var(--ink-mid);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Team ------------------------------------------------------------------*/
.person { text-align: left; }
.person .photo { aspect-ratio: 1/1; margin-bottom: 18px; filter: grayscale(35%); transition: filter 0.3s ease; }
.person:hover .photo { filter: grayscale(0%); }
.person h3 { margin-bottom: 2px; font-size: 1.15rem; }
.person .role { font-family: var(--font-label); font-size: 0.78rem; color: var(--accent); margin-bottom: 8px; display: block; }
.person .credential { font-size: 0.82rem; color: var(--faint); }

/* Client logo wall --------------------------------------------------------*/
.client-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .client-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
.client-tile {
  background: var(--panel);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.client-tile img {
  max-width: 100%;
  max-height: 60px;
  filter: grayscale(100%) contrast(0.9) opacity(0.65);
  transition: filter 0.3s ease;
}
.client-tile:hover img { filter: none; }

/* Quote -------------------------------------------------------------------*/
.quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  max-width: 780px;
  line-height: 1.35;
  color: var(--ink);
}
.quote-attr { font-family: var(--font-label); font-size: 0.8rem; margin-top: 20px; color: var(--muted); }

/* Forms --------------------------------------------------------------------*/
label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--ink-mid);
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--panel);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 130px; }

/* CTA band -----------------------------------------------------------------*/
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* Footer ---------------------------------------------------------------*/
.site-footer { background: var(--ink); color: rgba(244,244,244,0.7); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 46px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.site-footer .logo { color: var(--paper); }
.site-footer h4 { color: var(--paper); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-label); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { text-decoration: none; color: rgba(244,244,244,0.7); font-size: 0.92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { color: rgba(244,244,244,0.55); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(244,244,244,0.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  font-family: var(--font-label);
  color: rgba(244,244,244,0.45);
}

/* Reveal on scroll -----------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Cookie consent banner (for GA4) ------------------------------------------*/
.consent-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 22px 24px;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: none;
}
.consent-banner.show { display: block; }
.consent-banner p { color: rgba(244,244,244,0.75); font-size: 0.88rem; margin-bottom: 16px; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent-actions button {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--paper);
  cursor: pointer;
  background: none;
  color: var(--paper);
}
.consent-actions button.accept { background: var(--paper); color: var(--ink); }

/* Utility ----------------------------------------------------------------*/
.mono { font-family: var(--font-label); }
.text-center { text-align: center; }
