/* ============================================================
   Tendencia Jordan — Premium Automotive Design System
   Dark mode default | Light mode via [data-theme="light"]
   ============================================================ */

/* ---------------- Design Tokens ---------------- */
:root {
  /* Dark palette (default) */
  --bg: #080808;
  --bg-soft: #0d0d0d;
  --surface: #101010;
  --card: #151515;
  --card-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --text-2: #a7a7a7;
  --text-3: #767676;
  --danger: #e0635c;

  /* Luxury gold accents */
  --gold: #c9a24d;
  --gold-2: #d8b45a;
  --gold-3: #9f7a2f;
  --gold-gradient: linear-gradient(135deg, #9f7a2f, #d8b45a 50%, #9f7a2f);
  --gold-text-gradient: linear-gradient(120deg, #e8cc82, #f0d98a 45%, #c9a24d);

  --header-bg: rgba(8, 8, 8, 0.72);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;

  --font: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-en: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --container: 1200px;
}

/* Light palette */
[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-soft: #f0ede5;
  --surface: #ffffff;
  --card: #ffffff;
  --card-2: #faf8f3;
  --border: rgba(20, 20, 20, 0.08);
  --border-2: rgba(20, 20, 20, 0.16);
  --text: #161616;
  --text-2: #565656;
  --text-3: #8a8a8a;
  --danger: #c0392b;

  --gold: #9f7a2f;
  --gold-2: #c9a24d;
  --gold-3: #8a6a2b;
  --gold-gradient: linear-gradient(135deg, #8a6a2b, #c9a24d 50%, #8a6a2b);
  --gold-text-gradient: linear-gradient(120deg, #8a6a2b, #b08d3f 45%, #6f5522);

  --header-bg: rgba(246, 244, 239, 0.82);
  --shadow: 0 24px 60px rgba(20, 20, 20, 0.12);
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
}
html[lang="en"] body { font-family: var(--font-en); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

section[id] { scroll-margin-top: 104px; }

::selection { background: var(--gold); color: #0a0a0a; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

body.no-scroll { overflow: hidden; }

/* ---------------- Utilities ---------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(72px, 9vw, 128px); }

.section-head {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 64px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.kicker::before, .kicker::after {
  content: "";
  height: 1px;
  width: 38px;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}
html[lang="en"] .kicker { letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 18px;
  color: var(--text);
}
html[lang="en"] .section-title { font-weight: 700; letter-spacing: -0.02em; }

.section-desc {
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin-top: 14px;
  line-height: 1.9;
  max-width: 620px;
  margin-inline: auto;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease,
    color 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}
html[lang="en"] .btn { letter-spacing: 0.02em; }

.btn-gold {
  background: var(--gold-gradient);
  color: #0c0c0c;
  box-shadow: 0 8px 26px rgba(201, 162, 77, 0.28);
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 88px;
}

/* Logo wordmark */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img {
  height: 78px; /* +50% (was 52px) */
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(201, 162, 77, 0.25));
  transition: filter 0.3s ease, height 0.3s ease;
}
.logo:hover .logo-img { filter: drop-shadow(0 4px 14px rgba(201, 162, 77, 0.45)); }
/* Condense gracefully when the header shrinks on scroll */
.site-header.is-scrolled .logo-img { height: 58px; }
.footer-brand .logo-img { height: 90px; } /* +50% (was 60px) */

/* Desktop nav */
.site-nav ul { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  padding: 10px 14px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline-start: 14px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-link:hover::after, .nav-link.is-active::after { width: calc(100% - 28px); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-1px); }

.theme-icon { width: 20px; height: 20px; }
.theme-icon.icon-sun { display: none; }
[data-theme="dark"] .theme-icon.icon-sun { display: block; }
[data-theme="light"] .theme-icon.icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
/* ---------------- Hero — thin cinematic banner, text strip at the bottom center ---------------- */
.hero {
  position: relative;
  height: clamp(540px, 82vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* Cinematic banner — full photo visible, centered */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../imgs/image_a0f38c2.png") center 40% / cover no-repeat;
  will-change: transform;
  animation: heroZoom 20s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
/* Released after the intro zoom so JS parallax can take over */
.hero-bg.fx-settled { animation: none; transform: scale(1.04); }

/* Second banner slide — cross-fades over the first (22s loop: ~9s each + fades) */
.hero-bg-b {
  background-image: url("../imgs/Gemini_Generated_Image_jn9x34jn9x34jn9x.jpg");
  opacity: 0;
  animation: heroCross 22s ease-in-out infinite;
}
@keyframes heroCross {
  0%, 40%  { opacity: 0; }
  50%, 90% { opacity: 1; }
  100%     { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Flat 50% darkening over the whole photo (30% + 20% extra) + bottom strip for text */
  background:
    linear-gradient(to top,
      rgba(8, 8, 8, 0.68) 0%,
      rgba(8, 8, 8, 0.38) 24%,
      rgba(8, 8, 8, 0.04) 48%,
      rgba(8, 8, 8, 0)    62%),
    rgba(8, 8, 8, 0.5);
}
[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(to top,
      rgba(8, 8, 8, 0.65) 0%,
      rgba(8, 8, 8, 0.35) 24%,
      rgba(8, 8, 8, 0.03) 48%,
      rgba(8, 8, 8, 0)    62%),
    rgba(8, 8, 8, 0.5);
}

/* Diagonal golden light sweep across the banner — repeats every 7s */
.hero-shine {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 42%,
    rgba(232, 204, 130, 0.07) 48%,
    rgba(240, 217, 138, 0.14) 50%,
    rgba(232, 204, 130, 0.07) 52%,
    transparent 58%);
  transform: translateX(-60%);
  animation: heroShine 7s ease-in-out infinite;
}
@keyframes heroShine {
  0%, 55% { transform: translateX(-60%); opacity: 0; }
  60%     { opacity: 1; }
  100%    { transform: translateX(60%); opacity: 0; }
}

/* Pulsing gold aura behind the centered text strip */
.hero-glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -35%;
  transform: translateX(-50%);
  width: min(70vw, 820px);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.18) 0%, rgba(201, 162, 77, 0.05) 45%, transparent 70%);
  filter: blur(12px);
  animation: heroGlow 6s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  text-align: center;
  width: 100%;
  max-width: 820px;
  padding-block: 0 clamp(64px, 9vh, 104px);
  color: var(--text);
}

/* Light mode: the banner photo + overlay stay dark in both themes,
   so the hero text must stay light for readable contrast */
[data-theme="light"] .hero-content { color: #f5f5f5; }
[data-theme="light"] .hero-title .accent {
  background-image: linear-gradient(120deg, #e8cc82, #f0d98a 45%, #c9a24d);
}
[data-theme="light"] .hero-note { color: rgba(245, 245, 245, 0.78); }
[data-theme="light"] .hero .kicker { color: #d8b45a; }
[data-theme="light"] .hero-badge { color: #d8b45a; }
[data-theme="light"] .hero .btn-ghost {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.4);
}
[data-theme="light"] .hero .btn-ghost:hover {
  color: var(--gold-2);
  border-color: var(--gold-2);
}

/* Staggered cinematic entrance */
.hero-content > * { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }
.hero-content > *:nth-child(5) { animation-delay: 0.75s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Limited-edition badge with pulsing dot */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(201, 162, 77, 0.45);
  border-radius: 999px;
  background: rgba(201, 162, 77, 0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 162, 77, 0.55);
  animation: badgePulse 2s ease-out infinite;
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 77, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(201, 162, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 77, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.7vw, 4.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-top: 22px;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 4px 22px rgba(0, 0, 0, 0.75);
}
html[lang="en"] .hero-title { font-weight: 700; letter-spacing: -0.02em; }

.hero-title .accent {
  display: inline-block;
  background: var(--gold-text-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: accentShimmer 5s linear infinite;
}
@keyframes accentShimmer {
  to { background-position: 200% center; }
}

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* Royal metallic gold CTA — 5-stop gradient for a real metal feel */
.hero-wa {
  background: linear-gradient(135deg,
    #f0d98a 0%, #c9a24d 38%, #9f7a2f 62%, #d8b45a 82%, #b08d3f 100%);
  color: #1a1408;
  border: none;
  box-shadow: 0 8px 28px rgba(201, 162, 77, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 162, 77, 0.5);
}

/* Trust micro-copy under the CTA — reduces purchase hesitation */
.hero-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Banner responsive behaviour */
@media (max-width: 768px) {
  .hero { height: clamp(480px, 88vh, 640px); }
  /* Car sits in the right ~60% of the wide photo — shift the crop window toward it
     so the car shows roughly centered on narrow screens */
  .hero-bg { background-position: 72% 45%; animation: none; }
  /* Keep the second slide cross-fading on mobile (re-declare after the none above) */
  .hero-bg-b { background-position: center 40%; animation: heroCross 22s ease-in-out infinite; }
  .hero-overlay {
    background:
      linear-gradient(to top,
        rgba(8, 8, 8, 0.7)  0%,
        rgba(8, 8, 8, 0.42) 28%,
        rgba(8, 8, 8, 0.05) 55%,
        rgba(8, 8, 8, 0)    68%),
      rgba(8, 8, 8, 0.5);
  }
  [data-theme="light"] .hero-overlay {
    background:
      linear-gradient(to top,
        rgba(8, 8, 8, 0.68) 0%,
        rgba(8, 8, 8, 0.4)  28%,
        rgba(8, 8, 8, 0.04) 55%,
        rgba(8, 8, 8, 0)    68%),
      rgba(8, 8, 8, 0.5);
  }
  .hero-content { padding-block: 0 72px; }
  .hero-glow { width: 120vw; }
  .hero-shine { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-bg-b, .hero-shine, .hero-glow, .hero-badge-dot,
  .hero-content > *, .hero-title .accent { animation: none; }
  .hero-content > * { opacity: 1; }
}

/* ---------------- Trust strip ---------------- */
.trust { border-block: 1px solid var(--border); background: var(--bg-soft); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 26px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: 14px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.hamburger span {
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Mobile menu ---------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(8, 8, 8, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
[data-theme="light"] .mobile-menu { background: rgba(246, 244, 239, 0.97); }
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding-block: 40px;
}

/* ---------------- Products ---------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

/* Single-product layout: center the one product card until new products launch */
.products-grid:has(> .product-card:only-child) {
  grid-template-columns: minmax(0, 460px);
  justify-content: center;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}
.product-card:hover::before { opacity: 0.5; }
.product-card:hover .product-media img { transform: scale(1.05); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.product-index {
  position: absolute;
  top: 14px;
  inset-inline-start: 18px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #f5f5f5;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.product-tag {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 13px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  z-index: 2;
}
html[lang="en"] .product-tag { letter-spacing: 0.14em; text-transform: uppercase; }

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}
.product-cat { color: var(--gold); font-size: 0.76rem; font-weight: 700; }
html[lang="en"] .product-cat { letter-spacing: 0.12em; text-transform: uppercase; }

.product-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
html[lang="en"] .product-name { font-weight: 700; letter-spacing: -0.01em; }

.product-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 10px;
}

/* ---------------- Why Tendencia ---------------- */
.why { background: var(--bg-soft); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.why-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 26px;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.why-item:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.why-item:hover::after { opacity: 1; }

.why-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 22px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.why-item:hover .why-icon { border-color: var(--gold); color: var(--gold-2); }
.why-icon svg { width: 26px; height: 26px; }

.why-item h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
html[lang="en"] .why-item h3 { font-weight: 700; }
.why-item p { color: var(--text-2); font-size: 0.92rem; line-height: 1.8; }

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.about-media { position: relative; }
.about-media img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-frame {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  width: 90px;
  height: 90px;
  border-top: 1px solid var(--gold);
  border-inline-start: 1px solid var(--gold);
  border-radius: 8px 0 0 0;
  pointer-events: none;
}
.about-frame::before {
  content: "";
  position: absolute;
  top: 30px;
  inset-inline-start: 30px;
  width: 34px;
  height: 6px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.about-media:hover .about-frame::before { opacity: 1; }

.about-content .kicker { margin-bottom: 14px; }
.about-content .section-title { margin-top: 0; text-align: start; }
.about-desc {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 520px;
  line-height: 2;
  margin-top: 20px;
}
.about-content .btn { margin-top: 30px; }

/* ---------------- Experience ---------------- */
.experience {
  position: relative;
  min-height: min(76vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.experience-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/images/details.svg") center/cover no-repeat;
}
.experience-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.5));
}
.experience-content {
  color: #f5f5f5;
  text-align: center;
  padding-block: 110px;
}
.experience-title {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-top: 20px;
}
html[lang="en"] .experience-title { font-weight: 700; letter-spacing: -0.02em; }
.experience-desc {
  color: #c9c9c9;
  max-width: 560px;
  margin-inline: auto;
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.9;
}
.experience-line {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold-gradient);
  margin: 36px auto 0;
}

/* ---------------- Contact / CTA ---------------- */
.contact { position: relative; text-align: center; }
.contact-inner { max-width: 680px; margin-inline: auto; }
.contact-desc { color: var(--text-2); margin-top: 16px; font-size: 1.08rem; line-height: 1.9; }
.contact-actions { margin-top: 32px; }

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.3s ease;
}
.contact-phone:hover { color: var(--gold); }
.contact-wa-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201, 162, 77, 0.12);
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-wa-ico svg { width: 19px; height: 19px; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #0a0a0a;
  color: #a7a7a7;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 44px;
  padding-block: 64px 48px;
}

.footer-desc { margin-top: 16px; font-size: 0.93rem; line-height: 1.9; max-width: 320px; }
.footer-tag { color: var(--gold); font-weight: 700; margin-top: 14px; font-size: 0.9rem; }

.footer-nav h4, .footer-contact h4 {
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 18px;
}
html[lang="en"] .footer-nav h4, html[lang="en"] .footer-contact h4 {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: 0.92rem; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold); }

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.footer-wa svg { width: 20px; height: 20px; color: var(--gold); }
.footer-wa:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-block: 20px; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-credit {
  color: var(--text-3);
  font-size: 0.82rem;
  transition: color 0.3s ease;
}
.footer-credit:hover { color: var(--gold); }

/* ---------------- Order Modal ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  padding: 34px 30px 30px;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s ease;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.modal-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }

.modal-title { font-size: 1.5rem; font-weight: 800; margin-top: 14px; color: var(--text); }
html[lang="en"] .modal-title { font-weight: 700; }
.modal-desc { color: var(--text-2); font-size: 0.92rem; margin-top: 8px; line-height: 1.8; }

.order-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px dashed rgba(201, 162, 77, 0.6);
  border-radius: 10px;
  background: rgba(201, 162, 77, 0.07);
}
.order-number span { color: var(--text-2); font-size: 0.85rem; font-weight: 600; }
.order-number strong { color: var(--gold); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; }

.field { margin-top: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.field input, .field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input::placeholder { color: var(--text-3); font-size: 0.9rem; }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.16);
}
.field input.error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: 6px; min-height: 1.1em; }
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field textarea::placeholder { color: var(--text-3); font-size: 0.9rem; }
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.16);
}

.field-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  cursor: pointer;
}
.field-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.field-checkbox span { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.modal-actions { display: grid; gap: 10px; margin-top: 26px; }

/* ---------------- Floating WhatsApp ---------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatPulse 3.4s ease-in-out infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(18, 140, 126, 0.35); }
  50% { box-shadow: 0 14px 34px rgba(18, 140, 126, 0.5); }
}

/* ---------------- Reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.6, 0.3, 1);
  transition-delay: var(--rd, 0ms);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------------- Inner page head ---------------- */
.page-head {
  padding-block: clamp(72px, 10vw, 120px) clamp(36px, 5vw, 56px);
  text-align: center;
}
.page-title {
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.page-desc {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-2);
}
.page-head-line {
  display: block;
  width: 72px;
  height: 3px;
  margin: 28px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .whatsapp-nav { display: none; }
  .header-inner { height: 76px; }
  .site-header.is-scrolled .logo-img { height: 52px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .trust-item { justify-content: flex-start; }
  section[id] { scroll-margin-top: 90px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
  .modal { padding: 30px 22px 24px; }
  .hero-badge { font-size: 0.74rem; padding: 7px 14px; }
  .hero-note { font-size: 0.8rem; }
}

@media (max-width: 420px) {
  .logo-img { height: 63px; } /* +50% (was 42px) */
  .header-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .trust-item { font-size: 0.8rem; }
  .product-index { font-size: 1.1rem; }
  .mobile-controls .btn { width: 100%; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* Skip link (hidden until focused) */
.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 20px;
  z-index: 1200;
  background: var(--gold);
  color: #0a0a0a;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 14px; }

.m-link {
  display: block;
  padding: 14px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.m-link:hover { color: var(--gold); opacity: 1; }

/* ============================================================
   Mobile & touch polish — comfortable, professional small screens
   ============================================================ */

/* No accidental horizontal scroll from decorative layers */
.hero { overflow: hidden; }

/* Dynamic viewport units: correct heights under mobile browser chrome (URL bar) */
.hero { height: clamp(540px, 82dvh, 820px); }
.modal { max-height: 92dvh; }

/* Remove the grey flash on taps (iOS/Android) for a native feel */
button, a, .btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (max-width: 768px) {
  .hero { height: clamp(480px, 88dvh, 640px); }
}

@media (max-width: 640px) {
  /* Comfortable touch targets for all buttons */
  .btn { min-height: 46px; }

  /* Tighter, cleaner section rhythm */
  .experience-content { padding-block: 72px; }
  .why-item { padding: 28px 22px 26px; }
  .why-item::after { inset-inline: 22px; }
  .footer-grid { padding-block: 48px 36px; gap: 32px; }
  .trust-grid { padding-block: 20px; }
  .trust-item { justify-content: center; text-align: center; }
  .product-body { padding: 18px 18px 20px; }
  .modal { padding: 28px 20px 22px; border-radius: 16px; }

  /* Floating WhatsApp: slightly smaller, closer to the edge */
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

@media (max-width: 420px) {
  .icon-btn { width: 40px; height: 40px; }
  .trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .trust-item { font-size: 0.82rem; }
  .page-head { padding-block: 56px 32px; }
  .page-title { font-size: 1.9rem; }
  .section-title { font-size: 1.65rem; }
  .hero-title { font-size: 2.1rem; }
  .m-link { font-size: 1.25rem; padding: 12px; }
  .mobile-menu-inner { gap: 36px; }
}

/* ============================================================
   Card gallery carousel — slides inside the product card
   ============================================================ */
.card-gallery {
  position: absolute;
  inset: 0;
  direction: ltr;
  overflow: hidden;
}
.cg-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cg-slide { flex: 0 0 100%; height: 100%; }
.cg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding-bottom: 3px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}
.card-gallery:hover .cg-nav,
.card-gallery:focus-within .cg-nav { opacity: 1; }
.cg-nav:hover { background: var(--gold); border-color: var(--gold); color: #14100a; }
.cg-prev { left: 10px; }
.cg-next { right: 10px; }
@media (hover: none) {
  .cg-nav { opacity: 0.9; } /* always visible on touch devices */
}
.cg-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  direction: ltr;
}
.cg-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.cg-dot.is-active { background: var(--gold-2); width: 18px; }
/* space between dots row and card edge in RTL is identical — keep centered */

/* ============================================================
   Product detail page (product.html)
   ============================================================ */
.product-detail { padding-top: clamp(110px, 14vh, 150px); }
.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.pd-gallery { direction: ltr; max-width: 440px; }
.pd-desc, .pd-features { max-width: 480px; }
.pd-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pd-main:hover img { transform: scale(1.03); }
.pd-main:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pd-thumb {
  flex: 0 0 84px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  background: var(--card);
  cursor: pointer;
  opacity: 0.7;
  transition: border-color 0.25s ease, opacity 0.25s ease;
}
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { border-color: var(--gold); opacity: 1; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gallery-hint {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.8rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pd-info .kicker { margin-bottom: 4px; }
.pd-name {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}
html[lang="en"] .pd-name { font-weight: 700; }
.pd-info .product-cat { display: inline-block; margin-top: 10px; font-size: 0.85rem; }
.pd-desc { color: var(--text-2); line-height: 2; margin-top: 16px; font-size: 1rem; }
.pd-sub { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-top: 26px; }
.pd-features { margin-top: 14px; display: grid; gap: 10px; list-style: none; }
.pd-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pd-feature svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; max-width: 480px; }
.pd-actions .btn { flex: 1 1 200px; }

@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .pd-gallery { max-width: 380px; margin-inline: auto; }
  .pd-desc, .pd-features { max-width: none; }
}

@media (max-width: 640px) {
  .product-detail { padding-top: clamp(96px, 16vh, 130px); }
  .product-detail-grid { gap: 26px; }
  .pd-main { border-radius: 14px; }
  .pd-thumb { flex: 0 0 72px; }
  .pd-name { margin-top: 10px; }
  .pd-desc { line-height: 1.85; margin-top: 12px; }
  .pd-sub { margin-top: 22px; }
  .pd-features { gap: 8px; }
  .pd-actions { margin-top: 24px; }
  .pd-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .pd-thumb { flex: 0 0 62px; }
  .pd-thumbs { gap: 8px; }
  .pd-gallery-hint { font-size: 0.75rem; }
  .pd-feature { font-size: 0.9rem; }
}

/* ============================================================
   Lightbox — full-size image viewer with arrows & close
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(5, 5, 5, 0.93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: ltr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; display: flex; align-items: center; justify-content: center; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lbIn 0.3s ease;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  padding-bottom: 4px;
  z-index: 2;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: #14100a; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  direction: ltr;
}
@media (max-width: 640px) {
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lightbox img { max-width: 96vw; max-height: 76vh; }
}
.mobile-controls { display: flex; flex-direction: column; gap: 12px; width: min(320px, 100%); }

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 162, 77, 0.4);
  filter: brightness(1.06);
}

.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 77, 0.06);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.62rem 1.3rem; font-size: 0.85rem; }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }