:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8b6914;
  --brass: #b8860b;
  --walnut: #3d3428;
  --walnut-light: #5c4f3d;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --oxidized: #4a6741;
  --charcoal: #1a1814;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(26, 24, 20, 0.18);
  --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;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  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: none;
  transition: color var(--transition);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--walnut);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--walnut) 0%, #2a241c 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border-radius: var(--radius);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ivory-dark);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-light);
}

/* 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.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  left: 8px;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
  transform: rotate(180deg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--charcoal);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.45);
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--walnut);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--walnut);
}

.btn-dark {
  background: var(--walnut);
  color: var(--ivory);
  border: 1px solid var(--gold);
}

.btn-dark:hover {
  background: var(--walnut-light);
  color: var(--ivory);
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--walnut);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,24,20,0.92) 0%, rgba(61,52,40,0.4) 60%, rgba(61,52,40,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
  max-width: 680px;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tag::before {
  content: "§ 01";
  opacity: 0.7;
}

.hero h1 {
  color: var(--ivory);
  margin-bottom: 1.25rem;
}

.hero-lead {
  color: var(--ivory-dark);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-metrics {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.3);
}

.metric {
  font-family: var(--font-mono);
}

.metric-value {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--steel-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxidized);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--steel);
  max-width: 620px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 24, 20, 0.15);
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  border-bottom: 2px solid var(--gold);
}

.card-body {
  padding: 1.35rem;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--oxidized);
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-bottom: 0.65rem;
}

.card p {
  color: var(--steel);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Brass panel */
.brass-panel {
  background: linear-gradient(135deg, var(--walnut) 0%, #2a241c 100%);
  color: var(--ivory);
  padding: 3rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  position: relative;
}

.brass-panel::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.4;
}

.brass-panel h2,
.brass-panel h3 {
  color: var(--gold-light);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  font-style: italic;
  color: var(--walnut-light);
  margin-bottom: 1rem;
}

.testimonial cite {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  font-style: normal;
}

/* Page hero (inner) */
.page-hero {
  background: var(--walnut);
  padding: 3rem 0;
  border-bottom: 2px solid var(--gold);
}

.page-hero h1 {
  color: var(--ivory);
}

.page-hero p {
  color: var(--ivory-dark);
  margin-top: 0.75rem;
  max-width: 600px;
}

.page-hero-image {
  margin-top: 2rem;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  max-height: 320px;
  object-fit: cover;
  width: 100%;
}

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

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose h2 {
  margin: 2rem 0 1rem;
}

.prose h3 {
  margin: 1.5rem 0 0.75rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  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: #9b2c2c;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.invalid .form-error {
  display: block;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #9b2c2c;
}

.form-success {
  background: rgba(74, 103, 65, 0.12);
  border: 1px solid var(--oxidized);
  color: var(--oxidized);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.form-error-global {
  background: rgba(155, 44, 44, 0.1);
  border: 1px solid #9b2c2c;
  color: #9b2c2c;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: none;
}

.form-success.visible,
.form-error-global.visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory-dark);
  margin-top: auto;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  padding: 3rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--ivory-dark);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--steel-light);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--walnut);
  border-top: 2px solid var(--gold);
  padding: 1.25rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}

.cookie-banner.visible {
  transform: translateY(0);
}

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

.cookie-text {
  color: var(--ivory-dark);
  font-size: 0.9rem;
  flex: 1;
  min-width: 240px;
}

.cookie-text a {
  color: var(--gold-light);
  text-decoration: underline;
}

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

.cookie-actions .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.price-table th {
  background: var(--walnut);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

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

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
}

.process-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ivory-dark);
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}

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

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
}

/* Legal pages */
.legal-content h2 {
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--ivory-dark);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.cookie-table th {
  background: var(--walnut);
  color: var(--ivory);
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.img-placeholder {
  background: linear-gradient(135deg, var(--walnut-light) 0%, var(--walnut) 100%);
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px dashed var(--gold);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--walnut);
    border-bottom: 2px solid var(--gold);
    padding: 1rem;
  }

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

  .main-nav ul {
    flex-direction: column;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .brass-panel {
    padding: 1.75rem;
  }
}
