/* =============================================
   HypGuard · hg.css
   Cormorant Garamond + Inter
   ============================================= */

:root {
  --fg:   #1E2530;
  --fg-2: #4B5563;
  --fg-3: #7B8A99;
  --bg:   #fff;
  --warm: #F7F9FB;
  --dark: #0C1F3A;
  --rule: #D7DEE6;
  --max:  1140px;
  --nav:  64px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Inter', system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }

/* ─── Typography ─── */
h1, h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; line-height: 1.1; color: var(--fg); }
h1     { font-size: clamp(3rem, 5.5vw, 5rem); }
h2     { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h3     { font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--fg); }
p      { font-size: 0.875rem; color: var(--fg-2); line-height: 1.75; }

.label { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px; }
.lead  { font-size: 1rem; color: var(--fg-2); line-height: 1.8; }
.note  { font-size: 0.74rem; color: var(--fg-3); line-height: 1.6; }

/* ─── Section skins — text vars flip via cascade ─── */
.hero, .dk {
  --fg:   #fff;
  --fg-2: #E7ECF1;
  --fg-3: #8CA0B3;
  color: #fff;
}
.dk   { background: var(--dark); }
.warm { background: var(--warm); }

/* ─── Layout ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section   { padding: 104px 0; }
section    { scroll-margin-top: var(--nav); }

.cols-3 { display: grid; grid-template-columns: repeat(3,1fr); }
.cols-4 { display: grid; grid-template-columns: repeat(4,1fr); }
.split  { display: grid; grid-template-columns: 1fr 380px; gap: 80px; align-items: center; }

/* Hairline-ruled grid */
.ruled > *               { padding: 44px 36px 44px 0; border-right: 1px solid var(--rule); }
.ruled > *:last-child    { border-right: none; padding-right: 0; }
.ruled > *:not(:first-child) { padding-left: 36px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; padding: 12px 24px; border: 1px solid transparent; border-radius: 1px; cursor: pointer; transition: opacity 0.18s, color 0.18s, border-color 0.18s; white-space: nowrap; }
.btn-solid { background: #2E6E71; color: #fff; border-color: #2E6E71; }
.btn-solid:hover { background: #3F8A8D; border-color: #3F8A8D; }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.32); }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.72); }
/* White outline on the "Request an Assessment" CTA — top-right nav and the hero button below the two sentences */
#nav .btn-solid,
.hero-actions .btn-solid { border-color: #fff; }
#nav .btn-solid:hover,
.hero-actions .btn-solid:hover { border-color: #fff; }

/* ─── Navigation ─── */
#nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav); background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-wrap { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
/* Soft drop shadow so the white emblem keeps an edge on light backgrounds
   (it is transparent-white; on dark sections the shadow is barely visible). */
.nav-logo img, .footer-logo img { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.nav-logo img { height: 30px; }
/* Wordmark set beside the logo mark — Cormorant Garamond bold, matching the
   serif-bold treatment used for the "HypGuard" wordmark in the PDF report header. */
.logo-word { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; color: #fff; line-height: 1; }
.nav-logo .logo-word { font-size: 1.3rem; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.52); position: relative; padding-bottom: 2px; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -1px; left: 0; height: 1px; width: 0; background: #fff; transition: width 0.22s; }
.nav-links a:hover, .nav-links a.active { color: rgba(255,255,255,0.92); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn::after { display: none; }
.nav-links .btn { color: #fff !important; padding: 9px 18px; }

.nav-toggle { display: none; flex-direction: column; background: none; border: none; cursor: pointer; padding: 6px; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.6); }

.mob-nav { position: fixed; inset: 0; z-index: 200; background: var(--dark); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity 0.28s; }
.mob-nav.open { opacity: 1; pointer-events: auto; }
.mob-nav a { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: rgba(255,255,255,0.55); transition: color 0.18s; }
.mob-nav a:hover { color: #fff; }
.mob-close { position: absolute; top: 20px; right: 24px; background: none; border: none; cursor: pointer; font-size: 1.6rem; color: rgba(255,255,255,0.4); transition: color 0.18s; }
.mob-close:hover { color: #fff; }

/* ─── Hero ─── */
.hero { min-height: 100svh; background: var(--dark); display: flex; flex-direction: column; padding-top: var(--nav); }
.hero-body  { flex: 1; display: flex; align-items: center; }
.hero-body .split { width: 100%; }
.hero-content { padding: 60px 0 60px; position: relative; z-index: 1; }
.hero h1   { margin-bottom: 24px; width: calc(100% + 380px + 80px); } /* span full width: reclaim the .split aside (380px) + gap (80px) */
.hero .lead { margin-bottom: 40px; width: calc(100% + 380px + 80px); } /* span full width to match the headline */
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

.hero-deco { pointer-events: none; user-select: none; opacity: 0.15; display: flex; align-items: center; justify-content: flex-end; }
.hero-deco svg { width: 100%; height: auto; }

/* ─── Stats strip ─── */
.stats-bar { border-top: 1px solid rgba(255,255,255,0.07); }
.stats { max-width: var(--max); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(4,1fr); }
.stats > * { padding: 32px 0 128px 28px; border-left: 1px solid rgba(255,255,255,0.07); }
.stats > *:first-child { border-left: none; padding-left: 0; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; color: #fff; line-height: 1; margin-bottom: 4px; }
.stat-l { font-size: 0.72rem; color: rgba(255,255,255,0.5); line-height: 1.45; }

/* ─── Problem ─── */
.idx { font-family: 'Cormorant Garamond', serif; font-size: 4rem; color: #AFBFCE; line-height: 1; margin-bottom: 18px; display: block; }

/* ─── Assessment ─── */
.assess-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }

/* ─── Pillars ─── */
.pillars { margin-top: 0; }
.pillar { display: grid; grid-template-columns: 48px 200px 1fr; gap: 0 48px; align-items: start; padding: 36px 0; border-top: 1px solid var(--rule); transition: background 0.14s; cursor: default; }
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar:hover { background: var(--warm); margin: 0 -40px; padding-left: 40px; padding-right: 40px; }
.p-num  { font-size: 0.62rem; letter-spacing: 0.12em; color: var(--fg-3); padding-top: 4px; }
.p-name { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--fg); line-height: 1.2; }
.p-desc { font-size: 0.875rem; color: var(--fg-2); line-height: 1.72; padding-top: 4px; margin: 0; }

/* ─── Process ─── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(255,255,255,0.07); margin-top: 0px; }
.step  { padding: 44px 32px; border-right: 1px solid rgba(255,255,255,0.07); }
.step:last-child { border-right: none; }
.step-n { font-family: 'Cormorant Garamond', serif; font-size: 3.2rem; color: rgba(255,255,255,0.5); line-height: 1; margin-bottom: 32px; }
.step h3 { color: rgba(255,255,255,0.88); margin-bottom: 12px; }
.step p  { font-size: 0.82rem; margin: 0; }

/* ─── Auditor ─── */
.auditor-img { width: 100%; border-radius: 1px; filter: grayscale(15%); }
blockquote   { border-left: 2px solid var(--fg); padding: 2px 0 2px 22px; margin: 32px 0; }
blockquote p { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; color: var(--fg); line-height: 1.4; margin: 0; }
.creds  { margin-top: 36px; border-top: 1px solid var(--rule); padding-top: 28px; }
.cred   { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.cred-k { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); flex-shrink: 0; }
.cred-v { color: var(--fg); text-align: right; font-size: 0.85rem; }

/* ─── CTA ─── */
.cta-inner { max-width: 560px; }
.cta-inner h2 { margin-bottom: 16px; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ─── Footer ─── */
.footer { background: #081426; border-top: 1px solid rgba(255,255,255,0.04); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo img { height: 28px; }
.footer-logo .logo-word { font-size: 1.15rem; }
.footer p  { font-size: 0.8rem; color: rgba(255,255,255,0.42); margin-bottom: 8px; }
.footer a  { font-size: 0.8rem; color: rgba(255,255,255,0.42); transition: color 0.18s; }
.footer a:hover { color: rgba(255,255,255,0.82); }
.footer h4 { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer-btm { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-btm span, .footer-btm a { font-size: 0.7rem; color: rgba(255,255,255,0.28); }
.footer-btm a:hover { color: rgba(255,255,255,0.6); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .container, .nav-wrap { padding: 0 32px; }
  .stats { padding: 0 32px; }
  .split  { grid-template-columns: 1fr 300px; gap: 48px; }
  .hero h1, .hero .lead { width: calc(100% + 300px + 48px); } /* match the narrower aside + gap at this breakpoint */
  .pillar { grid-template-columns: 40px 170px 1fr; gap: 0 36px; }
  .assess-head { grid-template-columns: 1fr; margin-bottom: 48px; }
}

@media (max-width: 768px) {
  :root { --nav: 58px; }
  .container, .nav-wrap, .stats { padding: 0 24px; }
  .section { padding: 72px 0; }

  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .hero-body .split { display: block; }
  .hero-deco  { display: none; }
  .hero-content { padding: 56px 0 48px; }
  .hero h1, .hero .lead { width: auto; } /* single-column layout: headline and lead already fill the width */

  .stats { grid-template-columns: 1fr 1fr; }
  .stats > *:nth-child(3) { border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .stats > *:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }

  .cols-3, .cols-4, .split { display: block; }
  .ruled > * { padding: 36px 0; border-right: none; border-top: 1px solid var(--rule); }
  .ruled > *:first-child { border-top: none; padding-top: 0; }

  .assess-head { display: block; margin-bottom: 36px; }
  .assess-head > *:last-child { margin-top: 14px; }

  .pillar { grid-template-columns: 36px 1fr; }
  .p-name { grid-column: 2; }
  .p-desc { grid-column: 1 / -1; padding-top: 6px; }
  .pillar:hover { margin: 0; padding: 28px 0; background: transparent; }

  .steps { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .step  { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .step:nth-child(even) { border-right: none; }
  .step:nth-last-child(-n+2) { border-bottom: none; }

  .auditor-img { max-width: 240px; margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .steps { grid-template-columns: 1fr; }
  .step  { border-right: none !important; }
  .step:last-child { border-bottom: none; }
  .hero-actions, .cta-btns { flex-direction: column; align-items: flex-start; }
}
