/* ===== CSS Variables / Theme ===== */
:root {
  --gold: #D4A017;
  --gold-dark: #B8860B;
  --gold-light: #F5D76E;
  --dark: #1a1a1a;
  --dark-2: #2a2a2a;
  --dark-3: #333333;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --font-main: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-link {
  color: var(--white);
  transition: color 0.2s;
}

.top-bar-link:hover { color: var(--gold); }

.top-bar-link i { margin-right: 6px; }

.top-bar-socials {
  display: flex;
  gap: 16px;
}

/* ===== Header ===== */
.header {
  background: var(--dark-2);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-img {
  height: 55px;
  width: auto;
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-svg {
  width: 60px;
  height: auto;
}

.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-all {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 2px;
}

.logo-cars {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.logo-tagline {
  font-size: 0.55rem;
  color: var(--gray-500);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 12px;
}

.logo-agent {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}

.nav-desktop {
  display: flex;
  gap: 28px;
}

.nav-desktop a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-desktop a:hover { color: var(--gold); }

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-desktop a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 8px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--dark-3);
  padding: 16px 20px;
}

.nav-mobile.active { display: flex; }

.nav-mobile a {
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}

.nav-mobile a:hover { color: var(--gold); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 60px 0 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80') center/cover;
  opacity: 0.08;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
  min-height: 500px;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text .highlight {
  color: var(--gold);
}

.hero-subtitle {
  color: var(--gray-300);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 800;
}

.stat-label {
  color: var(--gray-500);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.agent-photo-wrapper {
  position: relative;
}

.agent-photo {
  width: 350px;
  height: 430px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px 20px 0 0;
  border: 3px solid var(--gold);
  border-bottom: none;
}

.hero-wave {
  position: relative;
  z-index: 2;
  margin-top: -2px;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

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

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ===== Yellow Divider ===== */
.yellow-divider {
  height: 50px;
  background: var(--gold);
}

/* ===== Section Titles ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 12px;
}

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

.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 40px;
}

.section-subtitle.light { color: var(--gray-300); }

/* ===== Featured Cars ===== */
.featured-section {
  padding: 80px 0;
  background: var(--white);
}

.featured-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 30px auto 40px;
  background: var(--gray-200);
  border-radius: 50px;
  padding: 4px;
  max-width: 340px;
}

.tab-btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: all 0.3s;
  flex: 1;
  text-align: center;
}

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

.tab-btn:hover:not(.active) {
  color: var(--dark);
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.view-all-btn {
  display: block;
  text-align: center;
  margin: 20px auto 0;
  width: fit-content;
}

/* ===== Car Card ===== */
.car-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  position: relative;
}

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

.car-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #e53e3e;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.car-badge.price-drop {
  background: #e53e3e;
}

.car-badge.reserved {
  background: var(--gold);
  color: var(--dark);
}

.car-badge.sold {
  background: #6b7280;
  color: white;
}

.car-badge.best-deal {
  background: #22c55e;
  color: white;
}

.car-card.is-sold {
  opacity: 0.7;
}

.car-card.is-sold .car-card-image img {
  filter: grayscale(40%);
}

.car-card-body {
  padding: 16px;
}

.car-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-card-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.car-spec {
  font-size: 0.78rem;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 20px;
}

.car-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.car-card-location {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.car-card-location i {
  color: var(--gold);
  margin-right: 4px;
}

.car-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.car-inquire-btn {
  background: var(--gold);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.car-inquire-btn:hover {
  background: var(--gold-dark);
}

.car-card-heart {
  color: var(--gray-300);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
}

.car-card-heart:hover { color: #e53e3e; }

/* ===== Car Type Tabs ===== */
.car-types-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.type-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px auto 40px;
  background: var(--gold);
  border-radius: var(--radius);
  padding: 12px 16px;
  max-width: 900px;
  flex-wrap: wrap;
}

.type-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s;
  min-width: 80px;
}

.type-tab.active {
  background: var(--dark);
  color: var(--white);
}

.type-tab:hover:not(.active) {
  background: rgba(0,0,0,0.1);
}

.type-tab .type-icon {
  width: 50px;
  height: 25px;
}

.type-tab i {
  font-size: 1.3rem;
}

/* ===== Why Section ===== */
.why-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
}

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

.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.why-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.why-icon {
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
  color: var(--dark);
}

.why-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 0;
  background: var(--gray-50);
}

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

.contact-info .section-title {
  text-align: left;
}

.contact-description {
  color: var(--gray-600);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 80px 0;
  background: var(--white);
}

.faq-list {
  max-width: 750px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--gold-dark); }

.faq-question i {
  transition: transform 0.3s;
  color: var(--gray-500);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 0 20px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
}

.footer-agent {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
}

.footer-socials a:hover {
  background: var(--gold);
  color: var(--dark);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-contact p {
  color: var(--gray-300);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact i {
  color: var(--gold);
  margin-right: 8px;
  width: 16px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 0.82rem;
}

/* ===== Floating Messenger Button ===== */
.fab-messenger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #0084FF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(0, 132, 255, 0.4);
  z-index: 1000;
  transition: all 0.3s;
}

.fab-messenger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 132, 255, 0.5);
}

/* ===== Carousel Dots ===== */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--dark);
  width: 28px;
  border-radius: 5px;
}

/* ===== Loading Animation ===== */
.car-card.skeleton {
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 0;
  }

  .hero-text h1 { font-size: 2.5rem; }
  .hero-subtitle { margin: 0 auto 30px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-image {
    order: -1;
    margin-bottom: 24px;
  }

  .agent-photo-wrapper {
    display: flex;
    justify-content: center;
  }

  .agent-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border-bottom: 3px solid var(--gold);
    object-position: center 15%;
  }

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

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }

  .top-bar-socials { display: none; }

  .hero-text h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }

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

  .type-tabs { gap: 4px; padding: 8px; }
  .type-tab { min-width: 60px; padding: 8px 10px; font-size: 0.7rem; }
  .type-tab .type-icon { width: 35px; height: 18px; }

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

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

  .logo-agent { display: none; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .cars-grid { grid-template-columns: 1fr; }
  .featured-tabs { max-width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: 80px 0;
  background: var(--gray-50);
  text-align: center;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
  display: flex;
  gap: 2px;
}

.testimonial-text {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--gray-500);
}

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

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
