/* ==========================================================================
   SpinX360Video — Design Review Patch
   Drop-in layer: load AFTER style.css. Each block states what it overrides
   and why. No original rules were edited. See CHANGES.md for the rationale.
   ========================================================================== */

/* §1 — Global rhythm + brand selection color */
::selection { background: var(--accent); color: #0d0d0d; }
.section { padding: clamp(80px, 11vw, 136px) 0; }
#why-us .section-header { margin-bottom: var(--space-5); } /* only section with no subhead */

/* §2 — Reveal rewritten as a keyframe animation.
   FIX: `.reveal` (transition) and `.step-card`/`.pricing-card`/`.value-card`
   (their own `transition`) collided on the same elements — the card rule won
   and omitted `opacity`, so cards popped in with no fade. Animations don't
   compete with transitions, so hover lifts stay at their fast timing. */
.reveal { opacity: 0; transform: none; transition: none; }
.reveal.in-view {
  opacity: 1;
  animation: reveal-in 700ms var(--ease-out) backwards;
  animation-delay: var(--reveal-delay, 0ms); /* stagger set per-sibling in patch.js */
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view { animation: none; opacity: 1; transform: none; }
}

/* §3 — Buttons: lift instead of inflate (scale() blurs text mid-animation).
   Hover eases in over 240ms; release glides back over 320ms (a snappy
   180ms out felt abrupt). */
.btn { transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out), background 320ms var(--ease-out); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -6px var(--accent-glow); transition-duration: 240ms; }
.btn-accent:active { transform: translateY(0); box-shadow: 0 3px 10px -6px var(--accent-glow); transition-duration: 100ms; }
.btn-outline:hover { transform: translateY(-2px); transition-duration: 240ms; }
.btn-outline:active { transform: translateY(0); transition-duration: 100ms; }

/* §3b — Smoother card/tile hovers: longer, gentler ease both ways, slightly
   slower on exit so cards settle instead of snapping back. */
.step-card, .pricing-card, .value-card {
  transition: transform 450ms var(--ease-out), border-color 450ms var(--ease-out);
  will-change: transform;
}
.step-card:hover, .pricing-card:hover, .value-card:hover { transition-duration: 350ms; }
.reels-tile {
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  will-change: transform;
}
.reels-tile:hover { transition-duration: 380ms; }

/* §4 — Hero headline made visible (h1 was sr-only with no footage behind it) */
.hero-headline {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
  max-width: none;
  margin: 0 auto var(--space-3);
}
@media (min-width: 641px) {
  .hero-headline { white-space: nowrap; } /* the <br>s define the 3 lines */
}
.accent-word { color: var(--accent); }
.hero-subheadline { /* demoted now that the headline leads */
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  color: #c9c9c9;
  max-width: 640px;
}

/* §5 — Numbered section eyebrows (labels reuse existing nav names) */
.section-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--space-2);
}
.section-eyebrow::before,
.section-eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--border-strong); }

/* §6 — Pricing hierarchy: small prefix, large amount */
.price-prefix {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.price-amount { display: block; font-size: 2.1rem; line-height: 1.1; }
.price-amount-sm { font-size: 1.5rem; padding-top: 0.55rem; }

/* §7 — "Most Booked" card: --bg-card-hover (#201a1e) is magenta-tinted;
   replace with a lime-warmed charcoal and a softer, downward glow. Blur kept
   tight (reach ≈ padding available) so it isn't clipped by the mobile
   carousel's forced overflow:auto (overflow-x:auto makes overflow-y compute
   as auto too, clipping anything beyond the container's own padding). */
.pricing-card-popular {
  background: #1c1d13;
  box-shadow: 0 0 0 1px var(--accent), 0 6px 16px -8px var(--accent-glow);
}

/* §8 — Unified media placeholders: brand-neutral (charcoal stripes + faint
   lime), clearly tagged. Replaces off-palette blue/purple radials and the
   conic "dartboard" hero pattern. Delete this block when real footage lands. */
.hero-video-pattern {
  background:
    radial-gradient(circle at 50% 40%, rgba(208, 219, 39, 0.10), transparent 55%),
    repeating-linear-gradient(115deg, #101010 0 16px, #141414 16px 32px);
}
.ph-1, .ph-2, .ph-3 {
  background:
    radial-gradient(circle at 50% 35%, rgba(208, 219, 39, 0.08), transparent 60%),
    repeating-linear-gradient(115deg, #101010 0 12px, #151515 12px 24px);
}
.ph-label {
  position: absolute;
  top: 12px; left: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a8a8a;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 8px;
  pointer-events: none;
  white-space: nowrap;
  width: max-content;
}
.ph-label-hero {
  z-index: 2;
  top: calc(var(--header-h) + 14px);
  left: max(var(--space-3), calc((100vw - 1200px) / 2 + var(--space-3)));
}

/* §9 — Trust bar: let the numbers lead */
.trust-item strong { color: var(--text); font-weight: 800; }
.trust-item { letter-spacing: 0.05em; }

/* §10 — Scrollspy state (driven by patch.js) */
.nav-link.active { color: #fff; }
.nav-link.active::after { transform: scaleX(1); }

/* §11a — FIX: pristine required fields showed red borders on load.
   style.css uses `input:invalid:not(:placeholder-shown)` but the inputs have
   no placeholder, so `:not(:placeholder-shown)` always matched. Neutralize
   that rule; patch.js re-applies error styling only after a field is touched. */
input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--border-strong); }
input.touched:invalid:not(:focus) { border-color: #e05252; }

/* §11 — Input focus: accent ring, not just a border swap */
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* §12 — Mobile: Reels become a scroll-snap carousel (a full-width 9:16 tile
   is ~1.7 screens tall) and the primary Book CTA stays visible in the header */
@media (max-width: 768px) {
  .reels-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-2);
    margin: 0 calc(var(--space-3) * -1);
    padding: 4px var(--space-3) var(--space-2);
    scrollbar-width: none;
  }
  .reels-grid::-webkit-scrollbar { display: none; }
  .reels-tile { flex: 0 0 62%; scroll-snap-align: center; }
  .reels-tile:hover { transform: none; } /* no hover-zoom mid-swipe */
}
@media (max-width: 900px) {
  .header-book-btn { display: inline-flex; padding: 9px 18px; font-size: 12px; }
}
@media (max-width: 400px) {
  .header-book-btn { display: none; } /* too tight next to hamburger */
}

/* §13 — Motion energy (Tweaks control; html[data-motion], default standard).
   calm: shorter travel, longer settle, no cursor glow or parallax drama.
   showtime: bigger lifts, springier reveals, stronger glow. */
html[data-motion="calm"] .cursor-glow { display: none; }
html[data-motion="calm"] .reveal.in-view { animation-duration: 1000ms; }
html[data-motion="calm"] .step-card:hover,
html[data-motion="calm"] .value-card:hover,
html[data-motion="calm"] .pricing-card:hover { transform: translateY(-2px); }
html[data-motion="calm"] .reels-tile:hover { transform: scale(1.01); }
html[data-motion="calm"] .btn-accent:hover,
html[data-motion="calm"] .btn-outline:hover { transform: none; }

html[data-motion="showtime"] .reveal.in-view { animation-name: reveal-in-show; animation-duration: 850ms; animation-timing-function: cubic-bezier(0.34, 1.4, 0.44, 1); }
@keyframes reveal-in-show {
  from { opacity: 0; transform: translateY(44px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
html[data-motion="showtime"] .step-card:hover,
html[data-motion="showtime"] .value-card:hover { transform: translateY(-10px); }
html[data-motion="showtime"] .pricing-card:hover { transform: translateY(-10px) scale(1.01); }
html[data-motion="showtime"] .reels-tile:hover { transform: scale(1.06) rotate(-0.5deg); }
html[data-motion="showtime"] .btn-accent:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 36px -4px var(--accent-glow); }
html[data-motion="showtime"] .cursor-glow { filter: blur(40px); }
@media (prefers-reduced-motion: reduce) {
  html[data-motion] .reveal.in-view { animation: none; }
}

/* §14 — Forced headline breaks are desktop art direction; let text wrap
   naturally on small screens. */
@media (max-width: 640px) {
  .hero-headline br, .section-header br { display: none; }
}

/* §15 — Footer nav links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--text-muted, #a0a0a0);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 200ms var(--ease-out);
}
.footer-nav a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
}

/* §16 — Compact footer (~half height): tighter padding, 3-col row, smaller gaps */
.site-footer { padding-top: var(--space-4); }
.footer-inner {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}
.footer-brand { display: flex; align-items: center; }
.footer-logo { margin: 0; }
.footer-logo .logo-full { height: 42px; display: block; }
.footer-nav { gap: 6px 18px; flex-direction: row; flex-wrap: wrap; justify-content: center; align-self: center; }
.footer-contact { gap: 6px; }
.footer-bottom { padding: 12px 0; }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer-nav { justify-content: flex-start; }
}

/* §17 — Functional media: hero video + reel thumbnails (embeds carried
   unremovable IG chrome; tiles are now static thumbs linking to the reels) */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reels-tile { overflow: hidden; display: block; }
.reels-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.reels-tile .reels-play-icon { position: relative; z-index: 1; }

/* §18 — Language switch (SR/EN) in header */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  background: none; border: 0;
  color: #9a9a9a;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 200ms var(--ease-out);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: var(--accent); }
.lang-sep { color: rgba(255, 255, 255, 0.25); font-size: 12px; }

/* §19 — Hero: headline/subheadline removed (video carries the message);
   CTAs sit near the bottom, above the trust bar. h1 stays sr-only for SEO.
   Overrides style.css .hero-content's `justify-content: center`. */
.hero-content-bottom {
  justify-content: flex-end !important;
  padding-bottom: clamp(24px, 4vh, 48px) !important;
}

/* §22b — Track is flex row on all sizes so desktop keeps dividers; only the
   mobile query turns it into the looping marquee. */
.trust-marquee-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  width: 100%;
}

/* §22 — Mobile trust bar: looping right-to-left marquee (duplicated content) */
@media (max-width: 480px) {
  .trust-bar-inner {
    flex-wrap: nowrap;
    overflow: hidden;
    justify-content: flex-start;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  }
  .trust-bar-inner .trust-marquee-track {
    justify-content: flex-start;
    flex: 0 0 auto;
    gap: 20px;
    animation: trust-marquee 16s linear infinite;
    width: max-content;
  }
  .trust-item { font-size: 11px; white-space: nowrap; }
  .trust-divider { flex: 0 0 auto; }
}
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 480px) and (prefers-reduced-motion: reduce) {
  .trust-bar-inner .trust-marquee-track { animation: none; }
}

