/* =============================================
   Triple J's Car Rental — Design System
   Color Palette:
     --bg:       #e7e6e2
     --text:     #353431
     --muted:    #7a7975
     --accent:   #555451
     --dark:     #1d1c19
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---------- Reset & Root ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #e7e6e2;
  --bg-alt: #dddcd8;
  --bg-card: #f0efec;
  --text: #353431;
  --muted: #7a7975;
  --accent: #555451;
  --dark: #1d1c19;
  --white: #fafaf9;
  --shadow-sm: 0 2px 8px rgba(29, 28, 25, .06);
  --shadow-md: 0 8px 30px rgba(29, 28, 25, .10);
  --shadow-lg: 0 20px 60px rgba(29, 28, 25, .14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .5s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--dark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 28, 25, .25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 20px;
  font-size: .8rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(53, 52, 49, .06);
}

.btn-sm {
  padding: 9px 20px;
  font-size: .8rem;
}

.btn-white {
  background: var(--white);
  color: var(--dark);
}

.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(231, 230, 226, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(29, 28, 25, .08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.nav-logo-text span {
  color: var(--muted);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  display: block;
  margin-top: -4px;
  letter-spacing: 1px;
}

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

.nav-links a {
  padding: 8px 18px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent);
  border-radius: 50px;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(53, 52, 49, .06);
}

.nav-cta {
  margin-left: 12px;
}

/* Force the CTA to stay solid black */
.nav-links a.nav-cta.btn-primary {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 10px 24px;
}

.nav-links a.nav-cta.btn-primary:hover {
  background: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 28, 25, .3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  min-height: auto;
  padding: 120px 0 60px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  filter: grayscale(.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(231, 230, 226, .95) 0%,
    rgba(231, 230, 226, .7) 50%,
    rgba(231, 230, 226, .4) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 0;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(29, 28, 25, .06);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInUp .6s ease forwards;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp .6s ease .1s forwards;
  opacity: 0;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fadeInUp .6s ease .2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .6s ease .3s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(53, 52, 49, .1);
  animation: fadeInUp .6s ease .4s forwards;
  opacity: 0;
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.hero-stat p {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  animation: fadeInRight .8s ease .3s forwards;
  opacity: 0;
}

/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}

.hero-floating-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(29, 28, 25, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-floating-card h4 {
  font-size: .9rem;
  font-weight: 600;
}

.hero-floating-card p {
  font-size: .78rem;
  color: var(--muted);
}

/* ---------- FEATURES BAR ---------- */
.features-bar {
  background: var(--dark);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.features-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.feature-item:hover .feature-icon {
  background: rgba(255, 255, 255, .14);
}

.feature-item h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.feature-item p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
}

/* ---------- CARS SECTION ---------- */
.cars-section {
  padding: 100px 0;
  background: var(--bg);
}

/* Filter tags */
.filter-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-tag {
  padding: 10px 24px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 2px solid rgba(122, 121, 117, .2);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Inter', sans-serif;
}

.filter-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-tag.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Car Cards */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.car-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-slow);
  border: 1px solid rgba(53, 52, 49, .05);
  position: relative;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(53, 52, 49, .1);
}

.car-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--dark);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 50px;
  z-index: 2;
}

.car-card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #d5d4d0, #c8c7c3);
  cursor: pointer;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.car-card:hover .car-card-image img {
  transform: scale(1.06);
}

.car-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card-brand {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.car-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.car-card-specs {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(53, 52, 49, .08);
}

.car-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
}

.car-spec .spec-icon {
  font-size: 1rem;
}

.car-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.car-tag {
  padding: 5px 12px;
  background: rgba(53, 52, 49, .05);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: .3px;
}

.car-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.car-card-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  padding: 10px 12px;
  font-size: .75rem;
  min-width: 90px;
  white-space: nowrap;
}

/* ---------- CUSTOMER CAROUSEL ---------- */
.customers-section {
  padding: 100px 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollMarquee 150s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 12px)); }
}

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

.carousel-slide {
  flex: 0 0 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
}

.carousel-slide:hover {
  transform: scale(1.02);
}

.carousel-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  cursor: pointer;
}

.carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(transparent, rgba(29, 28, 25, .8));
  color: var(--white);
}

