:root {
  --gold: #c9a227;
  --gold-light: #d4b84a;
  --gold-dark: #9a7b1a;
  --brass: #b8956a;
  --walnut: #3d2e24;
  --walnut-light: #5c4a3a;
  --steel: #6b7280;
  --oxidized: #6b8f71;
  --charcoal: #1e1c1a;
  --charcoal-mid: #2a2520;
  --ivory: #f5f0e6;
  --ivory-dim: #e8e0d0;
  --text: #2a2520;
  --text-muted: #5c5348;
  --border: rgba(201, 162, 39, 0.25);
  --shadow: 0 4px 24px rgba(30, 28, 26, 0.12);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--charcoal); color: var(--ivory); padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

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

.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem;
}

.logo {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--ivory); text-decoration: none;
}
.logo:hover { color: var(--gold-light); }
.logo-mark { color: var(--gold); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav ul {
  display: flex; align-items: center; gap: 1.75rem;
  list-style: none;
}
.site-nav a {
  color: var(--ivory-dim); text-decoration: none;
  font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color var(--transition);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold) !important;
  padding: 0.4rem 0.9rem !important;
  color: var(--gold) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--charcoal) !important; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 0.5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ivory); transition: var(--transition);
}

/* Main */
main { flex: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.2;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.lead { font-size: 1.0625rem; color: var(--text-muted); max-width: 52ch; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--brass);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.8125rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.75rem 1.5rem; border: none; cursor: pointer;
  text-decoration: none; position: relative; overflow: hidden;
  transition: background var(--transition), color var(--transition), transform 0.15s;
}
.btn-primary {
  background: var(--gold); color: var(--charcoal);
  border: 1px solid var(--gold-dark);
}
.btn-primary:hover { background: var(--gold-light); color: var(--charcoal); }
.btn-secondary {
  background: transparent; color: var(--charcoal);
  border: 1px solid var(--walnut-light);
}
.btn-secondary:hover { background: var(--walnut); color: var(--ivory); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: var(--charcoal); }

.btn .gear-icon {
  width: 14px; height: 14px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover .gear-icon, .btn:focus .gear-icon { transform: rotate(90deg); }

/* Hero */
.hero {
  background: var(--charcoal);
  color: var(--ivory);
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,162,39,0.06) 79px, rgba(201,162,39,0.06) 80px),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,162,39,0.06) 79px, rgba(201,162,39,0.06) 80px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-content h1 { color: var(--ivory); margin-bottom: 1.25rem; }
.hero-content .lead { color: var(--ivory-dim); margin-bottom: 2rem; }
.hero-meta {
  display: flex; gap: 2rem; margin-top: 2.5rem;
  font-size: 0.75rem; letter-spacing: 0.08em; color: var(--brass);
}
.hero-meta span { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta strong { color: var(--gold); font-size: 1.125rem; font-family: var(--font-display); }
.hero-visual { position: relative; }
.hero-visual img {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-chart-overlay {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--walnut); border: 1px solid var(--gold);
  padding: 1rem 1.25rem; font-size: 0.75rem;
}
.hero-chart-overlay .stat { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-dark { background: var(--charcoal-mid); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark p { color: var(--ivory-dim); }
.section-walnut { background: var(--walnut); color: var(--ivory); }
.section-walnut h2 { color: var(--ivory); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.25rem; }
.card-meta {
  font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brass);
  margin-bottom: 0.5rem;
}
.card-price { color: var(--gold-dark); font-weight: 500; margin-top: 0.75rem; }

/* Chart accent block */
.chart-block {
  background: var(--charcoal);
  padding: 2rem;
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
}
.chart-bars {
  display: flex; align-items: flex-end; gap: 0.5rem; height: 80px; margin-top: 1rem;
}
.chart-bar {
  flex: 1; background: var(--gold);
  opacity: 0.7; transition: opacity var(--transition);
}
.chart-bar:hover { opacity: 1; }
.chart-bar:nth-child(2) { height: 55%; background: var(--brass); }
.chart-bar:nth-child(3) { height: 80%; }
.chart-bar:nth-child(4) { height: 40%; background: var(--oxidized); }
.chart-bar:nth-child(5) { height: 65%; }
.chart-bar:nth-child(6) { height: 90%; background: var(--gold-light); }

/* Testimonials */
.testimonial {
  border-left: 2px solid var(--gold);
  padding: 1.25rem 0 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 1.125rem; font-style: italic;
  color: var(--text); margin-bottom: 0.75rem;
}
.testimonial cite {
  font-style: normal; font-size: 0.75rem;
  color: var(--text-muted); letter-spacing: 0.05em;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.4rem; color: var(--text-muted);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-family: var(--font-mono); font-size: 0.875rem;
  border: 1px solid var(--border);
  background: var(--ivory); color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-error {
  color: #8b3a3a; font-size: 0.75rem; margin-top: 0.35rem; display: none;
}
.form-group.has-error .form-error { display: block; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea {
  border-color: #8b3a3a;
}
.form-status {
  padding: 1rem; margin-top: 1rem; display: none;
  border: 1px solid; font-size: 0.875rem;
}
.form-status.success { display: block; background: rgba(107,143,113,0.15); border-color: var(--oxidized); color: var(--walnut); }
.form-status.error { display: block; background: rgba(139,58,58,0.1); border-color: #8b3a3a; color: #8b3a3a; }

/* Page header */
.page-header {
  background: var(--walnut);
  color: var(--ivory);
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 { color: var(--ivory); margin-bottom: 0.75rem; }
.page-header .lead { color: var(--ivory-dim); }

/* Legal */
.legal-content h2 { font-size: 1.375rem; margin-top: 2rem; }
.legal-content h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.legal-content ul, .legal-content ol { margin: 0 0 1rem 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }

.cookies-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.8125rem;
}
.cookies-table th, .cookies-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem; text-align: left;
}
.cookies-table th { background: var(--charcoal-mid); color: var(--ivory); }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dim);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; padding: 3rem 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--ivory); margin-bottom: 0.5rem;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-address { font-style: normal; line-height: 1.8; }
.footer-address a { color: var(--ivory-dim); text-decoration: none; }
.footer-address a:hover { color: var(--gold); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--ivory-dim); text-decoration: none; font-size: 0.8125rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,39,0.15);
  padding: 1.25rem 1.5rem; text-align: center;
  font-size: 0.75rem; max-width: 1200px; margin: 0 auto;
}

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--charcoal-mid);
  border-top: 1px solid var(--gold);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; color: var(--ivory-dim); font-size: 0.8125rem; max-width: 60ch; }
