/*
Theme Name: Jani
Theme URI: https://jani.prodx.dev
Author: prodx.dev
Author URI: https://www.prodx.dev
Description: Car rental and sales platform theme for Jani - Albanian market
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jani
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
*/

/* ==========================================================================
   WordPress-specific overrides
   ========================================================================== */

/* Image alignment */
img.alignleft { float: left; margin: 0 1.75rem 1.25rem 0; }
img.alignright { float: right; margin: 0 0 1.25rem 1.75rem; }
img.aligncenter { display: block; margin: 0 auto 1.25rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.6875rem; color: var(--color-text-secondary); margin-top: 0.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* WordPress nav menu integration */
.header__nav .menu-item a { text-decoration: none; }
.header__nav .menu { display: flex; gap: var(--space-2xl); list-style: none; margin: 0; padding: 0; }

/* Mobile menu: ensure it works as full overlay when open, hidden when closed */
.mobile-menu--open {
  transform: translateX(0) !important;
  visibility: visible !important;
}

/* When menu is open, keep header visible and prevent body scroll */
body.menu-open { overflow: hidden; }
body.menu-open .header { transform: none !important; }

/* Admin bar offset */
@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
  .admin-bar .mobile-menu { top: calc(var(--header-height) + 46px); }
  .admin-bar .splash { top: 46px; height: calc(100dvh - 46px); }
}
.admin-bar .header { top: 32px; }
.admin-bar .mobile-menu { top: calc(var(--header-height) + 32px); }
.admin-bar .splash { top: 32px; height: calc(100dvh - 32px); }

/* ============================================
   RESET / NORMALIZE
   Modern CSS reset for consistent cross-browser
   ============================================ */

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

::selection {
  background: var(--color-brand-accent);
  color: #fff;
}
::-moz-selection {
  background: var(--color-brand-accent);
  color: #fff;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
  scrollbar-color: var(--color-brand-accent) transparent;
  scrollbar-width: thin;
}

/* ---- Webkit scrollbar (Chrome, Safari, Edge) ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-brand-accent);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-accent-hover);
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  line-height: 1.2;
}

p {
  overflow-wrap: break-word;
}

table {
  border-collapse: collapse;
}

/* Remove animations for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================
   CSS CUSTOM PROPERTIES — Luxury Elegant
   Deep blacks, champagne gold, cinematic
   ============================================ */

