/* ============================================================================
   CorePeak Agency — styles.css
   Pure CSS design system. No frameworks, no build step.
   ----------------------------------------------------------------------------
   HOW TO EDIT COLORS:  change the variables in :root below.
   HOW TO EDIT SPACING: change the --space-* scale.
   Sections are grouped and labeled so you can find things fast.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS (edit brand colors / fonts here)
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — pulled from the CorePeak logo (deep blue + gold + white) */
  --bg:          #FFFFFF;   /* main background            */
  --bg-soft:     #EEF3F8;   /* alternating section bg     */
  --bg-tint:     #F8FAFC;   /* very light tint            */
  --ink:         #0F172A;   /* primary text               */
  --ink-soft:    #475569;   /* secondary text             */
  --ink-faint:   #64748B;   /* muted text                 */
  --brand:       #062B4F;   /* primary blue (logo)        */
  --brand-mid:   #0B3A66;   /* mid blue                   */
  --brand-deep:  #031B33;   /* deep premium blue (bands)  */
  --gold:        #D9A21B;   /* gold accent (logo)         */
  --gold-deep:   #B98410;   /* darker gold (text on light)*/
  --gold-soft:   #F1D08A;   /* soft gold (glow/hover)     */
  --line:        #DDE7F0;   /* soft borders               */
  --line-dark:   rgba(255,255,255,.12); /* borders on dark */

  /* Typography */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8px base) */
  --space-1: .25rem;  --space-2: .5rem;  --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.5rem; --space-6: 2rem;
  --space-7: 3rem;    --space-8: 4rem;   --space-9: 6rem;
  --space-10: 8rem;

  /* Radius */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Shadows (subtle, premium) */
  --shadow-xs: 0 1px 2px rgba(6,43,79,.06);
  --shadow-sm: 0 4px 14px rgba(6,43,79,.07);
  --shadow-md: 0 12px 30px rgba(6,43,79,.10);
  --shadow-lg: 0 24px 60px rgba(6,43,79,.16);
  --shadow-gold: 0 10px 30px rgba(217,162,27,.22);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .18s;
  --t-med: .35s;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 76px;
}

/* ----------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p  { color: var(--ink-soft); }

/* Accessible focus ring (keyboard users) */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for screen-reader / keyboard users */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .75rem 1.1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------------------------------------------------------
   3. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); }

/* ----------------------------------------------------------------------------
   4. BUTTONS (microinteractions + visible focus)
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-fast) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary CTA — gold, the most important action */
.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  --btn-fg: #1a1304;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { box-shadow: 0 14px 36px rgba(217,162,27,.34); }

/* Secondary — outline */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--brand);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--outline:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

/* Ghost on dark backgrounds */
.btn--onDark { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; border-color: var(--line-dark); }
.btn--onDark:hover { background: rgba(255,255,255,.16); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

/* ----------------------------------------------------------------------------
   5. HEADER (sticky, blur, compacts on scroll)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.92);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
/* HEADER LOGO — replace assets/img/corepeak-logo-header.png to swap brand mark */
.brand img { height: 38px; width: auto; }
.brand .brand-fallback { /* shown only if the image fails to load */
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--brand);
}
.brand .brand-fallback b { color: var(--gold-deep); }

.nav-links { display: flex; align-items: center; gap: var(--space-2); }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .96rem;
  color: var(--ink); padding: .5rem .8rem; border-radius: var(--r-sm);
  position: relative; transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--brand); background: var(--bg-soft); }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px;
  background: var(--gold); border-radius: 2px;
}

/* On desktop the menu sits on the right and holds links + actions */
.nav-menu { display: flex; align-items: center; gap: var(--space-5); margin-left: auto; }
.nav-right { display: flex; align-items: center; gap: var(--space-3); }

/* Language switch */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.lang-switch a {
  font-family: var(--font-head); font-size: .82rem; font-weight: 600;
  padding: .35rem .7rem; color: var(--ink-faint); transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }
.lang-switch a:not([aria-current="true"]):hover { background: var(--bg-soft); color: var(--brand); }

/* Mobile menu toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--brand); border-radius: 2px; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero::before { /* soft brand gradient wash */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(217,162,27,.10), transparent 60%),
    radial-gradient(900px 600px at 8% 4%, rgba(6,43,79,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-tint), var(--bg));
}
.hero::after { /* faint grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(700px 500px at 70% 30%, #000, transparent 75%);
          mask-image: radial-gradient(700px 500px at 70% 30%, #000, transparent 75%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 { margin-bottom: var(--space-4); }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl-gold { color: var(--gold-deep); }
.hero p.lead { margin-bottom: var(--space-5); max-width: 36ch; }
.hero .btn-row { margin-bottom: var(--space-5); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .82rem; font-weight: 500; padding: .4rem .85rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs); margin-bottom: var(--space-4);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

.hero-mini { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-top: var(--space-2); }
.hero-mini div { line-height: 1.2; }
.hero-mini b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); display: block; }
.hero-mini span { font-size: .85rem; color: var(--ink-faint); }

/* ---- CSS-only "dashboard" mockup (no images) ---- */
.mockup-stack { position: relative; }
.float { animation: floaty 6s ease-in-out infinite; will-change: transform; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.window {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: block; }
.window-bar i:nth-child(1){ background:#f87171;} .window-bar i:nth-child(2){ background:#fbbf24;} .window-bar i:nth-child(3){ background:#34d399;}
.window-bar .url { margin-left: .6rem; flex: 1; height: 20px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: .7rem; color: var(--ink-faint); display: flex; align-items: center; padding: 0 .7rem; }
.window-body { padding: 1.1rem; display: grid; gap: .8rem; }

.dash-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .7rem; }
.stat { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r-md); padding: .7rem .8rem; }
.stat .k { font-size: .68rem; color: var(--ink-faint); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.stat .v { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--brand); }
.stat .v.gold { color: var(--gold-deep); }

/* Mini bar chart */
.chart { display: flex; align-items: flex-end; gap: .5rem; height: 92px; padding: .6rem .2rem 0; }
.chart .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-mid), var(--brand)); opacity: .9; }
.chart .bar.g { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }

/* Floating CRM pipeline card */
.crm-card {
  position: absolute; right: -6%; bottom: -8%; width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: .85rem; animation: floaty 6s ease-in-out infinite .8s;
}
.crm-card .ttl { font-family: var(--font-head); font-size: .78rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; display:flex; align-items:center; gap:.4rem;}
.crm-card .ttl::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--gold); }
.lead-row { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.lead-row .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg,var(--brand-mid),var(--brand)); flex: none; }
.lead-row .nm { font-size: .74rem; color: var(--ink-soft); flex: 1; }
.lead-row .tag { font-size: .62rem; font-weight: 700; padding: .1rem .4rem; border-radius: var(--r-pill); background: rgba(34,197,94,.12); color: #15803d; }
.lead-row .tag.new { background: rgba(217,162,27,.16); color: var(--gold-deep); }

/* Floating "live form" chip top-left */
.chip {
  position: absolute; left: -5%; top: -6%;
  background: var(--brand-deep); color: #fff; border-radius: var(--r-md);
  padding: .6rem .8rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .55rem;
  animation: floaty 6s ease-in-out infinite .4s; border: 1px solid rgba(255,255,255,.08);
}
.chip .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--gold); display: grid; place-items: center; color: var(--brand-deep); font-weight: 800; }
.chip small { display: block; font-size: .64rem; opacity: .7; }
.chip b { font-family: var(--font-head); font-size: .82rem; }

/* ----------------------------------------------------------------------------
   7. TRUST BAR
   -------------------------------------------------------------------------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1rem,4vw,3rem); padding-block: 1.2rem; }
.trust .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.trust .tech { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; }
.trust .tech span { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); font-size: .95rem; display: inline-flex; align-items: center; gap: .45rem; }
.trust .tech span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* ----------------------------------------------------------------------------
   8. CARDS & GRIDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.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: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  position: relative; overflow: hidden;
}
.card::after { /* subtle gold top line on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cdddee; }
.card:hover::after { transform: scaleX(1); }

.card .ic-box {
  width: 50px; height: 50px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--space-4);
  background: linear-gradient(135deg, rgba(6,43,79,.08), rgba(217,162,27,.12));
  color: var(--brand); border: 1px solid var(--line);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: .96rem; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--space-3); font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--brand); }
.card .more .arrow { transition: transform var(--t-fast) var(--ease); }
.card:hover .more .arrow { transform: translateX(4px); }

/* Numbered service card variant */
.card .num { position: absolute; right: 1.1rem; top: .9rem; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: rgba(6,43,79,.06); }

/* ----------------------------------------------------------------------------
   9. PROBLEM / SOLUTION
   -------------------------------------------------------------------------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem,3vw,2rem); }
.ps-col { border-radius: var(--r-lg); padding: clamp(1.4rem,3vw,2rem); }
.ps-col--problem { background: var(--bg-soft); border: 1px solid var(--line); }
.ps-col--solution { background: var(--brand-deep); color: #fff; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-md); }
.ps-col h3 { margin-bottom: var(--space-4); }
.ps-col--solution h3 { color: #fff; }
.ps-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .5rem 0; }
.ps-list li + li { border-top: 1px dashed var(--line); }
.ps-col--solution .ps-list li + li { border-top-color: rgba(255,255,255,.1); }
.ps-col--solution .ps-list li { color: rgba(255,255,255,.86); }
.ps-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: .2rem; }
.ps-mark--x { background: rgba(239,68,68,.12); color: #dc2626; }
.ps-mark--ok { background: var(--gold); color: var(--brand-deep); }

/* ----------------------------------------------------------------------------
   10. PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, var(--line), var(--gold-soft), var(--line)); }
.step { position: relative; }
.step .node {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem;
  background: #fff; color: var(--brand); border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-4); position: relative; z-index: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.step p { font-size: .92rem; }

/* ----------------------------------------------------------------------------
   11. WORK / PORTFOLIO
   -------------------------------------------------------------------------- */
.work-card { display: flex; flex-direction: column; padding: 0; }
.work-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-bottom: 1px solid var(--line);
}
/* CSS browser-window preview placeholder (swap for real screenshot later) */
.preview { position: absolute; inset: 14px 14px 0 14px; background: #fff; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--shadow-md); overflow: hidden; transition: transform var(--t-med) var(--ease); }
.work-card:hover .preview { transform: translateY(-6px); }
.preview .pv-bar { height: 26px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; padding: 0 10px; }
.preview .pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.preview .pv-body { padding: 12px; }
.preview .pv-hero { height: 42px; border-radius: 6px; background: linear-gradient(120deg, var(--brand-mid), var(--brand)); margin-bottom: 8px; position: relative; }
.preview .pv-hero::after { content:""; position:absolute; left:10px; top:14px; width:40%; height:6px; border-radius:3px; background: rgba(255,255,255,.55);}
.preview .pv-line { height: 7px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.preview .pv-line.s { width: 60%; }
.preview .pv-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 10px; }
.preview .pv-cards div { height: 26px; border-radius: 5px; background: var(--bg-soft); border: 1px solid var(--line); }
.preview .pv-cards div:nth-child(2){ border-color: var(--gold-soft); background: rgba(217,162,27,.08);}
.work-tagcat { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(3,27,51,.78); color: #fff; font-size: .72rem; font-weight: 600; padding: .25rem .6rem; border-radius: var(--r-pill); backdrop-filter: blur(4px); }

.work-body { padding: clamp(1.2rem,2.5vw,1.6rem); display: flex; flex-direction: column; flex: 1; }
.work-body h3 { margin-bottom: var(--space-1); }
.work-url { font-size: .82rem; color: var(--gold-deep); font-weight: 600; margin-bottom: var(--space-3); word-break: break-all; }
.work-body p { font-size: .94rem; }
.work-did { margin: var(--space-3) 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.work-did span { font-size: .74rem; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-soft); padding: .2rem .55rem; border-radius: var(--r-pill); }
.work-benefit { font-size: .9rem; color: var(--ink); background: var(--bg-tint); border-left: 3px solid var(--gold); padding: .6rem .8rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: var(--space-4); }
.work-foot { margin-top: auto; }

/* ----------------------------------------------------------------------------
   12. DARK CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand-deep); color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(700px 360px at 80% 0%, rgba(217,162,27,.18), transparent 60%), radial-gradient(600px 360px at 0% 100%, rgba(11,58,102,.6), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 56ch; margin-inline: auto; }
.cta-band .brand-mark { width: 64px; margin: 0 auto var(--space-4); border-radius: var(--r-md); }

/* ----------------------------------------------------------------------------
   13. ABOUT / BRAND BLOCKS
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.brand-panel {
  position: relative; border-radius: var(--r-xl); padding: clamp(1.5rem,4vw,2.5rem);
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: var(--shadow-lg); text-align: center; color: #fff; overflow: hidden;
}
.brand-panel::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size: 30px 30px; -webkit-mask-image: radial-gradient(closest-side,#000,transparent); mask-image: radial-gradient(closest-side,#000,transparent);}
/* BRAND IMAGE on dark — swap with corepeak-logo-dark-square.png or stacked variants */
.brand-panel img { position: relative; width: min(280px, 70%); margin: 0 auto; border-radius: var(--r-lg); }
.brand-panel .cap { position: relative; margin-top: var(--space-4); color: rgba(255,255,255,.8); font-size: .92rem; }

.stack-list { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-3); margin-top: var(--space-5); }
.stack-item { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .7rem .9rem; box-shadow: var(--shadow-xs); transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease); }
.stack-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stack-item .si-ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, rgba(6,43,79,.1), rgba(217,162,27,.14)); color: var(--brand); font-weight: 800; font-family: var(--font-head); }
.stack-item b { font-family: var(--font-head); font-size: .95rem; color: var(--ink); display: block; line-height: 1.1; }
.stack-item small { color: var(--ink-faint); font-size: .78rem; }

