/* ============================================================
   XEnablers.ai — styles.css
   Shared stylesheet for all pages including approach.html

   TOKEN RULE:
     --indigo  = TEXT / LINK colour only.
                 Light mode: dark navy #173B6D
                 Dark  mode: light blue #93C5FD  (readable on dark backgrounds)
                 NEVER use as a background colour.

     --panel-navy = always-dark navy, safe as a background in both themes.
   ============================================================ */

/* ── Light mode (default) ── */
:root {
  --bg:              #ffffff;
  --text:            #111111;
  --muted:           #6B7280;
  --surface:         #F5F7FA;
  --border:          #E8EAEF;
  --indigo:          #173B6D;
  --saffron:         #FF8A3D;
  --rose:            #E11D48;
  --teal:            #0D9488;
  --card-bg:         var(--surface);
  --card-border:     var(--border);
  --hero-grad-start: #ffffff;
  --hero-grad-end:   #fafcff;
  --focus:           #2563EB;

  /* Approach page tokens */
  --panel-navy:      #173B6D;
  --panel-navy-sub:  #1A3F60;
  --zone-stripe:     rgba(0,0,0,0.04);
  --zone-hover:      rgba(23,59,109,0.06);
}

/* ── System dark (no manual override set yet) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:              #0B1020;
    --text:            #F3F4F6;
    --muted:           #9CA3AF;
    --surface:         #111827;
    --border:          #2B3345;
    --indigo:          #93C5FD;
    --saffron:         #FDBA74;
    --rose:            #F43F5E;
    --teal:            #2DD4BF;
    --card-bg:         var(--surface);
    --card-border:     var(--border);
    --hero-grad-start: #0B1020;
    --hero-grad-end:   #0E1528;
    --focus:           #93C5FD;

    --panel-navy:     #1E3A5F;
    --panel-navy-sub: #1A3F60;
    --zone-stripe:    rgba(255,255,255,0.04);
    --zone-hover:     rgba(147,197,253,0.08);
  }
}

/* ── Manual dark (button pressed) ── */
[data-theme="dark"] {
  --bg:              #0B1020;
  --text:            #F3F4F6;
  --muted:           #9CA3AF;
  --surface:         #111827;
  --border:          #2B3345;
  --indigo:          #93C5FD;
  --saffron:         #FDBA74;
  --rose:            #F43F5E;
  --teal:            #2DD4BF;
  --card-bg:         var(--surface);
  --card-border:     var(--border);
  --hero-grad-start: #0B1020;
  --hero-grad-end:   #0E1528;
  --focus:           #93C5FD;

  --panel-navy:     #1E3A5F;
  --panel-navy-sub: #1A3F60;
  --zone-stripe:    rgba(255,255,255,0.04);
  --zone-hover:     rgba(147,197,253,0.08);
}

/* ── Manual light (button pressed back) ── */
[data-theme="light"] {
  --bg:              #ffffff;
  --text:            #111111;
  --muted:           #6B7280;
  --surface:         #F5F7FA;
  --border:          #E8EAEF;
  --indigo:          #173B6D;
  --saffron:         #FF8A3D;
  --rose:            #E11D48;
  --teal:            #0D9488;
  --card-bg:         var(--surface);
  --card-border:     var(--border);
  --hero-grad-start: #ffffff;
  --hero-grad-end:   #fafcff;
  --focus:           #2563EB;

  --panel-navy:     #173B6D;
  --panel-navy-sub: #1A3F60;
  --zone-stripe:    rgba(0,0,0,0.04);
  --zone-hover:     rgba(23,59,109,0.06);
}

/* ── Reset ── */
* { box-sizing: border-box }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

html.copy-protected,
html.copy-protected body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.copy-protected input,
html.copy-protected textarea,
html.copy-protected [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

a { color: var(--indigo) }
a:focus, button:focus { outline: 3px solid var(--focus); outline-offset: 2px }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px }
.nowrap { white-space: nowrap }
.muted  { color: var(--muted); font-weight: 500 }

