/* Flaeura Rental Main Stylesheet */

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink-dark);
  background-color: var(--bg-ground);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

/* Base-layer interactive cursor affordance (R-39) */
a[href],
button:not(:disabled),
summary,
select:not(:disabled),
label[for],
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
[role="button"]:not([aria-disabled="true"]) {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

/* High-contrast keyboard focus indicator (R-32) */
:focus-visible {
  outline: 3px solid var(--sapphire);
  outline-offset: 2px;
}

.surface-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.modal-dialog :focus-visible {
  outline-color: var(--cyan-accent);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--gold-light);
  color: var(--bg-iron);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout Container */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

section[id],
footer[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

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

.btn-gold {
  background-color: var(--gold-light);
  color: var(--bg-iron);
  border-color: var(--gold-light);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
}

.btn-outline-light {
  background-color: rgba(12, 18, 29, 0.55);
  color: var(--ink-light);
  border-color: var(--gold-light);
}

.btn-outline-light:hover {
  background-color: rgba(216, 173, 78, 0.16);
}

.btn-sapphire {
  background-color: var(--sapphire);
  color: var(--ink-light);
  border-color: var(--sapphire);
}

.btn-sapphire:hover {
  background-color: var(--sapphire-hover);
  border-color: var(--sapphire-hover);
}

.btn-outline-dark {
  background-color: var(--bg-surface);
  color: var(--sapphire);
  border-color: var(--sapphire);
}

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

/* Subtle MLBB Filigree Divider */
.crest-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.crest-divider__line {
  width: 36px;
  height: 2px;
  background-color: var(--gold-dark);
}

.surface-dark .crest-divider__line {
  background-color: var(--gold-light);
}

.crest-divider__diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background-color: var(--sapphire);
  border: 1.5px solid var(--gold-dark);
}

.surface-dark .crest-divider__diamond {
  background-color: var(--cyan-accent);
  border-color: var(--gold-light);
}

.crest-divider__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-on-ground);
}

.surface-dark .crest-divider__label {
  color: var(--gold-light);
}

/* ==========================================================================
   1. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background-color: var(--bg-iron);
  border-bottom: 1px solid var(--gold-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-light);
  min-height: 44px;
}

.brand__crest {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  color: var(--ink-muted-dark);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink-light);
  border-bottom-color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--bg-iron-elevated);
  color: var(--ink-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
}

.mobile-drawer {
  display: none;
  background-color: var(--bg-iron-elevated);
  border-top: 1px solid var(--bg-iron-border);
  padding: 1rem var(--gutter) 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 0.75rem;
  color: var(--ink-light);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-drawer__link:hover {
  background-color: rgba(216, 173, 78, 0.14);
}

/* ==========================================================================
   2. HERO SECTION (Franco Forged Iron + Layla Gold Filigree + Hero Vehicle)
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(84vh, 780px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--bg-iron);
  background-image:
    linear-gradient(100deg, rgba(12, 18, 29, 0.94) 0%, rgba(12, 18, 29, 0.84) 52%, rgba(12, 18, 29, 0.62) 100%),
    url('../assets/hero-bg-road-themesflat.webp');
  background-size: cover;
  background-position: center bottom;
  color: var(--ink-light);
  border-bottom: 2px solid var(--gold-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-light);
  max-width: 18ch;
}

.hero__lead {
  margin: 0 0 2rem;
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--ink-muted-dark);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero__quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold-border);
  font-size: var(--text-sm);
  color: var(--ink-muted-dark);
}

.hero__quick-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__quick-dot {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background-color: var(--gold-light);
  flex-shrink: 0;
}

.hero__media {
  position: relative;
  padding: 1.25rem;
  background-color: rgba(20, 29, 46, 0.55);
  border: 1px solid var(--gold-border);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.hero__corner {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  color: var(--gold-light);
}

.hero__corner--tr {
  top: 8px;
  right: 8px;
}

.hero__corner--bl {
  bottom: 8px;
  left: 8px;
  transform: rotate(180deg);
}

.hero__image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__caption {
  margin: 0.75rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-muted-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--bg-iron-border);
  padding-top: 0.65rem;
}

.hero__caption strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* ==========================================================================
   3. PILIHAN KENDARAAN (21 Fleet Units + Filter-First Discovery)
   ========================================================================== */
.fleet-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-ground);
}

.section-header-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: 2.25rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink-dark);
}

.surface-dark .section-title {
  color: var(--ink-light);
}

.section-intro {
  margin: 0;
  color: var(--ink-body);
  font-size: var(--text-base);
}

.surface-dark .section-intro {
  color: var(--ink-muted-dark);
}

/* Filter Toolbar */
.fleet-controls {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1rem;
}

.fleet-controls__top {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.search-field {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-dark);
}

.text-input,
.select-input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-dark);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
}

.text-input:focus,
.select-input:focus {
  border-color: var(--sapphire);
}

.fuel-field {
  flex: 0 1 210px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-body);
  background-color: var(--bg-ground);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.filter-chip:hover {
  border-color: var(--sapphire);
  color: var(--sapphire);
}

.filter-chip[aria-pressed="true"] {
  background-color: var(--bg-iron);
  color: var(--gold-light);
  border-color: var(--bg-iron);
}

.fleet-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  color: var(--ink-muted-light);
}

/* Fleet Grid & Cards */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}

.vehicle-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.vehicle-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #EDF1F6;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.vehicle-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card__cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background-color: var(--bg-iron);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
}

