/* ============================================================
   WeFlow — shared site styles (editorial, light-led)
   Service pages link: styles.css (tokens) + this file.
   Navy is punctuation; warm canvas is the default surface.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text-body);
  font-family: var(--font-body); font-size: 17px; line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 22px; } }

/* ---- type helpers ---- */
.serif { font-family: var(--font-headline); }
.tag {
  display: inline-block; position: relative; font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px;
}
.tag::after {
  content: ""; display: block; height: 2px; width: 42px; background: currentColor; border-radius: 2px;
  margin-top: 14px; opacity: 0.85; transition: width 0.7s var(--ease-out) 0.15s;
}
.reveal:not(.in) .tag::after { width: 0; }
.tag.on-navy { color: var(--gold-light); }
.script { font-family: var(--font-script); color: var(--gold); font-weight: 400; line-height: 1.0; }
.swoosh { display: block; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-headline); color: var(--text-headline); margin: 0; font-weight: 600; }
.section-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.14; letter-spacing: -0.01em; max-width: 22ch; padding-bottom: 0.06em; }
.section-sub { font-size: 18px; color: var(--text-body); max-width: 62ch; margin: 22px 0 0; text-wrap: pretty; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body);
  font-weight: 600; font-size: 16px; padding: 15px 28px; border-radius: var(--radius-pill);
  cursor: pointer; border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--navy-dark); border-color: rgba(10,23,58,0.22); }
.btn-outline:hover { border-color: var(--navy-dark); }
.btn-outline.on-navy { color: var(--white); border-color: rgba(255,255,255,0.32); }
.btn-outline.on-navy:hover { border-color: var(--white); }

/* ============== NAV ============== */
#navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,242,237,0.82); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text-body); transition: color var(--dur-fast) var(--ease-out); }
.nav-links a:hover { color: var(--navy-dark); }
.nav-links .mobile-only { display: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; }
@media (max-width: 880px) {
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: var(--canvas); border-bottom: 1px solid var(--border-hairline); padding: 8px 0 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 24px; }
  .nav-links li a { display: block; padding: 14px 0; }
  .nav-links .mobile-only { display: block; }
  .nav-cta { display: none; }
  .menu-btn { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .menu-btn .bar { width: 24px; height: 2px; background: var(--navy-dark); border-radius: 2px; }
}

/* ============== SECTIONS ============== */
.service-hero { padding: 64px 0 84px; position: relative; overflow: hidden; }
.section-light { padding: 96px 0; }
.section-warm { padding: 96px 0; background: var(--canvas-2); position: relative; }

/* Navy sections are deliberate FLOATING PANELS on the warm canvas — not full-bleed
   slabs. The breathing gap + rounded corners turn a hard seam into a calm transition. */
.section-dark {
  position: relative; overflow: hidden;
  background: var(--navy-dark); color: var(--text-on-dark);
  padding: 94px 0; max-width: 1352px; margin: 34px auto; border-radius: 44px;
  border: 1px solid rgba(190,155,48,0.16);
  box-shadow: 0 40px 90px -48px rgba(10,23,58,0.55);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: var(--text-on-dark); }
.section-dark::before { content: ""; position: absolute; right: -120px; top: -90px; width: 360px; height: 360px; border-radius: 50%; background: var(--navy-mid); opacity: 0.5; }
/* gold atmospheric glow — only ever shown on navy, where it actually reads */
.section-dark::after { content: ""; position: absolute; left: 50%; top: -14%; width: 720px; height: 520px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(190,155,48,0.17), transparent 64%); pointer-events: none; }
@media (max-width: 1400px) { .section-dark { margin: 34px 24px; } }
@media (max-width: 600px) { .section-dark { margin: 18px 12px; border-radius: 26px; padding: 64px 0; } }

/* warm-panel variants of the outcome list (light tonal section, not navy) */
.section-warm .section-title { color: var(--navy-dark); }
.section-warm .outcome-list li { border-bottom-color: var(--border-hairline); }
.section-warm .outcome-list li svg { color: var(--gold-deep); }
.section-warm .outcome-list .ot { color: var(--navy-dark); }
.section-warm .outcome-list .os { color: var(--text-body); }

/* back link */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gold-deep); margin-bottom: 26px; }
.back-link:hover { color: var(--navy-dark); }

/* ---- service hero ---- */
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center; }
.hero-icon { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold-deep); margin-bottom: 22px; }
.hero-title { font-size: clamp(42px, 5.2vw, 78px); line-height: 1.0; letter-spacing: -0.02em; color: var(--navy-dark); }
/* Service-page accent: Amsterdam Four reads poorly inline at this density.
   Reserve the brand script for the homepage hero; use Playfair italic gold here. */
