/* ===================================================================
   AsGuard Risk Management — Stylesheet
   Structure:
     1. Design tokens
     2. Base / resets / accessibility helpers
     3. Typography
     4. Layout / containers / content blocks (CMS-generic)
     5. Buttons & form controls
     6. Navigation
     7. Hero + parallax river graphics
     8. Feature / card / checklist / team / blog components
     9. Contact form + honeypot
     10. Footer
     11. Privacy banner + "Your Privacy Choices" modal
     12. Responsive
   =================================================================== */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Brand */
  --color-brand: #394AA4;
  --color-brand-hover: #304091;
  --color-navy: #162447;
  --color-light-blue: #EAF1FF;
  --color-accent: #5A73E8;
  --color-sky: #7BA6FF;
  --color-soft-bg: #F5F8FF;
  --color-border-blue: #D9E4FF;

  /* Neutrals */
  --color-text: #1B2430;
  --color-text-secondary: #556070;   /* AA on white: ~7.1:1 */
  --color-text-muted: #7E8795;       /* decorative / large-text only: ~3.9:1 */
  --color-text-muted-aa: #667085;    /* AA-safe for small muted/meta text: ~4.6:1 */
  --color-border: #E5EAF2;
  --color-bg: #F8FAFC;
  --color-white: #FFFFFF;

  /* Status / accent */
  --color-green: #2F9E8F;
  --color-green-light: #E8F7F4;
  --color-focus: #175CD3;

  /* Type */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}

/* ---------------------------------------------------------------
   2. BASE / RESETS / ACCESSIBILITY HELPERS
---------------------------------------------------------------- */
*, *::before, *::after { 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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.responsive-img { width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Visually-hidden but available to assistive tech */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot field - hidden from sighted users AND assistive tech (bots only) */
/* invisible and unreachable for sighted/keyboard/screen-reader
   users, but a plain, temptingly-named field for automated bots that
   blindly fill every input. If it has a value on submit, we silently
   drop the submission in js/script.js. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Skip link - an accessibility (ADA/WCAG) feature for keyboard and screen-reader users.*/
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-brand);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Consistent, visible focus state everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

main:focus { outline: none; }

/* ---------------------------------------------------------------
   3. TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  margin: 0;
  line-height: 1.15;
}

h1 { font-weight: 700; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 32px; }
h4 { font-weight: 600; font-size: 24px; }
h5 { font-weight: 600; font-size: 20px; }
h6 { font-weight: 600; font-size: 18px; }

.body-lg { font-family: var(--font-body); font-weight: 400; font-size: 20px; }
.body-md { font-family: var(--font-body); font-weight: 400; font-size: 18px; }
.text-small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--color-text-muted-aa); }
.caption { font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-text-muted-aa); }

p {
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------
   4. LAYOUT / CONTENT BLOCKS (generic, CMS-editable)
---------------------------------------------------------------- */
.block { padding: 88px 0; position: relative; }
.block-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}
.block-header.align-left { text-align: left; margin: 0 0 40px; }

.bg-soft { background: var(--color-soft-bg); }
.bg-light-blue { background: var(--color-light-blue); }
.bg-navy { background: var(--color-navy); color: var(--color-white); }
.bg-white { background: var(--color-white); }

/* Generic 2-column media + text block (Image+Text CMS block).
   Add .media-right to flip the media to the right on desktop. */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-block.media-right .split-media { order: 2; }
.split-block.media-right .split-copy { order: 1; }
.split-copy p { font-size: 18px; margin-bottom: 20px; }
.split-copy .btn { margin-top: 8px; }
.split-media { width: 100%; }

/* Generic centered text block (Text CMS block) */
.text-block { text-align: center; max-width: 780px; margin: 0 auto; }
.text-block p { font-size: 18px; }

/* Generic compact CTA block */
.cta-block {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.cta-block p { margin-bottom: 24px; }

/* ---------------------------------------------------------------
   5. BUTTONS & FORM CONTROLS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}
.btn-primary:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-brand);
}
.btn-secondary:hover { background: var(--color-light-blue); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* Pill buttons used in the privacy banner / modal */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.btn-pill-ghost {
  background: var(--color-border);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-pill-ghost:hover { background: #d7dce4; }

.btn-pill-primary {
  background: var(--color-brand);
  color: var(--color-white);
}
.btn-pill-primary:hover { background: var(--color-brand-hover); }

.btn-pill svg { width: 14px; height: 14px; }

/* Form fields */
label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(57,74,164,0.16);
}
textarea { resize: vertical; min-height: 100px; }

.required-note { color: var(--color-text-muted-aa); font-size: 14px; margin-bottom: 20px; }

/* ---------------------------------------------------------------
   6. NAVIGATION
---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  /*width: 40px;
  height: 40px;*/
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}
.nav-logo img,
.nav-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--color-brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 2px;
}
.nav-links a:hover { color: var(--color-brand); }
.nav-links a[aria-current="page"] { color: var(--color-brand); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--color-brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------------------------------------------------------------
   7. HERO + PARALLAX RIVER GRAPHICS
---------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F8FF 55%, #EAF1FF 100%);
  padding: 96px 0 100px;
  overflow: hidden;
  isolation: isolate;
}