/* ── Header ── */
.site-header {
  position: sticky; top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  overflow: visible;
}
.site-header .container { max-width: 1280px; padding: 0 20px }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: nowrap; gap: 12px; min-width: 0 }
.logo { display: flex; align-items: center; flex-shrink: 0 }
.logo-link { display: inline-flex; align-items: center; text-decoration: none }
.logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; border-radius: 12px;
}
:root:not([data-theme]) .logo-wrap { background: #0B1020 }
[data-theme="light"]    .logo-wrap { background: #0B1020 }
[data-theme="dark"]     .logo-wrap { background: transparent }
.logo-img { height: 32px; width: auto; display: block }

/* ── Image enhancements for light/dark modes ── */
img {
  transition: filter .25s ease;
}

/* Default light mode images */
[data-theme="light"] img,
:root:not([data-theme]) img {
  filter: brightness(1) contrast(1);
}

/* Dark mode image adjustments */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) img {
    filter: brightness(1.05) contrast(1.1);
  }
}

[data-theme="dark"] img {
  filter: brightness(1.05) contrast(1.1);
}

/* XEnQuad specific enhancements */
img[src*="XEnQuad"] {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

[data-theme="dark"] img[src*="XEnQuad"] {
  filter: none;
  -webkit-filter: contrast(1.1) brightness(1.02);
}

[data-theme="light"] img[src*="XEnQuad"] {
  filter: brightness(0.98) contrast(1.02);
  -webkit-filter: brightness(0.98) contrast(1.02);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) img[src*="XEnQuad"] {
    filter: none;
    -webkit-filter: contrast(1.1) brightness(1.02);
  }
}

/* Image container styling for theme-aware backgrounds */
.image-container {
  background: var(--surface);
  border: 1px solid var(--card-border);
  transition: background-color .25s ease, border-color .25s ease;
}

