/* Cross-device polish — load last */

/* ── Global: no horizontal scroll ── */
html {
  overflow-x: hidden;
  max-width: 100%;
}

html,
body {
  max-width: 100vw;
}

main,
section,
.site-footer,
.marquee-wrap,
.hero,
.container,
.container-wide {
  max-width: 100%;
  overflow-x: clip;
}

body {
  padding-bottom: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Text wrapping */
body,
p,
li,
.legal-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

.headline,
.section-header h2,
.cta-banner h2 {
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .headline,
  .section-header h2 {
    max-width: 100%;
  }
}

.nowrap,
.tel-link,
.contact-item .value[href^="tel:"],
.footer-col a[href^="tel:"] {
  white-space: nowrap;
}

.btn,
.floating-cta,
.pricing-tab {
  white-space: nowrap;
}

/* Fluid containers */
.container,
.container-wide {
  width: 100%;
  max-width: min(1200px, 100%);
  padding-inline: clamp(16px, 5vw, 28px);
  margin-inline: auto;
}

.container-wide {
  max-width: min(1400px, 100%);
}

.section {
  padding-block: clamp(64px, 12vw, 120px);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  transition: top 200ms var(--ease);
}

.skip-link:focus {
  top: max(12px, env(safe-area-inset-top));
}

/* Safe areas */
.site-nav {
  padding-top: max(18px, env(safe-area-inset-top));
}

.site-nav.scrolled {
  padding-top: max(12px, env(safe-area-inset-top));
}

.floating-cta {
  z-index: 90;
  bottom: max(20px, env(safe-area-inset-bottom));
  min-height: 56px;
  min-width: min(200px, calc(100vw - 32px));
  padding: 14px clamp(24px, 6vw, 32px);
  font-size: clamp(13px, 3vw, 15px);
  white-space: nowrap;
}

.site-footer {
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* Touch targets */
.btn {
  min-height: 48px;
  min-width: 48px;
  padding: 14px 24px;
  font-size: clamp(13px, 3vw, 15px);
  touch-action: manipulation;
}

.btn-sm {
  min-height: 44px;
  padding: 12px 20px;
  font-size: clamp(12px, 2.8vw, 14px);
}

a,
button {
  touch-action: manipulation;
}

.pricing-tab {
  min-height: 44px;
  padding: 12px clamp(14px, 3vw, 28px);
  font-size: clamp(12px, 2.5vw, 14px);
}

.nav-toggle {
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.faq-list summary {
  min-height: 56px;
  padding-block: 16px;
  align-items: flex-start;
}

.faq-icon {
  margin-top: 2px;
}

.price-card .btn,
.price-card .btn-sm {
  width: 100%;
}

/* Hero dvh */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Fluid typography */
.eyebrow {
  font-size: clamp(11px, 2vw, 13px);
}

body {
  font-size: clamp(15px, 2.5vw, 17px);
}

.hero-content h1 {
  font-size: clamp(44px, 11vw, 96px);
}

.section-header h2 {
  font-size: clamp(36px, 7vw, 64px);
}

.attraction-card-body h3 {
  font-size: clamp(22px, 5vw, 32px);
}

.stat-number {
  font-size: clamp(48px, 14vw, 96px);
}

.price-amount {
  font-size: clamp(36px, 12vw, 48px);
}

.cta-banner h2 {
  font-size: clamp(44px, 12vw, 120px);
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
}

/* Hover only on fine pointers */
@media (hover: hover) {
  .attraction-card:hover {
    transform: translateY(-6px);
  }

  .card:hover,
  .price-card:hover,
  .party-card:hover,
  .testimonial-card:hover,
  .safety-card:hover,
  .contact-item:hover,
  .about-feature:hover,
  .offer-banner:hover {
    transform: translateY(-4px);
  }

  .btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: translateY(-2px);
  }

  .floating-cta:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .social-links a:hover {
    transform: translateY(-4px);
  }
}

@media (hover: none) {
  .attraction-card:hover,
  .card:hover,
  .price-card:hover,
  .party-card:hover,
  .testimonial-card:hover,
  .safety-card:hover,
  .contact-item:hover,
  .about-feature:hover,
  .offer-banner:hover {
    transform: none;
  }
}

/* Nav mobile drawer */
body.menu-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .nav-logo img {
    height: 40px;
  }

  .site-nav.scrolled .nav-logo img {
    height: 36px;
  }

  .nav-inner {
    position: relative;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: calc(56px + env(safe-area-inset-top));
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--line);
    transition: max-height 300ms var(--ease), opacity 300ms var(--ease), visibility 300ms;
    z-index: 999;
  }

  .nav-links.open {
    max-height: min(85vh, 520px);
    opacity: 1;
    visibility: visible;
    padding: 8px 0 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px clamp(16px, 5vw, 28px);
    font-size: 15px;
    border-bottom: 1px solid rgba(245, 241, 234, 0.06);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .nav-cta {
    display: inline-flex;
    margin: 16px clamp(16px, 5vw, 28px) 8px;
    width: calc(100% - clamp(32px, 10vw, 56px));
    justify-content: center;
    border-bottom: none;
  }

  /* Hide sticky/floating CTA on mobile — hero + menu CTAs remain */
  .floating-cta {
    display: none !important;
  }
}

/* Hero mobile */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 40px);
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    max-width: 100%;
    margin-inline: 0;
  }

  .hero-card {
    aspect-ratio: 4 / 3;
    max-height: 420px;
  }
}

