/* SOFAAB.CAPITAL — Shared Styles — Forerunner palette */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,600&family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design tokens ───────────────────────────────── */
:root {
  /* Dark mode palette (default) */
  --bg:      #141210;
  --card:    #262019;
  --dim2:    #2E2A20;
  --amber:   #2F6B5B;   /* lavender — labels on dark */
  --gold:    #3C7E6C;   /* lime — numbers on dark */
  --white:   #F4F0E6;   /* off-white — primary text on dark */
  --dim:     #A39B86;   /* secondary text on dark */
  --surface: #16140F;
  --red:     #E05555;

  /* Extended palette always available */
  --navy:    #141210;
  --lavender:#2F6B5B;
  --lime:    #3C7E6C;
  --teal:    #2F6B5B;
  --grey:    #C9C2B0;
  --muted:   #6E6757;
  --paper:   #F4F0E6;
  --paper-2: #F1EFE6;
  --offwhite:#F4F0E6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,13,10,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dim2);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
}
.site-nav .logo span { color: var(--lavender); }
.site-nav .logo em {
  color: var(--dim);
  font-weight: 300;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-left: 2px;
}

.site-nav .nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.site-nav .nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.site-nav .nav-links a:hover { color: var(--white); background: var(--dim2); }
.site-nav .nav-links a.active { color: var(--lavender); font-weight: 600; }
.site-nav .nav-links a.cta-advisor {
  background: var(--lime);
  color: #FFFFFF;
  font-weight: 700;
  margin-left: 8px;
  border-radius: 6px;
}
.site-nav .nav-links a.cta-advisor:hover { background: #3C7E6C; }

.page-wrap { padding-top: 56px; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  background: var(--lime);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.18s;
}
.btn-primary:hover { background: #3C7E6C; }

.btn-outline {
  background: none;
  color: var(--lavender);
  border: 1px solid var(--lavender);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}
.btn-outline:hover { background: var(--lavender); color: var(--navy); }

/* ── LABELS ─────────────────────────────────────── */
.section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--amber);   /* lavender on dark, teal on light via override */
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--dim2);
}
.card-amber { border-color: rgba(47,107,91,0.3); }

/* ── PILL ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(47,107,91,0.12);
  color: var(--lavender);
  border: 1px solid rgba(47,107,91,0.3);
}

/* ── FORM ───────────────────────────────────────── */
input[type=text], input[type=email], input[type=tel], textarea, select {
  background: var(--card);
  border: 1px solid var(--dim2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--white);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 100%;
  transition: border-color 0.18s;
}
input:focus, textarea:focus { border-color: var(--lavender); }
input::placeholder, textarea::placeholder { color: var(--dim); }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--dim2);
  padding: 24px 28px;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
}
.site-footer .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.site-footer a { color: var(--lavender); text-decoration: none; }

/* ── RESPONSIVE NAV ─────────────────────────────── */
@media (max-width: 640px) {
  .site-nav { padding: 0 14px; height: 50px; }
  .site-nav .logo { font-size: 17px; letter-spacing: 0.08em; }
  .site-nav .logo em { display: none; }
  .site-nav .nav-links { gap: 2px; }
  .site-nav .nav-links a { font-size: 11px; padding: 5px 7px; }
  .site-nav .nav-links a.cta-advisor { padding: 5px 10px; margin-left: 4px; }
  .page-wrap { padding-top: 50px; }
  .btn-primary { padding: 11px 18px; font-size: 12.5px; }
  .btn-outline { padding: 10px 16px; font-size: 12px; }
}

@media (max-width: 420px) {
  /* Keep BOTH content tabs + the CTA visible — tighten so they all fit */
  .site-nav { padding: 0 10px; }
  .site-nav .logo { font-size: 15px; letter-spacing: 0.03em; }
  .site-nav .nav-links { gap: 1px; }
  .site-nav .nav-links a { font-size: 10px; padding: 4px 5px; }
  .site-nav .nav-links a.cta-advisor { padding: 4px 7px; margin-left: 2px; }
}

@media (max-width: 360px) {
  .site-nav .logo { font-size: 13px; }
  .site-nav .nav-links a { font-size: 9.5px; padding: 3px 4px; }
  .site-nav .nav-links a.cta-advisor { padding: 3px 6px; }
}

/* ── Nav left group ──────────────────────────────── */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Theme toggle button ─────────────────────────── */
.theme-toggle {
  background: none;
  border: 1px solid var(--dim2);
  border-radius: 20px;
  padding: 5px 13px;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  transition: all 0.18s;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--lavender); color: var(--lavender); }

/* ── Light theme overrides ───────────────────────── */
html[data-theme="light"] {
  --bg:      #F4F4F1;
  --card:    #FFFFFF;
  --dim2:    #E4E5E1;   /* neutral grey border */
  --amber:   #2F6B5B;   /* green — labels on light */
  --gold:    #2F6B5B;   /* green — numbers/accent on light */
  --white:   #1E2421;   /* charcoal — primary ink on light */
  --dim:     #6C726C;   /* neutral grey — secondary text */
  --surface: #EEEFEC;   /* light grey surface */
  --red:     #B23B3B;
}

