:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8b6914;
  --brass: #a89060;
  --walnut: #3d2e1f;
  --walnut-dark: #2a2318;
  --steel: #6b7280;
  --steel-light: #9ca3af;
  --oxidized: #4a5d4e;
  --charcoal: #1a1814;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --error: #8b3a3a;
  --success: #3a6b4a;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --radius: 4px;
  --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;
  font-size: 18px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

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

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(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

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

.skip-link:focus { top: 1rem; }

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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  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;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--ivory);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.gear-icon {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.gear-icon::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 8px;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: currentColor;
  box-shadow: 0 20px 0 currentColor;
}

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

.site-nav a {
  color: var(--ivory-dark);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  font-family: var(--font-display);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

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

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

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

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

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

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

.footer-tagline { font-size: 0.9rem; opacity: 0.85; }

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin: 0 0 0.75rem;
}

.footer-address { font-style: normal; font-size: 0.9rem; }
.footer-address a { color: var(--ivory); text-decoration: none; }
.footer-address a:hover { color: var(--gold-light); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: var(--ivory-dark); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--walnut);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

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

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

.btn-primary:hover { background: var(--gold-light); }

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

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

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border-color: var(--gold);
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--ivory-dark); border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
.section-dark { background: var(--walnut); color: var(--ivory); }
.section-dark h2 { color: var(--gold-light); }
.section-header { margin-bottom: 2.5rem; max-width: 640px; }
.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.section-dark .section-label { color: var(--gold); }

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--walnut-dark);
  overflow: hidden;
}

.hero-content {
  padding: 4rem 2rem 4rem max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 { color: var(--ivory); margin: 0 0 1.25rem; }
.hero-lead { color: var(--ivory-dark); font-size: 1.05rem; max-width: 480px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual { position: relative; min-height: 320px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--walnut-dark) 0%, transparent 40%);
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 3rem 1.5rem; order: 2; }
  .hero-visual { min-height: 260px; order: 1; }
  .hero-visual::after { background: linear-gradient(180deg, transparent 40%, var(--walnut-dark) 100%); }
}

.page-hero {
  background: var(--walnut);
  padding: 3rem 0;
  border-bottom: 3px solid var(--gold-dark);
}

.page-hero h1 { color: var(--ivory); margin: 0 0 0.75rem; }
.page-hero p { color: var(--ivory-dark); 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-dark);
  box-shadow: var(--shadow);
}

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

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

.card {
  background: var(--ivory);
  border: 1px solid var(--brass);
  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.2); }
.card-image { aspect-ratio: 16/10; overflow: hidden; border-bottom: 2px solid var(--gold-dark); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-meta {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.card h3 { margin: 0 0 0.75rem; }
.card p { font-size: 0.95rem; margin-bottom: 1rem; }
.card-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
}

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

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

.testimonial blockquote { margin: 0 0 1rem; font-style: italic; font-size: 0.95rem; }
.testimonial cite {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--brass);
  font-style: normal;
}
.testimonial-service { font-size: 0.8rem; color: var(--steel); margin-top: 0.25rem; }

.process-timeline { position: relative; padding-left: 2rem; }
.process-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--gold-dark), var(--brass));
}

.process-step { position: relative; margin-bottom: 2.5rem; padding-left: 1.5rem; }
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: -2rem;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--gold-dark);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transform: translateX(-50%);
}

.pricing-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.pricing-table th, .pricing-table td { padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--brass); }
.pricing-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--walnut);
  color: var(--ivory);
}
.pricing-table tr:nth-child(even) td { background: var(--ivory-dark); }
.pricing-note {
  font-size: 0.9rem;
  color: var(--steel);
  padding: 1rem;
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.form-section { max-width: 640px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 0.4rem;
}

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

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.2);
}

.form-group textarea { min-height: 140px; resize: vertical; }
.form-error { color: var(--error); 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: var(--error); }
.form-status { padding: 1rem; border-radius: var(--radius); margin-top: 1rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(58, 107, 74, 0.1); border: 1px solid var(--success); color: var(--success); }
.form-status.error { background: rgba(139, 58, 58, 0.1); border: 1px solid var(--error); color: var(--error); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info {
  background: var(--walnut);
  color: var(--ivory);
  padding: 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold-dark);
}
.contact-info h2 { color: var(--gold-light); font-size: 1.25rem; }
.contact-info address { font-style: normal; line-height: 1.8; }
.contact-info a { color: var(--ivory); }

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

.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
.blog-sidebar { position: sticky; top: 5rem; align-self: start; }
.blog-sidebar h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brass); }
.blog-sidebar ul { list-style: none; padding: 0; margin: 0; }
.blog-sidebar li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.article-header { margin-bottom: 2rem; }
.article-meta {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.article-cover { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold-dark); }
.article-content h2 { margin-top: 2rem; }
.article-content h3 { margin-top: 1.5rem; }

@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.cookies-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.5rem 0; }
.cookies-table th, .cookies-table td { padding: 0.75rem; border: 1px solid var(--brass); text-align: left; }
.cookies-table th {
  background: var(--walnut);
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.service-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.service-detail-header img { border-radius: var(--radius); border: 2px solid var(--gold-dark); }
.service-meta-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.service-meta-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ivory-dark);
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}
.service-meta-list strong {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}

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

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

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-portrait { border-radius: var(--radius); border: 3px solid var(--gold-dark); box-shadow: var(--shadow); }

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--walnut-dark);
  border-top: 2px solid var(--gold-dark);
  padding: 1.25rem 1.5rem;
  z-index: 1000;
  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;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.cookie-title { font-family: var(--font-display); color: var(--gold); margin: 0; font-size: 0.9rem; }
.cookie-desc { flex: 1; min-width: 240px; margin: 0; font-size: 0.85rem; color: var(--ivory-dark); }
.cookie-desc a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.75rem; }

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

.case-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oxidized);
}

.prose { max-width: 720px; }
