/* ═══════════════════════════════════════════════════════════════
   ConciergeDocTools Design System
   Luxury Editorial Magazine Aesthetic for Concierge Medicine
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */
:root {
  /* Core palette */
  --charcoal: #1a1a1a;
  --charcoal-light: #242424;
  --charcoal-mid: #2a2a2a;
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --cream-dark: #ede5d8;
  --gold: #c9a96e;
  --gold-light: #d4ba85;
  --gold-dark: #b08f52;
  --warm-white: #ede8df;
  --taupe: #8a7e74;
  --taupe-light: #a49a90;
  --burgundy: #7c2d36;
  --burgundy-light: #963845;
  --burgundy-dark: #5e1f28;

  /* Functional colors */
  --text-dark: #1a1a1a;
  --text-light: #ede8df;
  --text-muted-dark: #5a5550;
  --text-muted-light: #a49a90;
  --border-gold: rgba(201, 169, 110, 0.3);
  --border-gold-solid: #c9a96e;
  --bg-dark: #1a1a1a;
  --bg-cream: #f5f0e8;
  --bg-overlay: rgba(26, 26, 26, 0.7);

  /* Typography */
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Libre Baskerville", Georgia, serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Mono", monospace;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 860px;
  --container-wide: 1400px;
  --nav-height: 72px;

  /* Transitions */
  --ease-elegant: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.2s var(--ease-elegant);
  --transition-medium: 0.4s var(--ease-elegant);
  --transition-slow: 0.6s var(--ease-elegant);

  /* Shadows */
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 2px 16px rgba(201, 169, 110, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: hidden;
}

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

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--burgundy);
}

::selection {
  background-color: var(--gold);
  color: var(--charcoal);
}

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark a {
  color: var(--gold);
}

.section-dark a:hover {
  color: var(--gold-light);
}

.section-cream {
  background-color: var(--bg-cream);
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gold);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--taupe);
  max-width: 680px;
  margin: var(--space-lg) auto 0;
}

.section-dark .section-subtitle {
  color: var(--taupe-light);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-3xl);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  height: var(--nav-height);
  transition: background-color var(--transition-medium);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--warm-white);
}

.nav-brand:hover {
  color: var(--gold);
}

.nav-brand-mark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  border: 1px solid var(--gold);
  padding: 2px 8px;
  line-height: 1.3;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--taupe-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.nav-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--warm-white);
  transition: all var(--transition-fast);
}

/* ─── Hero Sections ──────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--warm-white);
  overflow: hidden;
}

.hero-home {
  min-height: 100vh;
  background: linear-gradient(170deg, #1a1a1a 0%, #2a2222 40%, #1a1a1a 100%);
}

.hero-page {
  min-height: 55vh;
  padding-top: var(--nav-height);
  background: linear-gradient(170deg, #1a1a1a 0%, #252020 60%, #1a1a1a 100%);
}

.hero-review {
  min-height: 50vh;
  padding-top: var(--nav-height);
  background: linear-gradient(170deg, #1a1a1a 0%, #20221a 50%, #1a1a1a 100%);
}

.hero-guide {
  min-height: 50vh;
  padding-top: var(--nav-height);
  background: linear-gradient(170deg, #1a1a1a 0%, #1a1e22 50%, #1a1a1a 100%);
}

.hero-compact {
  min-height: 40vh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(26, 26, 26, 0.4) 100%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(124, 45, 54, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: var(--space-4xl) var(--space-xl);
}

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  color: var(--warm-white);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--taupe-light);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero-score-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-score-max {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--taupe-light);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--taupe-light);
}

.meta-sep {
  color: var(--gold);
  opacity: 0.5;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 14px 32px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--charcoal);
}

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--charcoal);
}

.section-cream .btn-outline {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.section-cream .btn-outline:hover {
  background-color: var(--gold-dark);
  color: var(--cream);
}

.btn-sm {
  font-size: 0.7rem;
  padding: 10px 22px;
  background: transparent;
  color: var(--gold-dark);
  border: 1px solid var(--gold-dark);
}

.btn-sm:hover {
  background-color: var(--gold-dark);
  color: var(--cream);
}

.btn-full {
  display: block;
  text-align: center;
  width: 100%;
}

/* ─── Review Cards (Home/Index) ──────────────────────────────── */
.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.review-card {
  background-color: var(--charcoal-mid);
  border: 1px solid var(--border-gold);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-medium);
}

.review-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.review-card-rank {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  line-height: 1;
}

.review-card-body h3 {
  margin-bottom: var(--space-sm);
}