/* River graphic wrapper: taller than the hero so parallax movement
   never reveals empty edges. Purely decorative - hidden from assistive technology. */
.hero-river {
  position: absolute;
  inset: -25% 0 -25% 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-river svg {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
}
.river-layer-back  { top: 0%;  opacity: 0.55; }
.river-layer-mid   { top: 12%; opacity: 0.55; }
.river-layer-front { top: 22%; opacity: 0.35; }

.river-fill-1 { fill: var(--color-light-blue); }
.river-fill-2 { fill: var(--color-border-blue); }
.river-fill-3 { fill: var(--color-sky); }

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy p { font-size: 20px; margin-top: 20px; margin-bottom: 32px; max-width: 480px; }

.hero-media {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-light-blue);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Secondary, subtler river band used behind the contact/CTA section */
.section-river {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-river svg { position: absolute; left: 0; width: 100%; height: auto; }

/* ---------------------------------------------------------------
   8. FEATURE / CARD / CHECKLIST / TEAM / BLOG COMPONENTS
---------------------------------------------------------------- */

/* Feature grid (4-up) — reused on both pages */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.feature-card:hover { box-shadow: 0 12px 28px rgba(57, 74, 164, 0.1); transform: translateY(-3px); }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-light-blue);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h5 { margin-bottom: 10px; }
.feature-card p { font-size: 15px; }

/* Checklist band */
.checklist-panel {
  background: var(--color-light-blue);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.checklist {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.checklist li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-weight: 500; font-size: 18px;
  color: var(--color-text);
}
.check-icon {
  width: 24px; height: 24px; min-width: 24px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
}
.check-icon svg { width: 13px; height: 13px; }

/* 3-up card grid with image (What Drives Us) */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.drive-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.drive-card-media { aspect-ratio: 16/10; width: 100%; background: var(--color-border); }
.drive-card-media img { width: 100%; height: 100%; object-fit: cover; }
.drive-card-body { padding: 24px; }
.drive-card-body h5 { margin-bottom: 8px; }
.drive-card-body p { font-size: 15px; }

/* Generic placeholder icon (fallback state before CMS image is set) */
.img-placeholder-icon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
}
.img-placeholder-icon svg { width: 34px; height: 34px; opacity: 0.6; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.team-card { text-align: center; }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--color-border);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h6 { margin-bottom: 2px; }
.team-role { color: var(--color-brand); font-size: 14px; font-weight: 500; margin-bottom: 16px; }

.team-bio {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-base), margin var(--transition-base);
  text-align: left;
}
.team-bio p { font-size: 14px; padding-top: 4px; }
.team-card.expanded .team-bio { max-height: 260px; margin-bottom: 16px; }

.learn-more-btn { width: 100%; }
.learn-more-btn .chevron { display: inline-block; transition: transform 0.25s ease; margin-left: 4px; }
.team-card.expanded .learn-more-btn .chevron { transform: rotate(180deg); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 32px; transition: box-shadow var(--transition-base); display: block; }
.blog-card:hover { box-shadow: 0 12px 28px rgba(57,74,164,0.08); }
.blog-card h5 { margin-bottom: 12px; text-decoration: underline; text-decoration-color: var(--color-border-blue); text-underline-offset: 4px; }
.blog-card p { font-size: 15px; margin-bottom: 24px; }
.blog-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-light-blue); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 600; font-size: 14px; color: var(--color-text); }
.author-role { font-size: 13px; color: var(--color-text-muted-aa); }

/* Why Waivers Fail (product page) */
.why-fail-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.why-fail-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-fail-item .feature-icon { background: transparent; margin-bottom: 16px; color: var(--color-text-secondary); }
.why-fail-item h6 { margin-bottom: 10px; }
.why-fail-item p { font-size: 15px; }

/* ---------------------------------------------------------------
   9. CONTACT FORM
---------------------------------------------------------------- */
.contact-section { text-align: center; position: relative; overflow: hidden; }
.contact-section .block-header { margin-bottom: 40px; }
.contact-note { max-width: 600px; margin: 0 auto 8px; }
.contact-email { color: var(--color-brand); font-weight: 500; }