.vehicle-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: 0.75rem;
}

.vehicle-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-dark);
}

.vehicle-card__summary {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-body);
  line-height: 1.5;
}

.vehicle-card__specs {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--ink-muted-light);
}

.vehicle-card__spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.vehicle-card__spec-label {
  font-size: 0.72rem;
  color: var(--ink-muted-light);
}

.vehicle-card__spec-val {
  font-weight: 700;
  color: var(--ink-dark);
}

.vehicle-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.vehicle-card__rate {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold-dark);
}

/* UI States (R-27: Empty, Loading, Error) */
.state-panel {
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 560px;
  margin: 1rem auto;
}

.state-panel[hidden] {
  display: none;
}

.state-panel__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--ink-dark);
}

.state-panel__text {
  margin: 0 0 1.25rem;
  color: var(--ink-body);
}

.state-panel--error {
  border-color: var(--danger-dark);
  background-color: var(--danger-bg);
}

.state-panel--error .state-panel__title {
  color: var(--danger-dark);
}

/* ==========================================================================
   4. BANNER SEWA CEPAT VIA WHATSAPP
   ========================================================================== */
.wa-banner-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background-color: var(--bg-ground);
}

.wa-banner {
  position: relative;
  background-color: var(--bg-iron);
  background-image: linear-gradient(105deg, #0C121D 0%, #141D2E 60%, #1B2942 100%);
  color: var(--ink-light);
  border: 1.5px solid var(--gold-light);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.wa-banner__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.18;
  color: var(--ink-light);
}

.wa-banner__text {
  margin: 0 0 1.5rem;
  color: var(--ink-muted-dark);
  max-width: 50ch;
}

.wa-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.wa-banner__media {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   5. MENGAPA MEMILIH KAMI (Asymmetric 1 Highlight + 4 Structured Pillars, R-14)
   ========================================================================== */
.usp-section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.usp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.usp-featured {
  margin-top: 1.75rem;
  padding: 1.5rem;
  background-color: var(--bg-iron);
  color: var(--ink-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
}

.usp-featured__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--gold-light);
}

.usp-featured__text {
  margin: 0;
  color: var(--ink-muted-dark);
  font-size: var(--text-sm);
}

.usp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.usp-item {
  padding: 1.35rem;
  background-color: var(--bg-ground);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.usp-item__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-dark);
}

.usp-item__text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-body);
}

/* ==========================================================================
   6. FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background-color: var(--bg-ground);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  min-height: 56px;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-dark);
}

.faq-trigger:hover {
  background-color: var(--sapphire-tint);
}

.faq-trigger__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sapphire);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform var(--dur-fast) var(--ease-out);
}

.faq-trigger[aria-expanded="true"] .faq-trigger__icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-body);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border-subtle);
}

.faq-panel[hidden] {
  display: none;
}

.faq-panel p {
  margin: 0.85rem 0 0;
}

.faq-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

/* ==========================================================================
   7. FOOTER (3 Functional Columns, R-05)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-iron);
  color: var(--ink-light);
  border-top: 2px solid var(--gold-light);
  padding: clamp(3.5rem, 6vw, 4.5rem) 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--bg-iron-border);
}

.footer-desc {
  margin: 1rem 0 1.25rem;
  color: var(--ink-muted-dark);
  font-size: var(--text-sm);
  max-width: 42ch;
}

.footer-badge {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: var(--ink-muted-dark);
}

.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink-muted-dark);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--text-xs);
  color: var(--ink-muted-dark);
}

/* ==========================================================================
   8. BOOKING MODAL & FLOATING WHATSAPP FAB
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background-color: rgba(8, 12, 20, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-dialog {
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background-color: var(--bg-iron-elevated);
  color: var(--ink-light);
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-iron-border);
  margin-bottom: 1.25rem;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--gold-light);
}

.modal-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-iron);
  color: var(--ink-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close:hover {
  background-color: rgba(216, 173, 78, 0.2);
}

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

.booking-form .field-label {
  color: var(--ink-light);
}

.booking-form .text-input,
.booking-form .select-input {
  background-color: var(--bg-iron);
  color: var(--ink-light);
  border-color: var(--bg-iron-border);
}

.booking-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background-color: #451212;
  color: #FECACA;
  border: 1px solid #F87171;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

.form-error[hidden] {
  display: none;
}

.form-feedback {
  margin: 0;
  padding: 0.85rem 1rem;
  background-color: #0D2946;
  color: var(--ink-light);
  border: 1px solid var(--cyan-accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

.form-feedback[hidden] {
  display: none;
}

.form-feedback a {
  color: var(--gold-light);
  font-weight: 700;
}

.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--whatsapp);
  color: #FFFFFF;
  border: 2px solid var(--gold-light);
  border-radius: 50%;
  box-shadow: var(--shadow-fab);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.wa-fab:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS (1024px, 768px, 390px)
   ========================================================================== */
@media (max-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .usp-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-desktop,
  .header-cta-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .section-header-split,
  .wa-banner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 2.75rem 0 3.25rem;
  }
}

@media (max-width: 600px) {
  .fleet-grid,
  .usp-list,
  .footer-grid,
  .booking-form__row {
    grid-template-columns: 1fr;
  }

  .hero__actions .btn,
  .wa-banner__actions .btn {
    width: 100%;
  }

  .vehicle-card__footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