.review-card-body h3 a {
  color: var(--warm-white);
  text-decoration: none;
}

.review-card-body h3 a:hover {
  color: var(--gold);
}

.review-card-tagline {
  font-size: 0.9rem;
  color: var(--taupe-light);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.review-card-score {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.score-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.score-max {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--taupe-light);
}

.review-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--burgundy);
  background-color: rgba(124, 45, 54, 0.12);
  border: 1px solid rgba(124, 45, 54, 0.3);
  padding: 4px 12px;
  border-radius: 0;
}

.section-cream .review-badge {
  background-color: rgba(124, 45, 54, 0.08);
}

.review-badge-lg {
  font-size: 0.75rem;
  padding: 6px 16px;
  color: var(--gold);
  background-color: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.4);
}

/* ─── Review List (Reviews Index) ────────────────────────────── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.review-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.review-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-list-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-sm);
}

.rank-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.rank-score {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--taupe);
  margin-top: var(--space-xs);
}

.review-list-body h2 {
  margin-bottom: var(--space-xs);
}

.review-list-body h2 a {
  color: var(--text-dark);
  text-decoration: none;
}

.review-list-body h2 a:hover {
  color: var(--burgundy);
}

.review-list-tagline {
  font-size: 0.95rem;
  color: var(--taupe);
  margin-bottom: var(--space-lg);
}

.review-list-scores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mini-score {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--taupe);
  flex: 0 0 auto;
}

.mini-score .score-bar {
  width: 80px;
}

.review-list-pros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.pro-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  background-color: rgba(201, 169, 110, 0.1);
  padding: 4px 10px;
  border: 1px solid rgba(201, 169, 110, 0.15);
}

/* ─── Score Bars ─────────────────────────────────────────────── */
.score-bar {
  height: 4px;
  background-color: rgba(201, 169, 110, 0.15);
  border-radius: 2px;
  overflow: hidden;
  flex: 1;
  min-width: 60px;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 2px;
  transition: width 1s var(--ease-elegant);
}

/* ─── Star Ratings ───────────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star {
  font-size: 1rem;
  line-height: 1;
}

.star-full {
  color: var(--gold);
}

.star-half {
  color: var(--gold);
  opacity: 0.5;
}

.star-empty {
  color: var(--taupe);
  opacity: 0.3;
}

/* ─── Review Detail Page ─────────────────────────────────────── */
.container-review {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-4xl);
  max-width: var(--container-wide);
}

.review-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.sidebar-card {
  background-color: var(--cream-light);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: var(--space-xl);
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--taupe);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-gold);
}

.detail-scores {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.detail-score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: center;
}

.detail-score-label {
  font-size: 0.8rem;
  color: var(--taupe);
  grid-column: 1 / -1;
}

.detail-score-row .score-bar {
  grid-column: 1;
}

.detail-score-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-align: right;
  min-width: 30px;
}

.pros-list,
.cons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pros-list li,
.cons-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  padding-left: var(--space-lg);
  position: relative;
}

.pros-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.cons-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--taupe);
  font-weight: 400;
}

.review-content {
  min-width: 0;
}

.review-prose p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5em;
  color: var(--text-dark);
}

.review-prose p:first-child::first-letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.08em;
  margin-top: 0.1em;
  color: var(--burgundy);
}

/* ─── Guide Cards ────────────────────────────────────────────── */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.guide-card {
  padding: var(--space-2xl);
  border: 1px solid var(--border-gold);
  transition: all var(--transition-medium);
}

.section-dark .guide-card {
  background-color: var(--charcoal-mid);
}

.section-cream .guide-card {
  background-color: var(--cream-light);
  border-color: rgba(201, 169, 110, 0.2);
}

.guide-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.guide-card-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.guide-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.guide-card h3 a {
  text-decoration: none;
}

.section-dark .guide-card h3 a {
  color: var(--warm-white);
}

.section-dark .guide-card h3 a:hover {
  color: var(--gold);
}

.section-cream .guide-card h3 a {
  color: var(--text-dark);
}

.section-cream .guide-card h3 a:hover {
  color: var(--burgundy);
}

.guide-card-meta {
  font-size: 0.8rem;
  color: var(--taupe-light);
}

/* ─── Guide List (Index) ─────────────────────────────────────── */
.guide-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.guide-list-item {
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.guide-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.guide-list-item h2 {
  margin-bottom: var(--space-sm);
}

.guide-list-item h2 a {
  color: var(--text-dark);
}

.guide-list-item h2 a:hover {
  color: var(--burgundy);
}

.guide-list-subtitle {
  font-size: 1rem;
  color: var(--taupe);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.guide-list-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--taupe);
  margin-bottom: var(--space-lg);
}