.contact-form {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  z-index: 1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.consent-row input { width: auto; margin-top: 3px; }
.consent-row label { margin: 0; font-weight: 400; font-size: 14px; color: var(--color-text-secondary); }

/* Field-level validation states */
.field-error {
  color: #B3261E;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 0;
}
.field-error:empty { display: none; margin: 0; }
.field-error::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background-color: #B3261E;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #B3261E;
}
.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(179,38,30,0.14);
}
.consent-row.has-error label { color: #B3261E; }

/* Submit button "sending" state */
.contact-form button[type="submit"][data-sending="true"] {
  opacity: 0.75;
  cursor: not-allowed;
}
.contact-form button[type="submit"]:disabled { cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}
.form-status:empty { display: none; }
.contact-form button.btn-block { margin-top: 16px; }
.form-status[data-state="success"] { color: var(--color-green); }
.form-status[data-state="error"] { color: #B3261E; }

/* ---------------------------------------------------------------
   10. FOOTER
---------------------------------------------------------------- */
.site-footer { padding: 48px 0 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; }
.footer-text { font-family: var(--font-body); font-weight: 500; font-size: 14px; letter-spacing: 0.04em; color: rgba(255,255,255,0.75); }
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
.social-links a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.social-links svg { width: 24px; height: 24px; }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 0; }
.footer-bottom { padding-top: 24px; font-size: 14px; color: rgba(255,255,255,0.7); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links button {
  background: none; border: none; padding: 0;
  font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.7);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.footer-legal-links button:hover { color: var(--color-white); }

/* ---------------------------------------------------------------
   11. PRIVACY BANNER + "YOUR PRIVACY CHOICES" MODAL
---------------------------------------------------------------- */

/* --- Bottom consent banner --- */
.privacy-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(22, 36, 71, 0.22);
  padding: 28px 32px;
  z-index: 900;
  border: 1px solid var(--color-border);
}
.privacy-banner[hidden] { display: none; }

.privacy-banner p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 12px;
}
.privacy-banner a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.privacy-banner a:hover { color: var(--color-brand-hover); }
.privacy-banner strong { color: var(--color-text); }

.privacy-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.privacy-banner-actions .btn-group { display: flex; gap: 12px; }

/* --- Modal overlay + dialog: "Your Privacy Choices" --- */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 36, 71, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 950;
}
.privacy-modal-overlay[hidden] { display: none; }

.privacy-modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: min(720px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(22, 36, 71, 0.35);
}

.privacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.privacy-modal-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  color: var(--color-text);
  flex-shrink: 0;
}
.privacy-modal-back:hover { background: var(--color-light-blue); border-color: var(--color-border-blue); }
.privacy-modal-back svg { width: 18px; height: 18px; }

.privacy-modal-policy-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-border);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.privacy-modal-policy-link:hover { background: #d7dce4; }

.privacy-modal-body {
  padding: 28px 28px 8px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.privacy-modal-body h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
}
.privacy-modal-body > p {
  margin-bottom: 24px;
}
.privacy-modal-body a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }

.privacy-modal-toplevel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
}

.privacy-section {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}
.privacy-section h3 { font-size: 20px; margin-bottom: 12px; }
.privacy-section > p { font-size: 15px; margin-bottom: 4px; }

.privacy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}
.privacy-toggle-row:first-of-type { border-top: none; }
.privacy-toggle-label { font-size: 16px; color: var(--color-text); }

/* Accessible toggle switch: role="switch" on the button */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 30px;
  min-width: 52px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 3px;
  transition: background-color var(--transition-base);
}
.toggle-switch[aria-checked="true"] { background: var(--color-green); }
.toggle-switch[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }

.toggle-knob {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-switch[aria-checked="true"] .toggle-knob { transform: translateX(22px); }
.toggle-knob svg { width: 12px; height: 12px; color: var(--color-green); opacity: 0; transition: opacity var(--transition-base); }
.toggle-switch[aria-checked="true"] .toggle-knob svg { opacity: 1; }

.privacy-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

/* ---------------------------------------------------------------
   12. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 960px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .checklist { grid-template-columns: 1fr; }
  .why-fail-grid { grid-template-columns: 1fr; }
  .why-fail-items { grid-template-columns: 1fr; gap: 24px; }
  .split-block { grid-template-columns: 1fr; }
  .split-block.media-right .split-media,
  .split-block .split-media { order: -1; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 32px 28px;
    gap: 18px;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .card-grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .block { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .checklist-panel { padding: 28px; }
  .privacy-banner { left: 12px; right: 12px; bottom: 12px; padding: 22px; }
  .privacy-banner-actions { flex-direction: column; align-items: stretch; }
  .privacy-banner-actions .btn-group { justify-content: stretch; }
  .privacy-banner-actions .btn-group .btn-pill { flex: 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------------------------------------------------------
   13. CONTENT LISTS (for CMS body copy — bullets / steps)
---------------------------------------------------------------- */
.content-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.content-list li { position: relative; padding-left: 26px; font-size: 18px; color: var(--color-text-secondary); line-height: 1.6; }
.content-list li::before {
  content: ''; position: absolute; left: 2px; top: 8px;
  width: 8px; height: 8px; background: var(--color-accent);
  border-radius: 2px; transform: rotate(45deg);
}
.content-list li strong { color: var(--color-text); }

.numbered-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.numbered-list li { counter-increment: step; position: relative; padding-left: 44px; min-height: 32px; font-size: 18px; color: var(--color-text-secondary); line-height: 1.6; }
.numbered-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-brand); color: var(--color-white);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