@media (min-width: 481px) {
  .mobile-only { display: none; }
}

/* §23 — Mobile packages: horizontal scroll-snap carousel, Standard centered
   and selected by default, Basic/Premium peeking at the edges. */
@media (max-width: 768px) {
  .pricing-grid {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    gap: var(--space-3);
    margin: 0 calc(var(--space-3) * -1);
    padding: 28px 10vw 40px;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
  }
  .pricing-card:hover { transform: none; }
}

/* §25 — iOS Safari renders input[type=date] narrower than text inputs
   despite width:100% (its intrinsic sizing ignores the box model here);
   force the same box-sizing/appearance so it matches its siblings. */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
}
/* §25b — iOS shows a thin native validity ring on an empty required date
   input that ignores the :invalid overrides above (it's UA chrome, not the
   border). Force our own border explicitly so empty/filled states match. */
input[type="date"]:not(:focus) {
  border: 1px solid var(--border-strong) !important;
  box-shadow: none !important;
}

/* §26 — SpotlightCard effect on package cards (desktop only; vanilla port of
   the React Bits SpotlightCard — no React in this stack, so the mouse-move
   listener lives in patch.js and just sets these same CSS custom props). */
@media (min-width: 769px) {
  .pricing-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-color: rgba(208, 219, 39, 0.16);
  }
  .pricing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  .pricing-card:hover::before, .pricing-card:focus-within::before { opacity: 1; }
  .pricing-card-popular { --spotlight-color: rgba(208, 219, 39, 0.22); }

  /* §26b — Same spotlight treatment on Reels tiles for consistent hover feel */
  .reels-tile {
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-color: rgba(208, 219, 39, 0.16);
  }
  .reels-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  .reels-tile:hover::before, .reels-tile:focus-within::before { opacity: 1; }
}

/* §26c — Match packages' hover motion: lift up instead of uniform scale */
.reels-tile:hover { transform: translateY(-6px) !important; }

/* §27 — Prevent page-level horizontal pan: the mobile carousels (packages,
   reels) intentionally bleed edge-to-edge via negative margins, which was
   letting the whole page rubber-band/shift left-right during scroll. */
html, body { overflow-x: hidden; max-width: 100%; }

/* NOTE (no rule needed): `.hero-trust` in style.css's ≤480px block is dead —
   the markup uses `.trust-bar` / `.trust-item`. Safe to delete there. */