.carousel-slide-overlay h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.carousel-slide-overlay p {
  font-size: .78rem;
  opacity: .7;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(53, 52, 49, .15);
  background: var(--white);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.carousel-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* ---------- BOOKING TIMELINE / CALENDAR SECTION ---------- */
.booking-section {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.booking-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .02);
}

.booking-section .section-label {
  color: rgba(255, 255, 255, .4);
}

.booking-section .section-title {
  color: var(--white);
}

.booking-section .section-subtitle {
  color: rgba(255, 255, 255, .5);
}

.booking-timeline {
  position: relative;
  overflow: hidden;
}

.timeline-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
  padding: 20px 0;
}

.timeline-track:hover {
  animation-play-state: paused;
}

.timeline-card {
  flex: 0 0 300px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.timeline-card:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .15);
}

.timeline-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-card-month {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
}

.timeline-card-year {
  font-size: .75rem;
  color: rgba(255, 255, 255, .4);
}

.timeline-card-body {
  padding: 16px 20px;
}

.timeline-calendar {
  width: 100%;
  font-size: .7rem;
}

.timeline-calendar th {
  padding: 6px 0;
  color: rgba(255, 255, 255, .3);
  font-weight: 600;
  text-align: center;
}

.timeline-calendar td {
  padding: 5px 0;
  text-align: center;
  color: rgba(255, 255, 255, .5);
  font-size: .7rem;
}

.timeline-calendar td.booked {
  color: var(--white);
  position: relative;
}

.timeline-calendar td.booked::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #4ade80;
  border-radius: 50%;
}

.timeline-card-footer {
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookings-count {
  font-size: .78rem;
  color: #4ade80;
  font-weight: 600;
}

.bookings-label {
  font-size: .7rem;
  color: rgba(255, 255, 255, .3);
}

.booking-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.booking-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.booking-btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}

/* Calendar photo cards */
.calendar-photo-card {
  flex: 0 0 360px;
}

.timeline-card-img {
  padding: 0;
  overflow: hidden;
}

.timeline-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-slow);
}

.calendar-photo-card:hover .timeline-card-img img {
  transform: scale(1.03);
}

/* Footer logo row */
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

/* ---------- WHY CHOOSE US ---------- */
.why-section {
  padding: 100px 0;
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 52, 49, .05);
  transition: all var(--transition-slow);
  text-align: center;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 52, 49, .1);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(53, 52, 49, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: var(--dark);
  transform: scale(1.05);
}

.why-card:hover .why-icon span {
  filter: brightness(10);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.why-card p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- ABOUT THE OWNERS ---------- */
.about-owners {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid rgba(53, 52, 49, .08);
}

.about-owners-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-owners-content .section-title {
  margin-bottom: 28px;
}

.about-owners-story {
  text-align: left;
  max-width: 640px;
  margin: 0 auto 40px;
}

.about-owners-story p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-owners-story strong {
  color: var(--text);
  font-weight: 700;
}

.about-owners-story em {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  text-align: center;
  padding: 16px 0;
}

.about-wink {
  display: inline;
  font-size: .85rem;
  color: var(--accent);
  font-style: italic;
}

.about-owners-names {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.owner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 36px 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 52, 49, .06);
  transition: all var(--transition);
  flex: 1;
  min-width: 280px;
  max-width: 340px;
}

.owner-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(53, 52, 49, .12);
}

.owner-initial {
  width: 250px;
  height: 250px;
  border-radius: 24px;
  background: var(--dark);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.owner-photo {
  width: 250px;
  height: 250px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
}

.owner-badge h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.owner-badge p {
  font-size: .95rem;
  color: var(--muted);
}

.owner-badge-accent {
  background: var(--dark);
  border-color: var(--dark);
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 20px;
  padding: 24px 32px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 600px;
  margin-top: 10px;
}

.owner-badge-accent h4,
.owner-badge-accent p {
  color: var(--white);
}

.owner-badge-accent h4 {
  margin-bottom: 4px;
}

.owner-badge-accent p {
  opacity: .8;
}

.owner-badge-accent .owner-initial {
  background: rgba(255, 255, 255, .12);
  width: 64px;
  height: 64px;
  font-size: 2.2rem;
  border-radius: 14px;
}

.owner-badge-accent:hover {
  box-shadow: 0 8px 30px rgba(29, 28, 25, .3);
}

/* ---------- CONTACT SECTION ---------- */
.contact-section {
  padding: 100px 0;
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(53, 52, 49, .05);
  transition: all var(--transition);
  cursor: pointer;
}

.contact-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(53, 52, 49, .1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(53, 52, 49, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.contact-item:hover .contact-icon {
  background: var(--dark);
}

.contact-item:hover .contact-icon span {
  filter: brightness(10);
}

.contact-item h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(53, 52, 49, .05);
}

.contact-form-wrapper h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid rgba(53, 52, 49, .08);
  border-radius: var(--radius);
  outline: none;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(85, 84, 81, .08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .6);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo-text {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.footer-brand .nav-logo-text span {
  color: rgba(255, 255, 255, .4);
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .6);
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-3px);
}

.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .5);
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .5);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .7s cubic-bezier(.4, 0, .2, 1);
}

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