:root {
  /* ---- Brand ---- */
  --color-brand-primary: #000000;
  --color-brand-accent: #c9a96e;
  --color-brand-accent-hover: #b8965a;
  --color-brand-accent-light: rgba(201, 169, 110, 0.1);
  --color-brand-accent-subtle: rgba(201, 169, 110, 0.05);
  --color-brand-accent-rgb: 201, 169, 110;
  --color-brand-secondary: #8b7355;

  /* ---- Semantic ---- */
  --color-success: #6b8f71;
  --color-warning: #c9a96e;
  --color-error: #a65d57;
  --color-info: #7a8b99;

  /* ---- Spacing (tighter, consistent) ---- */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.75rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3.5rem;
  --space-4xl: 5rem;
  --space-5xl: 7rem;

  /* ---- Typography ---- */
  --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  --text-2xs: 0.5625rem;   /* 9px */
  --text-xs: 0.6875rem;    /* 11px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;
  --text-7xl: 5rem;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* ---- Border Radius (minimal, refined) ---- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-2xl: 12px;
  --radius-full: 50%;
  --radius-pill: 999px;

  /* ---- Overlay/Surface colors ---- */
  --color-overlay-dark: rgba(0, 0, 0, 0.7);
  --color-overlay-heavy: rgba(0, 0, 0, 0.85);
  --color-surface-dark: #000000;
  --color-surface-dark-alt: #1a1a1a;
  --color-surface-light-alt: #f2efe9;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.4);
  --color-on-dark-subtle: rgba(255, 255, 255, 0.2);

  /* ---- Transitions (extended) ---- */
  --transition-image: 800ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-entrance: 1s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* ---- Shadows (barely there) ---- */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-2xl: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px rgba(201, 169, 110, 0.12);
  --shadow-glow-strong: 0 0 60px rgba(201, 169, 110, 0.2);
  --shadow-glow-cyan: none;

  /* ---- Transitions ---- */
  --transition-fast: 200ms ease;
  --transition-base: 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-theme: 500ms ease;

  /* ---- Z-Index ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-splash: 1000;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-narrow: 880px;
  --container-wide: 1400px;
  --header-height: 72px;
}

/* ============================================
   DARK THEME (DEFAULT)
   ============================================ */
:root {
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #1a1a1a;
  --color-bg-elevated: #141414;
  --color-bg-overlay: rgba(0, 0, 0, 0.8);

  --color-text-primary: #f0ece4;
  --color-text-secondary: #999189;
  --color-text-tertiary: #5e5a54;
  --color-text-inverse: #0a0a0a;
  --color-text-accent: #c9a96e;

  --color-border: #222222;
  --color-border-light: #1a1a1a;
  --color-border-focus: #c9a96e;

  --color-card-bg: #111111;
  --color-card-hover: #1a1a1a;

  --color-header-bg: rgba(10, 10, 10, 0.9);
  --color-header-blur: blur(20px);

  --color-input-bg: #111111;
  --color-input-border: #222222;

  --shadow-card: none;
  --shadow-card-hover: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================
   TYPOGRAPHY — Luxury Elegant
   Playfair Display (serif) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: color var(--transition-theme), background-color var(--transition-theme);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
}

h3 {
  font-size: var(--text-2xl);
}

h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

a { transition: color var(--transition-fast); }
a:hover { color: var(--color-brand-accent); }

strong, b { font-weight: var(--weight-semibold); }
small { font-size: var(--text-sm); }

@media (min-width: 768px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
}

@media (min-width: 1200px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-5xl); }
}
/* ============================================
   UTILITY CLASSES
   ============================================ */

/* ---- Display ---- */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }

/* ---- Flexbox ---- */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* ---- Text ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.text-accent { color: var(--color-text-accent); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.font-heading { font-family: var(--font-heading); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.letter-tight { letter-spacing: -0.02em; }
.letter-wide { letter-spacing: 0.05em; }

/* ---- Spacing ---- */
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* ---- Width ---- */
.w-full { width: 100%; }

/* ---- Position ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }

/* ---- Image ---- */
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Screen reader ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================
   ANIMATION SYSTEM — Luxury Elegant
   Fade, slide, scale, clip reveals
   ============================================ */

/* ---- Base reveal (fade up) ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Slide from left ---- */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Slide from right ---- */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Scale up ---- */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ---- Clip reveal (curtain from bottom) ---- */
.reveal-clip {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-clip.revealed {
  clip-path: inset(0 0 0 0);
}

/* ---- Fade only (no movement) ---- */
.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-fade.revealed {
  opacity: 1;
}

/* ---- Blur in ---- */
.reveal-blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-blur.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ---- Stagger delays ---- */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }

/* ---- Heading word-by-word reveal ---- */
.split-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-reveal .word-inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.split-reveal.revealed .word-inner {
  transform: translateY(0);
}

/* ---- Gold line draw ---- */
.line-draw {
  position: relative;
}

.line-draw::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-brand-accent);
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.line-draw.revealed::after {
  width: 60px;
}

/* ---- Page enter animation ---- */
.page-enter {
  animation: pageEnter 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .reveal-clip, .reveal-fade, .reveal-blur {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .split-reveal .word-inner {
    transform: none !important;
    transition: none !important;
  }
}
/* ============================================
   GRID SYSTEM & CONTAINERS
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ---- Section spacing ---- */
.section {
  padding-block: var(--space-3xl);
}

.section--lg {
  padding-block: var(--space-4xl);
}

.section--sm {
  padding-block: var(--space-2xl);
}

/* ---- Car Grid ---- */
.car-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 576px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Two Column Layout ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Responsive padding ---- */
@media (min-width: 576px) {
  .container {
    padding-inline: var(--space-lg);
  }
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-4xl);
  }
  .section--lg {
    padding-block: var(--space-5xl);
  }
}
/* ============================================
   HEADER — Luxury Elegant
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-fixed);
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header--scrolled {
  background: var(--color-header-bg);
  backdrop-filter: var(--color-header-blur);
  -webkit-backdrop-filter: var(--color-header-blur);
  border-bottom: 1px solid var(--color-brand-accent);
  box-shadow: 0 1px 0 rgba(var(--color-brand-accent-rgb), 0.08);
}

/* Gold accent line at top */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-brand-accent), transparent);
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.header--scrolled::before {
  width: 100%;
}

