:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #162033;
  --muted: #5f6b7a;
  --primary: #0f6fff;
  --primary-dark: #0a4fb2;
  --border: #e5eaf2;
  --shadow: 0 18px 45px rgba(15, 31, 60, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #0b1220 0%, #162033 55%, #1e3a69 100%);
  color: #fff;
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 0;
  gap: 1rem;
  position: relative;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  top: 1.25rem;
  right: 0;
}

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8bc4ff;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-card,
.card,
.rental-card,
.about-box,
.contact-form {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #eef3fb;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.about h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.card-grid,
.rental-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card,
.rental-card {
  padding: 1.35rem;
  overflow: hidden;
}

.card-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.image-stage {
  position: relative;
}

.card-image,
.rental-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gallery-nav.prev {
  left: 0.6rem;
}

.gallery-nav.next {
  right: 0.6rem;
}

.thumb-row {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
}

.thumb-btn {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 54px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-btn.is-active {
  border-color: var(--primary);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.card-meta span {
  border-radius: 999px;
  background: #f2f6ff;
  color: var(--primary-dark);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.card-detail-btn {
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.card-detail-btn:hover {
  background: var(--primary-dark);
}

.car-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 30, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.car-modal[hidden] {
  display: none;
}

.car-modal__dialog {
  width: min(1180px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}

.car-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.car-modal__close {
  border: 0;
  background: #f2f6ff;
  color: var(--text);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
}

.car-modal__content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.8rem;
  align-items: start;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  z-index: 2;
}

.modal-nav.prev {
  left: 0.75rem;
}

.modal-nav.next {
  right: 0.75rem;
}

.modal-main-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 18px;
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.modal-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: none;
  width: 72px;
  height: 54px;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb.is-active {
  border-color: var(--primary);
}

.modal-description-block {
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfdff;
}

.modal-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.modal-highlights {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.modal-highlights li + li {
  margin-top: 0.3rem;
}

.spec-list {
  display: grid;
  gap: 0.7rem;
}

.spec-item {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfdff;
}

.spec-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.modal-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0.75rem 0 1rem;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-content,
  .about,
  .contact-grid,
  .rental-grid,
  .car-modal__content {
    grid-template-columns: 1fr;
  }

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-meta span {
  background: #f2f6fc;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.about-box {
  padding: 1.4rem;
}

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

.contact-list {
  padding-left: 1rem;
}

.contact-form {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font: inherit;
}

.form-message {
  min-height: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.footer {
  background: #111827;
  color: #e5e7eb;
  padding: 1.2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-content,
  .about,
  .contact-grid,
  .rental-grid {
    grid-template-columns: 1fr;
  }

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

  .nav {
    flex-wrap: wrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }


  .nav-brand-group {
    width: 100%;
  }

  .nav-actions {
    position: static;
    margin-left: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.2rem;
    left: 0;
    background: #111827;
    padding: 1rem;
    border-radius: 12px;
  }
  
}
.mobile-car-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.mobile-car-card h3 {
  min-height: 3.2rem;
  margin-bottom: 0.8rem;
}

.mobile-car-meta {
  margin-top: auto;
  margin-bottom: 0.9rem;
}

.mobile-car-meta span {
  font-size: 1rem;
}

.mobile-link-btn {
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 0;
}

.mobile-car-card .card-image {
  height: 220px;
  background: #eef3fb;
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  .section {
    padding: 2.5rem 0;
  }

  .mobile-car-card {
    min-height: auto;
    padding: 1rem;
  }

  .mobile-car-card .card-image {
    height: 240px;
  }

  .mobile-car-card h3 {
    font-size: 1.05rem;
    min-height: auto;
  }

  .mobile-link-btn {
    padding: 0.8rem 1rem;
  }

  .card-grid {
    gap: 1rem;
  }
}

/* Professional rent-a-car booking modal */
.rental-booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 15, 30, 0.72);
}

.rental-booking-modal[hidden] {
  display: none;
}

.rental-booking-dialog {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  position: relative;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(7, 15, 30, 0.22);
  padding: 1.5rem;
}

.rental-booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #f2f6ff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
}

.rental-booking-header {
  padding-right: 2.8rem;
  margin-bottom: 1.2rem;
}

.rental-booking-badge {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f2f6ff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.rental-booking-header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

.rental-booking-header p {
  margin: 0;
  color: var(--muted);
}

.rental-booking-form {
  display: grid;
  gap: 0.85rem;
}

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

.rental-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.rental-field input,
.rental-field select,
.rental-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.82rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: #fbfdff;
}

.rental-pickup-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fbfdff;
  padding: 1rem;
}

.rental-pickup-box p {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
}

.rental-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  cursor: pointer;
}

.rental-check input {
  width: 1.05rem;
  height: 1.05rem;
}

.rental-price-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-radius: 18px;
  padding: 1rem;
  background: linear-gradient(135deg, #0b1220 0%, #1e3a69 100%);
  color: white;
}

.rental-price-panel span {
  color: rgba(255, 255, 255, 0.78);
}

.rental-price-panel strong {
  text-align: right;
  font-size: 1.05rem;
}

.rental-submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.rental-submit-btn:hover {
  background: var(--primary-dark);
}

.rental-status {
  min-height: 1.2rem;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 640px) {
  .rental-booking-dialog {
    padding: 1.1rem;
    border-radius: 18px;
  }

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

  .rental-price-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .rental-price-panel strong {
    text-align: left;
  }
}
