/* ==========================================================================
   Luxespacer — shared stylesheet (index.html + order.html)
   ========================================================================== */

:root {
  --ivory: #faf7f2;
  --surface: #ffffff;
  --ink: #2a2724;
  --ink-soft: #6b6660;
  --line: #e7e1d8;
  --line-soft: #f0ece4;
  --brass: #a9793f;
  --brass-dark: #8c6b36;
  --brass-tint: #f1e8da;
  --success-bg: #eef4ec;
  --success-ink: #3b6b46;
  --radius: 10px;
  --shadow: 0 2px 4px rgba(42, 39, 36, 0.04), 0 10px 30px rgba(42, 39, 36, 0.06);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

a {
  color: var(--brass-dark);
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.75em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--brass);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brass-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--brass-dark);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--brass);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--brass-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 88px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: 1.12rem;
  max-width: 46ch;
}

.hero-price-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- Placeholder image frames ---------- */

.img-placeholder {
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 20px;
}

.img-placeholder .dims {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.img-placeholder.hero-img {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.img-placeholder.square {
  aspect-ratio: 1 / 1;
}

.img-placeholder.wide {
  aspect-ratio: 16 / 9;
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.alt-bg {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Value strip ---------- */

.value-strip {
  padding: 28px 0;
  background: var(--brass-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-strip .wrap {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
}

.value-strip .item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brass-dark);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.feature-card .num {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--brass);
  margin-bottom: 10px;
  display: block;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5em;
}

.feature-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
}

.step .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  margin: 0 auto 14px;
}

.step .img-placeholder {
  margin-bottom: 16px;
}

.step h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4em;
}

.step p {
  font-size: 0.86rem;
}

/* ---------- Why section (two-column) ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.why-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 0.96rem;
  color: var(--ink);
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass);
  font-weight: 700;
}

/* ---------- Product / pricing ---------- */

.product-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
}

.product-card .sku {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.product-card h2 {
  font-size: 1.9rem;
  margin-bottom: 0.3em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 8px;
}

.price {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  color: var(--ink);
}

.price-unit {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.product-includes {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}

.product-includes li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brass-dark);
  background: var(--brass-tint);
  padding: 6px 12px;
  border-radius: 999px;
}

.badge.soft {
  background: var(--line-soft);
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--brass);
  margin-left: 16px;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: 12px;
  font-size: 0.94rem;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--ink);
}

.footer-col a:hover {
  color: var(--brass-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Order page ---------- */

.order-hero {
  padding: 48px 0 8px;
  text-align: center;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 88px;
}

.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}

.order-summary .price-row {
  margin: 10px 0 6px;
}

.order-summary hr {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 20px 0;
}

.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  margin-bottom: 20px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-tint);
}

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

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 20px;
}

fieldset legend {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 6px;
}

.process-note {
  background: var(--success-bg);
  color: var(--success-ink);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.setup-note {
  background: #fff7ec;
  border: 1px solid #f0ddb3;
  color: #7a5b16;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.82rem;
  margin-bottom: 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
    border-top: 1px solid var(--line);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }

  .hero .wrap,
  .why-grid,
  .product-card,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero-img {
    order: -1;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .product-card {
    padding: 28px;
  }

  .order-summary {
    position: static;
  }

  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .value-strip .wrap {
    gap: 20px;
  }
}
