/* ============================================================
   Tanned By Ky — Design System
   Colors pulled directly from the live brand (tannedbyky.com):
   hot pink #FC7BD0, blush #FFB5E6, and the dusty rose #E8B4B8
   already used as the accent color on the Square booking widget.
   ============================================================ */

:root {
  --pink: #fc7bd0;
  --pink-dark: #e857bd;
  /* Darkened from #c93f9f so small bold text (eyebrows, inline links)
     clears WCAG AA 4.5:1 on the cream backgrounds. Still reads as the
     same brand magenta. */
  --pink-darker: #b8348f;
  --pink-light: #ffb5e6;
  --rose: #e8b4b8;
  --rose-dark: #d99498;
  --cream: #fff8fb;
  --cream-2: #fff0f7;
  --ink: #241820;
  --ink-soft: #5c4a54;
  --white: #ffffff;
  --line: #f3d9ea;
  --success: #3f9f6f;
  --shadow-sm: 0 2px 10px rgba(201, 63, 159, 0.08);
  --shadow-md: 0 10px 30px rgba(201, 63, 159, 0.14);
  --shadow-lg: 0 20px 50px rgba(201, 63, 159, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --font-display: "Fredoka", ui-rounded, "Baloo 2", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Safety net against sideways scroll. `clip` is preferred over `hidden`
   because `hidden` turns the element into a scroll container, which can
   break position:sticky and still lets iOS Safari pan the page. This is
   a backstop only — anything that overflows is fixed at the source. */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { line-height: 1.65; margin: 0 0 1em; color: var(--ink-soft); }

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

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--pink { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark p { color: #d8c3cf; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-darker);
  background: var(--cream-2);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section--dark .eyebrow { background: rgba(255,181,230,0.12); border-color: rgba(255,181,230,0.3); color: var(--pink-light); }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--pink); color: var(--ink); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--pink-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #3a2732; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-white { background: var(--white); color: var(--pink-darker); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ============ NAV ============ */
.announce {
  background: var(--pink);
  color: var(--ink);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 9px 16px;
}
.announce a { text-decoration: underline; text-underline-offset: 2px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pink-darker);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { color: var(--pink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a { padding: 6px 2px; position: relative; }
.nav-links a.active,
.nav-links a:hover { color: var(--pink-darker); }
/* Current-page underline. Excluded from .btn, or the "Book Your Tan"
   button on book.html gets a stray bar drawn under the pill. */
.nav-links a.active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--pink);
  border-radius: 3px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2.4px; background: var(--ink);
  border-radius: 2px; transition: all 0.25s ease;
}
.nav-toggle span { margin: 5px 0; }
.nav.open .nav-toggle::before { transform: translateY(7.4px) rotate(45deg); }
.nav.open .nav-toggle::after { transform: translateY(-7.4px) rotate(-45deg); }
.nav.open .nav-toggle span { opacity: 0; }

@media (max-width: 900px) {
  /* backdrop-filter makes the nav a containing block for fixed children,
     which would offset the slide-out menu and its overlay. Solid bg instead. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  /* Slid out with a transform rather than right:-100%. An off-screen
     positioned panel can let mobile browsers pan sideways; a transform
     never affects layout. visibility keeps the hidden links out of the
     tab order and off the accessibility tree while the menu is closed. */
  /* z-index must beat .nav-overlay (90), or the dim layer paints over the
     panel — greying the menu out and swallowing every tap, because the
     overlay's click handler closes the menu. Toggle stays above at 120. */
  .nav-links { position: fixed; top: 0; right: 0; width: min(340px, 84vw);
    height: 100vh; height: 100dvh; z-index: 110;
    background: var(--white); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 26px; font-size: 1.2rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.12); overscroll-behavior: contain; overflow-y: auto; }
  .nav.open .nav-links { transform: translateX(0); visibility: visible; }
  /* In the drawer a full-width bar reads as a divider, not a page marker.
     The active link is already tinted pink, which is enough. */
  .nav-links a.active::after { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; flex-direction: column; z-index: 120; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(36,24,32,0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 90; }
  .nav.open .nav-overlay { opacity: 1; pointer-events: auto; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.55;
}
.hero-blob.b1 { width: 480px; height: 480px; background: var(--pink-light); top: -180px; right: -140px; }
.hero-blob.b2 { width: 320px; height: 320px; background: var(--rose); bottom: -120px; left: -100px; opacity: 0.4; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .stars { color: var(--pink-darker); font-size: 1rem; margin-bottom: 14px; letter-spacing: 3px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 .swoosh { color: var(--pink); }
.hero-copy p.lead { font-size: 1.15rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--pink-darker); }
.hero-trust span { font-size: 0.82rem; color: var(--ink-soft); }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.hero-badge .emoji { font-size: 1.6rem; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.hero-badge span { font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .hero-badge { left: 16px; bottom: -18px; }
}

/* On phones the hero photo is capped so the headline and the book
   button stay above the fold — that's what people came to do. */
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .hero-media img { aspect-ratio: 5/4; max-height: 34vh; }
  .hero-grid { gap: 34px; }
  .hero-copy h1 { font-size: 2.5rem; }
  .hero-trust { gap: 18px 26px; }
}

/* ============ MARQUEE ============ */
.marquee { background: var(--ink); color: var(--white); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll-left 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 500; font-size: 1rem; padding: 0 28px; white-space: nowrap; opacity: 0.9; }
.marquee-track span.pink { color: var(--pink-light); }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ CARDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card.featured { border: 2px solid var(--pink); background: linear-gradient(180deg, var(--cream-2), var(--white)); }
.service-card .badge {
  position: absolute; top: -14px; left: 26px;
  background: var(--pink); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem;
  padding: 6px 14px; border-radius: var(--radius-pill); letter-spacing: 0.03em;
}
.service-card .name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin-bottom: 6px; }
.service-card .meta { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.service-card .price { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--pink-darker); }
.service-card .duration { font-size: 0.85rem; color: var(--ink-soft); background: var(--cream-2); padding: 3px 10px; border-radius: var(--radius-pill); }
.service-card .desc { font-size: 0.92rem; flex-grow: 1; margin-bottom: 22px; }
.service-card ul.includes { margin: 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.service-card ul.includes li { font-size: 0.85rem; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.service-card ul.includes li::before { content: "✓"; color: var(--pink-darker); font-weight: 700; flex-shrink: 0; }

/* Reviews */
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 28px;
  height: 100%;
}
.review-card .stars { color: var(--pink); letter-spacing: 2px; margin-bottom: 14px; font-size: 1.1rem; }
.review-card p.quote { font-size: 1.02rem; color: var(--ink); font-style: italic; margin-bottom: 18px; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review-who strong { display: block; font-size: 0.92rem; }
.review-who span { font-size: 0.78rem; color: var(--ink-soft); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); transition: transform 0.4s ease; }
.gallery-grid a { overflow: hidden; border-radius: var(--radius-sm); display: block; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-q .plus { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--pink-darker); transition: transform 0.25s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 26px 24px; }
.faq-a-inner p { margin: 0; font-size: 0.95rem; }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  width: 48px; height: 48px; border-radius: 50%; background: var(--pink);
  color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) { .split, .split.reverse .split-media { grid-template-columns: 1fr; order: 0; } }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-media.landscape img { aspect-ratio: 5/4; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--ink); }
.check-list li::before { content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--pink-light); color: var(--ink); font-weight: 700; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; margin-top: 2px; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.field .req { color: var(--pink-darker); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(252,123,208,0.15); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.field.checkbox input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.field.checkbox label { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
/* Hidden from people, still visible to bots that fill every input.
   Clipped in place rather than parked at left:-9999px, which pushes the
   scrollable area sideways on some mobile browsers. */
.field.honeypot {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-top: 16px; font-weight: 500; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e5f6ec; color: var(--success); }
.form-msg.err { background: #fdeceb; color: #c94b3f; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--pink), var(--pink-light));
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { max-width: 520px; margin: 0 auto 30px; color: #5a2f49; }
.cta-banner .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-banner { padding: 40px 24px; } }

/* Info strip (address/hours/phone) */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .info-strip { grid-template-columns: 1fr; } }
.info-card { display: flex; gap: 16px; align-items: flex-start; }
.info-card .icon { width: 46px; height: 46px; border-radius: 14px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p { margin: 0; font-size: 0.92rem; }

/* Map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* Book embed */
.book-embed-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.book-embed-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.book-embed-head h3 { margin: 0; }
.book-embed-body { position: relative; background: var(--cream); }
.book-embed-body iframe { width: 100%; height: 900px; border: 0; display: block; }
.book-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: var(--cream); transition: opacity 0.3s ease;
}
.book-loading .spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--pink-light); border-top-color: var(--pink-darker); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.book-loading.hide { opacity: 0; pointer-events: none; }
.book-fallback { text-align: center; padding: 60px 24px; }

/* Solution table */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .solution-grid { grid-template-columns: 1fr; } }
.solution-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; text-align: center; }
.solution-card .tag { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--cream-2); padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 12px; color: var(--pink-darker); }
.solution-card strong { display: block; font-size: 1.5rem; font-family: var(--font-display); margin-bottom: 4px; }

/* Footer */
.footer { background: var(--ink); color: #eadfe3; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .logo { color: var(--pink-light); margin-bottom: 14px; }
.footer p { color: #c7b3bd; font-size: 0.92rem; }
.footer h3 { font-family: var(--font-display); font-size: 0.95rem; color: var(--white); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.92rem; color: #d8c3cf; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--pink-light); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.footer-social a:hover { background: var(--pink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.82rem; color: #a58e98; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: #a58e98; }
.footer-bottom a:hover { color: var(--pink-light); }

/* Reveal animation.
   Only hidden when JS is running (the .js class is set by an inline
   script in <head>), so a JS failure can never leave the page blank. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* Breadcrumb / page hero (interior pages) */
.page-hero { padding: 56px 0 20px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 560px; margin: 0 auto; }

/* Sticky book bar (mobile) */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  padding: 12px 16px; display: none; align-items: center; justify-content: space-between; gap: 12px;
}
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 74px; } }
.sticky-cta .price-hint { font-size: 0.8rem; color: var(--ink-soft); }
.sticky-cta .price-hint strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 0.95rem; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-pill { display: inline-block; background: var(--cream-2); color: var(--pink-darker); font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; padding: 5px 12px; border-radius: var(--radius-pill); }
.divider { height: 1px; background: var(--line); border: none; margin: 40px 0; }
.small-note { font-size: 0.82rem; color: var(--ink-soft); }

/* ============================================================
   MOBILE REFINEMENTS
   Desktop styling above is untouched — everything here is scoped
   to a max-width so the large-screen layout stays exactly as-is.
   ============================================================ */

/* Anchor links must clear the sticky nav, or headings hide under it. */
:target,
section[id],
[id^="faq"],
#inquire, #training, #location, #services, #reviews, #prep, #solutions,
#favorite, #brides-dream, #basic, #party, #biweekly {
  scroll-margin-top: 90px;
}