/* Progress bar at bottom */
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 1px;
  background: var(--color-brand-accent);
  transition: width 0.1s linear;
  opacity: 0;
}

.header--scrolled::after {
  opacity: 0.5;
}

.header--hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* ---- Logo ---- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.header__logo:hover { color: var(--color-brand-accent); }

.header__logo-svg {
  flex-shrink: 0;
  transition: filter 0.5s ease;
}

/* Gold glow on logo when scrolled */
.header--scrolled .header__logo-svg {
  filter: drop-shadow(0 0 6px rgba(var(--color-brand-accent-rgb), 0.3));
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  letter-spacing: 0.08em;
}

/* ---- Navigation ---- */
.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-2xl);
}

.header__nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--space-xs) 0;
  transition: color 0.4s ease;
}

/* Gold tint on nav links when scrolled */
.header--scrolled .header__nav-link--active {
  color: var(--color-brand-accent);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-text-primary);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-brand-accent);
  transition: width var(--transition-base);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

/* ---- Actions ---- */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ---- Burger ---- */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__burger--open .header__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger--open .header__burger-line:nth-child(2) { opacity: 0; }
.header__burger--open .header__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0; bottom: 0;
  background: var(--color-bg-primary);
  z-index: var(--z-fixed);
  display: flex;
  flex-direction: column;
  padding: var(--space-3xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-menu--open { transform: translateX(0); }

.mobile-menu__link {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--color-text-tertiary);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--color-text-primary);
}

@media (min-width: 992px) {
  .header__nav { display: flex; }
  .header__burger { display: none; }
  .mobile-menu { display: none !important; }
}
/* ============================================
   FOOTER — Luxury Elegant
   ============================================ */

.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-3xl) var(--space-xl);
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.footer__brand { max-width: 320px; }

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer__description {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer__column h4 {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--color-brand-accent); }

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.05em;
}
.footer__credit {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.05em;
}
.footer__credit a {
  color: var(--color-brand-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer__credit a:hover {
  color: var(--color-brand-accent-hover);
}

@media (min-width: 576px) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }
@media (min-width: 992px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
/* ============================================
   BUTTONS — Luxury Elegant
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-none);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

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

/* ---- Primary (Gold) ---- */
.btn--primary {
  background: var(--color-brand-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-brand-accent);
}

.btn--primary:hover {
  background: var(--color-brand-accent-hover);
  border-color: var(--color-brand-accent-hover);
  color: var(--color-text-inverse);
}

/* ---- Secondary (Outline) ---- */
.btn--secondary {
  background: transparent;
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

.btn--secondary:hover {
  background: var(--color-brand-accent);
  color: var(--color-text-inverse);
}

/* ---- Ghost ---- */
.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text-primary);
}

/* ---- Danger ---- */
.btn--danger {
  background: var(--color-error);
  color: var(--color-on-dark);
  border-color: var(--color-error);
}

/* ---- WhatsApp ---- */
.btn--whatsapp {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.btn--whatsapp:hover {
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

/* ---- Viber ---- */
.btn--viber {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-primary);
}

.btn--viber:hover {
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

/* ---- Phone ---- */
.btn--phone {
  background: transparent;
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

.btn--phone:hover {
  background: var(--color-brand-accent);
  color: var(--color-text-inverse);
}

/* ---- Sizes ---- */
.btn--lg {
  padding: 16px var(--space-2xl);
  font-size: var(--text-sm);
}

.btn--sm {
  padding: 8px var(--space-md);
  font-size: var(--text-2xs);
}

.btn--full { width: 100%; }

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn--icon svg { width: 18px; height: 18px; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 575px) {
  .btn--full-mobile { width: 100%; }
}
/* ============================================
   CAR CARDS — Luxury Elegant
   ============================================ */

.car-card {
  position: relative;
  background: var(--color-card-bg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base);
  cursor: pointer;
}

.car-card:hover {
  border-color: var(--color-brand-accent);
}

.car-card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-tertiary);
}

.car-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-image);
}

