/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #f7fbff;
  --card: #ffffff;
  --blue: #2563eb;
  --blue-600: #1e40af;
  --blue-50: #eff6ff;
  --muted: #6b7280;
  --muted-dark: #4b5563;
  --shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 40px rgba(2, 6, 23, 0.15);
  --radius: 14px;
  --success: #10b981;
  --error: #ef4444;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: linear-gradient(180deg, var(--bg), #eef6ff);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  background: rgba(247, 251, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s;
}

.brand:hover {
  transform: scale(1.02);
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo img {
  height: 88px;
  width: auto;
}

h1 {
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.brand .muted {
  font-size: 13px;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
  padding: 8px 0;
}

nav a:hover,
nav a.active {
  color: var(--blue);
}

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

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.nav-cta::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===== PAGES CONTAINER ===== */
.pages {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: calc(100vh - 200px);
}

.page {
  display: none;
  animation: fadeInPage 0.5s ease-out;
}

.page.active {
  display: block;
}

/* ===== HOME PAGE ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 60px 40px;
  margin: 32px 0;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-left {
  flex: 1;
}

.eyebrow {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.headline {
  font-size: 42px;
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  color: var(--muted-dark);
  margin-bottom: 32px;
  line-height: 1.7;
  font-size: 17px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-group.center {
  justify-content: center;
}

.cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--blue);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cta.secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  box-shadow: none;
}

.cta.secondary:hover {
  background: var(--blue-50);
}

.hero-right {
  width: 420px;
}

.card-quick {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.quick-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.quick-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.quick-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.contact-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.contact-label {
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 4px;
}

.contact-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-600);
}

.contact-available {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.price-info {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.price-list {
  margin: 0;
  padding-left: 20px;
  line-height: 2;
  color: var(--muted-dark);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.feature-card {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 4px solid var(--blue);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-50), white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--blue);
}

.feature-card p {
  color: var(--muted-dark);
  line-height: 1.6;
}

/* How to Order Section */
.section {
  margin: 48px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.step {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--blue-600));
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--blue-600);
}

.step p {
  color: var(--muted-dark);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--card);
  padding: 48px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-section h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--blue-600);
}

.cta-section p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FLEET PAGE ===== */
.fleet-header {
  text-align: center;
  padding: 48px 0 32px;
}

.fleet-header h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fleet-subtitle {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.fleet-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid rgba(37, 99, 235, 0.2);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin: 32px 0;
}

/* Car Cards */
.car {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s;
  cursor: pointer;
}

.car:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.car-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), #fff);
}

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

.car:hover img {
  transform: scale(1.1);
}

.car-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--blue);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.car-content {
  padding: 24px;
}

.car h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-600);
}

.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  background: var(--blue-50);
  padding: 6px 12px;
  border-radius: 8px;
}

.car-desc {
  color: var(--muted-dark);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.price-section {
  border-top: 2px solid #f1f5f9;
  padding-top: 16px;
}

.price-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.price-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.price-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.price-option-label {
  color: var(--muted-dark);
}

.price-option-value {
  font-weight: 700;
  color: var(--blue);
  font-size: 15px;
}

.car-actions {
  display: flex;
  gap: 8px;
}

.btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--blue);
  color: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-size: 15px;
}

.btn:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background: var(--card);
  width: 750px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue-600);
}

.close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 28px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s;
}

.close:hover {
  background: var(--blue-50);
  color: var(--blue);
  transform: rotate(90deg);
}

.modal-description {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Form */
.form-section {
  margin-top: 24px;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
}

.form-group.phone-group {
  max-width: 220px;
}

.form-group.package-group {
  max-width: 240px;
}

label {
  font-size: 14px;
  color: var(--muted-dark);
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="tel"],
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #e6eef8;
  font-size: 15px;
  transition: all 0.3s;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.estimate-box {
  background: linear-gradient(135deg, var(--blue-50), #fff);
  padding: 24px;
  border-radius: 14px;
  margin: 24px 0;
  border: 2px solid rgba(37, 99, 235, 0.1);
}

.estimate-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.estimate-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--blue);
}

.estimate-days {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn-submit {
  flex: 1;
  padding: 16px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-calc {
  padding: 16px 28px;
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
}

.btn-calc:hover {
  background: var(--blue-50);
}

/* ===== FOOTER ===== */
footer {
  margin-top: 80px;
  padding: 32px 24px;
  background: var(--card);
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--blue-600);
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 999;
  animation: bounce 2s infinite;
}

.wa-float:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 36px;
  height: 36px;
  fill: white;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  background: var(--card);
  padding: 18px 28px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1001;
  transition: transform 0.3s ease-out;
  font-weight: 600;
  max-width: 300px;
  width: max-content;
  word-break: break-word;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-left: 5px solid var(--success);
}

.toast.error {
  border-left: 5px solid var(--error);
}

.toast-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  flex-grow: 0;
}

.toast.success .toast-icon {
  background: var(--success);
  color: white;
}

.toast.error .toast-icon {
  background: var(--error);
  color: white;
}

/* ===== SPINNER ===== */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 0.8s linear infinite;
  display: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .header-content {
    padding: 12px 20px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 0;
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  nav a:last-child {
    border: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

  .hero {
    flex-direction: column;
    padding: 32px 24px;
  }

  .hero-right {
    width: 100%;
  }

  .headline {
    font-size: 32px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group.phone-group,
  .form-group.package-group {
    max-width: 100%;
  }

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

  .modal {
    padding: 28px 20px;
  }

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