/* ============================================================================
   BELLUSTOUR — CLEAN 100SVH 3D CATEGORY CAROUSEL & IMMERSIVE POPUPS
   Inspired by:
   - msp-future-carousel & msp-skyway (Single-screen 3D stage, horizon depth)
   - album-release & supplement-shop (Expressive visual cards & clean popups)
   - design-taste-frontend (Equal edges, tactile micro-interactions, zero clutter)
   ============================================================================ */

:root {
  --bg-deep: #030917;
  --bg-navy: #040d21;
  --bg-surface: #081530;
  --bg-card-solid: #091734;

  --ink: #f8fafc;
  --ink-muted: #94a3b8;
  --ink-subtle: #64748b;

  --gold: #e8c170;
  --gold-bright: #f7dca0;
  --gold-deep: #c59b40;

  --ocean: #00a8e8;
  --ocean-bright: #38bdf8;

  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(232, 193, 112, 0.42);

  --edge: clamp(20px, 4.5vw, 68px);
  --max-w: 1440px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

/* Home page is a clean, locked 100svh interactive canvas with zero clutter */
body.home-stage-locked {
  overflow: hidden;
  height: 100svh;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--edge);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================================================
   1. MINIMALIST FLOATING HEADER
   ============================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 76px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(3, 9, 23, 0.85) 0%, rgba(3, 9, 23, 0) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  transition: transform 0.25s var(--ease-out);
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.brand-emblem-svg {
  height: 42px;
  width: auto;
  aspect-ratio: 891 / 382;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 168, 232, 0.22));
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.brand-title .bellus {
  color: #ffffff;
}

.brand-title .tour {
  background: linear-gradient(135deg, #f9e29c 0%, #e4b756 50%, #c89632 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  margin-left: 1px;
}

.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-top: 4px;
  font-weight: 600;
  opacity: 0.88;
}

/* Top Quick Category Dots */
.header-cat-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(6, 16, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.header-cat-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all 0.24s var(--ease-out);
}

.header-cat-btn:hover {
  color: var(--ink);
}

.header-cat-btn.active {
  background: linear-gradient(135deg, #f7dca0 0%, #e2b553 100%);
  color: #040d21;
  box-shadow: 0 4px 14px rgba(232, 193, 112, 0.35);
}

/* Tactile Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-gold {
  background: linear-gradient(135deg, #f7dca0 0%, #e2b553 55%, #c79632 100%);
  color: #040d21;
  box-shadow: 0 8px 24px -4px rgba(232, 193, 112, 0.45);
}

.btn-gold:hover {
  box-shadow: 0 12px 30px -4px rgba(232, 193, 112, 0.65);
}

.btn-ocean {
  background: linear-gradient(135deg, #38bdf8 0%, #00a8e8 60%, #0284c7 100%);
  color: #030917;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-gold);
}

/* ============================================================================
   2. CLEAN 100SVH FULL-SCREEN CATEGORY CAROUSEL STAGE
   ============================================================================ */
.hero-stage {
  position: relative;
  width: 100%;
  height: 100svh;
  padding-top: 82px;
  padding-bottom: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.stage-backdrop-img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: brightness(0.38) saturate(1.18) blur(8px);
  transform: scale(1.04) translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: opacity 0.65s var(--ease-out), transform 0.35s ease-out;
}

.stage-backdrop-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 168, 232, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(3, 9, 23, 0.85) 0%, rgba(4, 13, 33, 0.35) 50%, rgba(3, 9, 23, 0.94) 100%);
}

/* Minimal Stage Title */
.stage-top {
  text-align: center;
  z-index: 10;
  padding-inline: var(--edge);
}

.stage-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.9;
}

.stage-headline {
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: #ffffff;
}

.stage-headline span.gold-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.14em;
  color: var(--gold-bright);
}

/* ============================================================================
   3. 3D CATEGORY CARDS TRACK (msp-future-carousel aesthetic)
   ============================================================================ */
.carousel-viewport {
  position: relative;
  width: 100%;
  flex: 1;
  max-height: 540px;
  min-height: 360px;
  margin-block: auto;
  perspective: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-track-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tall, Gallery-Grade Category Card */
.cat-card-3d {
  position: absolute;
  width: min(82vw, 440px);
  height: min(62svh, 490px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card-solid);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px -15px rgba(0, 0, 0, 0.88);
  transition:
    transform 0.68s var(--ease-spring),
    opacity 0.55s var(--ease-out),
    filter 0.55s var(--ease-out),
    border-color 0.35s var(--ease-out);
  will-change: transform, opacity;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  isolation: isolate;
}

.cat-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.75s var(--ease-out);
}

