/* ── DESIGN TOKENS & TYPOGRAPHY (IDENTICAL TO INDEX.HTML) ── */
:root {
  --gold: #9b6a32;
  --gold-light: #c5975f;
  --gold-dim: #73502b;
  --gold-glow: rgba(155, 106, 50, 0.12);
  
  --bg-dark: #f1ecdf;
  --bg-surface: #e8e0d0;
  --glass-bg: rgba(255, 252, 244, 0.58);
  --glass-border: rgba(31, 29, 25, 0.18);
  --glass-border-hover: rgba(31, 29, 25, 0.55);
  
  --text-main: #1d1b18;
  --text-muted: #625e56;
  --text-dim: #817a6e;
  
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
  --sans: 'Outfit', sans-serif;

  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-pill: 2px;
  --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);

  --type-display: clamp(2.75rem, 4.4vw, 4.25rem);
  --type-section: clamp(1.875rem, 2.8vw, 2.5rem);
  --type-subhead: clamp(1.375rem, 1.65vw, 1.625rem);
  --type-body-lg: 1.15rem;
  --type-body: 1rem;
  --type-label: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--type-body);
  line-height: 1.68;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    linear-gradient(rgba(34, 31, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 31, 27, 0.025) 1px, transparent 1px);
  background-size: 100% 32px, 32px 100%;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ── BACKGROUND GRAIN & SCROLL PROGRESS ── */
.bg-grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5; mix-blend-mode: multiply;
}

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--text-main);
  width: 100%; z-index: 10000; transform: scaleX(0); transform-origin: left center; will-change: transform;
}

/* ── NAVIGATION (MATCHED TO INDEX.HTML) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 5vw; height: 82px;
  display: flex; align-items: center; justify-content: space-between; transition: var(--transition);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  height: 66px; background: rgba(241, 236, 223, 0.94);
  border-bottom: 1px solid var(--glass-border); box-shadow: 0 8px 30px rgba(45, 37, 27, 0.05);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.nav-logo { font-family: var(--serif); font-size: 1.5rem; color: var(--text-main); font-weight: 500; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2.25rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.875rem !important; letter-spacing: 0.06em !important; text-transform: uppercase;
  color: var(--text-muted); position: relative; padding: 10px; font-weight: 500; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 10px; right: 10px; height: 1.5px;
  background: var(--text-main); transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; border: 0; background: transparent; padding: 10px; }
.menu-btn span { width: 28px; height: 2px; background: var(--text-main); transition: 0.3s; }
.mobile-menu {
  position: fixed; inset: 0; background: rgba(241, 236, 223, 0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  z-index: 999; opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 2.2rem; color: var(--text-main); }

/* ── MAIN CONTAINER & HEADER ── */
.container { max-width: 980px; margin: 0 auto; padding: 120px 5vw 80px; min-height: calc(100vh - 90px); }

.page-header { margin: 0 auto 3rem auto; text-align: center; max-width: 780px; }
.hero-tag {
  font-family: var(--mono); font-size: var(--type-label); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-main); background: transparent; border-top: 1px solid var(--text-main); border-bottom: 1px solid var(--text-main);
  padding: 0.55rem 0; margin-bottom: 1.5rem; display: inline-block;
}
h1.hero-name { font-family: var(--serif); font-size: var(--type-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 1rem; }
h1.hero-name em { color: var(--gold-dim); font-style: italic; text-decoration: underline; text-underline-offset: 0.12em; text-decoration-thickness: 1px; }
.hero-subtitle { color: var(--text-muted); font-size: var(--type-body-lg); line-height: 1.72; margin: 0 auto; }

/* ── WIZARD CARD CONTAINER ── */
.form-container-wizard {
  background: rgba(255, 252, 244, 0.58);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: 10px 10px 0 rgba(29, 27, 24, 0.08);
}

.step-content-title {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--text-main);
  text-align: center; margin-bottom: 0.5rem; line-height: 1.2;
}
.step-subtitle {
  font-size: 0.95rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem;
}

/* ── SERVICE CARDS GRID (SELECTION) ── */
.service-selection-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card-option {
  background: #faf6ed;
  border: 1px solid rgba(29, 27, 24, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.service-card-option:hover {
  transform: translateY(-4px);
  border-color: var(--text-main);
  box-shadow: 4px 6px 0 rgba(29, 27, 24, 0.08);
}

.service-card-option.selected {
  background: var(--text-main);
  color: #f7f1e5;
  border-color: var(--text-main);
  box-shadow: 4px 6px 0 rgba(29, 27, 24, 0.15);
}

.service-icon-placeholder {
  margin-bottom: 0.85rem;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.service-icon-placeholder svg {
  width: 28px; height: 28px; display: block;
}
.service-card-option:hover .service-icon-placeholder {
  transform: translateY(-2px);
  color: var(--gold);
}
.service-card-option.selected .service-icon-placeholder {
  color: #dfbd82;
  transform: scale(1.08);
}

.service-name-option {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── DYNAMIC SECTIONS ── */
.dynamic-content-section {
  background: #faf8f5;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 4px 4px 0 rgba(29, 27, 24, 0.04);
}

.dynamic-section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}

/* ── FORM INPUTS ── */
.form-grid-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group.full-span { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.required-asterisk { color: var(--gold-dim); }

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid rgba(29, 27, 24, 0.35);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231d1b18' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
}

textarea.form-control { min-height: 90px; resize: vertical; }

.conditional-target {
  margin-top: 10px;
}

/* ── BUTTONS & NAVIGATION ── */
.wizard-navigation {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}
.wizard-navigation.final-submit-nav {
  justify-content: space-between;
}

.btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--text-main);
  color: #f7f1e5;
  border-color: var(--text-main);
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-outline {
  border-color: var(--text-main);
  color: var(--text-main);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

/* ── RESPONSE MESSAGES ── */
.form-message-area {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
  font-size: 1rem;
}
.form-message-area.success {
  background: rgba(155, 106, 50, 0.12);
  border: 1px solid var(--gold);
  color: var(--text-main);
  display: block;
}
.form-message-area.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
  display: block;
}
.form-message-area.info {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: block;
}

/* ── FOOTER (MATCHED TO INDEX.HTML) ── */
footer { 
  background: var(--text-main) !important; 
  border-top: 0 !important; 
  color: #eee6d7; 
  padding: 2rem 5vw; 
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer .footer-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
footer .text-gold { color: #d0aa7d; }
footer .footer-meta { font-family: var(--mono); font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.1em; }
footer .text-dim { color: #aaa296; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .form-container-wizard { padding: 1.75rem 1.25rem; }
  .form-grid-responsive { grid-template-columns: 1fr; }
  .wizard-navigation.final-submit-nav { flex-direction: column-reverse; gap: 1rem; }
  .wizard-navigation.final-submit-nav .btn { width: 100%; }
}