.car-card:hover .car-card__image {
  transform: scale(1.03);
}

.car-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-overlay-dark);
  backdrop-filter: blur(8px);
  color: var(--color-brand-accent);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--color-brand-accent-rgb), 0.2);
}

.car-card__badge--new { color: #b5c9b7; border-color: rgba(181, 201, 183, 0.2); }
.car-card__badge--premium { color: var(--color-brand-accent); }

.car-card__favorite {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  color: var(--color-on-dark);
  transition: background var(--transition-fast);
}

.car-card__favorite:hover { background: var(--color-error); }

.car-card__content {
  padding: var(--space-lg) var(--space-md);
}

.car-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.car-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  line-height: 1.3;
}
.car-card__title a {
  color: inherit;
  text-decoration: none;
}
.car-card__title a:hover {
  color: var(--color-brand-accent);
}
.car-card__image-wrap {
  display: block;
}

.car-card__year {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-weight: var(--weight-regular);
  white-space: nowrap;
  margin-left: var(--space-sm);
}

.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.car-card__spec {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.car-card__spec svg {
  width: 12px;
  height: 12px;
  opacity: 0.4;
}

.car-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.car-card__price {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.car-card__price-unit {
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-tertiary);
}

.car-card__cta {
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  color: var(--color-brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: gap var(--transition-fast);
}

.car-card:hover .car-card__cta { gap: 8px; }
.car-card__cta svg { width: 12px; height: 12px; }
/* ============================================
   FILTERS BAR — Luxury Elegant
   ============================================ */

.filters {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  transition: background var(--transition-theme), border-color var(--transition-theme);
}

.filters__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.filters__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.filters__title svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand-accent);
}

.filters__clear {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filters__clear:hover { color: var(--color-brand-accent); }

.filters__search {
  position: relative;
  margin-bottom: var(--space-lg);
}

.filters__search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.filters__input {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 42px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}

.filters__input:focus {
  outline: none;
  border-color: var(--color-brand-accent);
}

.filters__input::placeholder { color: var(--color-text-tertiary); }

.filters__dropdowns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.filters__select-wrap { position: relative; }

.filters__select {
  width: 100%;
  padding: var(--space-sm) var(--space-xl) var(--space-sm) var(--space-md);
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition-fast);
}

.filters__select:focus {
  outline: none;
  border-color: var(--color-brand-accent);
}

.filters__label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-brand-accent);
  color: #0a0a0a;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
}

.filters__toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px var(--space-md);
  background: transparent;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  cursor: pointer;
  margin-bottom: var(--space-md);
  width: 100%;
  justify-content: center;
}

.filters__toggle:hover { border-color: var(--color-brand-accent); }
.filters__toggle svg { width: 16px; height: 16px; }