.cat-card-3d[data-offset="0"]:hover .cat-card-bg {
  transform: scale(1.06);
}

.cat-card-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(3, 9, 23, 0.45) 0%,
    rgba(3, 9, 23, 0.08) 38%,
    rgba(4, 13, 33, 0.88) 76%,
    rgba(3, 9, 23, 0.98) 100%
  );
}

/* 3D Spatial Offsets for the 5 Category Cards */
.cat-card-3d[data-offset="0"] {
  z-index: 30;
  opacity: 1;
  transform: translate3d(calc(var(--px, 0px) * 0.45), calc(var(--py, 0px) * 0.45), 40px) rotateY(0deg) scale(1);
  border-color: var(--gold);
  box-shadow:
    0 35px 90px -12px rgba(0, 0, 0, 0.92),
    0 0 45px -10px rgba(232, 193, 112, 0.32);
}

.cat-card-3d[data-offset="-1"] {
  z-index: 20;
  opacity: 0.68;
  filter: brightness(0.7);
  transform: translate3d(-86%, 0, -140px) rotateY(28deg) scale(0.86);
}

.cat-card-3d[data-offset="1"] {
  z-index: 20;
  opacity: 0.68;
  filter: brightness(0.7);
  transform: translate3d(86%, 0, -140px) rotateY(-28deg) scale(0.86);
}

.cat-card-3d[data-offset="-2"] {
  z-index: 10;
  opacity: 0.32;
  filter: brightness(0.48);
  transform: translate3d(-155%, 0, -320px) rotateY(38deg) scale(0.72);
}

.cat-card-3d[data-offset="2"] {
  z-index: 10;
  opacity: 0.32;
  filter: brightness(0.48);
  transform: translate3d(155%, 0, -320px) rotateY(-38deg) scale(0.72);
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-badge-pill {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(4, 13, 33, 0.78);
  border: 1px solid rgba(232, 193, 112, 0.45);
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.cat-count-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 168, 232, 0.88);
  color: #030917;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.cat-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-card-price {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ocean-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cat-card-title {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cat-card-sub {
  font-size: 0.86rem;
  color: rgba(248, 250, 252, 0.82);
  line-height: 1.4;
}

.cat-card-cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f7dca0 0%, #e2b553 100%);
  color: #040d21;
  font-weight: 800;
  font-size: 0.88rem;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}

.cat-card-3d[data-offset="0"]:hover .cat-card-cta {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(232, 193, 112, 0.48);
}

/* ============================================================================
   4. BOTTOM STAGE HUD & DISCRETE FOOTER BAR
   ============================================================================ */
.stage-bottom-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  z-index: 20;
}

.stage-mini-legal {
  position: absolute;
  right: var(--edge);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 24, 53, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.22s var(--ease-out);
  backdrop-filter: blur(10px);
}

.hud-btn:hover {
  background: var(--gold);
  color: #040d21;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.hud-counter {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  min-width: 58px;
  text-align: center;
}

.hud-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hud-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
  transition: all 0.3s var(--ease-out);
}

.hud-dot.active {
  width: 28px;
  background: var(--gold);
}

.stage-mini-legal {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.stage-mini-legal a:hover {
  color: var(--gold-bright);
}

/* ============================================================================
   5. POPUP 1: IMMERSIVE CATEGORY PACKAGES SHOWCASE MODAL
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(2, 6, 16, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.5vw, 28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Category Packages Showcase Window — Strictly Horizontal Scroll Only (Zero Vertical Scroll) */
.category-showcase-modal {
  position: relative;
  width: 100%;
  max-width: 1180px;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #081736 0%, #030a1a 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.92);
  padding: clamp(16px, 2.4vw, 30px);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.34s var(--ease-spring);
}

.category-showcase-modal::-webkit-scrollbar,
.quote-modal::-webkit-scrollbar,
.packages-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-backdrop.open .category-showcase-modal {
  transform: translateY(0) scale(1);
}

.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.showcase-switcher-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.showcase-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-nav-arrows.hidden {
  display: none;
}

.rail-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(232, 193, 112, 0.35);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s var(--ease-out);
}

.rail-arrow-btn:hover {
  background: var(--gold);
  color: #040d21;
  transform: translateY(-1px);
}

.showcase-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.showcase-pill:hover {
  color: var(--ink);
}