/* ─── Guide Detail Page ──────────────────────────────────────── */
.container-guide {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-4xl);
  max-width: var(--container-wide);
}

.guide-sidebar {
  position: relative;
}

.toc-card {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
}

.toc {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toc-link {
  font-size: 0.8rem;
  color: var(--taupe);
  text-decoration: none;
  padding: var(--space-xs) 0;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: var(--space-md);
  transition: all var(--transition-fast);
}

.toc-link:hover,
.toc-link.active {
  color: var(--gold-dark);
  border-left-color: var(--gold);
}

.guide-content {
  min-width: 0;
}

.guide-prose h2 {
  margin-bottom: var(--space-xl);
  color: var(--burgundy);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.guide-prose p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5em;
}

.guide-section {
  margin-bottom: var(--space-2xl);
}

.guide-divider {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin: var(--space-3xl) 0;
  opacity: 0.4;
}

/* ─── Communication Page ─────────────────────────────────────── */
.comm-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.comm-card {
  background-color: var(--cream-light);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: var(--space-2xl);
}

.comm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.comm-card-header h2 {
  font-size: 1.5rem;
}

.comm-card-score .score-number {
  font-size: 2rem;
}

.comm-type-badge {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--taupe);
  border: 1px solid rgba(138, 126, 116, 0.3);
  padding: 3px 10px;
  margin-bottom: var(--space-lg);
}

.comm-card-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted-dark);
}

.comm-card-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.comm-card-lists h4 {
  font-size: 0.75rem;
  margin-bottom: var(--space-md);
  color: var(--taupe);
}

.comm-ideal {
  font-size: 0.9rem;
  color: var(--taupe);
  font-style: italic;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

/* ─── Calculator ─────────────────────────────────────────────── */
.calculator-container {
  background-color: var(--cream-light);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: var(--space-3xl);
}

.calc-inputs {
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.calc-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.calc-group input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 169, 110, 0.2) 100%);
  border-radius: 2px;
  outline: none;
  margin: var(--space-md) 0;
}

.calc-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--gold);
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-group input[type="range"]::-webkit-slider-thumb:hover {
  background-color: var(--gold-dark);
  transform: scale(1.15);
}

.calc-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: var(--gold);
  border: 2px solid var(--charcoal);
  border-radius: 50%;
  cursor: pointer;
}

.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--taupe);
}

.calc-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.calc-result-card {
  background-color: var(--cream);
  border: 1px solid rgba(201, 169, 110, 0.15);
  padding: var(--space-xl);
  text-align: center;
}

.calc-result-card.calc-highlight {
  background-color: var(--charcoal);
  border-color: var(--gold);
}

.calc-result-card.calc-highlight .calc-result-label {
  color: var(--taupe-light);
}

.calc-result-card.calc-highlight .calc-result-value {
  color: var(--gold);
}

.calc-result-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--taupe);
  margin-bottom: var(--space-sm);
}

.calc-result-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.calc-note {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.calc-note p {
  font-size: 0.8rem;
  color: var(--taupe);
  line-height: 1.6;
  font-style: italic;
}

/* ─── Feature Grid (Home) ────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-2xl);
}

.feature-item {
  padding: var(--space-2xl);
  border: 1px solid rgba(201, 169, 110, 0.15);
  background-color: var(--cream-light);
  transition: all var(--transition-medium);
}

.feature-item:hover {
  border-color: rgba(201, 169, 110, 0.4);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  background-color: rgba(201, 169, 110, 0.05);
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.feature-item p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--taupe);
}

/* ─── Scoring Methodology Box ────────────────────────────────── */
.scoring-methodology {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
  padding: var(--space-2xl);
  border: 1px solid var(--border-gold);
}

.scoring-methodology h3 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.scoring-methodology p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--taupe-light);
}

/* ─── Editorial Block ────────────────────────────────────────── */
.editorial-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.editorial-block h2 {
  margin-bottom: var(--space-xl);
}

.editorial-block p {
  font-size: 1rem;
  line-height: 1.85;
}

.section-dark .editorial-block p {
  color: var(--taupe-light);
}

/* ─── About Content ──────────────────────────────────────────── */
.about-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  color: var(--burgundy);
  font-size: 1.75rem;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 1.02rem;
  line-height: 1.85;
}