@media (min-width: 576px) {
  .filters__dropdowns { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
  .filters__toggle { display: none; }
}
/* ============================================
   IMAGE GALLERY & LIGHTBOX — Luxury Elegant
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.gallery__main {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-bg-tertiary);
}

.gallery__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-image);
}

.gallery__main:hover .gallery__main-image { transform: scale(1.02); }

.gallery__counter {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-overlay-dark);
  backdrop-filter: blur(8px);
  color: var(--color-on-dark);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.gallery__thumbs {
  display: flex;
  gap: var(--space-2xs);
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  opacity: 0.4;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.gallery__thumb:hover { opacity: 0.7; }

.gallery__thumb--active {
  opacity: 1;
  border-color: var(--color-brand-accent);
}

.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-overlay-dark);
  backdrop-filter: blur(8px);
  color: var(--color-on-dark);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  z-index: 2;
}

.gallery__nav:hover { background: var(--color-overlay-heavy); }
.gallery__nav--prev { left: var(--space-md); }
.gallery__nav--next { right: var(--space-md); }
.gallery__nav svg { width: 18px; height: 18px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--color-overlay-heavy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox--open { opacity: 1; visibility: visible; }

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-on-dark-subtle);
  color: var(--color-on-dark);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.lightbox__close:hover { border-color: var(--color-brand-accent); }

@media (min-width: 768px) {
  .gallery__thumb { width: 96px; height: 64px; }
}
/* ============================================
   MODAL — Luxury Elegant
   ============================================ */

.modal-backdrop {
  position: fixed; inset: 0; z-index: var(--z-modal-backdrop);
  background: var(--color-bg-overlay);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal-backdrop--open { opacity: 1; visibility: visible; }

.modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: var(--z-modal);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  width: 90%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; opacity: 0; visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}
.modal--open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-lg); border-bottom: 1px solid var(--color-border);
}
.modal__title { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--weight-regular); }

.modal__close {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--color-border); cursor: pointer;
  color: var(--color-text-tertiary); transition: border-color var(--transition-fast), color var(--transition-fast);
}
.modal__close:hover { border-color: var(--color-brand-accent); color: var(--color-brand-accent); }

.modal__body { padding: var(--space-lg); }
.modal__footer { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--color-border); display: flex; justify-content: flex-end; gap: var(--space-sm); }
/* ============================================
   CONTACT LINKS — Luxury Elegant
   ============================================ */

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all var(--transition-base);
}

.contact-method:hover {
  border-color: var(--color-brand-accent);
  color: var(--color-text-primary);
}

.contact-method__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text-tertiary);
}

.contact-method__icon--phone,
.contact-method__icon--whatsapp,
.contact-method__icon--viber,
.contact-method__icon--instagram,
.contact-method__icon--facebook,
.contact-method__icon--tiktok,
.contact-method__icon--email {
  background: none;
  color: var(--color-text-tertiary);
}

.contact-method:hover .contact-method__icon {
  color: var(--color-brand-accent);
}

.contact-method__info { flex: 1; min-width: 0; }

.contact-method__label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2xs);
}

.contact-method__value {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
}

.contact-method__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-text-tertiary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-method:hover .contact-method__arrow {
  transform: translateX(3px);
  color: var(--color-brand-accent);
}

.contact-methods--compact .contact-method { padding: var(--space-sm) var(--space-md); }
.contact-methods--compact .contact-method__icon { width: 32px; height: 32px; }

@media (min-width: 768px) {
  .contact-methods--horizontal { flex-direction: row; flex-wrap: wrap; }
  .contact-methods--horizontal .contact-method { flex: 1; min-width: 200px; }
}
/* ============================================
   SPLASH — Split-Screen Luxury
   ============================================ */

.splash {
  position: fixed;
  inset: 0;
  z-index: var(--z-splash);
  background: #000;
  overflow: hidden;
}

.splash__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---- Floating Center Brand ---- */
.splash__brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  animation: brandReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.splash__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: var(--weight-regular);
  color: #fff;
  letter-spacing: 0.15em;
  line-height: 1;
  text-shadow: 0 0 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.splash__divider {
  width: 40px;
  height: 1px;
  background: var(--color-brand-accent);
  margin: var(--space-md) auto;
  opacity: 0.6;
}

.splash__tagline {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.4);
  font-weight: var(--weight-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

@keyframes brandReveal {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---- Split Container ---- */
.splash__split {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100dvh;
  opacity: 0;
  animation: splitReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes splitReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Panel (each half) ---- */
.splash__panel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4xl) var(--space-2xl);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover expand — hovered panel grows, sibling shrinks */
.splash__split:hover .splash__panel {
  flex: 0.85;
}

.splash__split .splash__panel:hover {
  flex: 1.15;
}

/* ---- Background Image ---- */
.splash__panel-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.splash__panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.35) saturate(0.7);
}

