/* ==========================================================================
   THE ONE CAR RENTAL PHUKET - STYLESHEET
   Matching Exact Luxury Dark & Amber Gold Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --primary-gold: #F5A623;
  --primary-gold-hover: #E09212;
  --gold-accent: #FFB800;
  --gold-light: #FFF8E7;
  --gold-glow: rgba(245, 166, 35, 0.25);
  
  --dark-bg: #0d0e11;
  --dark-surface: #16171d;
  --dark-card: #1f2128;
  --dark-border: #2a2c36;
  
  --text-white: #ffffff;
  --text-muted: #9ca3af;
  --text-dark: #1f2937;
  --text-gray: #4b5563;
  --light-bg: #f8f9fa;
  --light-card: #ffffff;
  --light-border: #e5e7eb;
  
  --font-main: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Kanit', var(--font-main);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 8px 24px rgba(245, 166, 35, 0.25);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography Utilities */
.text-gold {
  color: var(--primary-gold) !important;
}

.bg-gold {
  background-color: var(--primary-gold) !important;
}

/* ข้อความสำหรับโปรแกรมอ่านหน้าจอ ไม่แสดงบนหน้าเว็บ */
.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;
}

.text-center {
  text-align: center;
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 14, 17, 0.96);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  background: rgba(10, 11, 14, 0.98);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* รูปโลโก้ (พื้นหลังโปร่งใส ไฟล์ images/logo/logo-header.webp) */
.brand-logo-img {
  display: block;
  width: auto;
  height: 56px;
}

.site-footer .brand-logo-img {
  height: 72px;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-gold);
  border-radius: 2px;
}

/* Header Action Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section (Premium Banner)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #07080a;
  padding: 80px 0 110px;
  color: var(--text-white);
  border-bottom: 1px solid rgba(245, 166, 35, 0.12);
}

/* --- Background layers --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg-slide {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.8);
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}

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

.hero-bg-slide:nth-child(2) {
  animation-delay: -11s;
}

@keyframes heroKenBurns {
  from { transform: scale(1.14) translate3d(2%, 0, 0); }
  to   { transform: scale(1.02) translate3d(-1%, -1%, 0); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 48%, rgba(245, 166, 35, 0.16) 0%, transparent 42%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.97) 0%, rgba(7, 8, 10, 0.94) 45%, rgba(7, 8, 10, 0.7) 75%, rgba(7, 8, 10, 0.85) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, transparent 28%, transparent 62%, #07080a 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 65%);
}

.hero-light-sweep {
  position: absolute;
  top: -60%;
  left: -50%;
  width: 35%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 130, 0.08), transparent);
  transform: rotate(18deg);
  animation: heroSweep 10s ease-in-out infinite;
}

@keyframes heroSweep {
  0%        { left: -50%; }
  55%, 100% { left: 130%; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  bottom: -12px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe2a0 0%, rgba(245, 166, 35, 0.6) 45%, transparent 70%);
  opacity: 0;
  animation: heroParticle var(--t) linear var(--delay) infinite;
}

@keyframes heroParticle {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: 0.9; }
  80%  { opacity: 0.5; }
  100% { transform: translate3d(var(--drift), -900px, 0); opacity: 0; }
}

/* --- Layout --- */
.hero-content-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

/* --- Entrance animation (ข้อความเลื่อนขึ้นทีละส่วน) --- */
.hero-anim .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.9s ease;
  transition-delay: calc(var(--d, 0) * 110ms + 120ms);
}

.hero-anim.hero-ready .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- Text --- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-eyebrow-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-gold));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 1px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
}

.hero-silver-text {
  background: linear-gradient(180deg, #ffffff 30%, #b9bdc6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-gold-text {
  background: linear-gradient(100deg, #b7791f 0%, #f5c451 22%, #fff4cc 42%, #f5a623 58%, #b7791f 80%, #f5c451 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShimmer 6s linear infinite;
}

@keyframes heroShimmer {
  from { background-position: 0% center; }
  to   { background-position: -220% center; }
}

.hero-subtitle {
  color: #c7cad1;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 32px;
}

/* --- Buttons --- */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-btn-primary,
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.hero-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffd36b 0%, var(--primary-gold) 55%, #d98b0b 100%);
  color: #000000;
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: heroBtnShine 3.8s ease-in-out infinite;
}

@keyframes heroBtnShine {
  0%, 55% { left: -120%; }
  100%    { left: 160%; }
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(245, 166, 35, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-btn-arrow {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.hero-btn-primary:hover .hero-btn-arrow {
  transform: translateX(4px);
}

.hero-btn-ghost {
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.hero-btn-ghost i {
  color: #06C755;
  font-size: 1.3rem;
}

.hero-btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--primary-gold);
  background: rgba(245, 166, 35, 0.08);
}

/* --- Stats --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  max-width: 580px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat {
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: none;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  white-space: nowrap;
}

.hero-stat strong b {
  font-weight: inherit;
}

.hero-stat strong em {
  font-style: normal;
  font-size: 1rem;
  color: var(--primary-gold);
  margin-left: 3px;
}

.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Poster showcase (gold border) --- */
@property --hero-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-car-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.hero-poster-stage {
  position: relative;
  width: min(100%, 400px);
  transform-style: preserve-3d;
}

.hero-poster-glow {
  position: absolute;
  inset: -70px;
  z-index: -1;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.3) 0%, transparent 62%);
  filter: blur(24px);
  animation: heroGlowPulse 4.5s ease-in-out infinite;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.04); }
}

.hero-poster-frame {
  position: relative;
  padding: 2px;
  border-radius: 22px;
  background: conic-gradient(from var(--hero-angle),
    rgba(245, 166, 35, 0.12) 0deg, #ffd36b 50deg, rgba(245, 166, 35, 0.12) 110deg,
    rgba(245, 166, 35, 0.12) 180deg, #f5a623 230deg, rgba(245, 166, 35, 0.12) 290deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(245, 166, 35, 0.15);
  animation: heroSpin 6s linear infinite;
}

@keyframes heroSpin {
  to { --hero-angle: 360deg; }
}

.hero-poster-deck {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0c;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.96);
  filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

/* ใบเก่าเบลอหายไปก่อนนิดหนึ่ง แล้วใบใหม่ค่อยซูมเข้ามา ข้อความจะได้ไม่ซ้อนกัน */
.hero-poster.is-active {
  opacity: 1;
  transform: scale(1);
  filter: none;
  transition: opacity 0.7s ease 0.2s, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, filter 0.7s ease 0.2s;
}

.hero-poster-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
}

.hero-poster-dot {
  width: 10px;
  height: 4px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: width 0.4s ease, background 0.4s ease;
}

.hero-poster-dot.is-active {
  width: 30px;
  background: var(--primary-gold);
}

#carsSection {
  scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-section *,
  .hero-section *::before,
  .hero-section *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-anim .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-particles,
  .hero-light-sweep {
    display: none;
  }
}

/* Form fields (ฟอร์มหน้าติดต่อเรา) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--primary-gold);
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  background-color: #f9fafb;
  font-size: 0.92rem;
  color: #111827;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.btn-search-car {
  height: 48px;
  background: linear-gradient(135deg, var(--gold-accent), var(--primary-gold));
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
}

.btn-search-car:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Key Features Bar (Dark Pill Under Hero) */
.features-bar-section {
  margin-top: -35px;
  position: relative;
  z-index: 10;
  margin-bottom: 50px;
}

.features-bar-container {
  background: #111217;
  border: 1px solid #272935;
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.feat-item-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 8px;
}

.feat-item-box:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.feat-icon-circle {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 1.35rem;
}

.feat-info h4 {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feat-info p {
  color: #9ca3af;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Section Header Utility */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--primary-gold);
  border-radius: 2px;
}

.section-link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 0.92rem;
}

