/* Santa Order — public site
   Palette: pine night / snow white / lacquer red / brass gold
   Type: Fraunces (display) + Karla (text) */

:root {
  --pine-950: #0b241b;
  --pine-900: #103527;
  --pine-700: #1c5440;
  --ink: #22352c;
  --ink-soft: #52665c;
  --snow: #f4f7f4;
  --card: #ffffff;
  --red: #c3362b;
  --red-dark: #9c2a21;
  --gold: #d9a441;
  --gold-soft: #ecd9ae;
  --line: #dbe3dc;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
}
h1, h2, h3, .logo-word, .step-no {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'SOFT' 80;
  line-height: 1.15;
  color: var(--pine-900);
  margin: 0 0 0.5em;
  font-weight: 600;
}
p { margin: 0 0 1em; }
a { color: var(--pine-700); }
img, svg { display: block; }

.btn {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.8em 1.7em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--pine-700); color: #fff; }
.btn-green:hover { background: var(--pine-900); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.55); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.btn-big { font-size: 1.15rem; padding: 0.9em 2.2em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: var(--snow);
  position: relative;
  z-index: 20;
}
.site-header.on-night { background: var(--pine-950); }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.logo-badge { width: 42px; height: 42px; }
.badge-bg { fill: var(--red); }
.hat { fill: #fff; }
.logo-word {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--pine-900);
  letter-spacing: 0.01em;
}
.on-night .logo-word { color: #fff; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.site-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: var(--gold); }
.on-night .site-nav a { color: #f2f5f2; }
.site-nav .nav-cta {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 0.55em 1.3em;
  border-bottom: none;
}
.site-nav .nav-cta:hover { background: var(--red-dark); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--pine-950) 0%, var(--pine-900) 78%, var(--pine-900) 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem) 0;
  margin-top: -1px;
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 3; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 600;
  margin-bottom: 0.45em;
}
.hero-sub {
  color: #cfdcd2;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto 2em;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(3rem, 7vw, 5rem); }
.hero-roofs { width: 100%; height: clamp(110px, 16vw, 190px); position: relative; z-index: 2; }
.roofline { fill: #071911; }
.moon { fill: var(--gold); opacity: 0.9; }
.star { fill: #e8efe7; opacity: 0.8; }
.window { fill: var(--gold); opacity: 0.85; }

.snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 15%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 45% 40%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(2.2px 2.2px at 70% 20%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 85% 55%, rgba(255,255,255,0.65) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 10% 60%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 75%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 33% 85%, rgba(255,255,255,0.7) 50%, transparent 51%);
  background-size: 420px 420px;
  animation: snowfall 18s linear infinite;
}
@keyframes snowfall {
  from { background-position: 0 -420px; }
  to { background-position: 60px 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .snow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem); }
.section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.text-link { font-weight: 700; }

.steps { text-align: left; }
.step-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.step-no {
  display: inline-flex;
  width: 2.1em;
  height: 2.1em;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--pine-900);
  border-radius: 50%;
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.step-list h3 { font-size: 1.2rem; }
.step-list p { color: var(--ink-soft); font-size: 0.98rem; }

/* gift cards */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.gift-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.1rem;
}
.gift-art {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--snow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.9rem;
}
.gift-art.small { width: 46px; height: 46px; flex: none; }
.gift-icon { width: 60%; height: 60%; fill: none; stroke: var(--pine-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gift-icon .fill { fill: var(--pine-700); stroke: none; }
.gift-card h3 { font-size: 1.1rem; margin-bottom: 0.25em; }
.gift-desc { color: var(--ink-soft); font-size: 0.93rem; min-height: 2.6em; }
.gift-price { font-weight: 700; color: var(--red); margin: 0; }
.sold-out { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; margin-left: 0.4em; }
.cat-title { margin-top: 2.2rem; font-size: 1.35rem; border-bottom: 1px solid var(--line); padding-bottom: 0.35em; }
.catalog-cta { text-align: center; margin-top: 2.5rem; }

/* coverage */
.coverage { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.coverage-text p { color: var(--ink-soft); }
.city-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 1rem;
}
.city-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.5em 0.9em;
  font-weight: 500;
  font-size: 0.95rem;
}
.city-list .more { background: transparent; border-style: dashed; color: var(--ink-soft); }

/* promise */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.4rem; }
.promise-grid h3 { font-size: 1.12rem; }
.promise-grid p { color: var(--ink-soft); font-size: 0.96rem; }

/* cta band */
.cta-band {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4rem) 1.2rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-band p { color: #ffd9d2; margin-bottom: 1.6em; }
.cta-band .btn-red { background: #fff; color: var(--red); }
.cta-band .btn-red:hover { background: var(--gold-soft); color: var(--red-dark); }

/* ---------- inner pages ---------- */
.page-head { max-width: 760px; margin: 0 auto; padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1rem, 4vw, 2rem) 0; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-head p { color: var(--ink-soft); font-size: 1.08rem; }

.how-list { list-style: none; margin: 0; padding: 0; counter-reset: how; max-width: 700px; }
.how-list li {
  counter-increment: how;
  position: relative;
  padding: 0 0 2rem 4.4rem;
  border-left: 2px solid var(--line);
  margin-left: 1.3rem;
}
.how-list li::before {
  content: counter(how);
  font-family: 'Fraunces', Georgia, serif;
  position: absolute;
  left: -1.4rem;
  top: -0.2rem;
  width: 2.6rem; height: 2.6rem;
  background: var(--pine-700);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.how-list li:last-child { border-left-color: transparent; }
.how-list h2 { font-size: 1.35rem; }
.how-list p { color: var(--ink-soft); }
.how-questions { max-width: 700px; margin-top: 3rem; }
.how-questions dt { font-weight: 700; margin-top: 1.1em; }
.how-questions dd { margin: 0.25em 0 0; color: var(--ink-soft); }

/* ---------- order form ---------- */
.order-section { max-width: 760px; }
.order-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.4rem 1.5rem 1.2rem;
  margin: 0 0 1.6rem;
}
.order-form legend {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pine-900);
  padding: 0 0.5em;
}
.order-gifts { display: grid; gap: 0.6rem; }
.order-form label.order-gift {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0;
}
.order-gift:has(input:not([value="0"]):not(:placeholder-shown)) { border-color: var(--pine-700); }
.order-gift-info { flex: 1; display: flex; flex-direction: column; }
.order-gift-name { font-weight: 700; }
.order-gift-price { color: var(--red); font-weight: 700; font-size: 0.92rem; }
.order-gift input {
  width: 4.4em;
  text-align: center;
  font-size: 1rem;
  padding: 0.45em 0.3em;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.order-form label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.9rem; }
.order-form input[type=text], .order-form input[type=email], .order-form input[type=tel],
.order-form input[type=date], .order-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.3em;
  font: inherit;
  font-weight: 400;
  padding: 0.6em 0.8em;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.order-form input:focus, .order-form textarea:focus { border-color: var(--pine-700); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field-row.three { grid-template-columns: 2fr 0.7fr 1fr; }
.field-hint { color: var(--ink-soft); font-size: 0.9rem; margin: 0.4em 0 0; }
.order-submit { text-align: center; padding-bottom: 1rem; }
.form-error {
  background: #fbe9e7;
  border: 1px solid #e5b4ae;
  color: var(--red-dark);
  border-radius: 8px;
  padding: 0.8em 1em;
  margin-bottom: 1.4rem;
  font-weight: 700;
}

/* confirmation */
.confirm-head .confirm-badge { width: 72px; height: 72px; margin: 0 auto 1.2rem; }
.confirm-badge .badge-bg { fill: var(--pine-700); }
.confirm-badge .tick { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.confirm-detail { max-width: 640px; text-align: center; }
.confirm-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.6rem;
}
.confirm-card h2 { font-size: 1.15rem; margin-top: 1.2em; }
.confirm-card h2:first-child { margin-top: 0; }
.confirm-table { width: 100%; border-collapse: collapse; }
.confirm-table td { padding: 0.4em 0; border-bottom: 1px solid var(--line); }
.confirm-table td:last-child { text-align: right; font-weight: 700; }
.confirm-table .total td { border-bottom: none; font-weight: 700; color: var(--red); }

/* ---------- about ---------- */
.about-story { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.about-text p { color: var(--ink-soft); }
.about-text p:first-of-type { color: var(--ink); font-size: 1.05rem; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
}
.fact-big { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; font-weight: 600; color: var(--pine-900); }
.fact-label { color: var(--ink-soft); font-size: 0.88rem; }
.moments h2 { margin-bottom: 0.2em; }
.moments-sub { color: var(--ink-soft); margin-bottom: 1.6em; }
.moments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.moment { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.moment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.moment figcaption { padding: 0.6em 0.9em; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--pine-950); color: #c8d6cb; margin-top: 3rem; }
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1rem, 4vw, 2rem) 1.4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.4rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-name { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; color: #fff; margin-bottom: 0.3em; }
.footer-line { font-size: 0.95rem; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.footer-head { color: #fff; font-weight: 700; margin-bottom: 0.6em; }
.footer-cols a { display: block; color: #c8d6cb; text-decoration: none; padding: 0.18em 0; }
.footer-cols a:hover { color: var(--gold); }
.footer-legal {
  text-align: center;
  font-size: 0.85rem;
  color: #7e9486;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0;
  padding: 1.1rem;
}

/* ---------- mobile ---------- */
@media (max-width: 880px) {
  .step-list, .promise-grid { grid-template-columns: 1fr; }
  .coverage, .about-story { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--pine-900); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
  .on-night .nav-toggle span { background: #fff; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--pine-950);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem clamp(1rem, 4vw, 3rem) 1.4rem;
    gap: 0.4rem;
    box-shadow: 0 14px 24px rgba(0,0,0,0.25);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { color: #f2f5f2 !important; padding: 0.6em 0.2em; font-size: 1.05rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 0.5rem; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .city-list { grid-template-columns: 1fr; }
  .how-list li { padding-left: 3.4rem; }
}