.splash__panel:hover .splash__panel-bg img {
  transform: scale(1.12);
  filter: brightness(0.5) saturate(0.9);
}

/* ---- Overlay Gradient ---- */
.splash__panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  transition: background 0.6s ease;
}

.splash__panel--left .splash__panel-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.splash__panel:hover .splash__panel-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* ---- Panel Content ---- */
.splash__panel-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 340px;
  transform: translateY(10px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash__panel:hover .splash__panel-content {
  transform: translateY(0);
}

.splash__panel-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  color: var(--color-brand-accent);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.splash__panel-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: var(--weight-regular);
  color: #fff;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-md) 0;
  transition: color 0.4s ease;
}

.splash__panel:hover .splash__panel-title {
  color: var(--color-brand-accent);
}

.splash__panel-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.splash__panel:hover .splash__panel-desc {
  opacity: 1;
  transform: translateY(0);
}

/* CTA button */
.splash__panel-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-brand-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.splash__panel-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.splash__panel:hover .splash__panel-cta {
  opacity: 1;
  transform: translateY(0);
}

.splash__panel:hover .splash__panel-cta svg {
  transform: translateX(4px);
}

/* ---- Shooting Star Streak ---- */
.splash__panel-streak {
  position: absolute;
  bottom: 0;
  left: -60%;
  width: 50%;
  height: 1px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--color-brand-accent-rgb), 0.2) 20%, rgba(var(--color-brand-accent-rgb), 0.9) 60%, transparent 100%);
  box-shadow: 0 0 6px rgba(var(--color-brand-accent-rgb), 0.4), 0 0 15px rgba(var(--color-brand-accent-rgb), 0.2);
  opacity: 0;
  animation: panelStreak 8s ease-in-out 2s infinite;
}

.splash__panel-streak--reverse {
  top: 0;
  bottom: auto;
  animation-delay: 5s;
  animation-direction: reverse;
}

@keyframes panelStreak {
  0%   { left: -60%; opacity: 0; }
  5%   { opacity: 1; }
  40%  { left: 120%; opacity: 1; }
  45%  { opacity: 0; }
  100% { opacity: 0; left: 120%; }
}

/* ---- Vertical Divider Line ---- */
.splash__divider-line {
  position: relative;
  flex-shrink: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--color-brand-accent-rgb), 0.15) 20%,
    rgba(var(--color-brand-accent-rgb), 0.3) 50%,
    rgba(var(--color-brand-accent-rgb), 0.15) 80%,
    transparent 100%
  );
  z-index: 15;
  pointer-events: none;
  opacity: 0;
  animation: dividerFade 1.5s ease 1.5s forwards;
}

@keyframes dividerFade {
  to { opacity: 1; }
}

/* ---- Click Transition ---- */
.splash--transitioning {
  transition: opacity 0.6s ease;
  opacity: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile — stack vertically, logo top-right */
@media (max-width: 575px) {
  .splash__split {
    flex-direction: column;
  }

  .splash__brand {
    inset: var(--space-md) auto auto var(--space-lg);
    transform: none;
    text-align: left;
    animation: brandRevealMobile 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  }

  @keyframes brandRevealMobile {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .splash__logo {
    font-size: 1.6rem;
    letter-spacing: 0.1em;
  }

  .splash__tagline {
    font-size: 0.45rem;
    letter-spacing: 0.15em;
  }

  .splash__divider {
    width: 20px;
    margin: var(--space-2xs) auto var(--space-2xs) 0;
  }

  .splash__panel {
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    padding: 0 var(--space-md) var(--space-md);
  }

  .splash__panel-content {
    text-align: center;
    max-width: 100%;
  }

  .splash__panel-label {
    display: none;
  }

  .splash__panel-title {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
  }

  .splash__panel-desc {
    font-size: 0.75rem;
    opacity: 1;
    transform: none;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
  }

  .splash__panel-cta {
    opacity: 1;
    transform: none;
    font-size: 0.65rem;
  }

  .splash__divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(var(--color-brand-accent-rgb), 0.15) 20%,
      rgba(var(--color-brand-accent-rgb), 0.3) 50%,
      rgba(var(--color-brand-accent-rgb), 0.15) 80%,
      transparent 100%
    );
  }

  .splash__split:hover .splash__panel { flex: 1; }
  .splash__split .splash__panel:hover { flex: 1.05; }

  .splash__panel-streak { display: none; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .splash__panel-title { font-size: 2rem; }
  .splash__panel { padding: var(--space-3xl) var(--space-xl); }
}

@media (min-width: 768px) {
  .splash__panel-content { max-width: 300px; }
}

@media (min-width: 1200px) {
  .splash__panel { padding: var(--space-4xl) var(--space-3xl); }
  .splash__panel-content { max-width: 360px; }
}
/* ============================================
   LISTINGS — Luxury Elegant
   ============================================ */

.listings-hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-3xl);
}

