/* ==========================================================================
   Design System & Custom Properties
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #FF8C42;
  --primary-hover: #e07430;
  --dark: #5C3A00;
  --background: #FFFBF5;
  --text-main: #3d2703;
  --text-light: #7a5822;
  --white: #ffffff;
  --border: #f0e6d8;
  --card-bg: rgba(255, 255, 255, 0.7);
  --success: #25D366; /* WhatsApp Green */

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(92, 58, 0, 0.05), 0 2px 4px -1px rgba(92, 58, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(92, 58, 0, 0.08), 0 4px 6px -2px rgba(92, 58, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(92, 58, 0, 0.08), 0 10px 10px -5px rgba(92, 58, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Nav Heights */
  --nav-height: 80px;
  --mobile-nav-height: 70px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0; /* Updated in media query for mobile */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

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

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 140, 66, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

.btn-whatsapp {
  background-color: var(--success);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

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

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

/* ==========================================================================
   Navigation (Desktop)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 251, 245, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.nav-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,66,0.15) 0%, rgba(255,251,245,0) 70%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  transform: scale(1.05);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1.05); }
  50% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0px) scale(1.05); }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  background-color: var(--white);
  border-radius: 30px;
  padding: 80px;
  margin: 0 24px 100px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  z-index: 10;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.about p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   Fleet Section
   ========================================================================== */
.fleet {
  background-color: var(--background);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.car-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 140, 66, 0.3);
}

.car-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  mix-blend-mode: multiply;
}

.car-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.car-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.car-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

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

.price-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.price-value span {
  font-size: 1rem;
  font-weight: 500;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  color: var(--primary);
  transition: var(--transition);
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

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

.faq-answer-content {
  padding-bottom: 24px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(255, 140, 66, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-light);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--background);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

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

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

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-payments h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.payment-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.payment-icons i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

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

/* ==========================================================================
   Floating Elements
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile Tab Bar - Hidden on desktop */
.mobile-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--mobile-nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 998;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  gap: 4px;
  width: 33%;
  height: 100%;
}

.tab-item i {
  font-size: 1.4rem;
  transition: var(--transition);
}

.tab-item span {
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-heading);
}

.tab-item.active {
  color: var(--primary);
}

.tab-item.active i {
  transform: translateY(-2px);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .hero-text p {
    margin: 0 auto 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: var(--mobile-nav-height); /* Space for mobile tab bar */
  }

  .nav-links {
    display: none; /* Hide desktop links */
  }

  .mobile-tab-bar {
    display: flex; /* Show mobile tab bar */
  }

  .floating-whatsapp {
    bottom: calc(var(--mobile-nav-height) + 20px);
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }

  .about {
    padding: 40px 24px;
    margin: 0 16px 60px;
    border-radius: 20px;
  }

  .section {
    padding: 60px 0;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }

  .payment-icons {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }

  .car-specs {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Booking Modal
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.3s ease-out forwards;
}

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

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-light);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.close-modal:hover {
  color: var(--dark);
}

.modal-content h3 {
  margin-bottom: 24px;
}

.price-calculator {
  margin: 20px 0;
  padding: 16px;
  background-color: rgba(255, 140, 66, 0.1);
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
}