.section-link-more:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   Car Fleet Cards (Premium Dark) — ใช้ร่วมกันทั้งหน้าแรกและหน้าบริการ
   ========================================================================== */
/* หน้าแรก: รถแนะนำ 4 คันแถวเดียว */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

@media (max-width: 1100px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* มือถือ: การ์ดรถปัดซ้าย-ขวา */
@media (max-width: 768px) {
  .cars-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px 12px;
    padding: 10px 20px 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cars-grid::-webkit-scrollbar {
    display: none;
  }
  .cars-grid .car-card {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
}

.car-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e9eaee;
  box-shadow: 0 10px 30px rgba(15, 17, 22, 0.08);
  color: var(--text-dark);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

/* เส้นทองบาง ๆ ขอบบน (ยาวเต็มการ์ดตอนชี้เมาส์) */
.car-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(255, 211, 107, 0.9), transparent);
  opacity: 0.55;
  transition: left 0.5s ease, right 0.5s ease, opacity 0.5s ease;
}

/* แสงทองเรือง ๆ ด้านล่างตอนชี้เมาส์ */
.car-card::after {
  content: '';
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -45%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(245, 166, 35, 0.2) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 24px 50px rgba(15, 17, 22, 0.14), 0 0 0 1px rgba(245, 166, 35, 0.18);
}

.car-card:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

.car-card:hover::after {
  opacity: 1;
}

/* การ์ดลอยขึ้นมาตอนเลื่อนหน้าจอถึง */
.car-card.pre-reveal {
  opacity: 0;
}

.car-card.reveal-in {
  animation: carCardIn 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms) backwards;
}

@keyframes carCardIn {
  from { opacity: 0; transform: translateY(34px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.car-status-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 17, 22, 0.08);
  color: #059669;
  font-size: 0.72rem;
  font-weight: 600;
}

.car-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: carDotPulse 2s ease-out infinite;
}

.car-status-tag.booked {
  color: #dc2626;
  border-color: #fecaca;
}

.car-status-tag.booked .car-status-dot {
  background: #ef4444;
  animation: none;
}

@keyframes carDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Image --- */
.car-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f4f6f8;
}

.car-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom; /* รูปเต็มกรอบ: ชิดล่างให้เห็นล้อรถครบ */
  transform-origin: center bottom; /* ตอนชี้เมาส์ ขยายขึ้นด้านบน ล้อไม่หลุดกรอบ */
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ไล่เงาให้รูปกลืนกับตัวการ์ด */
.car-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 22, 0.06) 0%, transparent 32%);
  pointer-events: none;
}

/* แสงวาบวิ่งผ่านรูปตอนชี้เมาส์ */
.car-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  z-index: 2;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s ease;
  pointer-events: none;
}

.car-card:hover .car-img-wrapper::before {
  left: 140%;
}

.car-card:hover .car-img-wrapper img {
  transform: scale(1.08);
}

/* รูปรถแบบตัดพื้นหลัง: วางเต็มคันบนพื้น มีเงาใต้ท้องรถ */
.car-img-wrapper:has(.car-img-cutout) {
  background:
    radial-gradient(ellipse 58% 13% at 50% 90%, rgba(15, 17, 22, 0.16) 0%, transparent 100%),
    radial-gradient(circle at 50% 48%, rgba(245, 166, 35, 0.10) 0%, transparent 60%),
    #f4f6f8;
}

.car-img-wrapper img.car-img-cutout {
  box-sizing: border-box;
  padding: 30px 22px 16px;
  object-fit: contain;
  object-position: 50% 100%;
  filter: drop-shadow(0 8px 10px rgba(15, 17, 22, 0.18));
}

