/* ============================================================
   Gusto Synergy Services — Design System
   Brand: bronze / copper / charcoal / cream / teal
   Type:  Manrope (display) + Inter (body)
   ============================================================ */

:root {
  /* Brand palette (confirmed tokens) */
  --cream:        #f4ede2;
  --cream-deep:   #ebe2d2;
  --cream-dark:   #ddd3c0;
  --bronze:       #a87237;   /* large accents, borders, headings only */
  --bronze-dark:  #8f6130;   /* AA-safe for white/cream text (buttons, links) */
  --copper-light: #c9986b;   /* DECORATIVE fills only — never text */
  --charcoal:     #2b2a28;
  --charcoal-soft:#3a3836;
  --teal:         #1f4e4f;   /* Global fork accent */
  --teal-light:   #2a6a6b;
  --grey-600:     #6b645b;
  --grey-300:     #d9d2c5;
  --white:        #ffffff;
  --success:      #2f7d4a;
  --error:        #b33a2c;

  /* Per-fork accent (overridden on Global) */
  --accent:       var(--bronze);
  --accent-dark:  var(--bronze-dark);

  /* Type scale (fluid) */
  --type-display: clamp(2.5rem, 5.2vw, 4.25rem);
  --type-h1:      clamp(2rem, 4vw, 3rem);
  --type-h2:      clamp(1.5rem, 3vw, 2.15rem);
  --type-h3:      clamp(1.15rem, 2vw, 1.4rem);
  --type-lead:    clamp(1.06rem, 1.5vw, 1.28rem);
  --type-body:    1rem;
  --type-small:   0.8125rem;
  --type-eyebrow: 0.75rem;

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(43,42,40,.05), 0 8px 24px rgba(43,42,40,.06);
  --shadow-lg: 0 12px 40px rgba(43,42,40,.12);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--charcoal); }
h2 { font-size: var(--type-h2); }
h3 { font-size: var(--type-h3); font-weight: 600; }
p { color: var(--charcoal-soft); }
strong { color: var(--charcoal); font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--cream-deep { background: var(--cream-deep); }
.section--charcoal { background: var(--charcoal); color: var(--cream); }
.section--charcoal h1,.section--charcoal h2,.section--charcoal h3 { color: var(--cream); }
.section--charcoal p { color: var(--cream-dark); }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.section--charcoal .eyebrow { color: var(--copper-light); }
.lead { font-size: var(--type-lead); color: var(--charcoal-soft); max-width: 60ch; }
.section--charcoal .lead { color: var(--cream-dark); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Bridge divider — the signature motif (echoes "Bridging growth…") */
.bridge { display: flex; align-items: center; gap: .5rem; justify-content: center; margin: 1.4rem auto; max-width: 180px; }
.bridge span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--bronze)); }
.bridge span:last-child { background: linear-gradient(90deg, var(--bronze), transparent); }
.bridge b { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,237,226,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--grey-300);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { font-weight: 800; font-size: 1.28rem; letter-spacing: .02em; color: var(--charcoal); }
.brand .mark span { color: var(--bronze); }
.brand .sub { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); margin-top: 3px; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { color: var(--charcoal); font-weight: 500; font-size: .95rem; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover,.nav-links a[aria-current="page"] { color: var(--accent-dark); border-bottom-color: var(--accent); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 1px solid var(--grey-300); border-radius: var(--radius); padding: .5rem .6rem; cursor: pointer; color: var(--charcoal); }
.brand { margin-right: auto; }

/* ---------- Header ---------- */
.header-brand img { width: 75px; margin-bottom: 0rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 600; font-size: .95rem; padding: .8rem 1.4rem; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--bronze); color: var(--cream); }
.btn-primary:hover { background: #1f1e1c; box-shadow: var(--shadow); color: var(--cream); }
.btn-accent { background: var(--accent-dark); color: var(--white); }
.btn-accent:hover { box-shadow: var(--shadow); color: var(--white); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--bronze); }
.btn-outline:hover { background: var(--bronze); color: var(--white); }
.section--charcoal .btn-outline { color: var(--cream); border-color: var(--copper-light); }
.section--charcoal .btn-outline:hover { background: var(--copper-light); color: var(--charcoal); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: var(--type-display); letter-spacing: -0.01em; }
.hero .lead { margin-top: 1.2rem; }
.hero-visual { position: relative; }
.hero-card { background: var(--white); border: 1px solid var(--grey-300); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); }
.hero-card + .hero-card { margin-top: 1rem; }

