/* ═══════════════════════════════════════════════════════════════
   LEXARA ADVISORY — shared.css
   Foundation stylesheet for all pages.
   Palette · Typography · Layout · Nav · Footer · Chatbot
   Cookie Banner · Quiz · Service Pages · Responsive
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1628;
  --navy-mid: #162040;
  --navy-deep: #071020;
  --gold: #C5A44B;
  --gold-light: #E2CC8A;
  --gold-pale: #F5EDD4;
  --cream: #FAF8F3;
  --white: #FFFFFF;
  --muted: #4A5568;
  --muted-light: #718096;
  --danger: #C53030;
  --warning: #D69E2E;
  --success: #2F855A;
  --info: #2B6CB0;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(11,22,40,.08);
  --shadow-md: 0 4px 16px rgba(11,22,40,.1);
  --shadow-lg: 0 10px 40px rgba(11,22,40,.15);
  --shadow-gold: 0 4px 20px rgba(197,164,75,.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--muted); }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

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

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

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--gold);
}
.btn-navy:hover {
  background: var(--navy-mid);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: .625rem 1.25rem;
  font-size: .8125rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-icon {
  font-size: 1.1em;
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11,22,40,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197,164,75,.1);
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: rgba(11,22,40,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: .5rem 1rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(197,164,75,.08);
}

.nav-cta {
  margin-left: .75rem;
}

.nav-cta .btn {
  padding: .625rem 1.5rem;
  font-size: .8125rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Page offset for fixed nav ── */
main {
  padding-top: var(--nav-height);
}

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,.7);
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(197,164,75,.2);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3, .card h4 {
  margin-bottom: .75rem;
}

/* ── Grid layouts ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(197,164,75,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: .375rem 1rem;
  border: 1px solid rgba(197,164,75,.25);
  border-radius: 100px;
}

.hero h1 {
  color: var(--white);
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Urgency bar / Countdown ── */
.urgency-bar {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  border-top: 1px solid rgba(197,164,75,.15);
  border-bottom: 1px solid rgba(197,164,75,.15);
  padding: 1.25rem 0;
  text-align: center;
}

.urgency-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.countdown-group {
  display: flex;
  gap: 1rem;
}

.countdown-item {
  text-align: center;
}