.car-img-wrapper:has(.car-img-cutout)::after {
  background: linear-gradient(180deg, rgba(15, 17, 22, 0.05) 0%, transparent 20%, transparent 84%, #ffffff 100%);
}

.car-card:hover .car-img-wrapper img.car-img-cutout {
  transform: scale(1.05);
}

/* กล่องแทนรูป ตอนที่รถคันนั้นยังไม่มีรูป */
.car-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-gold);
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 166, 35, 0.14) 0%, transparent 58%),
    repeating-linear-gradient(135deg, rgba(15, 17, 22, 0.03) 0 2px, transparent 2px 14px),
    #f4f6f8;
}

.car-img-placeholder i {
  font-size: 2.6rem;
  filter: drop-shadow(0 6px 18px rgba(245, 166, 35, 0.35));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.car-card:hover .car-img-placeholder i {
  transform: translateX(10px);
}

.car-img-placeholder span {
  font-size: 0.74rem;
  color: #9ca3af;
  letter-spacing: 0.5px;
}

/* รูปรถกดดูรูปใหญ่ได้ (ป็อปอัพ) */
.car-img-wrapper:has(img) {
  cursor: zoom-in;
}

.car-img-wrapper:focus-visible {
  outline: 2px solid var(--primary-gold);
  outline-offset: -2px;
}

.car-img-zoom-hint {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 17, 22, 0.08);
  color: #4b5563;
  font-size: 0.75rem;
  opacity: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  pointer-events: none;
}

.car-card:hover .car-img-zoom-hint {
  opacity: 1;
  color: var(--primary-gold);
  border-color: rgba(245, 166, 35, 0.45);
}

.car-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(245, 166, 35, 0.12) 0%, transparent 55%),
    rgba(7, 8, 10, 0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* กล่องขาว: ซ้ายรูป ขวาข้อมูลรถ */
.car-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(100%, 1000px);
  max-height: calc(100vh - 80px);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 166, 35, 0.2);
  cursor: default;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.car-lightbox.is-open .car-lightbox-panel {
  transform: none;
}

.car-lightbox-figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 58% 13% at 50% 88%, rgba(15, 17, 22, 0.14) 0%, transparent 100%),
    radial-gradient(circle at 50% 45%, rgba(245, 166, 35, 0.1) 0%, transparent 62%),
    #f4f6f8;
}

.car-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* รูปตัดพื้นหลัง ไม่ต้องมีขอบมน ใช้เงาใต้ท้องรถแทน */
.car-lightbox-figure img.car-img-cutout {
  border-radius: 0;
  filter: drop-shadow(0 14px 18px rgba(15, 17, 22, 0.22));
}

/* --- ฝั่งข้อมูล --- */
.car-lightbox-info {
  padding: 30px 28px;
  overflow-y: auto;
  border-left: 1px solid #f0f1f4;
}

.lb-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.lb-category::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--primary-gold);
}

.lb-name {
  margin: 6px 0 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.lb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 0.74rem;
  font-weight: 600;
}

.lb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.lb-status.booked {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.lb-status.booked .lb-status-dot {
  background: #ef4444;
}

.lb-price-box {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.04));
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.lb-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #6b7280;
}

.lb-price-row + .lb-price-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(245, 166, 35, 0.3);
}

.lb-price-row strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #d98b0b;
  white-space: nowrap;
}

.lb-price-row.main strong {
  font-size: 1.6rem;
  line-height: 1;
}

.lb-price-row strong em {
  font-size: 0.78rem;
  font-weight: 500;
  font-style: normal;
  color: #6b7280;
}

.lb-price-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6b7280;
}

.lb-desc {
  margin-bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #4b5563;
}

.lb-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.lb-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.lb-spec i {
  color: var(--primary-gold);
  font-size: 0.95rem;
}

.lb-spec small {
  display: block;
  font-size: 0.68rem;
  color: #9ca3af;
}

.lb-spec span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

.lb-features {
  margin-bottom: 22px;
}

.lb-features h4 {
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.lb-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lb-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #4b5563;
}

.lb-features li i {
  margin-top: 3px;
  color: #059669;
  font-size: 0.76rem;
}

.lb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ffd36b 0%, var(--primary-gold) 60%, #d98b0b 100%);
  color: #000000;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.5);
}