/* Value / feature bullet list */
.feat-list { display: grid; gap: var(--space-3); }
.feat-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feat-list .fi { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--gold); color: var(--brand-deep); display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: .15rem; }
.feat-list b { font-family: var(--font-head); color: var(--ink); }

/* ----------------------------------------------------------------------------
   14. COMPARISON TABLE (Website only vs Website + lead system)
   -------------------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.compare > div { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.compare .ch { font-family: var(--font-head); font-weight: 700; background: var(--bg-soft); }
.compare .ch.best { background: var(--brand-deep); color: #fff; position: relative; }
.compare .ch.best .badge { position:absolute; top:.5rem; right:.7rem; font-size:.6rem; background: var(--gold); color: var(--brand-deep); padding:.1rem .4rem; border-radius: var(--r-pill); font-weight:800;}
.compare .rl { font-weight: 600; color: var(--ink); }
.compare .cell { color: var(--ink-soft); font-size: .92rem; }
.compare .yes { color: #15803d; font-weight: 700; }
.compare .no { color: var(--ink-faint); }
.compare > div:nth-last-child(-n+3) { border-bottom: 0; }

/* ----------------------------------------------------------------------------
   15. CONTACT / FORM
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem,4vw,2.5rem); align-items: start; }
.contact-aside { display: grid; gap: var(--space-4); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--shadow-xs); display: flex; gap: .9rem; align-items: flex-start; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-card .cc-ic { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(6,43,79,.1), rgba(217,162,27,.14)); display: grid; place-items: center; color: var(--brand); }
.contact-card .lbl { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; }
.contact-card a, .contact-card b { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; word-break: break-word; }
.contact-card a:hover { color: var(--brand); }

/* Form card holding the GoHighLevel embed */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1rem,2.5vw,1.6rem); box-shadow: var(--shadow-md); }
.form-card .fc-head { display: flex; align-items: center; gap: .7rem; margin-bottom: var(--space-4); }
.form-card .fc-head .ic { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--brand-deep); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.form-embed-wrap { position: relative; min-height: 600px; border-radius: var(--r-lg); overflow: hidden; }
.form-embed-wrap iframe { width: 100%; min-height: 950px; border: 0; display: block; background: #fff; }
.form-fallback { margin-top: var(--space-4); padding: var(--space-4); border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--bg-tint); font-size: .92rem; color: var(--ink-soft); }
.form-fallback b { color: var(--ink); }

/* ----------------------------------------------------------------------------
   16. FAQ (native <details>, accessible)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 1.1rem; box-shadow: var(--shadow-xs); transition: box-shadow var(--t-med); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-family: var(--font-head); font-weight: 600; color: var(--ink); 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(--gold-deep); transition: transform var(--t-fast) var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 1.1rem; color: var(--ink-soft); font-size: .96rem; }

/* ----------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.74); padding-block: clamp(2.5rem,5vw,4rem) var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(1.5rem,4vw,2.5rem); }
.footer-brand img { width: 168px; margin-bottom: var(--space-4); } /* corepeak-logo-horizontal-dark-card.png */
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.74); font-size: .94rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-loc { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
/* Social placeholders — add real links later (see README) */
.socials { display: flex; gap: .6rem; margin-top: var(--space-4); }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: background var(--t-fast), border-color var(--t-fast); }
.socials a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ----------------------------------------------------------------------------
   18. SCROLL-REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ----------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}

@media (max-width: 760px) {
  /* Mobile nav: slide-down panel */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: .9rem .6rem; border-radius: var(--r-sm); font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { background: var(--bg-soft); }
  .nav-menu .nav-right { flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
  .nav-menu .btn { width: 100%; }
  .lang-switch { align-self: flex-start; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .ps-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .stack-list { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare > div { border-bottom: 1px solid var(--line); }
  .compare .ch { display: none; } /* simplify table on mobile */
  .compare .rl { background: var(--bg-soft); font-family: var(--font-head); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .crm-card { right: 0; width: 200px; }
  .chip { left: 0; }
  .hero-mini { gap: var(--space-4); }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-aside { grid-template-columns: 1fr; }
  .crm-card { display: none; } /* keep hero clean on very small screens */
}

/* ----------------------------------------------------------------------------
   20. REDUCED MOTION (accessibility — disables all movement)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .float, .crm-card, .chip { animation: none !important; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
