:root {
  --color-bg: #f7f5f2;
  --color-bg-alt: #edeae4;
  --color-surface: #ffffff;
  --color-primary: #1a2f4a;
  --color-primary-light: #2a4568;
  --color-accent: #3d6b5e;
  --color-accent-hover: #2f5549;
  --color-gold: #b8956a;
  --color-gold-light: #d4b896;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-border: #d8d4cc;
  --color-error: #9b3b3b;
  --color-success: #2d6a4f;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26, 47, 74, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 47, 74, 0.12);
  --transition: 0.25s ease;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.logo svg { flex-shrink: 0; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  z-index: 99;
}

.nav-mobile.open { display: block; }

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li { margin-bottom: 0.75rem; }

.nav-mobile a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  display: block;
  padding: 0.375rem 0;
}

.nav-mobile a:hover { color: var(--color-accent); }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.site-footer a {
  color: var(--color-gold-light);
}

.site-footer a:hover { color: #fff; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* Hero variants */
.hero {
  padding: 4rem 0;
  position: relative;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1rem; }

.hero-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.hero-image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  background: var(--color-gold);
  border-radius: var(--radius);
  opacity: 0.3;
  z-index: -1;
}

@media (max-width: 768px) {
  .hero-split,
  .hero-asymmetric {
    grid-template-columns: 1fr;
  }
  .hero { padding: 2.5rem 0; }
}

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

.section-alt { background: var(--color-bg-alt); }

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section-header p {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-body { padding: 1.5rem; }

.card-body h3 { margin-bottom: 0.5rem; }

.card-body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.feature-item {
  padding: 1.25rem;
  border-left: 3px solid var(--color-gold);
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature-item h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.feature-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Testimonials */
.testimonial {
  background: var(--color-surface);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-gold);
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.testimonial-detail {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  color: var(--color-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(61, 107, 94, 0.15);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-error {
  color: var(--color-error);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  background: rgba(45, 106, 79, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-fail {
  background: rgba(155, 59, 59, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* Page header */
.page-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0;
}

/* Content prose */
.prose {
  max-width: 720px;
}

.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.pricing-table tr:last-child td { border-bottom: none; }

.pricing-note {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-banner.visible { display: block; }

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

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  padding: 2rem 0 4rem;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.375rem;
}

.legal-content h3 {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.9375rem;
}

.cookies-table th,
.cookies-table td {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.cookies-table th { background: var(--color-bg-alt); }

/* Guide page */
.guide-level {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.level-marker {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.script-error {
  background: var(--color-error);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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