@media (max-width: 680px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }

  .hero-badge .tag {
    font-size: 10px;
    padding: 8px 12px;
  }

  .hero-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-card-footer p {
    max-width: 100%;
  }

  .hero-card-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(80px + env(safe-area-inset-top)) 0 48px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero-visual {
    display: none;
  }

  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-ctas .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

/* Stats: keep 2×2 on mobile */
@media (max-width: 680px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 4vw, 24px);
  }
}

/* About */
@media (max-width: 1024px) {
  .about-grid .about-text {
    order: 1;
  }

  .about-grid .about-visual {
    order: 2;
  }
}

@media (max-width: 680px) {
  .about-image-card {
    max-width: min(340px, 88vw);
  }

  .about-owner-photo {
    object-position: center 15%;
  }
}

@media (max-width: 480px) {
  .about-watermark {
    display: none;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-credit {
    font-size: 11px;
    padding: 10px 14px;
    top: 12px;
    left: 12px;
  }

  .about-quote {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .about-quote p {
    font-size: 14px;
  }
}

/* Attractions */
@media (max-width: 768px) and (min-width: 681px) {
  .attraction-card.featured,
  .attraction-card.span-4,
  .attraction-card.span-6 {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .attractions-grid {
    gap: clamp(16px, 3vw, 20px);
  }

  .attraction-card {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .attraction-card.featured {
    min-height: 360px;
  }

  .attraction-card-body {
    padding: clamp(20px, 5vw, 28px);
  }
}

/* Pricing */
@media (max-width: 680px) {
  .pricing-tabs {
    gap: 8px;
    margin-bottom: 20px;
  }

  .price-card {
    padding: clamp(20px, 5vw, 32px);
  }

  .price-popular {
    margin-bottom: 10px;
    font-size: 9px;
    padding: 4px 8px;
  }

  .price-card:has(.price-popular) h3 {
    padding-right: 0;
  }

  .price-features li {
    align-items: flex-start;
    display: flex;
    gap: 4px;
  }
}

/* Contact map */
@media (max-width: 1024px) {
  .contact-grid .contact-items {
    order: 1;
  }

  .contact-grid .map-card {
    order: 2;
  }
}

@media (max-width: 680px) {
  .map-card {
    aspect-ratio: 16 / 10;
  }

  .contact-item .value {
    word-break: break-word;
    white-space: normal;
  }

  .contact-item .value.nowrap,
  .contact-item a.value[href^="tel:"] {
    white-space: nowrap;
  }
}

/* CTA banner */
@media (max-width: 680px) {
  .cta-banner .btns {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
  }

  .cta-banner .btns .btn {
    width: 100%;
    margin-left: 0;
  }
}

/* Footer mobile */
@media (max-width: 680px) {
  .site-footer {
    padding-top: clamp(48px, 10vw, 64px);
  }

  .footer-grid {
    gap: 32px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    padding: 16px 0 8px;
  }

  .footer-bottom-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .footer-managed {
    font-size: 10px;
    margin-top: 8px;
    padding-top: 8px;
  }
}

/* FAQ */
@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Parties 4-col → responsive already in sections; ensure 1 col mobile */
@media (max-width: 680px) {
  .parties-grid {
    grid-template-columns: 1fr;
  }
}

/* Card padding scale */
.price-card,
.testimonial-card,
.safety-card,
.contact-item,
.about-feature {
  padding: clamp(20px, 5vw, 32px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print */
@media print {
  .site-nav,
  .floating-cta,
  .nav-toggle,
  .hero-visual,
  .marquee-wrap,
  .social-links {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  body::before {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .price-card,
  .testimonial-card {
    page-break-inside: avoid;
    border: 1px solid #ccc;
  }

  .cta-banner {
    background: #eee;
    color: #000;
  }

  .cta-banner h2,
  .cta-banner .sub {
    color: #000;
  }
}

/* Legal pages */
@media (max-width: 680px) {
  .legal-page {
    padding-top: calc(72px + env(safe-area-inset-top));
  }
}