.listings-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.listings-hero__title {
  margin-bottom: var(--space-sm);
}

.listings-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  line-height: 1.8;
}

.listings-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.listings-hero__stat {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.listings-hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-regular);
  color: var(--color-brand-accent);
  margin-bottom: var(--space-2xs);
}

.listings-hero__stat-label {
  font-size: var(--text-2xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .listings-hero__layout {
    grid-template-columns: 1fr auto;
  }
}

.listings__results-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.listings__results-count {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.listings__results-count strong {
  color: var(--color-text-primary);
}



.listings__empty {
  text-align: center;
  padding: var(--space-5xl) var(--space-lg);
}

.listings__empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-text-tertiary);
}

.listings__empty-icon svg { width: 28px; height: 28px; }

.listings__empty-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.listings__empty-text { color: var(--color-text-tertiary); margin-bottom: var(--space-lg); }
.listings__load-more { text-align: center; margin-top: var(--space-2xl); }

/* ============================================
   CAR DETAIL — Luxury Elegant
   ============================================ */

.detail { padding-top: calc(var(--header-height) + var(--space-2xl)); }

.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-xs); font-size: var(--text-sm);
  color: var(--color-text-tertiary); margin-bottom: var(--space-xl);
}
.breadcrumb__link { color: var(--color-text-tertiary); transition: color var(--transition-fast); }
.breadcrumb__link:hover { color: var(--color-brand-accent); }
.breadcrumb__sep { opacity: 0.3; }
.breadcrumb__current { color: var(--color-text-primary); }

.detail__layout { display: grid; grid-template-columns: 1fr; gap: var(--space-3xl); margin-bottom: var(--space-3xl); }
.detail__main { min-width: 0; }
.detail__sidebar { position: relative; }
.detail__sticky { position: sticky; top: calc(var(--header-height) + var(--space-lg)); }

.detail__header { margin-bottom: var(--space-xl); }

.detail__badge-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }

.detail__badge {
  padding: var(--space-2xs) var(--space-sm);
  background: transparent;
  border: 1px solid rgba(var(--color-brand-accent-rgb), 0.3);
  color: var(--color-brand-accent);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.detail__title { font-size: var(--text-3xl); margin-bottom: var(--space-xs); }
.detail__subtitle { font-size: var(--text-base); color: var(--color-text-secondary); }

.detail__price-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.detail__price {
  font-family: var(--font-body);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2xs);
}

.detail__price-note {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: 0;
}

.detail__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
}

.detail__spec { display: flex; flex-direction: column; gap: var(--space-2xs); }

.detail__spec-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-tertiary);
}

.detail__spec-value {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  display: flex; align-items: center; gap: var(--space-xs);
}

.detail__spec-value svg {
  width: 14px; height: 14px;
  color: var(--color-brand-accent);
  flex-shrink: 0;
}

.detail__features { margin-bottom: var(--space-xl); }

.detail__features-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
}

.detail__features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.detail__feature {
  display: flex; align-items: center; gap: var(--space-xs);
  font-size: var(--text-sm); color: var(--color-text-secondary);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border-light);
}

