/* ==========================================================
   Luxury Spa - v6 layout upgrade (loads after style.css)
   ========================================================== */

/* ---------- Accessibility & focus ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown); color: var(--ivory); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear;
}

/* ---------- Header: smart hide on scroll down ---------- */
.site-header { transition: transform .4s ease, box-shadow .3s ease, background .3s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(59,42,30,.08); }
.nav-wrap { height: 68px; }

/* ---------- Hero: split layout with quick-check card ---------- */
.hero-grid { display: grid; gap: 32px; align-items: end; }
.quick-card {
  background: rgba(251, 247, 240, .96); color: var(--brown);
  border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
}
.quick-card h3 { font-size: 1.45rem; margin: 0 0 4px; }
.quick-card > p { margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.quick-card label { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 12px; }
.quick-card select, .quick-card input {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--beige); background: var(--white); font: inherit; color: var(--brown);
}
.quick-card .btn { width: 100%; margin-top: 4px; }
.quick-card .quick-foot { text-align: center; font-size: .85rem; margin: 12px 0 0; }

/* ---------- Trust strip: refined ---------- */
.trust-strip > .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.trust-strip b { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 24px; position: relative; counter-reset: step; }
.step { text-align: center; padding: 8px 12px; position: relative; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.6rem; font-weight: 700;
  background: var(--white); color: var(--gold-dark); border: 1px solid var(--gold);
  box-shadow: 0 0 0 8px var(--cream); position: relative; z-index: 1;
}
.step h4 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Spotlight cards ---------- */
.lux-card { position: relative; overflow: hidden; }
.lux-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(201,169,110,.22), transparent 60%);
}
.lux-card:hover::before { opacity: 1; }
.lux-card .card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.lux-card .tag {
  position: absolute; top: 14px; left: 14px; background: rgba(251,247,240,.94); color: var(--brown);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.card-img { position: relative; }
.card-img { transition: transform .8s ease; }
.lux-card:hover .card-img { transform: scale(1.04); }

/* ---------- Testimonials: swipeable on mobile, grid on desktop ---------- */
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding: 4px 2px 18px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: 0 0 86%; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--beige); transition: width .3s ease, background .3s ease;
}
.dots button[aria-current="true"] { width: 24px; background: var(--gold); }

/* ---------- Gallery & sections polish ---------- */
.section-head h2 em { font-style: italic; color: var(--gold-dark); }
.intro .lead { font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer-grid { grid-template-columns: 1fr; }
.footer-brand p { max-width: 36ch; }
.back-to-top {
  position: fixed; right: 18px; bottom: 96px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--white); color: var(--brown); cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s ease;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .trust-strip > .container { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps::before {
    content: ""; position: absolute; top: 32px; left: 16%; right: 16%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .slider { overflow: visible; flex-wrap: wrap; }
  .slider > * { flex: 1 1 0; }
  .dots { display: none; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.25fr .75fr; }
  .hero-grid .hero-content-col { max-width: 640px; }
  .quick-card { margin-bottom: 110px; }
  .quick-card .btn { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .scroll-progress, .back-to-top, .card-img, .dots button { transition: none; }
  .lux-card::before { display: none; }
}

/* ---------- Header fit on laptops (no awkward wrapping) ---------- */
.logo { white-space: nowrap; }
.site-header .main-nav a, .nav-cta { white-space: nowrap; }
@media (min-width: 960px) {
  .site-header .main-nav { gap: 2px; }
  .site-header .main-nav a { padding: 8px 9px; font-size: .74rem; letter-spacing: .08em; border: 0; }
  .site-header .main-nav a.active::after {
    content: ""; display: block; height: 1px; margin-top: 2px; background: var(--gold);
  }
  .nav-cta { padding: 10px 18px; font-size: .72rem; letter-spacing: .1em; }
  .logo { font-size: 1.4rem; }
}


/* ---------- Trust strip: container should not inherit the cell borders ---------- */
.trust-strip > .container { border: 0; padding: 0; }
.trust-strip > .container > div:last-child { border-right: 0; }

/* ---------- Booking wizard ---------- */
.wiz-progress { list-style: none; display: flex; justify-content: center; gap: 28px; margin: 0 0 28px; padding: 0; counter-reset: none; }
.wiz-progress li { display: flex; align-items: center; gap: 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wiz-progress li span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--beige); background: var(--white); font-family: var(--serif); font-size: 1rem; transition: all .3s ease;
}
.wiz-progress li.active { color: var(--brown); }
.wiz-progress li.active span { background: var(--gold); border-color: var(--gold); color: var(--white); box-shadow: 0 0 0 5px rgba(201,169,110,.2); }
.wiz-progress li.done span { background: var(--brown); border-color: var(--brown); color: var(--ivory); }
.wiz-progress li + li::before { content: ""; width: 40px; height: 1px; background: var(--beige); margin-right: 18px; }
.wiz-progress li.done + li::before, .wiz-progress li.active::before { background: var(--gold); }
.wiz-screen[hidden] { display: none; }
.wiz-screen { animation: wizIn .45s ease backwards; }
@keyframes wizIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.wiz-top { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--beige); }
.wiz-chip { margin: 0; font-size: .85rem; color: var(--gold-dark); letter-spacing: .04em; }
#wiz-msg { min-height: 1.2em; }
.slot-grid > .muted { grid-column: 1 / -1; margin: 0; }
.wiz-progress { gap: 14px; }
.wiz-progress li { white-space: nowrap; font-size: .72rem; letter-spacing: .08em; gap: 8px; }
.wiz-progress li + li::before { width: 28px; margin-right: 12px; }
@media (min-width: 720px) {
  .wiz-progress { gap: 28px; }
  .wiz-progress li { font-size: .8rem; letter-spacing: .12em; }
  .wiz-progress li + li::before { width: 40px; margin-right: 18px; }
}

/* Four-step progress: on phones show the labels only for the active step */
.wiz-progress li em { font-style: normal; }
@media (max-width: 719px) {
  .wiz-progress { gap: 6px; }
  .wiz-progress li em { display: none; }
  .wiz-progress li.active em { display: inline; }
  .wiz-progress li + li::before { width: 14px; margin-right: 6px; }
}

/* Header controls never shrink; the nav absorbs the space on laptops */
.nav-cta, .theme-toggle, .menu-toggle { flex-shrink: 0; }
.main-nav { min-width: 0; }
@media (min-width: 960px) {
  .site-header .nav-wrap { gap: 14px; }
  .site-header .main-nav { flex-wrap: nowrap; }
  .nav-cta { min-width: max-content; }
}
@media (min-width: 960px) {
  .site-header .main-nav a { padding: 8px 6px; font-size: .66rem; letter-spacing: .03em; }
  .site-header .nav-wrap { gap: 8px; }
  .logo { font-size: 1.2rem; letter-spacing: .03em; }
  .nav-cta { padding: 9px 12px; font-size: .62rem; letter-spacing: .06em; }
}
@media (min-width: 1280px) {
  .site-header .main-nav a { padding: 8px 9px; font-size: .7rem; letter-spacing: .06em; }
  .site-header .nav-wrap { gap: 14px; }
  .logo { font-size: 1.4rem; letter-spacing: .05em; }
  .nav-cta { padding: 10px 18px; font-size: .7rem; letter-spacing: .08em; }
}