.countdown-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.countdown-label {
  font-size: .6875rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.urgency-text {
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
  font-weight: 500;
}

.urgency-text strong {
  color: var(--gold);
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 500;
}

.trust-item-icon {
  color: var(--gold);
  font-size: 1rem;
}

/* ── FAQ Accordion ── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--gold);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: .9375rem;
}

/* ══════════════════════════════════════
   QUIZ / ASSESSMENT STYLES
   ══════════════════════════════════════ */

.quiz-page {
  background: var(--cream);
  min-height: 100vh;
}

.quiz-hero {
  background: var(--navy);
  padding: 4rem 0 3rem;
  text-align: center;
}

.quiz-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.quiz-hero p {
  color: rgba(255,255,255,.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* Quiz selector tabs */
.quiz-tabs {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 1.5rem 0;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.quiz-tab {
  padding: .75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--transition);
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.quiz-tab:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.quiz-tab.active {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
}

.quiz-tab-label {
  display: block;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .25rem;
}

/* Quiz container */
.quiz-container {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem 4rem;
}

/* Progress bar */
.quiz-progress {
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width .4s ease;
}

.quiz-progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .75rem;
  color: var(--muted-light);
  font-weight: 500;
}

/* Question card */
.quiz-question-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeSlideIn .35s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question-num {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.quiz-question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: .75rem;
}

.quiz-question-help {
  font-size: .8125rem;
  color: var(--muted-light);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  padding: .75rem 1rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

/* Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  color: var(--navy);
  line-height: 1.5;
  transition: all var(--transition);
}

.quiz-option:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.quiz-option.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
  font-weight: 600;
}

/* Navigation */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.quiz-nav-back {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: var(--muted);
  cursor: pointer;
  padding: .5rem;
  transition: color var(--transition);
}

.quiz-nav-back:hover {
  color: var(--navy);
}

/* ── Results ── */
.quiz-results {
  animation: fadeSlideIn .5s ease;
}

.result-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.result-level {
  display: inline-block;
  padding: .5rem 1.5rem;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.result-level-low {
  background: #C6F6D5;
  color: #22543D;
}

.result-level-moderate {
  background: #FEFCBF;
  color: #744210;
}

.result-level-high {
  background: #FED7D7;
  color: #742A2A;
}

.result-level-critical {
  background: #742A2A;
  color: var(--white);
}

.result-score-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.result-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.result-score-ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.result-score-ring .ring-bg {
  stroke: var(--border);
}

.result-score-ring .ring-fill {
  stroke: var(--gold);
  transition: stroke-dashoffset 1s ease;
}

.result-score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-card h4 {
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.result-card ul {
  list-style: none;
  padding: 0;
}

.result-card li {
  padding: .375rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.6;
}

.result-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.result-deadline {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.result-deadline h4 {
  color: var(--gold);
  margin-bottom: .5rem;
}

.result-deadline p {
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ── Lead form within quiz results ── */
.lead-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}

.lead-form h3 {
  margin-bottom: .5rem;
  font-size: 1.3rem;
}

.lead-form p {
  font-size: .875rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
}

.form-field input,
.form-field select {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197,164,75,.15);
}

.form-field input::placeholder {
  color: var(--muted-light);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin: 1.25rem 0;
}

.form-consent input[type="checkbox"] {
  margin-top: .25rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.form-consent label {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-consent a {
  color: var(--gold);
  text-decoration: underline;
}

.form-error {
  color: var(--danger);
  font-size: .8125rem;
  margin-top: .25rem;
}

.form-success {
  text-align: center;
  padding: 2rem;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.6);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .875rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-disclaimer {
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

.footer-col h3,
.footer-col h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: .625rem;
}

.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .75rem;
  font-size: .875rem;
}

.footer-contact-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .125rem;
}

/* ── Framework Badges ── */
.frameworks-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 0;
}

.fw-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  min-width: 90px;
}

.fw-badge svg {
  opacity: .85;
  transition: opacity var(--transition), transform var(--transition);
}

.fw-badge:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.fw-badge-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.fw-badge-sub {
  font-size: .6875rem;
  color: var(--muted-light);
  text-align: center;
}

/* Dark section badges */
.section-dark .fw-badge-label {
  color: var(--white);
}

.section-dark .fw-badge-sub {
  color: rgba(255,255,255,.5);
}

/* ── Footer Social Links ── */
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}

.footer-social-link:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197,164,75,.3);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════
   CHATBOT
   ══════════════════════════════════════ */

.chatbot-bubble {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(197,164,75,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.chatbot-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(197,164,75,.5);
}

.chatbot-bubble svg {
  width: 26px;
  height: 26px;
  fill: var(--navy);
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 901;
  width: 380px;
  max-height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.open {
  display: flex;
  animation: chatSlideUp .3s ease;
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: .875rem;
  color: var(--navy);
}

.chatbot-header-text h4 {
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
}

.chatbot-header-text p {
  color: rgba(255,255,255,.5);
  font-size: .6875rem;
  margin: 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  padding: .25rem;
  font-size: 1.25rem;
  transition: color var(--transition);
}

.chatbot-close:hover {
  color: var(--white);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 280px;
  max-height: 340px;
}

.chat-msg {
  max-width: 85%;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  line-height: 1.5;
}

.chat-msg-bot {
  align-self: flex-start;
  background: var(--cream);
  color: var(--navy);
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-msg-typing {
  align-self: flex-start;
  background: var(--cream);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  gap: .25rem;
}

.chat-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-light);
  animation: typingDot 1.2s ease infinite;
}

.chat-msg-typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.chat-option-btn {
  padding: .5rem .875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-size: .8125rem;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}

.chat-option-btn:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.chatbot-input-area {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
}

.chatbot-input {
  flex: 1;
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  color: var(--navy);
  background: var(--cream);
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--gold);
}

.chatbot-send {
  padding: .625rem .875rem;
  background: var(--gold);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  transition: all var(--transition);
}

.chatbot-send:hover {
  background: var(--gold-light);
}

.chatbot-disclaimer {
  padding: .5rem 1rem;
  background: var(--cream);
  font-size: .6875rem;
  color: var(--muted-light);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 1px solid rgba(197,164,75,.2);
  padding: 1.25rem 1.5rem;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}

.cookie-banner.show {
  display: block;
  animation: cookieSlide .35s ease;
}

@keyframes cookieSlide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: .625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--navy);
}

