/* The Alteration Co. — "Midnight Atelier" theme. Dark, cinematic, mobile-first. */

:root {
  --bg: #0d0b08;
  --bg-2: #141009;
  --bg-3: #1a1510;
  --card: rgba(255, 255, 255, 0.045);
  --ink: #f7f1e3;
  --muted: #b7a98d;
  --faint: #7d7260;
  --line: rgba(255, 255, 255, 0.11);
  --gold: #d9a648;
  --gold-2: #f0c96a;
  --gold-deep: #a87c2a;
  --gold-soft: rgba(217, 166, 72, 0.12);
  --radius: 22px;
  --radius-sm: 15px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 44px -14px rgba(0, 0, 0, 0.55);
  --glow: 0 10px 34px -8px rgba(217, 166, 72, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #140f0a; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 {
  line-height: 1.06;
  margin: 0 0 0.55em;
  font-weight: 800;
  letter-spacing: -0.032em;
  color: var(--ink);
}
h1 { font-size: clamp(2.7rem, 8vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4.8vw, 2.9rem); }
h3 { font-size: 1.35rem; }
h4 {
  font-size: 1.06rem; margin: 0 0 0.45em;
  font-weight: 700; letter-spacing: -0.015em; color: var(--ink);
}
p { margin: 0 0 1em; }

.grad {
  background: linear-gradient(100deg, var(--gold-2) 10%, var(--gold) 55%, #c08c33 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  background: var(--gold-soft);
  border: 1px solid rgba(217, 166, 72, 0.32);
  padding: 8px 17px;
  border-radius: 999px;
  margin-bottom: 1.25em;
}

.lede { font-size: 1.18rem; color: var(--muted); max-width: 37em; }
.section-intro { color: var(--muted); max-width: 45em; font-size: 1.06rem; }
.fineprint { font-size: 0.85rem; color: var(--faint); }

/* Top bar */
.topbar {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 50%, var(--gold-2));
  color: #1c1305;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: 0.03em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 8, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; padding-top: 13px; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 4px 12px rgba(217, 166, 72, 0.4)); }
.brand-name { font-weight: 800; font-size: 1.18rem; color: var(--ink); white-space: nowrap; letter-spacing: -0.025em; }
.main-nav { display: none; gap: 28px; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.main-nav a:hover { color: var(--gold-2); }
@media (min-width: 760px) { .main-nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 16px 34px;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #c08c33);
  color: #1c1305;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(217, 166, 72, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(217, 166, 72, 0.1); }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 18px 46px; font-size: 1.08rem; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 96svh; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("/images/hero-bg.jpg");
  background-size: cover; background-position: center 62%;
  transform: scale(1.04);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(62% 52% at 50% 40%, rgba(8, 6, 4, 0.62) 0%, rgba(8, 6, 4, 0.28) 55%, transparent 78%),
    linear-gradient(180deg, rgba(10, 8, 5, 0.6) 0%, rgba(10, 8, 5, 0.22) 42%, rgba(13, 11, 8, 0.95) 100%);
}
@media (max-width: 640px) {
  .hero-bg { background-position: center 40%; }
  .hero { min-height: 100svh; }
}
.hero-inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; text-align: center; }
.hero-badge {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2);
  background: rgba(13, 11, 8, 0.55);
  border: 1px solid rgba(217, 166, 72, 0.45);
  padding: 10px 20px; border-radius: 999px; margin: 0 0 1.4em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero h1 { max-width: 15em; margin-left: auto; margin-right: auto; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55); }
.hero .lede { margin-left: auto; margin-right: auto; color: #d8cdb4; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 46px; justify-content: center; }
.hero-ways { display: grid; gap: 14px; text-align: left; max-width: 980px; margin: 0 auto; }
.way {
  display: flex; gap: 15px; align-items: center;
  background: rgba(20, 16, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.way:hover { transform: translateY(-3px); border-color: rgba(217, 166, 72, 0.5); background: rgba(28, 22, 13, 0.65); }
.way-icon {
  font-size: 1.3rem; line-height: 1;
  width: 50px; height: 50px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  border-radius: 15px;
  box-shadow: 0 8px 20px -6px rgba(217, 166, 72, 0.55);
}
.way strong { display: block; color: var(--ink); font-size: 1.02rem; letter-spacing: -0.01em; }
.way span span { font-size: 0.89rem; color: var(--muted); }
@media (min-width: 820px) { .hero-ways { grid-template-columns: repeat(3, 1fr); } }

/* Hero entrance */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .anim { opacity: 0; animation: riseIn 0.9s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
.hero .anim:nth-child(2) { animation-delay: 0.1s; }
.hero .anim:nth-child(3) { animation-delay: 0.2s; }
.hero .anim:nth-child(4) { animation-delay: 0.32s; }
.hero .anim:nth-child(5) { animation-delay: 0.44s; }

/* Marquee */
.marquee {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, var(--gold-2) 55%, var(--gold) 80%, var(--gold-deep));
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 26px; white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span { font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.92rem; color: #1c1305; }
.marquee-track i { font-style: normal; color: #1c1305; opacity: 0.65; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-2); }

/* Steps */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.steps li:hover { transform: translateY(-5px); border-color: rgba(217, 166, 72, 0.4); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 15px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: #1c1305; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
  box-shadow: 0 8px 20px -6px rgba(217, 166, 72, 0.5);
}
.steps h3 { margin-bottom: 0.35em; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Cards */
.cards-3 { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.subhead { margin-top: 58px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(217, 166, 72, 0.4); }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.6em; }
.card p:last-child { margin-bottom: 0; }
.fee {
  display: inline-block;
  font-weight: 700; font-size: 0.87rem;
  color: var(--gold-2); background: var(--gold-soft);
  border: 1px solid rgba(217, 166, 72, 0.35);
  border-radius: 999px; padding: 7px 16px; margin-top: 8px;
}

/* Craft feature */
.craft-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .craft-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.craft-media { position: relative; }
.craft-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 26px; display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}
@media (min-width: 920px) { .craft-media img { aspect-ratio: 4 / 5; } }
.craft-media::after {
  content: "";
  position: absolute; inset: 0; border-radius: 26px; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 11, 8, 0.45));
}
.checklist { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.checklist li { position: relative; padding-left: 44px; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1px solid rgba(217, 166, 72, 0.45);
  color: var(--gold-2); font-weight: 800; font-size: 0.95rem;
}
.checklist strong { display: block; color: var(--ink); font-size: 1.04rem; letter-spacing: -0.01em; margin-bottom: 2px; }
.checklist span span { color: var(--muted); font-size: 0.96rem; }

/* Pricing */
.price-groups { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 760px) { .price-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .price-groups { grid-template-columns: repeat(3, 1fr); } }
.price-group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-group:hover { transform: translateY(-5px); border-color: rgba(217, 166, 72, 0.4); }
.price-group h3 { margin-bottom: 0.9em; padding-bottom: 0.7em; border-bottom: 2px solid var(--gold); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); font-size: 0.96rem;
}
.price-list li:last-child { border-bottom: none; }
.price {
  font-weight: 800; color: var(--gold-2); white-space: nowrap; font-size: 0.95rem;
  background: var(--gold-soft); border: 1px solid rgba(217, 166, 72, 0.3);
  border-radius: 9px; padding: 3px 11px;
}
.group-note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; margin-bottom: 0; }
#pricing .center { margin-top: 36px; }

/* Booking form */
.booking-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); border-radius: 26px;
  padding: 30px 24px; box-shadow: var(--shadow); margin-top: 30px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 640px) { .booking-form { padding: 46px; } }
.field { margin-bottom: 22px; }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-weight: 700; margin-bottom: 9px; color: var(--ink); font-size: 0.96rem; letter-spacing: -0.01em; }
.optional { font-weight: 500; color: var(--faint); font-size: 0.86rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 14px 16px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: 13px;
  background: rgba(0, 0, 0, 0.32); color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { background: #1a1510; color: var(--ink); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 166, 72, 0.16);
}
textarea { resize: vertical; }
fieldset.field { border: none; padding: 0; }
.radio-card {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1.5px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 12px;
  cursor: pointer; font-weight: 400; color: var(--ink); background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.radio-card input { margin-top: 4px; accent-color: var(--gold); width: 19px; height: 19px; flex: none; }
.radio-card strong { color: var(--ink); letter-spacing: -0.01em; }
.radio-card em { display: block; font-style: normal; font-size: 0.88rem; color: var(--muted); }
.radio-card:has(input:checked) {
  border-color: var(--gold); background: var(--gold-soft);
  box-shadow: 0 0 0 4px rgba(217, 166, 72, 0.12);
}
input[type="file"] { padding: 12px; font-size: 0.92rem; color: var(--muted); }
.photo-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.photo-thumb { position: relative; width: 88px; height: 88px; border-radius: 13px; overflow: hidden; border: 1px solid var(--line); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-remove {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.72); color: #fff; border: none; font-size: 15px; line-height: 1; cursor: pointer;
}
.form-message { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 0.97rem; font-weight: 500; }
.form-message.success { background: rgba(46, 125, 70, 0.18); border: 1px solid rgba(74, 180, 110, 0.5); color: #9fe0b4; }
.form-message.error { background: rgba(160, 40, 40, 0.16); border: 1px solid rgba(220, 100, 100, 0.5); color: #f0a8a8; }

/* FAQ */
.faq { margin-top: 30px; display: grid; gap: 14px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 21px 24px; box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: rgba(217, 166, 72, 0.45); }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 1.03rem; letter-spacing: -0.015em; }
.faq summary::marker { color: var(--gold); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-2));
  color: #1c1305;
}
.cta-band h2 { color: #1c1305; }
.cta-band .section-intro { color: #4a3410; }
.cta-band .fineprint { color: #5c451a; }
.cta-band .btn-primary { background: #140f0a; color: var(--gold-2); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.5); }
.cta-band .btn-primary:hover { background: #241a0c; box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.55); }

/* Footer */
.site-footer { background: #080604; color: var(--faint); padding: 60px 0 100px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand-name { color: var(--ink); font-size: 1.6rem; }
.footer-brand p { font-size: 0.93rem; margin-top: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: flex-start; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.15s; }
.footer-nav a:hover { color: var(--gold-2); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.09); margin-top: 34px; padding-top: 24px; }
.footer-base p { font-size: 0.85rem; margin: 0; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 11, 8, 0.88); border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 760px) { .sticky-cta { display: none; } .site-footer { padding-bottom: 60px; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .anim { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