/* Skip link — first thing a keyboard or screen-reader user hits, so they
   can jump the nav. Slid out of view with a transform rather than parked
   off-screen, which would widen the scrollable area. */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 200;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 0 0 10px 0;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Keyboard focus. Only :focus-visible, so mouse clicks don't draw a ring
   but tabbing always does — on the dark ink color, which stays legible on
   pink buttons and cream panels alike. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.footer a:focus-visible,
.section--dark a:focus-visible {
  outline-color: var(--pink-light);
}

/* Tapping shouldn't flash a grey box on iOS/Android. */
a, button, .pick, .faq-q { -webkit-tap-highlight-color: rgba(252, 123, 208, 0.18); }

@media (max-width: 900px) {
  /* Sections are generously spaced for desktop; on a phone that's
     a lot of thumb-scrolling between ideas. */
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .section-head { margin-bottom: 34px; }
  .page-hero { padding: 40px 0 12px; }

  h2 { font-size: clamp(1.75rem, 5.5vw, 2.3rem); }
  h3 { font-size: 1.2rem; }
  .split { gap: 36px; }

  /* Blurred blobs are expensive to composite on mobile GPUs. */
  .hero-blob { filter: blur(40px); opacity: 0.4; }
  .hero-blob.b1 { width: 320px; height: 320px; }
  .hero-blob.b2 { display: none; }

  .cta-banner { padding: 44px 26px; }
  .form-card { padding: 28px 22px; }
  .marquee-track span { font-size: 0.9rem; padding: 0 18px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 40px 0; }

  /* Every tappable thing gets a comfortable target. Apple and Google
     both put the floor around 44px; buttons here clear it. */
  .btn { padding: 15px 26px; min-height: 48px; }
  .btn-sm { padding: 11px 20px; min-height: 42px; }
  .faq-q { padding: 20px; min-height: 60px; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .footer-links a { padding: 3px 0; min-height: 40px; display: flex; align-items: center; }
  .footer-social a { width: 44px; height: 44px; }
  /* The wordmark is the "go home" target — give it a real tap area. */
  .logo { min-height: 44px; display: flex; align-items: center; }
  .announce a { display: inline-block; padding: 4px 0; }

  /* Stacked buttons read better than two cramped half-width ones. */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .cta-banner .btn-row { flex-direction: column; }
  .cta-banner .btn-row .btn { width: 100%; }

  .hero-trust { gap: 14px 22px; }
  .hero-trust strong { font-size: 1.2rem; }
  .hero-trust span { font-size: 0.76rem; }

  .service-card { padding: 26px 22px; }
  .feature-card { padding: 26px 22px; }
  .review-card { padding: 24px 20px; }
  .review-card p.quote { font-size: 0.98rem; }
  .side-card { padding: 22px; }

  .gallery-grid { gap: 10px; grid-auto-rows: 120px; }
  .map-wrap iframe { min-height: 280px; }

  /* The floating badge overlaps the photo awkwardly at this width. */
  .hero-badge { position: static; margin-top: 14px; max-width: none; }

  .footer { padding-top: 52px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Very small phones (SE-sized) — keep headlines from overflowing. */
@media (max-width: 380px) {
  .hero-copy h1 { font-size: 2.15rem; }
  h2 { font-size: 1.6rem; }
  .btn { font-size: 0.95rem; padding: 14px 20px; }
  .sticky-cta .price-hint { font-size: 0.74rem; }
}

/* Landscape phones: the hero photo cap would eat the whole screen. */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero-media img { max-height: 60vh; }
  .nav-links { padding: 24px 32px; gap: 16px; font-size: 1rem; }
}