/* ─── Legal Content ──────────────────────────────────────────── */
.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.35rem;
  color: var(--burgundy);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted-dark);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--charcoal);
  color: var(--taupe-light);
  padding: var(--space-5xl) 0 var(--space-2xl);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.footer-brand {
  margin-bottom: var(--space-3xl);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--taupe);
  max-width: 400px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--taupe-light);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--taupe);
  margin: 0;
}

.footer-disclaimer {
  font-style: italic;
}

/* ─── Parallax-feel backgrounds (CSS only) ───────────────────── */
.hero-home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, transparent 25%, rgba(201, 169, 110, 0.02) 25%, rgba(201, 169, 110, 0.02) 50%, transparent 50%, transparent 75%, rgba(201, 169, 110, 0.02) 75%);
  background-size: 60px 60px;
  pointer-events: none;
  animation: subtleShift 30s linear infinite;
}

@keyframes subtleShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Parallax-like fixed background sections */
.section-dark::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0.015;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 100px,
      rgba(201, 169, 110, 1) 100px,
      rgba(201, 169, 110, 1) 101px
    );
}

.section-dark {
  position: relative;
}

/* ─── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease-elegant) forwards;
  opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }
.animate-in:nth-child(6) { animation-delay: 0.5s; }

/* ─── Scroll reveal (JS adds .is-visible) ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-elegant), transform 0.7s var(--ease-elegant);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile Menu Active State ───────────────────────────────── */
.nav-links.nav-open {
  display: flex;
}

/* ─── Responsive: Tablet ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .container-review {
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
  }

  .container-guide {
    grid-template-columns: 200px 1fr;
    gap: var(--space-2xl);
  }

  .review-list-item {
    grid-template-columns: 90px 1fr;
    gap: var(--space-lg);
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
  }

  .comm-card-lists {
    grid-template-columns: 1fr;
  }
}

/* ─── Responsive: Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    z-index: 999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-link {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  .nav-brand-name {
    font-size: 1rem;
  }

  .hero-home {
    min-height: 90vh;
  }

  .hero-page {
    min-height: 45vh;
  }

  .hero-content {
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .hero-score-number {
    font-size: 3.5rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .container-review {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .review-sidebar {
    order: -1;
  }

  .container-guide {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .guide-sidebar {
    display: none;
  }

  .review-list-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .review-list-rank {
    flex-direction: row;
    gap: var(--space-md);
    align-items: baseline;
  }

  .rank-number {
    font-size: 2rem;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .section-cta {
    flex-direction: column;
    align-items: center;
  }

  .calc-results {
    grid-template-columns: 1fr 1fr;
  }

  .calculator-container {
    padding: var(--space-xl);
  }

  .comm-card {
    padding: var(--space-xl);
  }

  .comm-card-header {
    flex-direction: column;
  }

  .review-list-scores {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .mini-score {
    flex-wrap: nowrap;
  }

  .mini-score .score-bar {
    width: 100px;
  }

  .review-prose p:first-child::first-letter {
    font-size: 2.8rem;
  }
}

/* ─── Responsive: Small Mobile ───────────────────────────────── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .calc-results {
    grid-template-columns: 1fr;
  }

  .calc-result-value {
    font-size: 1.4rem;
  }

  .review-card {
    padding: var(--space-xl);
  }

  .score-number {
    font-size: 2rem;
  }

  .hero-score-number {
    font-size: 2.75rem;
  }

  .review-card-rank {
    font-size: 2rem;
  }

  .sidebar-card {
    padding: var(--space-lg);
  }
}

/* ─── Print Styles ───────────────────────────────────────────── */
@media print {
  .site-nav,
  .site-footer,
  .hero-actions,
  .section-cta,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .hero {
    min-height: auto;
    background: #fff !important;
    color: #000;
    padding: 2em 0;
  }

  .hero-label,
  .hero-subtitle {
    color: #666;
  }

  .hero-title {
    color: #000;
  }

  .section {
    padding: 2em 0;
    background: #fff !important;
    color: #000 !important;
  }

  .section-dark {
    color: #000 !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ─── Focus & Accessibility ──────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Dark Mode Support (for cream sections) ─────────────────── */
@media (prefers-color-scheme: dark) {
  /* The site is already dark-dominant, so minimal adjustments needed */
  .section-cream {
    background-color: #1e1e1e;
    color: var(--warm-white);
  }

  .section-cream h2,
  .section-cream h3 {
    color: var(--warm-white);
  }

  .section-cream p {
    color: var(--taupe-light);
  }

  .review-list-body h2 a,
  .guide-list-item h2 a,
  .section-cream .guide-card h3 a {
    color: var(--warm-white);
  }

  .review-list-body h2 a:hover,
  .guide-list-item h2 a:hover,
  .section-cream .guide-card h3 a:hover {
    color: var(--gold);
  }

  .sidebar-card {
    background-color: var(--charcoal-mid);
    border-color: var(--border-gold);
  }

  .sidebar-card h3 {
    color: var(--gold);
  }

  .feature-item,
  .comm-card,
  .calculator-container,
  .section-cream .guide-card {
    background-color: var(--charcoal-mid);
    border-color: var(--border-gold);
    color: var(--warm-white);
  }

  .feature-item h3 {
    color: var(--warm-white);
  }

  .feature-item p,
  .comm-card-body p {
    color: var(--taupe-light);
  }

  .review-prose p {
    color: var(--warm-white);
  }

  .review-prose p:first-child::first-letter {
    color: var(--gold);
  }

  .guide-prose p {
    color: var(--warm-white);
  }

  .guide-prose h2 {
    color: var(--gold);
  }

  .about-content h2,
  .legal-content h2 {
    color: var(--gold);
  }

  .legal-content p {
    color: var(--taupe-light);
  }

  .calc-result-card {
    background-color: var(--charcoal-light);
    border-color: var(--border-gold);
  }

  .calc-result-card .calc-result-value {
    color: var(--warm-white);
  }

  .pro-tag {
    color: var(--warm-white);
    background-color: rgba(201, 169, 110, 0.08);
  }

  .rank-number,
  .rank-score {
    color: var(--gold);
  }

  .review-list-tagline,
  .guide-list-subtitle,
  .guide-list-meta,
  .review-list-scores .mini-score {
    color: var(--taupe-light);
  }

  .review-badge {
    color: var(--gold);
    background-color: rgba(201, 169, 110, 0.1);
    border-color: rgba(201, 169, 110, 0.3);
  }

  .comm-ideal {
    color: var(--taupe-light);
  }

  .calc-group label {
    color: var(--warm-white);
  }

  .calc-note p {
    color: var(--taupe-light);
  }

  .hero {
    background: linear-gradient(170deg, #111 0%, #1a1a1a 100%);
  }
}

/* ─── Elegant Horizontal Rules ───────────────────────────────── */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: var(--space-3xl) 0;
  opacity: 0.4;
}

/* ─── Blockquote Styling ─────────────────────────────────────── */
blockquote {
  border-left: 2px solid var(--gold);
  padding-left: var(--space-xl);
  margin: var(--space-2xl) 0;
  font-style: italic;
  color: var(--taupe);
}

blockquote p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ─── Table Styling (for future use) ─────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2xl) 0;
  font-size: 0.9rem;
}