.cookie-inner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* 404 */
.error-page {
  text-align: center; padding: 6rem 1.5rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: 6rem; color: var(--gold); line-height: 1;
}

/* Process steps */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  border: 1px solid var(--border);
  padding: 1.5rem; position: relative;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold); opacity: 0.4;
  display: block; margin-bottom: 0.5rem;
}

/* Route map */
.route-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.route-card {
  background: var(--charcoal-mid);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.route-card h3 { color: var(--gold); font-size: 1rem; margin-bottom: 0.5rem; }
.route-card p { color: var(--ivory-dim); font-size: 0.8125rem; margin: 0; }

/* Pricing table */
.pricing-table {
  width: 100%; border-collapse: collapse; margin: 2rem 0;
}
.pricing-table th, .pricing-table td {
  border: 1px solid var(--border);
  padding: 1rem 1.25rem; text-align: left;
}
.pricing-table th { background: var(--walnut); color: var(--ivory); font-weight: 500; }
.pricing-table tr:nth-child(even) td { background: rgba(201,162,39,0.05); }

/* Blog */
.post-meta {
  font-size: 0.75rem; color: var(--brass);
  letter-spacing: 0.08em; margin-bottom: 1rem;
}
.post-content h2 { margin-top: 2rem; }
.post-content ul, .post-content ol { margin: 0 0 1rem 1.5rem; }

/* Service detail */
.service-hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem;
  align-items: start; margin-bottom: 3rem;
}
.service-detail-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem;
}
.detail-sidebar {
  background: var(--charcoal-mid); color: var(--ivory);
  padding: 1.75rem; border: 1px solid var(--border);
}
.detail-sidebar h3 { color: var(--gold); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.detail-sidebar dl { margin-top: 1rem; }
.detail-sidebar dt { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin-top: 1rem; }
.detail-sidebar dd { color: var(--ivory-dim); margin: 0.25rem 0 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .service-hero, .service-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
    height: 100vh; background: var(--charcoal);
    padding: 5rem 2rem 2rem; transition: right var(--transition);
    border-left: 1px solid var(--border);
  }
  .site-nav.is-open { right: 0; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 1rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
}
