:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --ink: #111111;
  --muted: #6b7280;
  --primary: #111111;
  --primary-ink: #ffffff;
  --chip: #e6e8ee;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --success: #107a3a;
  --success-bg: #e8f8ef;
  --danger: #a11715;
  --danger-bg: #fdeceb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'SF Pro Text', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.nav-inner {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

body.home-page .nav-inner {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.2s;
}

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

body.home-page .nav-links a {
  color: rgba(255, 255, 255, 0.8);
}

body.home-page .nav-links a:hover,
body.home-page .nav-links a.active {
  color: #ffffff;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  color: var(--primary-ink);
  border-color: var(--ink);
}

body.home-page .lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

body.home-page .lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

body.home-page .lang-btn.active {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--border);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.12);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-block {
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--chip);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.chip.is-active,
.chip:hover {
  background: var(--primary);
  color: var(--primary-ink);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.14);
}

.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero-video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-image {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.hero-image-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.2), rgba(17, 17, 17, 0.1));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-video h1,
.hero-video p,
.hero-image h1,
.hero-image p,
.hero-tagline,
.hero-fleet-text {
  color: white;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 4px 25px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 4px 25px rgba(0, 0, 0, 0.4);
}

.hero-fleet-text {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 4px 25px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tagline {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.planner-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
}

.planner-section h2 {
  margin-bottom: 1.5rem;
}

.planner-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  transition: all 0.2s;
  font-family: inherit;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}

.form-group input[readonly] {
  background: var(--surface);
  cursor: not-allowed;
}

.filterbar {
  position: sticky;
  top: 100px;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.car-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.2s;
}

.car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.14);
}

.car-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-content {
  padding: 1.5rem;
}

.car-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.car-description {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spec-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.pill-available {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pill-unavailable {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.floating-social {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

.floating-social a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.2s;
  overflow: hidden;
}

.floating-social a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.12);
}

.footer {
  background: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  text-align: center;
  color: #ffffff;
  margin-top: 5rem;
}

.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 200;
  overflow-y: auto;
}

.drawer.open {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s;
  font-weight: 300;
}

.drawer-close:hover {
  color: var(--muted);
}

.drawer-body {
  padding: 1.5rem;
}

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-box h4 {
  margin-bottom: 1rem;
  color: var(--ink);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.summary-value {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.blocked-dates {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.blocked-dates h5 {
  color: var(--danger);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.blocked-dates ul {
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.blocked-dates li {
  margin-bottom: 0.25rem;
}

.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--ink);
  color: var(--primary-ink);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.3);
  z-index: 300;
  transform: translateX(400px);
  transition: transform 0.3s;
  font-weight: 500;
}

.toast.show {
  transform: translateX(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.2);
}

.modal-content h3 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.contact-form-section {
  display: flex;
  flex-direction: column;
}

.contact-info-section {
  display: flex;
  flex-direction: column;
}

.contact-top-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 769px) {
  .contact-top-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-links-compact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
}

.contact-link-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.contact-link-compact img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-link-compact div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-link-compact strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-link-compact span {
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.14);
}

.contact-link-icon {
  font-size: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .nav {
    top: 8px;
    margin-bottom: 0;
  }

  .nav-inner {
    padding: 0.75rem 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-logo {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .nav-links {
    gap: 1.5rem;
    font-size: 1rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .lang-switcher {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }

  .lang-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-video {
    min-height: 80vh;
  }

  .hero-image {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .btn {
    width: 100%;
    min-height: 44px;
  }

  .floating-social {
    bottom: 12px;
    right: 12px;
  }

  .floating-social a {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }

  .floating-social img {
    width: 20px;
    height: 20px;
  }

  .drawer {
    max-width: 100%;
  }

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

  .planner-form {
    grid-template-columns: 1fr;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

  .filterbar {
    top: 80px;
    position: relative;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-top-layout {
    grid-template-columns: 1fr;
  }
}
