/* ==========================================================
   components.css — Reusable UI Blocks, Animations, Effects
   Every keyframe, transition curve, and visual effect.
   ========================================================== */

/* ══════════════════════════════════════════════════════════
   SECTION 1: ANIMATION KEYFRAMES
   ══════════════════════════════════════════════════════════ */

/* ── Character Reveal (Hero Title) ───────────────────── */
.char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
}
.char-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  filter: blur(4px);
  will-change: transform, opacity, filter;
}
.animate-char-reveal {
  animation: char-reveal 3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes char-reveal {
  0% {
    transform: translateY(110%);
    opacity: 0;
    filter: blur(4px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0px);
  }
}

/* ── Heading Tracking Settle ─────────────────────────── */
.heading-tracking {
  letter-spacing: 0.2em;
  animation: tracking-settle 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes tracking-settle {
  0%   { letter-spacing: 0.25em; }
  100% { letter-spacing: -0.05em; }
}

/* ── Hero Button Entrance ────────────────────────────── */
.hero-btn-entrance {
  opacity: 0;
  transform: translateY(15px);
  animation: btn-reveal 1.5s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}
@keyframes btn-reveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Scroll Indicator Entrance ───────────────────────── */
.indicator-entrance {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  animation: scroll-indicator-reveal 1.5s cubic-bezier(0.23, 1, 0.32, 1) 1.6s forwards;
}
@keyframes scroll-indicator-reveal {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;  /* multiplies by parent's 0.4 */
    transform: translateY(0);
  }
}

/* ── Button Shimmer ──────────────────────────────────── */
.btn-shimmer {
  overflow: hidden;
  position: relative;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer-effect 4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
  pointer-events: none;
}
@keyframes shimmer-effect {
  0%        { left: -100%; }
  30%, 100% { left: 200%; }
}

/* ── Scroll Reveal ───────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Collection Card Scroll Cascade (rAF Physics) ────── */
/* JS writes opacity and transform directly via card.style each rAF frame.
   will-change hints to the browser to put each card on its own GPU layer.
   opacity:0 here prevents a flash during captureNaturalRects() — the JS
   cascade loop owns opacity from the very first rAF frame onward. */
.collection-card-reveal {
  will-change: transform, opacity;
  opacity: 0;
}


/* ── Heavy Reveal (Brand Pages) ──────────────────────── */
.heavy-reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: heavyReveal 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heavyReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Bounce (scroll indicator) ───────────────────────── */
.animate-bounce {
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateX(-50%) translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ── Smoke Animation (Collection Page) ───────────────── */
.smoke-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}
.smoke-element {
  position: absolute;
  inset: -100%;
  background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.10), transparent 70%);
  opacity: 0.15;
  filter: blur(48px);
  animation: smoke-drift 20s linear infinite;
}
@keyframes smoke-drift {
  0%   { transform: translate(0, 0);      opacity: 0.1; }
  50%  { transform: translate(100px, -50px); opacity: 0.2; }
  100% { transform: translate(0, 0);      opacity: 0.1; }
}


/* ══════════════════════════════════════════════════════════
   SECTION 2: CAROUSEL
   ══════════════════════════════════════════════════════════ */