[data-theme="dark"] .image-container {
  background: #6B7280;
  border-color: color-mix(in oklab, #93C5FD 40%, var(--border) 60%);
}

[data-theme="light"] .image-container {
  background: #E5E7EB;
  border-color: var(--border);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .image-container {
    background: #6B7280;
    border-color: color-mix(in oklab, #93C5FD 40%, var(--border) 60%);
  }
}

/* Enhance text and captions in dark mode */
.image-container figcaption,
.image-container .muted {
  color: var(--muted);
  transition: color .25s ease;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

figcaption {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.axis-label-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

.axis-label-x {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .image-container figcaption,
[data-theme="dark"] .image-container .muted {
  color: #4B5563;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .image-container figcaption,
  :root:not([data-theme]) .image-container .muted {
    color: #4B5563;
  }
}

/* SVG enhancements for dark mode visibility */
svg line[stroke="var(--muted)"],
svg polyline[stroke="var(--muted)"] {
  transition: stroke .25s ease;
}

[data-theme="dark"] svg line[stroke="var(--muted)"],
[data-theme="dark"] svg polyline[stroke="var(--muted)"] {
  stroke: color-mix(in oklab, #93C5FD 60%, var(--muted) 40%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) svg line[stroke="var(--muted)"],
  :root:not([data-theme]) svg polyline[stroke="var(--muted)"] {
    stroke: color-mix(in oklab, #93C5FD 60%, var(--muted) 40%);
  }
}

.site-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex: 1 1 auto; min-width: 0 }
.site-header .nav-links { display: flex; align-items: center; gap: 1rem; min-width: 0 }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: 13px; color: var(--text); opacity: .9; white-space: nowrap }
.site-header nav a:hover { color: var(--indigo) }
.site-header nav a.nav-active {
  color: var(--indigo);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-header nav a.btn.nav-active {
  border-color: var(--indigo);
  color: var(--indigo);
  text-decoration: none;
}
.site-header nav a.btn-primary.nav-active {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--indigo) 45%, transparent);
}
.site-header nav button { flex-shrink: 0 }
.btn         { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 8px; font-weight: 700; font-size: 12px; text-decoration: none; cursor: pointer; white-space: nowrap; line-height: 1.2; font-family: inherit }
.btn-primary { background: var(--saffron); color: #111 }
.btn-outline { border: 2px solid var(--border); color: var(--text); background: transparent }
.btn-dark-active { border-color: var(--indigo); color: var(--indigo) }
.btn-link    { color: var(--indigo); background: transparent; border: 0; padding: 0 }
.btn-nav-cta { margin-left: 0 }

/* ── Hero ── */
.hero { padding: 72px 0 24px; background: linear-gradient(180deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%) }
.hero h1    { font-size: 44px; line-height: 1.15; color: var(--indigo); margin: 0 0 12px }
.hero .sub  { font-size: 18px; color: var(--muted); max-width: 720px }
.cta-group  { margin: 18px 0 8px }
.cta-group .btn { margin-right: 12px }
.value-bullets {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin: 20px 0 0; padding: 0; list-style: none;
}
.value-bullets li { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px }

/* ── Sections ── */
.section     { padding: 56px 0 }
.section.alt { background: color-mix(in oklab, var(--bg) 94%, var(--surface) 6%) }
.section h2  { font-size: 28px; margin: 0 0 18px; color: var(--text) }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.card  { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px }
.card h3 { margin: 0 0 8px; color: var(--text) }
.card p  { margin: 0; color: var(--muted) }

/* ── Outcomes ── */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px }
.metric  { background: var(--bg); border: 1px dashed var(--card-border); border-radius: 14px; padding: 18px; text-align: center }
.metric .num   { font-size: 34px; font-weight: 800; color: var(--indigo) }
.metric .label { color: var(--muted); margin-top: 4px }

/* ── Approach diagram wrapper (original page) ── */
.diagram { border: 1px solid var(--card-border); border-radius: 14px; background: var(--bg); max-width: 460px; margin: 0 auto; padding: 0 12px }

/* ── Contact ── */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.contact-form label { display: flex; flex-direction: column; font-weight: 600; color: var(--text) }
.contact-form input,
.contact-form textarea { margin-top: 6px; padding: 10px; border-radius: 10px; border: 1px solid var(--card-border); font: inherit; background: var(--bg); color: var(--text) }
.contact-form textarea { grid-column: 1 / span 2 }
.fineprint { grid-column: 1 / span 2; color: var(--muted); margin-top: 8px }

/* ── Footer ── */
.site-footer  { border-top: 1px solid var(--border); background: var(--bg) }
.footer-inner { display: flex; justify-content: space-between; padding: 18px 0; color: var(--muted) }

/* ── Transitions ── */
html, body,
.site-header, .site-footer,
.card, .metric, .diagram,
.split-panel, .panel-title, .diagram-wrap,
.zone-table td, .zone-tag,
.ebitda-card, .footnote {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

/* ============================================================
   APPROACH PAGE — split panel
   ============================================================ */

.approach-intro   { text-align: center; padding: 48px 0 40px }
.approach-intro h2 { font-size: 30px; margin: 0 0 10px; color: var(--indigo) }
.approach-intro p  { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 auto }

.ebitda-badge {
  display: inline-block;
  background: var(--saffron); color: #111;
  font-weight: 800; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 14px;
}

/* Two-column container */
.split-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--card-border);
  border-radius: 20px; overflow: hidden;
  background: var(--card-bg);
}

/* Shared panel header — uses --panel-navy so it NEVER flips light */
.panel-title {
  padding: 16px 20px 13px;
  font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #fff;
  background: var(--panel-navy);
}
.panel-right .panel-title { background: var(--panel-navy-sub) }

/* Left panel */
.panel-left { border-right: 1px solid var(--card-border); display: flex; flex-direction: column }

/* Zone table */
.zone-table { width: 100%; border-collapse: collapse; font-size: .8rem; flex: 1 }
.zone-table thead th {
  background: color-mix(in oklab, var(--panel-navy) 80%, black 20%);
  color: #fff; font-weight: 700; font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; text-align: left;
}
.zone-table tbody tr         { border-bottom: 1px solid var(--card-border); transition: background .15s }
.zone-table tbody tr:last-child  { border-bottom: none }
.zone-table tbody tr:nth-child(even) { background: var(--zone-stripe) }
.zone-table tbody tr:hover   { background: var(--zone-hover) }
.zone-table td { padding: 11px 14px; vertical-align: top }
.zone-table td:first-child   { font-weight: 700; color: var(--text); width: 40%; border-right: 1px solid var(--card-border) }
.zone-table td:last-child    { color: var(--muted); line-height: 1.5; font-size: .76rem }

.zone-tag {
  display: block; width: fit-content;
  background: color-mix(in oklab, var(--saffron) 22%, transparent);
  color: color-mix(in oklab, var(--saffron) 55%, black 45%);
  font-size: 9px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 5px; margin-bottom: 4px;
}
[data-theme="dark"] .zone-tag {
  color: var(--saffron);
  background: color-mix(in oklab, var(--saffron) 15%, transparent);
}
.zone-name { font-size: .78rem; line-height: 1.35; display: block }

/* Right panel */
.panel-right  { display: flex; flex-direction: column; align-items: stretch }
.diagram-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 10px 20px; background: var(--card-bg) }
.diagram-wrap svg { width: 100%; height: auto; max-width: 440px }

/* EBITDA cards */
.ebitda-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px }
.ebitda-card  { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px 16px; border-top: 3px solid var(--saffron) }
.ebitda-card .e-icon { font-size: 20px; margin-bottom: 7px }
.ebitda-card h4 { margin: 0 0 5px; font-size: 13px; color: var(--text) }
.ebitda-card p  { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55 }

.footnote { text-align: center; font-size: 11px; color: var(--muted); margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--card-border) }