.hero-title .script { display: block; font-family: var(--font-headline); font-style: italic; font-weight: 500; color: var(--gold-deep); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.01em; padding-bottom: 0.92em; margin-top: 12px; }
.hero-sub { font-size: 19px; color: var(--text-body); max-width: 52ch; margin: 20px 0 0; text-wrap: pretty; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.h-stat .num { font-family: var(--font-headline); font-weight: 700; font-size: 40px; color: var(--gold-deep); line-height: 1; }
.h-stat .lbl { font-size: 13.5px; color: var(--text-body); margin-top: 8px; max-width: 18ch; }

/* hero card (what this delivers) */
.hero-card { background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); padding: 36px 34px; box-shadow: var(--shadow-md); }
.hc-title { font-family: var(--font-headline); font-size: 21px; color: var(--navy-dark); font-weight: 600; margin-bottom: 22px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.check-list li { display: flex; gap: 14px; font-size: 15.5px; color: var(--text-body); align-items: flex-start; }
.check-list li svg { flex: none; color: var(--gold-deep); margin-top: 3px; }
/* stack hero to a single column on tablet/mobile (matches other grids) */
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---- cards grid ---- */
.components-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
.section-dark .components-grid { position: relative; z-index: 2; }
.comp-card {
  background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg);
  padding: 32px 30px; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.section-dark .comp-card { background: var(--navy-mid); border-color: rgba(212,179,78,0.18); }
.comp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-gold); }
.comp-icon { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold-deep); margin-bottom: 20px; }
.section-dark .comp-icon { color: var(--gold-light); }
.comp-card h3 { font-size: 21px; color: var(--navy-dark); margin-bottom: 10px; line-height: 1.2; }
.section-dark .comp-card h3 { color: var(--white); }
.comp-card p { margin: 0; font-size: 15.5px; color: var(--text-body); }
.section-dark .comp-card p { color: var(--text-on-dark); }
@media (max-width: 720px) { .components-grid { grid-template-columns: 1fr; } }

/* ---- two-col / outcomes ---- */
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.outcome-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.outcome-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(212,179,78,0.18); align-items: flex-start; }
.outcome-list li:last-child { border-bottom: 0; }
.outcome-list li svg { flex: none; color: var(--gold-light); margin-top: 3px; }
.outcome-list .ot { font-family: var(--font-headline); font-size: 19px; color: var(--white); font-weight: 600; margin-bottom: 5px; }
.outcome-list .os { font-size: 15px; color: var(--text-on-dark); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---- browser-frame window (real product screenshot on cream) ---- */
.window { background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--canvas-2); border-bottom: 1px solid var(--border-hairline); }
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(10,23,58,0.16); flex: none; }
.window-bar .dot:first-child { background: rgba(190,155,48,0.55); }
.window-bar .wlabel { margin-left: 10px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); display: inline-flex; align-items: center; gap: 7px; }
.window-bar .wlabel i { width: 14px; height: 14px; color: var(--gold-deep); }
.window-shot { display: block; width: 100%; }

/* ---- case study ---- */
.case-card { background: var(--white); border: 1px solid var(--border-hairline); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-md); margin-top: 32px; }
.case-industry { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.case-card h3 { font-size: 24px; color: var(--navy-dark); margin: 14px 0 14px; line-height: 1.25; max-width: 40ch; }
.case-card > p { margin: 0 0 26px; font-size: 16px; color: var(--text-body); max-width: 70ch; }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.case-stats .cs { text-align: center; }
.case-stats .cs .n { font-family: var(--font-headline); font-weight: 700; font-size: 34px; color: var(--navy-dark); line-height: 1; }
.case-stats .cs .l { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.3; }
.case-rev { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--gold-deep); }
@media (max-width: 680px) { .case-stats { grid-template-columns: 1fr 1fr; gap: 22px; } .case-card { padding: 30px 24px; } }
/* dashboard proof under a case study */
.case-proof { margin-top: 22px; }
.case-cap { margin: 16px 2px 0; font-size: 13.5px; color: var(--text-muted); display: flex; align-items: center; gap: 9px; }
.case-cap i { width: 15px; height: 15px; color: var(--gold-deep); flex: none; }

/* ---- CTA (floating navy panel — the closing bookend) ---- */
#cta-section { padding: 96px 0; background: var(--navy-dark); color: var(--text-on-dark); text-align: center; position: relative; overflow: hidden; max-width: 1352px; margin: 34px auto 64px; border-radius: 44px; border: 1px solid rgba(190,155,48,0.16); box-shadow: 0 40px 90px -48px rgba(10,23,58,0.55); }
#cta-section::before { content: ""; position: absolute; left: 50%; top: -150px; transform: translateX(-50%); width: 560px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(190,155,48,0.15), transparent 62%); opacity: 1; }
@media (max-width: 1400px) { #cta-section { margin: 34px 24px 56px; } }
@media (max-width: 600px) { #cta-section { margin: 18px 12px 40px; border-radius: 26px; padding: 64px 0; } }
#cta-section .inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 2; }
#cta-section .section-title { color: var(--white); margin: 0 auto 16px; }
#cta-section .script { display: block; font-family: var(--font-headline); font-style: italic; font-weight: 500; color: var(--gold-light); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.01em; padding-bottom: 0.04em; margin-top: 8px; }
#cta-section p.sub { color: var(--text-on-dark); font-size: 18px; margin: 0 auto 36px; max-width: 52ch; }
#cta-section .fine { margin-top: 18px; font-size: 14px; color: var(--text-muted); }

/* ---- footer ---- */
footer[role="contentinfo"] { background: #060f29; color: var(--text-on-dark); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 38px; width: auto; margin-bottom: 18px; }
.footer-desc { margin: 0; font-size: 15px; color: var(--text-muted); max-width: 38ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a { font-size: 14.5px; color: var(--text-on-dark); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy-sm { margin: 0; font-size: 13px; color: var(--text-muted); }
.footer-tagline { margin: 0; font-family: var(--font-headline); font-style: italic; color: var(--gold-light); font-size: 16px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}
