/**
 * VIP Charter Travel - Minimal Stylesheet
 * Pure CSS, no unused code
 */

/* ============================================================================
   CSS Variables
   ============================================================================ */

:root {
  /* Colors (HSL) */
  --primary: 38 92% 50%;
  --primary-foreground: 38 15% 97%;
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --muted-foreground: 0 0% 40%;
  --border: 0 0% 89%;
  --card-bg: 0 0% 98%;
  --input-border: 0 0% 70%;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --radius: 0.5rem;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -1px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 20px -4px rgb(0 0 0 / 0.12), 0 4px 8px -2px rgb(0 0 0 / 0.08);

  /* Effects */
  --hover-overlay: rgba(0, 0, 0, 0.03);
  --active-overlay: rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   Reset & Base
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================================
   Layout
   ============================================================================ */

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 1.5rem;
}

.section.bg-light {
  background: hsl(var(--card-bg));
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.hidden {
  display: none;
}

/* ============================================================================
   Navbar
   ============================================================================ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

#navbar.scrolled {
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s;
}

#navbar.scrolled .logo {
  color: hsl(var(--foreground));
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}

#navbar.scrolled .nav-link {
  color: hsl(var(--foreground));
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.mobile-menu-btn {
  color: #fff;
  transition: color 0.2s;
}

#navbar.scrolled .mobile-menu-btn {
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: hsl(var(--background));
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 2rem;
}

.mobile-menu-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.mobile-menu-link:hover {
  color: hsl(var(--primary));
}

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.6),
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.hero-text {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

.hero-titles {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.875rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
  .hero-subtitle {
    font-size: 3rem;
  }
  .hero-description {
    font-size: 1.25rem;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  animation: bounce 1s infinite;
}

.scroll-indicator-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
}

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

/* ============================================================================
   Cards
   ============================================================================ */

.card {
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

/* ============================================================================
   Services
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::after {
  opacity: 1;
  background: var(--hover-overlay);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-title-en {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.service-description {
  font-size: 1rem;
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.6;
}

/* ============================================================================
   Fleet
   ============================================================================ */

.fleet-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .fleet-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fleet-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fleet-item {
  overflow: hidden;
  padding: 0;
  transition: all 0.3s;
}

.fleet-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fleet-item__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: hsl(var(--muted-foreground) / 0.1);
}

.fleet-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.fleet-item:hover .fleet-item__image img {
  transform: scale(1.05);
}

.fleet-item__content {
  padding: 1.5rem;
}

.fleet-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.fleet-item__subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.fleet-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================================
   Packages
   ============================================================================ */

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.package-card.featured {
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin: -2rem -2rem 1rem;
}

.package-content {
  flex: 1;
}

.package-header {
  margin-bottom: 1.5rem;
}

.package-name {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.package-name-en {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.package-duration {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.package-price {
  font-size: 1.875rem;
  font-weight: 700;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.package-features {
  list-style: none;
  margin-bottom: 2rem;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

/* ============================================================================
   Booking
   ============================================================================ */

.booking-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .booking-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.input, .textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input-border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--input-border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select-trigger:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.select-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.custom-select.open .select-icon {
  transform: rotate(180deg);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 300px;
  overflow-y: auto;
}

.select-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  text-align: left;
  transition: background 0.15s;
}

.select-option:hover {
  background: hsl(var(--card-bg));
}

/* Booking Info */
.booking-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-title {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item svg {
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.info-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.info-value {
  color: hsl(var(--muted-foreground));
}

.hours-card {
  background: hsl(var(--primary) / 0.05);
}

.hours-note {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

/* ============================================================================
   Footer
   ============================================================================ */

.footer {
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--card-bg));
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.social-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

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

.driver-return-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 12px 24px hsl(var(--primary) / 0.28);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.driver-return-fab:hover,
.driver-return-fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px hsl(var(--primary) / 0.34);
  outline: none;
}

.driver-return-fab__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.driver-return-fab.hidden {
  display: none;
}

.footer-contact {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.contact-value {
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 1rem !important;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: hsl(var(--foreground));
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 200px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--primary));
}

.btn-primary:hover:not(:disabled) {
  background: hsl(var(--primary) / 0.9);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================================
   Badge
   ============================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* ============================================================================
   Icons
   ============================================================================ */

.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

.icon-check {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ============================================================================
   Toast
   ============================================================================ */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
}

.toast {
  position: relative;
  background: hsl(var(--card-bg));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 400px;
  margin-bottom: 1rem;
  animation: toast-slide-in 0.3s ease-out;
}

.toast.toast-exit {
  animation: toast-slide-out 0.2s ease-in forwards;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.toast-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0.25rem;
}

.toast-close:hover {
  color: hsl(var(--foreground));
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