/* ── Utility classes ── */
.hero-subtitle { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px }
.text-max-width { max-width: 880px }
.text-center { text-align: center }
.text-max-width-centered { max-width: 760px; margin: 0 auto }
.mt-lg { margin-top: 18px }
.mt-sm { margin-top: 14px }
.cta-spacing { margin-top: 22px }

/* ── Responsive ── */
@media (max-width: 860px) {
  .cards, .metrics, .value-bullets { grid-template-columns: 1fr }
  .contact-form  { grid-template-columns: 1fr }
  .hero h1       { font-size: 36px }
  .split-panel   { grid-template-columns: 1fr }
  .panel-left    { border-right: none; border-bottom: 1px solid var(--card-border) }
  .ebitda-strip  { grid-template-columns: 1fr }
}

/* ============================================================
   XEnQuad — force the quadrant cards into a true 2×2 grid
   Apply by adding class='quad-grid' to the quadrant .cards container
   ============================================================ */
.cards.quad-grid {
  /* overrides default .cards (3-up) */
  grid-template-columns: repeat(2, 1fr);
}


/* ============================================================
   TTEA (Time-to-Effective-Action) metric cards
   Responsive auto-fit grid that adapts to device width
   Usage: <div class="metrics TTEA-grid"> ...
   ============================================================ */
.metrics.TTEA-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* ============================================================
   XEnQuad additions (optional)
   Keep small: this file extends the shared styles.css without changing tokens.
   ============================================================ */