.carousel-container {
  /* overflow:clip visually clips the track without creating a compositing
     clip-rect boundary. This prevents Chrome from using the container's
     size as the tile-eviction limit for the track's GPU layer — tiles
     for off-screen cards stay hot. overflow:hidden is the Safari fallback. */
  overflow: hidden;
  overflow: clip;
  width: 100%;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  touch-action: pan-y;
}
.carousel-container:active,
.carousel-container.active-scroll {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 1.25rem 0;
  /* Single GPU compositor layer. The rAF loop drives all movement via
     translate3d. No will-change on container or cards — one layer only. */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.carousel-card {
  flex: 0 0 17.5rem;
  height: 28.125rem;
  background-color: var(--color-surface-container-low);
  /* Default transition for hover effects when card is fully settled */
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  
  /* Cascade effect driven by rAF loop variables */
  opacity: var(--cascade-op, 1);
  transform: translateY(var(--cascade-y, 0px)) scale(var(--cascade-scale, 1));
}
.carousel-card:active,
.carousel-card.press-active {
  transform: translateY(calc(var(--cascade-y, 0px) + 5px)) scale(calc(var(--cascade-scale, 1) * 0.98));
  transition: transform 0.1s cubic-bezier(0.4, 0, 1, 1);
}
@media (hover: hover) {
  .carousel-card:hover {
    transform: translateY(calc(var(--cascade-y, 0px) - 12px)) scale(var(--cascade-scale, 1));
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  }
}

.carousel-card-image {
  height: 16rem;       /* h-64 */
  position: relative;
  overflow: hidden;
  /* Matches .collection-card-inner — border-radius forces GPU rounded-rect
     clip path instead of box-clip, which renders clean edges during child
     scale transitions. */
  border-radius: 2px;
}
.carousel-card-image img {
  /* Matches .collection-card-img — absolute + inset:0 pins the image to the
     container's exact pixel boundaries, avoiding sub-pixel dimension rounding
     mismatches that occur with flow-layout width/height: 100%. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 0.8s ease;
}
@media (hover: hover) {
  .carousel-card:hover .carousel-card-image img {
    transform: scale(1.1);
  }
}
.carousel-container.active-scroll .carousel-card-image img {
  filter: saturate(1.15);
}

.carousel-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-surface-container-low), transparent, transparent);
}

.carousel-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(217, 119, 7, 0.20);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--color-primary-fixed-dim);
  padding: 0.125rem 0.75rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.carousel-card-body {
  padding: 1.5rem;
}
.carousel-card-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.carousel-card-desc {
  color: var(--color-on-surface-variant);
  font-family: var(--font-body);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.carousel-card-strength {
  color: rgba(255, 183, 125, 0.70);   /* text-primary/70 */
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* Carousel nav buttons */
.carousel-nav {
  display: flex;
  gap: 1rem;
}
.carousel-btn-prev {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(85, 67, 54, 0.30);
  color: var(--color-on-surface);
  transition: all 0.2s ease;
  background: transparent;
}
.carousel-btn-prev:active,
.carousel-btn-prev.press-active { transform: scale(0.95); transition: transform 0.1s ease; }
@media (hover: hover) {
  .carousel-btn-prev:hover  { background: rgba(255, 255, 255, 0.05); }
}

.carousel-btn-next {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  transition: all 0.2s ease;
  border: none;
}
.carousel-btn-next:active,
.carousel-btn-next.press-active { transform: scale(0.95); transition: transform 0.1s ease; }
@media (hover: hover) {
  .carousel-btn-next:hover  { background-color: rgba(255, 183, 125, 0.9); }
}


/* ══════════════════════════════════════════════════════════
   SECTION 3: GLASS + TEXTURE EFFECTS
   ══════════════════════════════════════════════════════════ */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.glass-panel {
  background: rgba(32, 26, 24, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.glass-container {
  background: rgba(24, 18, 16, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 183, 125, 0.1);
}

/* BG feathered glow (brand cards) */
.bg-feathered {
  background: radial-gradient(circle, rgba(50, 30, 20, 0.6) 0%, transparent 70%);
}

/* Chiaroscuro overlay (Padron) */
.chiaroscuro-overlay {
  background: radial-gradient(circle at 50% 0%, rgba(217, 119, 7, 0.15) 0%, rgba(19, 13, 11, 0.95) 80%);
  background-attachment: fixed;
}


/* ══════════════════════════════════════════════════════════
   SECTION 4: BUTTONS
   ══════════════════════════════════════════════════════════ */

/* Primary CTA (Hero) */
.btn-primary-cta {
  background-color: var(--color-primary-container);
  color: var(--color-on-primary-container);
  padding: 1.25rem 2.5rem;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(217, 119, 7, 0.2);
}
.btn-primary-cta:active,
.btn-primary-cta.press-active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
@media (hover: hover) {
  .btn-primary-cta:hover {
    box-shadow: 0 0 30px rgba(217, 119, 7, 0.4);
  }
}

/* Outline primary button */
.btn-outline-primary {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease;
}
@media (hover: hover) {
  .btn-outline-primary:hover {
    background-color: var(--color-primary-container);
    color: var(--color-on-primary-container);
    box-shadow: 0 0 30px rgba(217, 119, 7, 0.6);
  }
}
.btn-outline-primary:active,
.btn-outline-primary.press-active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Reserve button (brand pages) */
.btn-reserve {
  padding: 1.25rem 3rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: 0 0 20px rgba(217, 119, 7, 0.2);
}
@media (hover: hover) {
  .btn-reserve:hover {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
  }
}
.btn-reserve:active,
.btn-reserve.press-active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Solid dark button (subscribe) */
.btn-solid-dark {
  background-color: var(--color-on-surface);
  color: var(--color-surface);
  padding: 1.25rem;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-solid-dark:active,
.btn-solid-dark.press-active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}
@media (hover: hover) {
  .btn-solid-dark:hover {
    background-color: rgba(237, 224, 220, 0.9);
  }
}


/* ══════════════════════════════════════════════════════════
   SECTION 5: COLLECTION CARDS
   ══════════════════════════════════════════════════════════ */
.collection-card {
  display: block;
  cursor: pointer;
  width: 100%;
}
.collection-card-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  /* Glide-back transition */
  transition: box-shadow 0.5s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Mobile Interaction Optimization */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

/* Base Marquee Card shape */
.collection-grid > .collection-card-reveal:first-child .collection-card-inner {
  aspect-ratio: 21 / 9;
  border-radius: 3px;
  /* lvh locks to the largest fixed viewport — immune to mobile browser chrome resizing */
  max-height: clamp(22.4lvh, 27.2vw, 48lvh);
}
.collection-card:active .collection-card-inner,
.collection-card.press-active .collection-card-inner {
  transform: scale(0.94); /* Slightly deeper snap for better touch visibility */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  /* Instant snap-down transition */
  transition: transform 0.08s cubic-bezier(0, 0, 0.2, 1);
}
@media (hover: hover) {
  .collection-card:hover .collection-card-inner {
    box-shadow: 0 0 35px rgba(217, 119, 7, 0.4);
  }
}
.collection-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
@media (hover: hover) {
  .collection-card:hover .collection-card-img {
    transform: scale(1.1);
  }
}
.collection-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}
.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.collection-card-brand {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  color: #fef3c7;        /* text-amber-100 */
  margin-bottom: -0.25rem;
}
.collection-card-line {
  font-family: var(--font-body);
  color: var(--color-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.625rem;
}
.collection-card-line.italic {
  font-size: 0.5625rem;
  font-style: italic;
}
.collection-card-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(217, 119, 7, 0.80);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--color-on-primary-container);
  font-family: var(--font-label);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 1px;
}
.collection-card-action {
  padding: 0.375rem 1rem;
  border: 1px solid rgba(255, 183, 125, 0.40);
  color: #fef3c7;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-label);
  background: rgba(24, 18, 16, 0.40);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s ease;
}
.collection-card-action:active,
.collection-card-action.press-active {
  transform: scale(0.92);
  transition: transform 0.1s ease;
}
@media (hover: hover) {
  .collection-card-action:hover {
    border-color: var(--color-primary-container);
    color: var(--color-primary);
  }
}


/* ══════════════════════════════════════════════════════════
   SECTION 6: BRAND DETAIL CARDS (Vitola Showcase)
   ══════════════════════════════════════════════════════════ */

/* Arturo Fuente style cards */
.vitola-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  border: 1px solid rgba(85, 67, 54, 0.10);
  box-shadow: inset 0 0 40px rgba(217, 119, 7, 0.05);
}
.vitola-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-surface-container-low);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.vitola-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1s ease;
}
.vitola-card:active,
.vitola-card.press-active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}
@media (hover: hover) {
  .vitola-card:hover .vitola-card-image img {
    transform: scale(1.1);
  }
}
.vitola-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}
.vitola-card-title {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}
.vitola-card-desc {
  color: rgba(237, 224, 220, 0.70);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Padron style cards */
.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 2rem;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}
.showcase-card:active,
.showcase-card.press-active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}
/* hover states now handled per .theme-* below */
.showcase-card-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* Stacked layout: top padding mirrors the body’s top padding so the image
     is visually centered between the card top edge and the title text */
  padding-top: 2rem;
}
.showcase-card-image img {
  /* Stacked mobile: fixed height — cannot inflate the card */
  height: 16rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.7s ease;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
  mask-image: radial-gradient(circle, black 60%, transparent 100%);
}
@media (hover: hover) {
  .showcase-card:hover .showcase-card-image img {
    transform: scale(1.05);
  }
}
.showcase-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  text-align: center;
}
.showcase-card-title {
  font-family: var(--font-headline);
  font-size: 1.875rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.showcase-card-subtitle {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.showcase-card-desc {
  color: rgba(237, 224, 220, 0.70);
  font-weight: 300;
  line-height: 1.7;
  font-size: 0.875rem;
}

/* ── Brand Vitola Card Themes ─────────────────────────────────────────── */

/* PADRON — warm charcoal-bourbon backplate */
.theme-padron {
  background: rgba(30, 20, 15, 0.68);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 183, 125, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 183, 125, 0.06), 0 8px 32px rgba(0,0,0,0.40);
}
@media (hover: hover) {
  .theme-padron:hover {
    box-shadow: 0 0 48px rgba(217,119,7,0.22), inset 0 1px 0 rgba(255,183,125,0.12);
  }
}

/* ARTURO FUENTE — deep crimson & burnished gold */
.theme-fuente {
  background: linear-gradient(140deg, rgba(75,18,12,0.45) 0%, rgba(38,12,8,0.55) 50%, rgba(16,7,4,0.65) 100%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top:    1px solid rgba(210,85,35,0.32);
  border-left:   1px solid rgba(210,85,35,0.14);
  border-right:  1px solid rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(0,0,0,0.42);
  box-shadow: inset 0 1px 0 rgba(245,145,65,0.14), 0 12px 36px rgba(0,0,0,0.55);
}
@media (hover: hover) {
  .theme-fuente:hover {
    box-shadow: 0 0 52px rgba(215,65,25,0.28), 0 18px 50px rgba(0,0,0,0.65), inset 0 1px 0 rgba(245,145,65,0.20);
  }
}

/* PLASENCIA — volcanic earth & living green */
.theme-plasencia {
  background: radial-gradient(ellipse at 20% 0%, rgba(44,54,36,0.38) 0%, rgba(22,28,20,0.44) 45%, rgba(10,14,10,0.58) 100%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-top:    1px solid rgba(115,160,92,0.25);
  border-left:   1px solid rgba(115,160,92,0.12);
  border-right:  1px solid rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(0,0,0,0.42);
  box-shadow: inset 0 1px 0 rgba(145,195,115,0.10), 0 10px 32px rgba(0,0,0,0.45);
}
@media (hover: hover) {
  .theme-plasencia:hover {
    box-shadow: 0 0 48px rgba(105,165,82,0.22), 0 18px 46px rgba(0,0,0,0.58), inset 0 1px 0 rgba(145,195,115,0.16);
  }
}

/* ── Per-theme text colour overrides ─────────────────────────────────── */
.theme-padron .showcase-card-title    { color: var(--color-primary); }
.theme-padron .showcase-card-subtitle { color: var(--color-secondary); }
.theme-padron .showcase-card-desc     { color: rgba(237, 220, 200, 0.72); }

.theme-fuente .showcase-card-title    { color: #fef3c7; }
.theme-fuente .showcase-card-subtitle { color: rgba(230, 100, 55, 0.90); }
.theme-fuente .showcase-card-desc     { color: rgba(240, 215, 195, 0.68); }

.theme-plasencia .showcase-card-title    { color: #dde8d8; }
.theme-plasencia .showcase-card-subtitle { color: rgba(130, 185, 105, 0.85); }
.theme-plasencia .showcase-card-desc     { color: rgba(210, 225, 205, 0.68); }

/* Separator dot */
.vitola-separator {
  display: flex;
  justify-content: center;
  opacity: 0.3;
}

/* ══════════════════════════════════════════════════════════
   SECTION 7: FORM ELEMENTS
   ══════════════════════════════════════════════════════════ */
.email-input {
  background-color: var(--color-surface-container-highest);
  border: none;
  padding: 1.25rem;
  color: var(--color-on-surface);
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  transition: box-shadow 0.2s ease;
}
.email-input::placeholder {
  color: rgba(237, 224, 220, 0.50);
}
.email-input:focus {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}


/* ══════════════════════════════════════════════════════════
   SECTION 8: RESPONSIVE ADJUSTMENTS
   ══════════════════════════════════════════════════════════ */

/* ── Showcase card: switch to side-by-side at 512px ─────── */
@media (min-width: 512px) {
  /* Old vitola-card still kept for safety */
  .vitola-card {
    flex-direction: row;
    padding: 0 3rem;
  }
  .vitola-card.reverse {
    flex-direction: row-reverse;
  }
  .vitola-card-image {
    width: 33.333%;
    /* Stretch to fill full card height — body text sets height, image follows */
    align-self: stretch;
    aspect-ratio: unset;
  }
  .vitola-card-body {
    width: 66.666%;
  }
  .vitola-card.reverse .vitola-card-body {
    text-align: right;
  }

  /* Showcase card row layout */
  .showcase-card {
    flex-direction: row;
    padding: 0 3rem;
  }
  .showcase-card.reverse {
    flex-direction: row-reverse;
  }
  .showcase-card-image {
    width: 42%;
    /* Stretch to match body column height — body text sets card height, image follows */
    align-self: stretch;
    padding: 0;
  }
  .showcase-card-image img {
    /* Fill the body-determined height of the stretched container */
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .showcase-card-body {
    width: 58%;
    padding: 2rem 0;
    text-align: left;
  }
  .showcase-card.reverse .showcase-card-body {
    text-align: right;
  }
}

/* Tablet & smaller desktop */
@media (max-width: 1024px) {
  .vitola-card-title    { font-size: 1.5rem; }
  .vitola-card-desc     { font-size: 1rem; }
  .showcase-card-title  { font-size: 1.5rem; }
  /* No fixed img height override — side-by-side uses align-self:stretch + height:100% */
}

@media (max-width: 1024px) and (min-width: 512px) {
  .vitola-card { padding: 0 1.5rem; gap: 1.5rem; }
  .vitola-card-body { padding: 1.5rem 0; }
  .showcase-card { padding: 0 1.5rem; gap: 1.5rem; }
  .showcase-card-body { padding: 1.5rem 0; }
}

@media (max-width: 767px) {
  .vitola-card-title    { font-size: 1.35rem; margin-bottom: 0.5rem; }
  .vitola-card-desc     { font-size: 0.9375rem; }
  .showcase-card-title  { font-size: 1.35rem; margin-bottom: 0.5rem; }
  .showcase-card-desc   { font-size: 0.9375rem; }
  /* No fixed img height — side-by-side uses stretch; stacked addressed at ≤511px */
}

/* Mobile stacked (under 512px) */
@media (max-width: 511px) {
  .vitola-card          { padding: 0 1.25rem; gap: 1.25rem; }
  .vitola-card-body     { padding: 1.5rem 0; }
  .showcase-card        { padding: 0 1.25rem; gap: 1.25rem; }
  .showcase-card-body   { padding: 1.5rem 0; }
  /* Stacked: fixed img height — body text still controls card height */
  .showcase-card-image img { height: 10rem; }
  /* Match the smaller body padding at this breakpoint */
  .showcase-card-image    { padding-top: 1.5rem; }
}

@media (min-width: 1024px) {
  /* Regular collection cards: wider crop on large screens */
  .collection-card-inner {
    aspect-ratio: auto;
    height: 17.4rem;
    border-radius: 4px;
  }
  /* Hero marquee: desktop sizing */
  .collection-grid > .collection-card-reveal:first-child .collection-card-inner {
    aspect-ratio: auto;
    height: 24.4rem;
    border-radius: 4px;
    max-height: 48lvh; /* lvh = stable large viewport height, unaffected by browser chrome */
  }
}

/* ── Hero Marquee: height correction (< 1024px) ───────── */
@media (max-width: 1024px) {
  .collection-grid > .collection-card-reveal:first-child .collection-card-inner {
    aspect-ratio: 21 / 9;
    /* lvh locks dimension to stable largest-viewport reference */
    max-height: min(29.6vw, calc(48lvh - 4rem));
  }
}

/* ── High-Res Carousel Upscale (> 1920px) ───────────────── */
@media (min-width: 1921px) {
  .carousel-track {
    gap: 2rem;
  }
  .carousel-card {
    flex: 0 0 27.25rem;
    height: 37rem;
  }
  .carousel-card-image {
    height: 22rem;
  }
}

/* ── Contact Modal ──────────────────────── */
.contact-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.70);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.contact-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  z-index: 60;
  width: 90%;
  max-width: 28rem;
  background: rgba(24, 18, 16, 0.85);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 183, 125, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(217, 119, 7, 0.05);
  border-radius: 8px;
  padding: clamp(2rem, 5vw, 3rem);
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  line-height: 1;
  color: rgba(237, 224, 220, 0.40);
  font-size: 1.75rem;
  cursor: pointer;
  transition: color 0.5s ease, transform 0.5s ease;
}
.contact-modal-close:active,
.contact-modal-close.press-active {
  transform: scale(0.9);
  transition: transform 0.1s ease;
}
@media (hover: hover) {
  .contact-modal-close:hover {
    color: #d97707;
    transform: rotate(90deg);
  }
}

.contact-modal-close.is-closing {
  color: #d97707 !important;
  text-shadow: 0 0 15px rgba(217, 119, 7, 0.9);
  transform: rotate(360deg) scale(0.9) !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s ease, text-shadow 0.4s ease !important;
}

.contact-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-modal-title {
  color: #d97707;
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.contact-modal-phone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}

.contact-modal-phone-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-on-surface);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
.contact-modal-phone-link:active {
  transform: scale(0.95);
}
@media (hover: hover) {
  .contact-modal-phone-link:hover {
    color: #d97707;
  }
  .contact-modal-phone-link:hover .contact-modal-phone-icon {
    transform: scale(1.1) rotate(-5deg);
  }
}

.contact-modal-phone-icon {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  color: #d97707;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal-phone-number {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.05em;
}

.contact-modal-desc {
  color: rgba(237, 224, 220, 0.70);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.contact-modal-hours {
  color: rgba(237, 224, 220, 0.50);
  font-size: 0.75rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact-modal-social {
  border-top: 1px solid rgba(85, 67, 54, 0.20);
  padding-top: 1.5rem;
  width: 100%;
}

.contact-modal-social-label {
  font-family: var(--font-label);
  font-size: 0.5625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(217, 119, 7, 0.60);
  display: block;
  margin-bottom: 1rem;
}

.contact-modal-social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icon-link {
  color: rgba(237, 224, 220, 0.40);
  transition: color 0.4s ease, transform 0.4s ease;
  display: inline-flex;
}
.social-icon-link:active {
  transform: scale(0.85);
  transition: transform 0.1s ease;
}
@media (hover: hover) {
  .social-icon-link:hover {
    color: #d97707;
    transform: translateY(-3px);
  }
}
.social-icon {
  width: 1.5rem;
  height: 1.5rem;
}