.car-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  color: #4b5563;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 17, 22, 0.12);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.car-lightbox-close:hover {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #000000;
}

/* จอแคบ: เรียงบน-ล่าง แล้วเลื่อนดูได้ทั้งกล่อง */
@media (max-width: 860px) {
  .car-lightbox {
    padding: 16px 12px;
  }
  .car-lightbox-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  .car-lightbox-figure {
    padding: 18px;
  }
  .car-lightbox-figure img {
    max-height: 34vh;
  }
  .car-lightbox-info {
    padding: 22px 20px 26px;
    border-left: none;
    border-top: 1px solid #f0f1f4;
    overflow-y: visible;
  }
  .lb-name {
    font-size: 1.25rem;
  }
  .lb-specs {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .lb-specs {
    grid-template-columns: 1fr;
  }
}

body.car-lightbox-open {
  overflow: hidden;
}

/* --- Content --- */
.car-content {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 6px 20px 20px;
}

.car-category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--primary-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.car-category-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--primary-gold);
}

.car-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  min-height: 3.1rem;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-specs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.spec-item i {
  color: var(--primary-gold);
  font-size: 0.95rem;
}

.car-card:hover .spec-item {
  border-color: rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.08);
}

/* --- ราคา และปุ่มสอบถาม --- */
.car-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f1f4;
}

.car-price-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.price-prefix {
  margin-bottom: 3px;
  font-size: 0.7rem;
  color: #6b7280;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #f5a623 0%, #d98b0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-amount span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  -webkit-text-fill-color: #6b7280;
}

.price-monthly {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #6b7280;
  white-space: nowrap;
}

.price-monthly strong {
  color: #111827;
  font-weight: 600;
}

.btn-book-car {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ffd36b 0%, var(--primary-gold) 60%, #d98b0b 100%);
  color: #000000;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-book-car i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.btn-book-car:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 166, 35, 0.45);
}

.btn-book-car:hover i {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .car-card,
  .car-card *,
  .car-card::before,
  .car-card::after {
    animation: none !important;
    transition: none !important;
  }
  .car-card.pre-reveal {
    opacity: 1;
  }
  .car-lightbox,
  .car-lightbox-figure {
    transition: none;
  }
}

/* Real Customer Handover Gallery (หน้าแรก) */
.handover-section {
  padding: 30px 0 80px;
}

.section-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #6b7280;
}

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

.handover-card {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111217;
  box-shadow: var(--shadow-md);
}

.handover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.handover-card:hover img {
  transform: scale(1.05);
}

.handover-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 56px 18px 16px;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0) 0%, rgba(7, 8, 10, 0.88) 100%);
  color: #ffffff;
}

.handover-card figcaption strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
}

.handover-card figcaption span {
  font-size: 0.8rem;
  color: #d1d5db;
}

.handover-card figcaption i {
  margin-right: 4px;
  color: var(--primary-gold);
}

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

.review-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold);
}

