/* ============================================================
   SANTA OLIVER — Global shell, primitives, nav, footer
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.mmenu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }

/* ---------------- PRIMITIVES ---------------- */

.so-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.so-eyebrow--ink   { color: var(--red); }
.so-eyebrow--green { color: var(--green); }

.so-display { font-family: var(--display); font-weight: 500; line-height: 0.98; letter-spacing: -0.01em; color: var(--cream); }
.so-body    { font-family: var(--body); color: var(--ink-soft); line-height: 1.65; }

/* Gold hairline rule with center ornament diamond */
.so-rule { display: flex; align-items: center; gap: 14px; }
.so-rule::before, .so-rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.so-rule .so-rule-dot {
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold); box-shadow: var(--glow-gold);
}
.so-rule--ink::before, .so-rule--ink::after {
  background: linear-gradient(90deg, transparent, var(--hairline-ink), transparent);
}
.so-rule--ink .so-rule-dot { background: var(--red); box-shadow: none; }

/* Primary CTA — deep red */
.so-btn {
  font-family: var(--body); font-weight: 700; font-size: 15px;
  letter-spacing: 0.01em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  border: 0; cursor: pointer; color: var(--cream);
  background: linear-gradient(180deg, var(--red-500), var(--red-700));
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px -12px rgba(143,31,34,0.8);
  transition: transform .25s ease, box-shadow .25s ease;
}
.so-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 20px 40px -12px rgba(143,31,34,0.9);
}

/* Secondary CTA — gold outline glass */
.so-btn-ghost {
  font-family: var(--body); font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  color: var(--gold-200);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}
.so-btn-ghost:hover { background: var(--glass-strong); border-color: var(--gold); color: var(--gold-300); }

/* Green CTA (used on light sections) */
.so-btn-green {
  font-family: var(--body); font-weight: 700; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  color: var(--snow);
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px -12px rgba(23,107,67,0.7);
  transition: transform .25s ease;
}
.so-btn-green:hover { transform: translateY(-2px); }

/* Ink outline button (light sections, secondary) */
.so-btn-ink {
  font-family: var(--body); font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  color: var(--ink); background: transparent;
  border: 1px solid var(--hairline-ink);
  transition: all .25s ease;
}
.so-btn-ink:hover { border-color: var(--green); color: var(--green); }

/* Disabled / in-flight state — shared across every CTA */
.so-btn:disabled,      .so-btn[aria-disabled="true"],
.so-btn-green:disabled, .so-btn-green[aria-disabled="true"],
.so-btn-ghost:disabled, .so-btn-ghost[aria-disabled="true"],
.so-btn-ink:disabled,   .so-btn-ink[aria-disabled="true"],
.nav-book:disabled,     .nav-book[aria-disabled="true"],
.btn-candy:disabled,    .btn-candy[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
  pointer-events: none;
}

/* Inline spinner for buttons in a loading state */
.so-spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: so-spin .7s linear infinite;
}
@keyframes so-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .so-spinner { animation-duration: 1.6s; }
}

/* Frosted glass card */
.so-glass {
  background: linear-gradient(180deg, rgba(246,239,223,0.08), rgba(246,239,223,0.03));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: var(--shadow-card);
}

/* Light card */
.so-card-light {
  background: #fff; border: 1px solid var(--hairline-ink);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px -34px rgba(22,34,28,0.4);
}

/* Trust badge pill */
.so-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 13px;
  color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline-soft);
}
.so-badge svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.so-badge--light {
  color: var(--ink); background: #fff;
  border: 1px solid var(--hairline-ink);
  box-shadow: 0 4px 14px -8px rgba(22,34,28,0.25);
}
.so-badge--light svg { color: var(--red); }