.detail__feature-check { width: 14px; height: 14px; flex-shrink: 0; color: var(--color-brand-accent); }

.detail__description { margin-bottom: var(--space-xl); }
.detail__description-title { font-family: var(--font-heading); font-size: var(--text-xl); margin-bottom: var(--space-md); }
.detail__description-text { font-size: var(--text-base); color: var(--color-text-secondary); line-height: 1.9; }

.detail__contact {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
}

.detail__contact-title { font-family: var(--font-heading); font-size: var(--text-lg); margin-bottom: var(--space-xs); }
.detail__contact-text { font-size: var(--text-sm); color: var(--color-text-tertiary); margin-bottom: var(--space-lg); }

@media (min-width: 576px) { .detail__specs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) {
  .detail__layout { grid-template-columns: 1fr 360px; }
  .detail__features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) { .detail__specs { grid-template-columns: repeat(4, 1fr); } }
/* ============================================
   ABOUT — Luxury Elegant
   ============================================ */

.about-hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.about-hero__title { margin-bottom: var(--space-md); }

.about-hero__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.9;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.about-value {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base);
}

.about-value:hover { border-color: var(--color-brand-accent); }

.about-value__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-brand-accent);
}

.about-value__icon svg { width: 20px; height: 20px; }

.about-value__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-sm);
}

.about-value__text {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding: var(--space-3xl);
  background: var(--color-surface-dark);
  text-align: center;
}


.about-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-regular);
  color: var(--color-brand-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.about-stat__label {
  font-size: var(--text-2xs);
  color: var(--color-on-dark-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-story__image {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-tertiary);
}

.about-story__image img { width: 100%; height: 100%; object-fit: cover; }
.about-story__content h2 { margin-bottom: var(--space-md); }
.about-story__content p { margin-bottom: var(--space-md); line-height: 1.9; }

@media (min-width: 576px) {
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 992px) {
  .about-values { grid-template-columns: repeat(4, 1fr); }
  .about-story { grid-template-columns: 1fr 1fr; }
}
/* ============================================
   CONTACT — Luxury Elegant
   ============================================ */

.contact-hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-3xl);
  text-align: center;
}

.contact-hero__title { margin-bottom: var(--space-sm); }

.contact-hero__text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.contact-info-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
}

.contact-info-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-info-card__title svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand-accent);
}

.contact-map {
  overflow: hidden;
  height: 360px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* Dark mode map — invert, desaturate, warm tint to match site palette */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.3) brightness(0.8) contrast(1.1);
}

.contact-hours { display: flex; flex-direction: column; }

.contact-hours__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-hours__row:last-child { border-bottom: none; }
.contact-hours__day { font-size: var(--text-sm); color: var(--color-text-primary); }
.contact-hours__time { font-size: var(--text-sm); color: var(--color-text-secondary); }
.contact-hours__time--closed { color: var(--color-error); }

.contact-quick {
  padding: var(--space-3xl);
  background: var(--color-surface-dark);
  text-align: center;
}


.contact-quick__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--color-on-dark);
  margin-bottom: var(--space-xs);
}

.contact-quick__text {
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
}

.contact-quick__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.contact-quick .btn {
  color: var(--color-on-dark);
  border-color: var(--color-on-dark-subtle);
}

.contact-quick .btn:hover {
  color: var(--color-on-dark);
  border-color: var(--color-brand-accent);
}

.contact-quick .btn--phone {
  border-color: var(--color-brand-accent);
  color: var(--color-brand-accent);
}

.contact-quick .btn--phone:hover {
  background: var(--color-brand-accent);
  color: var(--color-text-inverse);
}

.contact-location {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-location__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  color: var(--color-brand-accent);
}

.contact-location__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.contact-location__text strong {
  display: block;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================================
   404 — Luxury Elegant
   ============================================ */

.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.not-found__content { max-width: 460px; }

.not-found__code {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: var(--weight-regular);
  line-height: 1;
  color: var(--color-brand-accent);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.not-found__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.not-found__text {
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

@media (min-width: 768px) {
  .not-found__code { font-size: 10rem; }
}