.review-stars {
  color: var(--primary-gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-quote {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gold);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviewer-info h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.reviewer-info p {
  font-size: 0.78rem;
  color: #64748b;
}

/* Footer Section */
.site-footer {
  background: #0b0c0e;
  color: #9ca3af;
  padding: 60px 0 25px;
  border-top: 1px solid #1c1e24;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-gold);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 14px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--primary-gold);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: var(--primary-gold);
  font-size: 1.1rem;
  margin-top: 3px;
}

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

/* Floating Contact Widget: ปุ่มลูกศรเดียว กดแล้วช่องทางติดต่อไหลขึ้นมา */
.floating-widget-group {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 999;
}

.float-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.float-btn.line {
  background: #06C755;
}

.float-btn.whatsapp {
  background: #25D366;
}

.float-btn.telegram {
  background: #229ED9;
}

.float-btn.phone {
  background: var(--primary-gold);
  color: #000000;
}

.float-btn:hover {
  transform: scale(1.1);
}

/* ปุ่มลูกศร: ปุ่มหลักที่ค้างอยู่ตลอด */
.float-toggle {
  background: linear-gradient(135deg, #ffd36b 0%, var(--primary-gold) 60%, #d98b0b 100%);
  color: #000000;
  font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

.float-toggle i {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.floating-widget-group.is-open .float-toggle i {
  transform: rotate(180deg);
}

/* ตอนปิด: ซ่อนอยู่ใต้ปุ่มลูกศร รอไหลขึ้นมา */
.float-actions .float-btn {
  opacity: 0;
  transform: translateY(18px) scale(0.5);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.15), box-shadow 0.3s ease;
}

/* ตอนเปิด: ไหลขึ้นมาทีละปุ่ม ไล่จากปุ่มล่างสุดขึ้นไป */
.floating-widget-group.is-open .float-actions .float-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-widget-group.is-open .float-actions .float-btn:nth-last-child(1) {
  transition-delay: 0.02s;
}

.floating-widget-group.is-open .float-actions .float-btn:nth-last-child(2) {
  transition-delay: 0.09s;
}

.floating-widget-group.is-open .float-actions .float-btn:nth-last-child(3) {
  transition-delay: 0.16s;
}

.floating-widget-group.is-open .float-actions .float-btn:nth-last-child(4) {
  transition-delay: 0.23s;
}

.floating-widget-group.is-open .float-actions .float-btn:hover {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .float-actions .float-btn,
  .float-toggle i {
    transition: opacity 0.2s ease;
    transform: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .hero-subtitle,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-row,
  .hero-stats {
    justify-content: center;
  }
  .hero-bg-overlay {
    background:
      radial-gradient(circle at 50% 70%, rgba(245, 166, 35, 0.14) 0%, transparent 45%),
      linear-gradient(180deg, rgba(7, 8, 10, 0.9) 0%, rgba(7, 8, 10, 0.82) 50%, #07080a 100%);
  }
  .hero-poster-stage {
    width: min(100%, 360px);
  }
  .features-bar-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-item-box:nth-child(2) {
    border-right: none;
  }
  .handover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 65px;
  }
  .site-header .brand-logo-img {
    height: 46px;
  }
  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    height: calc(100dvh - 65px);
    background: rgba(13, 14, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 24px 70px;
    gap: 28px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.35s;
    border-bottom: none;
    z-index: 998;
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-menu .nav-link {
    font-size: 1.4rem;
    font-weight: 700;
    padding: 10px 24px;
    text-align: center;
    color: #e5e7eb;
    transition: var(--transition);
  }
  .nav-menu .nav-link.active,
  .nav-menu .nav-link:hover {
    color: var(--primary-gold);
  }
  .mobile-toggle-btn {
    display: block;
    position: relative;
    z-index: 1000;
  }
  .hero-section {
    padding: 52px 0 96px;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 3px;
  }
  .hero-eyebrow-line {
    width: 28px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-btn-primary,
  .hero-btn-ghost {
    flex: 1 1 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, auto);
    row-gap: 20px;
  }
  .hero-stat:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .features-bar-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 14px;
  }
  .feat-item-box {
    border-right: none !important;
    border-bottom: none !important;
    padding: 4px 0;
    gap: 10px;
  }
  .feat-icon-circle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1rem;
  }
  .feat-info h4 {
    font-size: 0.82rem;
  }
  .feat-info p {
    font-size: 0.68rem;
  }

  /* Compact White 2-column styling for car cards on mobile */
  .car-cards-row .car-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    color: #1f2937;
  }
  .car-cards-row .car-card::before,
  .car-cards-row .car-card::after {
    display: none;
  }
  .car-cards-row .car-status-tag {
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 0.62rem;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    color: #059669;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }
  .car-cards-row .car-status-tag.booked {
    color: #dc2626;
    border-color: #fecaca;
    background: #ffffff;
  }
  .car-cards-row .car-status-dot {
    width: 5px;
    height: 5px;
  }
  .car-cards-row .car-img-wrapper {
    height: 120px;
    background: #f8fafc;
  }
  .car-cards-row .car-img-wrapper::before,
  .car-cards-row .car-img-wrapper::after {
    display: none;
  }
  .car-cards-row .car-img-wrapper:has(.car-img-cutout) {
    background: radial-gradient(ellipse 60% 18% at 50% 88%, rgba(0, 0, 0, 0.12) 0%, transparent 80%), #f8fafc;
  }
  .car-cards-row .car-img-wrapper img.car-img-cutout {
    padding: 14px 10px 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
  }
  .car-cards-row .car-img-zoom-hint {
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    color: #4b5563;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    opacity: 0.9;
  }
  .car-cards-row .car-content {
    padding: 10px 10px 14px;
    background: #ffffff;
  }
  .car-cards-row .car-category-label {
    font-size: 0.62rem;
    margin-bottom: 3px;
    letter-spacing: 0.8px;
    color: #d97706;
    font-weight: 700;
  }
  .car-cards-row .car-category-label::before {
    width: 12px;
    background: #d97706;
  }
  .car-cards-row .car-name {
    font-size: 0.88rem;
    min-height: 2.2rem;
    margin-bottom: 8px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    color: #111827;
    font-weight: 700;
  }
  .car-cards-row .car-specs-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 10px;
  }
  .car-cards-row .spec-item {
    padding: 5px 2px;
    font-size: 0.58rem;
    gap: 2px;
    border-radius: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-weight: 600;
  }
  .car-cards-row .spec-item i {
    font-size: 0.68rem;
    color: #d97706;
  }
  .car-cards-row .car-footer-row {
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-top: 1px solid #f3f4f6;
  }
  .car-cards-row .car-price-box {
    align-items: flex-start;
  }
  .car-cards-row .price-prefix {
    font-size: 0.58rem;
    margin-bottom: 1px;
    color: #6b7280;
  }
  .car-cards-row .price-amount {
    font-size: 1.15rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
    color: #d97706;
    font-weight: 800;
  }
  .car-cards-row .price-amount span {
    font-size: 0.65rem;
    color: #6b7280;
    -webkit-text-fill-color: #6b7280;
    font-weight: 500;
  }
  .car-cards-row .price-monthly {
    font-size: 0.62rem;
    margin-top: 2px;
    color: #6b7280;
  }
  .car-cards-row .price-monthly strong {
    color: #111827;
    font-weight: 700;
  }
  .car-cards-row .btn-book-car {
    width: 100%;
    height: 34px;
    padding: 4px 8px;
    font-size: 0.78rem;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffd36b 0%, var(--primary-gold) 60%, #d98b0b 100%);
    color: #000000;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
  }
  .handover-section {
    padding: 10px 0 60px;
  }
  .handover-section .section-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .handover-grid {
    gap: 12px;
  }
  .handover-card figcaption {
    padding: 40px 12px 12px;
  }
  .handover-card figcaption strong {
    font-size: 0.92rem;
  }
  .handover-card figcaption span {
    font-size: 0.72rem;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* --- SEO content + FAQ (หน้าแรก) --- */
.seo-section {
  padding: 10px 0 80px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.seo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

.seo-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.seo-card h3 i {
  color: var(--primary-gold);
  margin-right: 6px;
}

.seo-card p {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.seo-card a {
  color: #b7791f;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.seo-card a:hover {
  text-decoration: underline;
}

.seo-faq {
  margin-top: 48px;
  max-width: 860px;
}

.seo-faq .section-title {
  margin-bottom: 16px;
}

.seo-faq details {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 10px;
}

.seo-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: #111827;
  position: relative;
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--primary-gold);
}

.seo-faq details[open] summary::after {
  content: '−';
}

.seo-faq details p {
  padding: 0 20px 16px;
  color: #4b5563;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .seo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .seo-card {
    padding: 18px;
  }
  .seo-section {
    padding-bottom: 56px;
  }
}