.showcase-pill.active {
  background: rgba(232, 193, 112, 0.16);
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

/* Single-Row Horizontal Glide Rail (Strictly Horizontal, Zero Vertical Scroll) */
.packages-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.packages-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pkg-card {
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  background: rgba(10, 24, 53, 0.92);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.pkg-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.pkg-card-media {
  position: relative;
  height: clamp(130px, 23dvh, 210px);
  overflow: hidden;
}

.pkg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.pkg-card:hover .pkg-card-media img {
  transform: scale(1.04);
}

.pkg-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.badge-tag {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(232, 193, 112, 0.95);
  color: #040d21;
}

.badge-ocean {
  background: rgba(0, 168, 232, 0.92);
  color: #030917;
}

.badge-urgent {
  background: rgba(244, 63, 94, 0.94);
  color: #ffffff;
}

.pkg-card-port {
  position: absolute;
  bottom: 10px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(3, 9, 23, 0.88);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.pkg-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pkg-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
}

.pkg-card-sub {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.pkg-card-route {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.pkg-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-block .price-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.price-block .price-main {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.price-block .price-sub {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

/* ============================================================================
   6. POPUP 2: MATHEUS QUOTE FORM MODAL (-> WHATSAPP)
   ============================================================================ */
#quote-modal-backdrop {
  z-index: 220;
}

.quote-modal {
  position: relative;
  width: 100%;
  max-width: 590px;
  max-height: 92svh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #09193a 0%, #040d21 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95);
  padding: clamp(20px, 3vw, 32px);
  transform: translateY(18px) scale(0.97);
  transition: transform 0.32s var(--ease-spring);
}

.modal-backdrop.open .quote-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.88);
}

.modal-selected-pkg {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 232, 0.11);
  border: 1px solid rgba(0, 168, 232, 0.3);
  margin-bottom: 16px;
}

.modal-selected-pkg img {
  width: 60px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.matheus-greeting {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  margin-bottom: 18px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.matheus-greeting strong {
  color: var(--gold-bright);
  font-size: 0.96rem;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(3, 9, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  font-size: 0.9rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.duration-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.duration-pill {
  position: relative;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(3, 9, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s;
}

.duration-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.duration-pill .dur-title {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
}

.duration-pill .dur-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.duration-pill.selected {
  border-color: var(--gold);
  background: rgba(232, 193, 112, 0.15);
}

.duration-pill.selected .dur-title {
  color: var(--gold-bright);
}

.duration-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.port-rule-callout {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(232, 193, 112, 0.08);
  border: 1px dashed rgba(232, 193, 112, 0.35);
  font-size: 0.76rem;
  color: var(--gold-bright);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-submit-btn {
  width: 100%;
  padding: 14px 22px;
  font-size: 0.98rem;
}

.whatsapp-fallback-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.8rem;
  display: none;
}

.whatsapp-fallback-box.visible {
  display: block;
}

/* ============================================================================
   7. COMPREHENSIVE RESPONSIVE BREAKPOINTS (320px to 1920px+ & Short Screens)
   ============================================================================ */

/* Large Desktop / Ultrawide (1600px+) */
@media (min-width: 1600px) {
  .cat-card-3d {
    width: 480px;
    height: min(64svh, 540px);
  }
  .category-showcase-modal {
    max-width: 1280px;
  }
}

/* Laptop / Compact Height Screens (e.g. 1366x768 or 1280x720) */
@media (max-height: 760px) {
  .site-header {
    height: 64px;
  }
  .hero-stage {
    padding-top: 68px;
    padding-bottom: 14px;
  }
  .carousel-viewport {
    min-height: 290px;
    max-height: 430px;
  }
  .cat-card-3d {
    height: min(58svh, 400px);
    padding: 18px;
  }
  .cat-card-title {
    font-size: 1.45rem;
  }
  .category-showcase-modal {
    padding: 18px 22px;
    max-height: 94svh;
  }
  .showcase-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .showcase-toolbar {
    margin-bottom: 12px;
  }
  .pkg-card-media {
    height: clamp(110px, 19dvh, 160px);
  }
  .pkg-card-body {
    padding: 12px 14px;
    gap: 3px;
  }
  .pkg-card-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
}

/* Tablet Portrait & Landscape (641px to 1024px) */
@media (max-width: 1024px) {
  .header-cat-bar {
    display: none;
  }
  .packages-grid {
    grid-auto-columns: calc((100% - 22px) / 2);
  }
  .cat-card-3d {
    width: min(74vw, 400px);
    height: min(58svh, 460px);
  }
  .cat-card-3d[data-offset="-1"] {
    transform: translate3d(-58%, 0, -170px) rotateY(24deg) scale(0.84);
  }
  .cat-card-3d[data-offset="1"] {
    transform: translate3d(58%, 0, -170px) rotateY(-24deg) scale(0.84);
  }
  .cat-card-3d[data-offset="-2"],
  .cat-card-3d[data-offset="2"] {
    opacity: 0;
    pointer-events: none;
  }
}

/* All Smartphones (320px to 640px — iPhone SE, iPhone 14/15/Pro Max, Galaxy S, Pixel) */
@media (max-width: 640px) {
  :root {
    --edge: 16px;
  }
  .site-header {
    height: 64px;
  }
  .brand-emblem-svg {
    height: 30px;
    width: auto;
  }
  .brand-logo-img {
    height: 40px;
    width: auto;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-sub {
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }
  #header-quote-btn {
    padding: 9px 14px;
    font-size: 0.76rem;
  }
  .hero-stage {
    padding-top: 70px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .stage-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }
  .stage-headline {
    font-size: clamp(1.22rem, 5.2vw, 1.55rem);
  }
  .carousel-viewport {
    min-height: 300px;
    max-height: 450px;
  }
  .cat-card-3d {
    width: min(82vw, 330px);
    height: min(55svh, 410px);
    padding: 18px;
  }
  .cat-card-3d[data-offset="-1"] {
    opacity: 0.42;
    transform: translate3d(-44%, 0, -190px) rotateY(22deg) scale(0.82);
  }
  .cat-card-3d[data-offset="1"] {
    opacity: 0.42;
    transform: translate3d(44%, 0, -190px) rotateY(-22deg) scale(0.82);
  }
  .cat-card-title {
    font-size: 1.42rem;
  }
  .cat-card-sub {
    font-size: 0.8rem;
  }
  .cat-card-cta {
    padding: 11px 16px;
    font-size: 0.82rem;
  }
  .hud-btn {
    width: 38px;
    height: 38px;
  }
  .stage-mini-legal {
    display: none;
  }

  /* Category Showcase Popup on Mobile: Strictly Horizontal Only, 100% Card Info Visible */
  .modal-backdrop {
    padding: 8px;
  }
  .category-showcase-modal {
    padding: 14px;
    max-height: 92dvh;
    overflow-y: hidden;
    border-radius: 20px;
  }
  .showcase-header {
    padding-bottom: 8px;
    margin-bottom: 8px;
    align-items: center;
  }
  #cat-modal-badge {
    font-size: 0.62rem;
  }
  #cat-modal-title {
    font-size: 1.22rem !important;
    line-height: 1.15;
  }
  #cat-modal-sub {
    font-size: 0.74rem !important;
    line-height: 1.25;
    margin-top: 2px !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .showcase-toolbar {
    margin-bottom: 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .showcase-switcher-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    touch-action: pan-x;
    padding-bottom: 2px;
  }
  .showcase-switcher-pills::-webkit-scrollbar {
    display: none;
  }
  .showcase-nav-arrows {
    display: none !important;
  }
  .showcase-pill {
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 0.71rem;
  }
  .packages-grid {
    grid-auto-columns: 88%;
    gap: 12px;
  }
  .pkg-card-media {
    aspect-ratio: auto;
    height: clamp(115px, 20dvh, 168px);
  }
  .pkg-card-badges {
    top: 8px;
    left: 8px;
    right: 8px;
  }
  .badge-tag {
    padding: 4px 8px;
    font-size: 0.62rem;
  }
  .pkg-card-port {
    bottom: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 0.66rem;
  }
  .pkg-card-body {
    padding: 10px 12px;
    gap: 2px;
  }
  .pkg-card-title {
    font-size: 0.96rem;
    line-height: 1.18;
  }
  .pkg-card-sub {
    font-size: 0.75rem;
    line-height: 1.22;
  }
  .pkg-card-route {
    font-size: 0.72rem;
    line-height: 1.25;
    margin-top: 2px;
  }
  .pkg-card-footer {
    margin-top: 8px;
    padding-top: 8px;
  }
  .price-block .price-label {
    font-size: 0.62rem;
  }
  .price-block .price-main {
    font-size: 1rem;
    line-height: 1.1;
  }
  .price-block .price-sub {
    font-size: 0.64rem;
  }
  .pkg-card-footer .btn {
    padding: 9px 14px;
    font-size: 0.78rem;
  }
  .quote-modal {
    padding: 18px;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 20px;
  }
  .form-row-2,
  .duration-options {
    grid-template-columns: 1fr;
  }
}

/* Compact Smartphones (320px to 360px — iPhone SE / Older Androids) */
@media (max-width: 360px) {
  .brand-sub {
    display: none;
  }
  .cat-card-3d {
    width: 86vw;
    height: min(53svh, 360px);
    padding: 15px;
  }
  .cat-card-title {
    font-size: 1.25rem;
  }
  .packages-grid {
    grid-auto-columns: 92%;
  }
}