/* ---------- Fork routing (signature) ---------- */
.forks { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.fork {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--grey-300);
  border-radius: 12px; padding: 1.8rem 1.6rem 1.6rem;
  border-top: 3px solid var(--fork-accent, var(--bronze));
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none; color: inherit;
}
.fork:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.fork[data-fork="global"] { --fork-accent: var(--teal); }
.fork[data-fork="consulting"] { --fork-accent: var(--copper-light); }
.fork .f-ico { width: 42px; height: 42px; color: var(--fork-accent, var(--bronze)); margin-bottom: 1rem; }
.fork h3 { margin-bottom: .5rem; }
.fork p { font-size: .95rem; flex: 1; }
.fork .f-go { margin-top: 1.1rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--accent-dark); display: inline-flex; align-items: center; gap: .4rem; }
.fork[data-fork="global"] .f-go { color: var(--teal); }
.fork:hover .f-go { gap: .7rem; }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card { background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .95rem; }
.card .c-ico { width: 34px; height: 34px; color: var(--accent); margin-bottom: .9rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,4vw,2.8rem); color: var(--bronze); line-height: 1; }
.section--charcoal .stat .num { color: var(--copper-light); }
.stat .lbl { font-size: .85rem; color: var(--grey-600); margin-top: .5rem; }
.section--charcoal .stat .lbl { color: var(--cream-dark); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step::before { counter-increment: step; content: counter(step,decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent); border: 1.5px solid var(--accent); border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .92rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; }
.quote { background: var(--white); border: 1px solid var(--grey-300); border-left: 4px solid var(--bronze); border-radius: 10px; padding: 1.7rem; box-shadow: var(--shadow); }
.quote blockquote { font-size: 1.05rem; color: var(--charcoal); line-height: 1.55; }
.quote .who { margin-top: 1.1rem; font-size: .9rem; color: var(--grey-600); }
.quote .who b { color: var(--charcoal); display: block; font-family: var(--font-display); }

/* ---------- FAQ (native details) ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--grey-300); border-radius: 8px; margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.05rem 1.3rem; font-family: var(--font-display); font-weight: 600; color: var(--charcoal); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--grey-300); }
.faq .a { padding: 1.05rem 1.3rem; color: var(--charcoal-soft); font-size: .96rem; }

/* ---------- Insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn { font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: .5rem 1rem; border-radius: 50px; border: 1.5px solid var(--grey-300); background: var(--white); color: var(--charcoal); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--grey-300); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.post .p-top { height: 6px; background: var(--fork-accent, var(--bronze)); }
.post[data-cat="gcc"] { --fork-accent: var(--teal); }
.post[data-cat="consulting"] { --fork-accent: var(--copper-light); }
.post .p-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); background: var(--cream-deep); padding: .25rem .6rem; border-radius: 4px; margin-bottom: .9rem; }
.post[data-cat="gcc"] .tag { color: var(--teal); }
.post h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.post p { font-size: .92rem; flex: 1; }
.post .p-go { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .88rem; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin-inline: auto; }
.article h1 { font-size: var(--type-h1); margin-block: .6rem 1rem; }
.article .meta { color: var(--grey-600); font-size: .9rem; margin-bottom: 2rem; }
.article p { font-size: 1.06rem; color: var(--charcoal-soft); margin-bottom: 1.2rem; }
.article h2 { font-size: 1.5rem; margin-block: 1.8rem .7rem; }
.article .callout { background: var(--cream-deep); border-left: 3px solid var(--bronze); border-radius: 6px; padding: 1.1rem 1.3rem; font-size: .95rem; margin-block: 1.6rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: grid; gap: .35rem; }
.field.row { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--charcoal); }
.field .req { color: var(--error); }
.field input,.field select,.field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  background: var(--white); border: 1.5px solid var(--grey-300); border-radius: var(--radius);
  padding: .75rem .9rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,114,55,.15); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--charcoal-soft); }
.consent input { width: auto; margin-top: .2rem; }
.form-note { font-size: .85rem; color: var(--grey-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--cream-dark); padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: 150px; margin-bottom: 1rem; }
.footer-brand p { color: var(--cream-dark); font-size: .9rem; max-width: 32ch; }
.footer-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); margin-bottom: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--cream-dark); font-size: .92rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(244,237,226,.14); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: var(--grey-300); }
.footer-bottom a { color: var(--grey-300); }

/* ---------- Fork theming ---------- */
body[data-fork="global"] { --accent: var(--teal); --accent-dark: var(--teal); }

/* ---------- Utilities ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:.6rem}.mt-2{margin-top:1.2rem}.mb-2{margin-bottom:1.2rem}
.maxw-copy{max-width:62ch}
.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--cream); padding: .7rem 1rem; border-radius: 0 0 var(--radius) 0; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .forks,.grid-3,.grid-4,.posts,.steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--grey-300); padding: .5rem 1.2rem 1.2rem; transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .nav-links[data-open="true"] { transform: translateY(0); }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--grey-300); }
  .nav-links .nav-cta { margin-top: .8rem; }
  .nav-toggle { display: inline-flex; }
  .forks,.grid-2,.grid-3,.grid-4,.posts,.steps,.stats,.footer-grid,.field.row { grid-template-columns: 1fr; }
  .brand .sub { display: none; }
}

/* ---------- A11y: focus + motion + high-contrast ---------- */
:focus-visible { outline: 3px solid var(--bronze-dark); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn,.fork,.card,.quote,.post { border: 1px solid; }
}
