:root {
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #8a6d1a;
  --brass-green: #4a6b5a;
  --tobacco: #5c4033;
  --walnut: #2a2318;
  --steel: #6b7280;
  --charcoal: #1a1814;
  --ivory: #f5f0e6;
  --ivory-dark: #e8e0d0;
  --text: #2a2318;
  --text-muted: #5c5348;
  --border: rgba(201, 162, 39, 0.35);
  --shadow: 0 4px 24px rgba(26, 24, 20, 0.12);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 4px;
  --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: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 107, 90, 0.05) 0%, transparent 50%);
  min-height: 100vh;
}

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(--brass-green); }

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.15rem; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--walnut) 0%, #1f1a14 100%);
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

.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(--gold-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.logo:hover { color: var(--ivory); }

.logo-gear {
  color: var(--gold);
  transition: transform 0.8s ease;
}

.logo:hover .logo-gear { transform: rotate(45deg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

.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-dark);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--walnut) !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius);
  border: 1px solid var(--gold-light) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--charcoal) !important;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--walnut);
    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.5rem 1.5rem;
    align-items: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--gold-dark);
  cursor: pointer;
  text-decoration: none;
  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 currentColor;
  border-radius: 50%;
  opacity: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: opacity 0.2s, transform 0.5s ease;
}

.btn:active::before {
  opacity: 0.3;
  transform: translate(-50%, -50%) rotate(180deg);
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: var(--walnut);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 2px 8px rgba(201,162,39,0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 16px rgba(201,162,39,0.4);
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--tobacco);
  border-color: var(--steel);
}

.btn-secondary:hover {
  border-color: var(--gold-dark);
  color: var(--walnut);
}

/* Layout utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(42,35,24,0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

/* Hero home */
.hero-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content { order: 2; }

.hero-visual {
  order: 1;
  position: relative;
}

.hero-visual img {
  border-radius: var(--radius);
  border: 3px solid var(--gold);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(201,162,39,0.2);
}

.hero-visual::after {
  content: "§ 01";
  position: absolute;
  bottom: -0.75rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  background: var(--ivory);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (max-width: 768px) {
  .hero-home {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(135deg, var(--ivory-dark), var(--walnut));
}

.card-body { padding: 1.25rem 1.5rem 1.5rem; }

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card-title a {
  color: var(--walnut);
  text-decoration: none;
}

.card-title a:hover { color: var(--gold-dark); }

/* Page hero */
.page-hero {
  padding: 3rem 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero-with-image {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero-with-image img {
  border-radius: var(--radius);
  border: 2px solid var(--gold);
}

@media (max-width: 768px) {
  .page-hero-with-image { grid-template-columns: 1fr; }
}

/* Instrument panel */
.instrument-panel {
  background: linear-gradient(145deg, var(--walnut) 0%, #1a1610 100%);
  color: var(--ivory);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.instrument-panel::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 2px;
  pointer-events: none;
}

.instrument-panel h2,
.instrument-panel h3 { color: var(--gold-light); }

.instrument-panel p { color: var(--ivory-dark); }

/* Testimonials */
.testimonial {
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-steps li {
  counter-increment: step;
  padding: 1.25rem 0 1.25rem 3.5rem;
  position: relative;
  border-bottom: 1px dashed var(--border);
}

.process-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.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(--steel);
  border-radius: var(--radius);
  background: var(--ivory);
  transition: border-color var(--transition);
}

.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.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #a33;
}

.field-error {
  color: #a33;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.form-status.success {
  background: rgba(74, 107, 90, 0.15);
  border: 1px solid var(--brass-green);
  color: var(--brass-green);
}

.form-status.error {
  background: rgba(170, 51, 51, 0.1);
  border: 1px solid #a33;
  color: #a33;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.cookies-table th,
.cookies-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.cookies-table th {
  background: rgba(201,162,39,0.1);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--walnut);
  color: var(--ivory-dark);
  margin-top: 4rem;
  border-top: 3px solid var(--gold);
}

.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-light);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--ivory-dark);
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a { color: var(--gold-light); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--walnut);
  border-top: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-inner {
  max-width: 1100px;
  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-dark);
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  text-align: left;
}

.pricing-table th {
  background: rgba(42,35,24,0.06);
  font-family: var(--font-display);
}

/* Two column content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

.story-block {
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.story-block h3 { margin-top: 0; }

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--border);
}

.detail-list li::before {
  content: "◆ ";
  color: var(--gold);
  font-size: 0.6rem;
  vertical-align: middle;
}