.cookie-btn-accept:hover {
  background: var(--gold-light);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}

.cookie-btn-reject:hover {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}

.cookie-btn-customize {
  background: transparent;
  color: rgba(255,255,255,.5);
  border: none;
  text-decoration: underline;
  font-size: .75rem;
}

/* Cookie preferences panel */
.cookie-prefs {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-prefs.show {
  display: flex;
}

.cookie-prefs-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.cookie-prefs-panel h3 {
  margin-bottom: 1.5rem;
}

.cookie-pref-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cookie-pref-info h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
}

.cookie-pref-info p {
  font-size: .8125rem;
  color: var(--muted-light);
  margin: .25rem 0 0;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  top: 3px;
  left: 3px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: .5;
  cursor: not-allowed;
}

.cookie-prefs-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}


/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  
  /* Mobile nav drawer */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid rgba(197,164,75,.15);
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
  }
  
  .nav-links.mobile-open a {
    padding: .75rem 0;
    font-size: 1rem;
  }
  
  .nav-links.mobile-open .nav-cta {
    display: block;
    margin-left: 0;
    margin-top: .75rem;
  }
  
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  
  .urgency-inner { flex-direction: column; gap: 1rem; }
  .trust-items { gap: 1.5rem; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  
  .container { padding: 0 1rem; }
  
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .frameworks-badges { gap: 1rem; }
  .footer-social { justify-content: center; }
  
  .quiz-question-card { padding: 1.5rem; }
  .quiz-question-text { font-size: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  
  .quiz-tabs { flex-direction: column; }
  .quiz-tab { min-width: auto; }
  
  .chatbot-window {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  
  .cookie-inner { flex-direction: column; text-align: center; }
  .cookie-actions { flex-wrap: wrap; justify-content: center; }
}

/* ══════════════════════════════════════
   UTILITY CLASSES (replacing inline styles)
   ══════════════════════════════════════ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .75rem; }
.mb-2 { margin-bottom: 1.5rem; }
.pt-1 { padding-top: .75rem; }
.pb-1 { padding-bottom: .75rem; }

.text-sm { font-size: .875rem; }
.text-xs { font-size: .8125rem; }
.text-xxs { font-size: .75rem; }
.text-md { font-size: 1.0625rem; }
.font-600 { font-weight: 600; }

.card-service { display: flex; flex-direction: column; }
.card-service .btn { margin-top: auto; }

.sector-card {
  text-align: center;
  padding: 1.5rem;
}
.sector-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.sector-card h4 { font-size: 1rem; }
.sector-card p { font-size: .8125rem; }

.process-step {
  text-align: center;
  padding: 1rem;
}
.process-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.process-step h4 { font-size: 1rem; }
.process-step p { font-size: .875rem; }

.why-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.why-card h4 { color: var(--gold); }
.why-card p { color: rgba(255,255,255,.65); }

.social-proof-box {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
}
.social-proof-box h4 { color: var(--gold); margin-bottom: 1rem; }
.social-proof-box p {
  color: rgba(255,255,255,.7);
  font-size: .9375rem;
  line-height: 1.7;
  margin: 0;
}

.framework-col {
  padding: 1.5rem;
  text-align: center;
}
.framework-label {
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}

.cta-center {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.published-link {
  margin-top: 1.5rem;
  text-align: center;
}
.published-link p {
  color: rgba(255,255,255,.5);
  font-size: .8125rem;
  margin-bottom: .75rem;
}

.content-intro {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.content-article { max-width: 800px; }

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  text-align: center;
}
.article-cta h3 { margin-bottom: .5rem; }
.article-cta p { margin-bottom: 1.5rem; }

.article-disclaimer {
  font-size: .75rem;
  color: var(--muted-light);
  text-align: center;
  margin-top: 2rem;
}

.blog-card-eyebrow {
  font-size: .75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}

.blog-card { margin-bottom: 1.5rem; }

.quiz-hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding: .375rem 1rem;
  border: 1px solid rgba(197,164,75,.25);
  border-radius: 100px;
}

/* ══════════════════════════════════════
   NONCE-COMPATIBLE: no unsafe-eval needed
   All dynamic content uses textContent or 
   controlled innerHTML with hardcoded HTML
   ══════════════════════════════════════ */