/* Quadrant cards: add a subtle, theme-safe accent */
.quad-card { border-top: 4px solid var(--card-border); }
.quad-card.q1 { border-top-color: #EF4444; }
.quad-card.q2 { border-top-color: #3B82F6; }
.quad-card.q3 { border-top-color: #F59E0B; }
.quad-card.q4 { border-top-color: #22C55E; }

/* Improve svg text rendering */
.diagram-wrap svg text { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ============================================================
   OUTCOMES PAGE — Executive Role Switcher
   ============================================================ */

/* Executive Toggle Switch */
.role-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.role-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.role-btn:hover { color: var(--text); border-color: var(--indigo); }

/* Active State Logic */
.role-btn.active-ceo { 
  background: var(--indigo); color: white; border-color: var(--indigo); 
  box-shadow: 0 4px 12px rgba(23, 59, 109, 0.25);
}
.role-btn.active-coo { 
  background: var(--rose); color: white; border-color: var(--rose); 
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.role-btn.active-cfo { 
  background: var(--teal); color: white; border-color: var(--teal); 
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.role-btn.active-cio { 
  background: var(--saffron); color: #111; border-color: var(--saffron); 
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.25);
}
.role-btn.active-cso { 
  background: #22C55E; color: white; border-color: #22C55E; 
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

/* Content Visibility Logic */
.exec-view { display: none; animation: fadeIn 0.4s ease; }
.exec-view.active { display: block; }

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

/* Outcome Card Specifics */
.outcome-card {
  border-top: 4px solid var(--card-border);
  margin-bottom: 24px;
  position: relative;
}
.outcome-card.ceo-mode { border-top-color: var(--indigo); }
.outcome-card.coo-mode { border-top-color: var(--rose); }
.outcome-card.cfo-mode { border-top-color: var(--teal); }
.outcome-card.cio-mode { border-top-color: var(--saffron); }
.outcome-card.cso-mode { border-top-color: #22C55E; }

.kpi-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ceo-kpi { background: color-mix(in oklab, var(--indigo) 15%, transparent); color: var(--indigo); }
.coo-kpi { background: color-mix(in oklab, var(--rose) 15%, transparent); color: var(--rose); }
.cfo-kpi { background: color-mix(in oklab, var(--teal) 15%, transparent); color: var(--teal); }
.cio-kpi { background: color-mix(in oklab, var(--saffron) 15%, transparent); color: var(--saffron); }
.cso-kpi { background: color-mix(in oklab, #22C55E 15%, transparent); color: #22C55E; }

/* XEnQuad Matrix Styling */
.quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 860px) {
  .quad-grid { grid-template-columns: 1fr; }
}

/* Metric Row */
.metrics-outcome {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.metric-box {
  flex: 1;
  min-width: 150px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.metric-num { font-size: 24px; font-weight: 800; display: block; margin-bottom: 4px; }
.metric-label { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* TTEA Progression */
.ttea-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
  padding: 16px;
  background: var(--surface);
  border-radius: 12px;
  border-left: 4px solid var(--border);
}
.ttea-step { text-align: center; flex: 1; }
.ttea-val { font-weight: 800; color: var(--text); }
.ttea-sub { font-size: 12px; color: var(--muted); }

/* Home page utility classes */
.hero-subtitle { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px }
.intro-text { max-width: 780px; margin: 0 auto }
.text-max-width { max-width: 880px }
.text-center { text-align: center }
.text-max-width-centered { max-width: 760px; margin: 0 auto }
.mt-lg { margin-top: 18px }
.mt-sm { margin-top: 14px }
.cta-spacing { margin-top: 22px }

/* Outcomes page utility classes */
.btn-label-small { font-size: 10px; opacity: 0.8 }
.metrics-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px }
.metric-box-rose { border-top: 3px solid var(--rose) }
.metric-box-teal { border-top: 3px solid var(--teal) }
.metric-box-saffron { border-top: 3px solid var(--saffron) }
.metric-box-green { border-top: 4px solid #22C55E }
.color-rose { color: var(--rose) }
.color-teal { color: var(--teal) }
.color-saffron { color: var(--saffron) }
.color-green { color: #22C55E }
.card-surface-teal { background: var(--surface); border-top: 3px solid var(--teal) }
.card-surface-saffron { background: var(--surface); border-top: 3px solid var(--saffron) }
.card-surface-green { background: var(--surface); border-top: 4px solid #22C55E }
.phase-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px }
.phase-number { font-size: 36px; flex-shrink: 0 }
.phase-title-block { flex: 1 }
.phase-subtitle { font-size: 14px; color: var(--muted); margin-top: 4px }
.pro-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 18px }
.pro-card h3 { margin: 8px 0 8px 0; color: var(--text) }
.pro-card p { margin: 0 0 12px 0; color: var(--muted) }
.pro-card ul { margin: 0; padding-left: 20px; color: var(--muted) }
.pro-card li { margin: 4px 0 }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 16px }

/* ============================================================
   HAMBURGER MENU & RESPONSIVE NAVIGATION
   Adds support for collapsing nav links on mobile
   ============================================================ */

/* Hamburger Icon (Hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  color: var(--text); /* Inherits text color */
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Container for actions (CTA + Theme Toggle) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Desktop Default: Links are inline */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 1;
}

/* Responsive Breakpoint (Adjust 900px as needed) */
@media (max-width: 900px) {
  /* Show Hamburger */
  .hamburger {
    display: flex;
    order: 3; /* Far right */
    margin-left: auto;
  }

  /* Hide standard nav links initially */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 80vw; /* Slide in panel width */
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(-100%); /* Hidden off-screen */
    transition: transform 0.3s ease-in-out;
    padding: 88px 24px 24px;
    overflow-y: auto;
  }

  /* Class to show menu (added by JS) */
  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.25rem;
    text-decoration: none;
    padding: 8px 0;
    margin: 0;
  }

  /* Keep Actions visible on mobile header */
  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  /* Flex layout for header container */
  .nav {
    flex-wrap: nowrap;
    min-height: 64px;
    gap: 10px;
  }

  .site-header nav {
    gap: 0.5rem;
  }

  .btn-nav-cta {
    display: none;
  }

  .btn-outline {
    padding: 6px 10px;
  }

  /* Animate Hamburger to X when active */
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 560px) {
  .site-header .container {
    padding: 0 14px;
  }

  .logo-img {
    height: 28px;
  }

  .btn-outline {
    font-size: 11px;
  }

  .nav-links {
    max-width: 100vw;
  }
}

/* Ensure buttons stay clickable over the open menu if needed */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1002; /* Higher than menu to keep header accessible */
}