/* ---------- KEYFRAMES ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes slideInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
}

/* ---------- POLICY PAGES ---------- */
.policy-section {
  padding: 140px 0 80px;
  background: var(--bg);
  min-height: 100vh;
}

.policy-header {
  text-align: center;
  margin-bottom: 56px;
}

.policy-date {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 8px;
}

.policy-content {
  max-width: 780px;
  margin: 0 auto;
}

.policy-block {
  margin-bottom: 40px;
}

.policy-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(53, 52, 49, .08);
}

.policy-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.policy-block p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 12px;
}

.policy-block ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.policy-block ul li {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.85;
  padding: 6px 0 6px 24px;
  position: relative;
}

.policy-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.policy-block ul li strong {
  color: var(--text);
}

.policy-block a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.policy-block a:hover {
  color: var(--accent);
}

.policy-back {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(53, 52, 49, .08);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cars-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 4px;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(29, 28, 25, .15);
    align-items: stretch;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: var(--radius);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Filter tags: horizontal scroll on mobile */
  .filter-tags {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    gap: 8px;
  }

  .filter-tags::-webkit-scrollbar {
    display: none;
  }

  .filter-tag {
    flex-shrink: 0;
  }

  .cars-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .carousel-slide {
    flex: 0 0 280px;
  }

  .carousel-slide img {
    height: 320px;
  }

  .timeline-card,
  .calendar-photo-card {
    flex: 0 0 280px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-floating-card {
    display: none;
  }

  /* Prevent floating messenger from overlapping back-to-top */
  .back-to-top {
    bottom: 80px;
  }

  /* Contact email truncation */
  .contact-item p {
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 50px 0;
  }

  .owner-badge {
    min-width: 100%;
  }

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

  .hero {
    padding: 100px 0 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .hero-description {
    font-size: .95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-stats {
    gap: 16px;
    justify-content: center;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }

  .hero-stat p {
    font-size: .75rem;
  }

  .contact-form-wrapper {
    padding: 24px;
  }

  .car-card-actions {
    flex-direction: column;
  }

  .car-card-actions .btn {
    width: 100%;
  }

  /* Floating messenger compact on small screens */
  .floating-messenger {
    padding: 10px 14px;
    font-size: .82rem;
    gap: 6px;
  }

  .floating-messenger svg {
    width: 18px;
    height: 18px;
  }

  .back-to-top {
    bottom: 72px;
    right: 16px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  /* Owner badges */
  .owner-photo {
    width: 200px;
    height: 200px;
  }

  .owner-initial {
    width: 200px;
    height: 200px;
    font-size: 5.5rem;
  }

  /* Section header */
  .section-header {
    margin-bottom: 36px;
  }

  .section-subtitle {
    font-size: .92rem;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 28, 25, .4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- LIGHTBOX ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 8, .92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
  animation: lightboxZoomIn .3s ease forwards;
}

@keyframes lightboxZoomIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
  color: rgba(255, 255, 255, .7);
  font-size: .88rem;
  margin-top: 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .4);
  transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10001;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .35);
}

@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; }
}

/* ---------- FLOATING MESSENGER ---------- */
.floating-messenger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #006AFF;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}

.floating-messenger svg {
  width: 22px;
  height: 22px;
}

.floating-messenger:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: #0056cc;
}

@media (max-width: 768px) {
  .floating-messenger {
    bottom: 16px;
    left: 16px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .floating-messenger {
    bottom: 12px;
    left: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