/* Photo placeholder (until real images land) */
.so-photo {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(200,162,74,0.07) 0 12px, rgba(200,162,74,0.02) 12px 24px),
    linear-gradient(160deg, var(--forest-700), var(--forest-850));
  display: flex; align-items: center; justify-content: center;
}
.so-photo .so-photo-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); opacity: 0.6; text-align: center; padding: 0 20px;
}
.so-photo::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 80px -10px rgba(0,0,0,0.6);
  pointer-events: none;
}
.so-photo--light {
  background:
    repeating-linear-gradient(135deg, rgba(23,107,67,0.06) 0 12px, rgba(23,107,67,0.02) 12px 24px),
    linear-gradient(160deg, #eef3ee, #e3ece4);
}
.so-photo--light .so-photo-label { color: var(--green); opacity: 0.7; }
.so-photo--light::after { box-shadow: inset 0 0 0 1px rgba(23,107,67,0.10); }

/* ---------------- NAV ---------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
}
.nav.solid {
  background: rgba(9,17,12,0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  padding: 14px 40px;
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo .seal {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--gold); background: rgba(246,239,223,0.06);
  flex: none;
}
.nav-logo .wm {
  font-family: var(--display); font-size: 23px; color: var(--cream);
  letter-spacing: 0.02em; line-height: 1;
}
.nav-logo .wm small {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.24em; color: var(--gold); margin-top: 4px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; letter-spacing: 0.01em;
  opacity: 0.88; transition: color .2s, opacity .2s;
}
.nav-links a:hover { color: var(--gold-200); opacity: 1; }
.nav-book {
  font-family: var(--body); font-weight: 700; font-size: 14px;
  color: var(--cream) !important;
  padding: 11px 22px; border-radius: 999px;
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 10px 24px -10px rgba(158,31,32,0.7);
  opacity: 1 !important;
}
.nav-burger {
  display: none; background: none; border: 0; cursor: pointer;
  color: var(--cream); padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* mobile menu overlay */
.mmenu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,17,12,0.96); backdrop-filter: blur(10px);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
}
.mmenu.open { display: flex; }
.mmenu a {
  font-family: var(--display); font-size: 30px; color: var(--cream); text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 24px; min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mmenu .close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: 0; color: var(--cream); cursor: pointer;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ---------------- SECTION HEADERS ---------------- */

.sec { padding: 110px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.sec-head .so-rule { width: 130px; margin: 0 auto 22px; }
.sec-head .so-eyebrow { display: block; margin-bottom: 16px; }
.sec-head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 4vw, 56px); line-height: 1.02; letter-spacing: -0.01em;
}
.sec-head p { font-size: 17px; line-height: 1.65; color: var(--ink-muted); margin: 18px 0 0; }

.sec--light { background: var(--snow); color: var(--ink); }
.sec--cream { background: var(--cream); color: var(--ink); }
.sec--dark  { background: var(--forest-900); color: var(--ink-soft); }
.sec--light h2, .sec--cream h2 { color: var(--ink); }
.sec--dark h2 { color: var(--cream); }
.sec--dark .sec-head p { color: var(--muted); }

/* ---------------- FOOTER ---------------- */

.footer {
  background: var(--forest-900);
  border-top: 1px solid var(--hairline-soft);
  padding: 70px 0 40px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  position: relative; z-index: 2;
}
.footer h5 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.footer a {
  display: block; color: var(--ink-soft);
  text-decoration: none; font-size: 14px;
  margin-bottom: 11px; opacity: 0.82;
  transition: opacity .2s, color .2s;
}
.footer a:hover { opacity: 1; color: var(--gold-200); }
/* Placeholder links whose destination page doesn't exist yet */
.footer a.soon {
  opacity: 0.45; cursor: default; pointer-events: none;
}
.footer a.soon::after {
  content: 'Soon'; margin-left: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.7; vertical-align: 1px;
}
.footer .fcol p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo .seal {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  color: var(--gold); background: rgba(246,239,223,0.06);
}
.footer-logo .wm { font-family: var(--display); font-size: 22px; color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 13px; color: var(--muted-2);
  flex-wrap: wrap; gap: 12px;
  position: relative; z-index: 2;
}

/* ---------------- REVEAL ANIMATION ---------------- */

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .nav, .nav.solid { padding: 14px 22px; }
  .sec { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom > div:last-child { font-size: 12px; opacity: 0.75; }
}

/* ---------------- TAP & FOCUS ---------------- */
a, button, .so-btn, .so-btn-ghost, .so-btn-green, .so-btn-ink, .nav-book {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-200);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Screen-reader-only label helper */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