th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--gold);
}

td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  color: var(--taupe);
}

tr:hover td {
  background-color: rgba(201, 169, 110, 0.03);
}

/* ─── Selection & Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
  background: var(--taupe);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ─── Loading Skeleton (for future dynamic content) ──────────── */
.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, var(--cream) 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 2px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── Tooltip (for future use) ───────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background-color: var(--charcoal);
  color: var(--warm-white);
  font-size: 0.75rem;
  padding: 6px 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  border: 1px solid var(--border-gold);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ─── Badge Variants ─────────────────────────────────────────── */
.badge-gold {
  background-color: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  display: inline-block;
}

.badge-burgundy {
  background-color: rgba(124, 45, 54, 0.12);
  border: 1px solid rgba(124, 45, 54, 0.3);
  color: var(--burgundy);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  display: inline-block;
}

/* ─── Nav scroll shadow enhancement ──────────────────────────── */
.site-nav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(201, 169, 110, 0.25);
}

/* ─── Content Image Placeholders (editorial style) ───────────── */
.editorial-image {
  margin: var(--space-2xl) 0;
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: var(--space-sm);
  background-color: var(--cream-light);
}

.editorial-image img {
  width: 100%;
  display: block;
}

.editorial-image figcaption {
  font-size: 0.75rem;
  color: var(--taupe);
  padding: var(--space-sm) var(--space-sm) 0;
  font-style: italic;
  text-align: center;
}

/* ─── Gold accent line decorations ───────────────────────────── */
.gold-line {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin: var(--space-xl) auto;
}

.gold-line-left {
  width: 60px;
  height: 1px;
  background-color: var(--gold);
  margin: var(--space-xl) 0;
}

/* ─── Smooth transition for page loads ───────────────────────── */
body {
  opacity: 0;
  animation: bodyFadeIn 0.4s ease forwards;
}

@keyframes bodyFadeIn {
  to {
    opacity: 1;
  }
}
