/* ------------------------------
   Base + layout
--------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Spacing tokens */

:root {
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
}

/* Theme variables
   Apply by changing body class: theme-a / theme-b / theme-c
*/

/* THEME A – Dark, Gold, Deep Claret (sandbox) */
body.theme-a {
  --bg: #050814;
  --bg-alt: #0b1220;
  --bg-cta: #020617;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #e4b565;          /* warm gold */
  --primary-contrast: #020617;
  --secondary: #b91c1c;        /* deep claret red */
  --card-bg: #020617;
  --border: #1f2937;
  --header-bg: rgba(5, 8, 20, 0.9);
}

/* THEME B – Sand, Midnight, Brass, Burgundy */
body.theme-b {
  --bg: #f3ede2;
  --bg-alt: #ebe0cf;
  --bg-cta: #111827;
  --text: #111827;
  --muted: #4b5563;
  --primary: #d6af5f;
  --primary-contrast: #111827;
  --secondary: #7b1e3a;
  --card-bg: #ffffff;
  --border: #d2c6b3;
  --header-bg: rgba(243, 237, 226, 0.95);
}

/* THEME C – Light Grey, Deep Navy, Warm Gold, Dark Red */
body.theme-c {
  --bg: #f5f5f7;
  --bg-alt: #e7e7ec;
  --bg-cta: #1f2933;
  --text: #1f2933;
  --muted: #4b5563;
  --primary: #d8a63b;        /* warm gold */
  --primary-contrast: #1f2933;
  --secondary: #721627;      /* dark red */
  --card-bg: #ffffff;
  --border: #d4d4dd;
  --header-bg: rgba(245, 245, 247, 0.95);
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Utility containers */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section-alt {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-alt);
}

.section-global {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 60%, var(--bg-alt) 100%);
  position: relative;
}

.section-global::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(216, 166, 59, 0.18), transparent 55%);
  pointer-events: none;
}

.section-global .card {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.section-cta {
  padding: var(--space-4xl) 0;
  background-color: var(--bg-cta);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(216, 166, 59, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.section-intro {
  max-width: 720px;
  margin: var(--space-md) 0 var(--space-2xl);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.section-alt .section-intro {
  color: var(--muted);
}

.section-footnote {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Section label */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 0;
  background-color: var(--secondary);
}

.section-label-on-dark {
  color: var(--primary);
}

.section-label-on-dark::before {
  background-color: var(--primary);
}

/* Grid */

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Alternating content sections */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-split-image {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.content-split-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.content-split-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

@media (max-width: 968px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .content-split-image {
    height: 300px;
  }
}

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

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

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--primary-contrast);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Nav */

.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--secondary);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  border: 1px solid var(--primary);
  color: var(--primary-contrast);
  background-color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--primary);
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(216, 166, 59, 0.3);
}

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

/* Hero */

.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: var(--bg);
  z-index: 0;
}

.hero-inner {
  display: grid;
  gap: var(--space-3xl);
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
}

.hero h1 {
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero p {
  margin: 0 0 var(--space-md);
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 90%;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: var(--space-xl);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

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

.hero-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 16px 64px rgba(15, 23, 42, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 72px rgba(15, 23, 42, 0.25);
}

/* Highlight text utilities */

.highlight-gold {
  color: var(--primary);
  font-weight: 600;
}

.highlight-red-line {
  border-left: 3px solid var(--secondary);
  padding-left: 0.75rem;
  margin-top: 1rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

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

.btn-primary:hover {
  background-color: var(--primary);
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(216, 166, 59, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-on-dark {
  color: var(--primary-contrast);
}

/* Trust strip */

.trust-strip {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-alt);
  position: relative;
}

.trust-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0.3;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-xl);
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--muted);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* Badges */

.badge {
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.badge-outline {
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--muted);
}

.badge-gold {
  border: 1px solid var(--primary);
  background-color: rgba(216, 166, 59, 0.1);
  color: var(--primary-contrast);
}

/* Cards, lists */

.card {
  background-color: var(--card-bg);
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
  border-color: var(--primary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* Card tags */

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: rgba(216, 166, 59, 0.12);
  color: var(--primary-contrast);
}

.card-tag-outline {
  background-color: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--secondary);
  transition: gap 0.3s ease, color 0.3s ease;
}

.card-link::after {
  content: "→";
  transition: transform 0.3s ease;
}

.card-link:hover {
  color: var(--primary);
  gap: 0.75rem;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.simple-list li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.simple-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* Pill cards */

.pill-card {
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0.9rem 1.2rem;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.pill-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.pill-card-outline {
  border-color: var(--secondary);
}

/* Images */

.card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.02);
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

/* Featured stats section */
.stats-section {
  background: linear-gradient(135deg, var(--bg-cta) 0%, #1a1f2e 100%);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(216, 166, 59, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  position: relative;
  z-index: 1;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 968px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 568px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* CTA section */

.section-cta .btn-primary {
  margin-top: 1rem;
}

.section-cta h2 {
  margin-top: 0.4rem;
  color: #ffffff;
}

.section-cta p {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

.cta-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
  background-color: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Theme switcher (for you, dev only) */

.theme-switcher {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 20;
}

.theme-switcher select {
  font-size: 0.8rem;
}

/* Headings */

h1,
h2,
h3 {
  font-weight: 600;
}

h2 {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  margin: 0 0 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Responsive tweaks */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero::before,
  .hero::after {
    display: none;
  }
  
  .hero-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-alt {
    padding: 4rem 0;
  }
  
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  .hero-inner {
    padding: 2rem 0;
  }
  
  .hero-image {
    height: 300px;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }

  .hero-side {
    order: -1;
  }

  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .content-split {
    grid-template-columns: 1fr;
  }
  
  .content-split-image {
    height: 250px;
  }
}