:root {
  --gold: #c9a227;
  --gold-light: #dbb84a;
  --gold-dark: #8b6914;
  --brass: #b8860b;
  --walnut: #3d2b1f;
  --walnut-light: #5c4033;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --oxidized: #4a5d4a;
  --charcoal: #1a1814;
  --charcoal-mid: #2a2620;
  --ivory: #f5f0e6;
  --ivory-muted: #e8e0d0;
  --text: #2c2418;
  --text-muted: #5a5040;
  --border: #8b7355;
  --radius: 4px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --shadow: 0 4px 24px rgba(26, 24, 20, 0.15);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-muted) 100%);
  min-height: 100vh;
}

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

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.2rem; }

a { color: var(--gold-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--brass); }

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

address { font-style: normal; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ivory);
  text-decoration: none;
}

.logo-mark { color: var(--gold); }

.logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ivory-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold) !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--charcoal) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--gold);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charcoal);
    border-bottom: 2px solid var(--gold);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    align-items: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--walnut);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--charcoal);
  border-color: var(--gold-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  background: var(--charcoal-mid);
  color: var(--ivory);
  border-color: var(--steel);
}

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

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

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

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

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  min-height: 70vh;
}

.hero-content { max-width: 540px; }

.hero-index {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 1rem;
}

.hero h1 { margin: 0 0 1.25rem; }

.hero h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 1rem;
}

.hero-lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }

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

.hero-visual { position: relative; }

.hero-visual img {
  border-radius: var(--radius);
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8px -8px 8px 8px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2.5rem; }
  .hero-visual { order: -1; }
}

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

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(61, 43, 31, 0.08);
}

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

.card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

.card-meta {
  font-size: 0.8rem;
  color: var(--brass);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.card h3 { margin: 0 0 0.75rem; }
.card p { color: var(--text-muted); margin: 0 0 1rem; font-size: 0.95rem; }

.card-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
}

.page-hero {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3.5rem 1.25rem;
  border-bottom: 3px solid var(--gold);
}

.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { color: var(--ivory); margin: 0 0 0.75rem; }
.page-hero p { color: var(--ivory-muted); max-width: 600px; margin: 0; }

.page-hero-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-with-image img {
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  aspect-ratio: 16/10;
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-hero-with-image { grid-template-columns: 1fr; }
}

.prose { max-width: 720px; }
.prose p { margin: 0 0 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }

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

.testimonial {
  background: var(--charcoal-mid);
  color: var(--ivory-muted);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.testimonial blockquote { margin: 0 0 1rem; font-style: italic; }

.testimonial cite {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-light);
}

.testimonial .service-ref {
  display: block;
  font-size: 0.8rem;
  color: var(--steel-light);
  margin-top: 0.25rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

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

.pricing-table th {
  font-family: var(--font-display);
  background: var(--charcoal);
  color: var(--ivory);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.pricing-note {
  background: var(--ivory-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

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

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--walnut);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ivory);
}

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

.form-error { color: #8b2500; font-size: 0.85rem; margin-top: 0.35rem; display: none; }
.form-group.is-invalid .form-error { display: block; }
.form-group.is-invalid input, .form-group.is-invalid select, .form-group.is-invalid textarea { border-color: #8b2500; }

.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); margin-top: 1rem; display: none; }
.form-status.is-success { display: block; background: rgba(74, 93, 74, 0.15); border: 1px solid var(--oxidized); color: var(--oxidized); }
.form-status.is-error { display: block; background: rgba(139, 37, 0, 0.1); border: 1px solid #8b2500; color: #8b2500; }

.contact-info address p { margin-bottom: 0.75rem; }
.contact-hours { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

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

.process-steps { list-style: none; padding: 0; margin: 2rem 0; counter-reset: step; }

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

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  border: 2px solid var(--gold);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-content h2 { margin-top: 2.5rem; font-size: 1.25rem; }
.legal-content h2:first-child { margin-top: 0; }

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

.post-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.post-cover { margin: 0 0 2rem; border-radius: var(--radius); border: 2px solid var(--border); aspect-ratio: 21/9; object-fit: cover; width: 100%; }
.article-content { max-width: 720px; margin: 0 auto; padding: 0 1.25rem 4rem; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.service-sidebar {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  height: fit-content;
  position: sticky;
  top: 5rem;
}

.service-sidebar h3 { color: var(--gold-light); margin-top: 0; font-size: 1rem; }
.service-sidebar dt { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-light); margin-top: 1rem; }
.service-sidebar dd { margin: 0.25rem 0 0; color: var(--ivory-muted); }
.service-cover { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--border); margin-bottom: 2rem; }

@media (max-width: 900px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

.team-grid { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; margin: 2rem 0; }
.team-portrait { border-radius: var(--radius); border: 3px solid var(--gold); aspect-ratio: 3/4; object-fit: cover; }

@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-portrait { max-width: 280px; }
}

.site-footer {
  background: var(--charcoal);
  color: var(--ivory-muted);
  border-top: 3px solid var(--gold);
  margin-top: 4rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-name {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--ivory-muted); text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold-light); }

.footer-bottom { border-top: 1px solid var(--walnut-light); padding: 1.25rem; text-align: center; font-size: 0.85rem; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-top: 2px solid var(--gold);
  padding: 1.25rem;
  z-index: 200;
}

.cookie-banner[hidden] { display: none; }

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

.cookie-inner p { margin: 0; color: var(--ivory-muted); font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: 0.75rem; }

.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.error-code { font-family: var(--font-display); font-size: 5rem; color: var(--gold); margin: 0; }

.instrument-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 3rem 0;
}

.cta-band {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 3rem 1.25rem;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.cta-band h2 { color: var(--ivory); margin: 0 0 0.75rem; }
.cta-band p { color: var(--ivory-muted); max-width: 520px; margin: 0 auto 1.5rem; }

.case-study {
  background: var(--ivory-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}

.case-study h3 { margin-top: 0; }