/* Nav in light mode */
html[data-theme="light"] .site-nav {
  background: rgba(255,255,255,0.95);
  border-bottom-color: #E8E1D2;
}
html[data-theme="light"] .site-nav .logo { color: var(--navy); }
html[data-theme="light"] .site-nav .logo span { color: var(--lavender); }
html[data-theme="light"] .site-nav .nav-links a:hover { color: var(--navy); background: #F1EAD9; }
html[data-theme="light"] .site-nav .nav-links a.active { color: var(--teal); }

/* Cover hero — always dark navy in both modes */
html[data-theme="light"] .cover-hero {
  background: linear-gradient(rgba(15,13,10,0.75), rgba(15,13,10,0.75)),
              url('images/store-interiors.jpg') center/cover no-repeat !important;
}
html[data-theme="light"] .cover-hero,
html[data-theme="light"] .cover-hero .cover-tagline,
html[data-theme="light"] .cover-hero .cover-raise,
html[data-theme="light"] .cover-hero .cover-title { color: #F4F0E6 !important; }
html[data-theme="light"] .cover-hero .cover-title span { color: #3C7E6C !important; }
html[data-theme="light"] .cover-hero .section-label { color: #2F6B5B !important; }
html[data-theme="light"] .cover-hero .stat-mini { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.15) !important; }
html[data-theme="light"] .cover-hero .stat-mini .val { color: #3C7E6C !important; }
html[data-theme="light"] .cover-hero .stat-mini .lbl { color: #C9C2B0 !important; }
html[data-theme="light"] .cover-hero .pill { background: rgba(47,107,91,0.18) !important; color: #2F6B5B !important; border-color: rgba(47,107,91,0.35) !important; }

/* Advisor CTA — always dark */
html[data-theme="light"] .advisor-cta {
  background: linear-gradient(135deg, #141210 0%, #262019 100%) !important;
}
html[data-theme="light"] .advisor-cta * { color: #F4F0E6 !important; }
html[data-theme="light"] .advisor-cta .section-label { color: #2F6B5B !important; }

html[data-theme="light"] .catalog-hero {
  background: linear-gradient(135deg, #141210 0%, #262019 100%) !important;
}
html[data-theme="light"] .catalog-hero * { color: #F4F0E6 !important; }

html[data-theme="light"] .advisor-banner {
  background: linear-gradient(135deg, #141210, #262019) !important;
}
html[data-theme="light"] .advisor-banner * { color: #F4F0E6 !important; }

/* Video cards */
html[data-theme="light"] .video-card {
  background: #FFFFFF !important;
  border-color: #E8E1D2 !important;
  box-shadow: 0 1px 4px rgba(80,62,20,0.07);
}
html[data-theme="light"] .video-thumb {
  background: #F4EFE4 !important;
  border-bottom-color: #E8E1D2 !important;
}
html[data-theme="light"] .video-thumb .play-btn { background: var(--teal) !important; }
html[data-theme="light"] .video-card:hover { border-color: var(--teal) !important; }

/* Competition table */
html[data-theme="light"] .comp-table tr:nth-child(even) td { background: rgba(232,225,210,0.35) !important; }
html[data-theme="light"] .comp-table th { background: var(--navy) !important; color: #F4F0E6 !important; }
html[data-theme="light"] .comp-table th.sofaab-col { background: var(--teal) !important; }

/* Vision + ask cards */
html[data-theme="light"] .vision-card.now { background: #FFFFFF !important; border-color: var(--teal) !important; }
html[data-theme="light"] .vision-card.future { background: #FFFFFF !important; }
html[data-theme="light"] .ask-card.secondary { background: #FFFFFF !important; }
html[data-theme="light"] .ask-card.primary { background: rgba(47,107,91,0.1) !important; border-color: var(--teal) !important; }

/* Interest form */
html[data-theme="light"] .interest-form {
  background: #FFFFFF !important;
  border-color: #E8E1D2 !important;
  box-shadow: 0 2px 12px rgba(80,62,20,0.07);
}
html[data-theme="light"] input[type=text],
html[data-theme="light"] input[type=email],
html[data-theme="light"] input[type=tel] {
  background: #F4F0E6;
  border-color: #E8E1D2;
  color: var(--navy);
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus { border-color: var(--teal); }

/* Charts + surfaces */
html[data-theme="light"] .chart-wrap { background: var(--surface) !important; }
html[data-theme="light"] .stat-mini { background: rgba(255,255,255,0.75) !important; }
html[data-theme="light"] .site-footer { background: #FFFFFF; border-top-color: #E8E1D2; }

/* PDF viewer */
html[data-theme="light"] .pdf-container { background: #EFEFEF !important; }
html[data-theme="light"] .pdf-toolbar { background: var(--surface) !important; }

/* Pill in light */
html[data-theme="light"] .pill {
  background: rgba(47,107,91,0.1) !important;
  color: var(--teal) !important;
  border-color: rgba(47,107,91,0.3) !important;
}

/* Timeline dots */
html[data-theme="light"] .timeline-dot { background: var(--teal) !important; }
html[data-theme="light"] .fran-stat { border-top-color: var(--teal) !important; }

/* Donut ring motif for stat callouts */
.donut-stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100px; height: 100px;
  flex-shrink: 0;
}
.donut-stat svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-stat .donut-val {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.donut-stat .donut-lbl {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  position: relative;
  z-index: 1;
  margin-top: 2px;
  text-align: center;
}
