:root {
  --bg: #07141f;
  --bg-soft: #0d1f2e;
  --panel: #ffffff;
  --panel-soft: #f4f0e7;
  --text: #17212b;
  --text-light: #f7f3ea;
  --muted: #5a6570;
  --border: rgba(255,255,255,0.12);
  --gold: #c8a35d;
  --gold-dark: #a78342;
  --line: #e4d5ba;
  --success: #2d7d61;
  --danger: #9a4d4d;
  --shadow: 0 18px 45px rgba(7, 20, 31, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: #f7f3ec;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #02070b;
  color: #f5e8c8;
  font-size: 0.95rem;
}

.topbar-inner,
.header-inner,
.footer-grid,
.panel-actions,
.results-header,
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-inner {
  min-height: 48px;
}

.topbar-link {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.45);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7, 20, 31, 0.92);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  min-height: 82px;
}

.brand-kicker,
.eyebrow,
.info-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
}

.brand-kicker,
.eyebrow {
  color: #efd9a1;
}

.brand-name {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

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

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.nav-admin {
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 14px;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  color: var(--text-light);
  background:
    linear-gradient(rgba(2, 8, 14, 0.25), rgba(2, 8, 14, 0.25)),
    radial-gradient(circle at top left, rgba(200,163,93,0.18), transparent 35%),
    linear-gradient(135deg, #0a1722 0%, #0c2030 40%, #09131b 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -120px auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(200,163,93,0.22), transparent 70%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.08) 100%),
    repeating-linear-gradient(90deg, transparent 0 98px, rgba(255,255,255,0.03) 98px 99px);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 110px;
  max-width: 760px;
}

.hero h1,
.section-heading h1,
.section-heading h2 {
  margin: 0 0 18px;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.hero-copy,
.section-heading p,
.info-card p,
.vehicle-body p,
.policy-card p,
.footer-grid p,
.schedule-row span {
  color: rgba(247,243,234,0.88);
}

.hero-copy {
  max-width: 680px;
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.approval-note {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f8f3e8;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #d5b06c 0%, #b88d44 100%);
  color: #101820;
  font-weight: 700;
}

.btn-outline,
.btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.44);
}

.btn-outline-dark {
  color: var(--text);
  border-color: rgba(23,33,43,0.22);
}

.btn-small {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.95rem;
}

.section {
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f0e7d8 0%, #f7f3ec 100%);
}

.intro-strip {
  background: linear-gradient(180deg, #f7f3ec 0%, #fbf8f2 100%);
}

.intro-grid,
.vehicle-grid,
.fleet-grid,
.admin-metrics,
.slot-grid,
.footer-grid,
.admin-two-col {
  display: grid;
  gap: 22px;
}

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

.info-card,
.search-panel,
.vehicle-card,
.fleet-card,
.policy-card,
.metric-card,
.admin-panel,
.availability-calendar {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.info-card,
.fleet-card,
.metric-card,
.admin-panel,
.availability-calendar {
  padding: 26px;
}

.info-card h3,
.vehicle-body h4,
.fleet-card h4,
.policy-card h3,
.metric-card strong,
.admin-panel h2,
.results-header h3,
.calendar-header h3 {
  margin: 0 0 10px;
}

.info-card p,
.fleet-card p,
.metric-card span,
.admin-panel p,
.schedule-row span,
.helper-text,
.results-badge {
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-heading h1 {
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  color: #14212d;
}

.search-panel {
  padding: 26px;
  margin-bottom: 28px;
}

.search-grid {
  display: grid;
  gap: 18px;
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-panel {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 18px;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #223140;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid #d7c9ae;
  border-radius: 14px;
  background: #fffdf9;
  padding: 14px 16px;
  color: var(--text);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: 2px solid rgba(200,163,93,0.28);
  border-color: var(--gold);
}

.panel-actions {
  margin-top: 20px;
}

.panel-actions-right {
  justify-content: flex-end;
}

.results-block {
  margin-top: 16px;
}

.results-header {
  margin-bottom: 18px;
}

.results-badge {
  background: #f1e5cb;
  color: #705528;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

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

.vehicle-card {
  overflow: hidden;
  border: 1px solid rgba(17,28,38,0.06);
}

.vehicle-media {
  height: 210px;
  background-size: cover;
  background-position: center;
}

.media-valencia,
.media-genesis,
.media-ebony {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45)),
    linear-gradient(135deg, #6c7887 0%, #1b2027 100%);
}

.media-genesis {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45)),
    linear-gradient(135deg, #9e977f 0%, #232321 100%);
}

.media-ebony {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.45)),
    linear-gradient(135deg, #2c3136 0%, #11161b 100%);
}

.vehicle-body {
  padding: 22px;
}

.vehicle-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.available .vehicle-status {
  background: rgba(45,125,97,0.12);
  color: var(--success);
}

.unavailable .vehicle-status {
  background: rgba(154,77,77,0.12);
  color: var(--danger);
}

.vehicle-body p {
  color: var(--muted);
  margin: 0 0 18px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

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

.slot-card {
  text-align: left;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #e0d2b7;
  background: #fffaf1;
  cursor: pointer;
}

.slot-card strong,
.slot-card small,
.slot-day {
  display: block;
}

.slot-day {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #81602b;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.slot-card strong {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.slot-card small {
  color: var(--muted);
}

.slot-open {
  background: linear-gradient(180deg, #fffdf8 0%, #fbf3df 100%);
}

.slot-closed {
  background: #ede7df;
  opacity: 0.75;
}

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

.fleet-card {
  border: 1px solid #eadcc2;
  background: linear-gradient(180deg, #fffaf2 0%, #f8efdd 100%);
}

.section-form {
  background: #0a1722;
  color: var(--text-light);
}

.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
}

.request-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: rgba(255,255,255,0.06);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

.form-copy p,
.form-copy .policy-card p,
.site-footer p,
.section-form .helper-text {
  color: rgba(247,243,234,0.82);
}

.section-form .field-group label {
  color: #f5e9d1;
}

.section-form .field-group input,
.section-form .field-group select,
.section-form .field-group textarea {
  background: rgba(255,255,255,0.94);
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  background: #050b10;
  color: var(--text-light);
  padding: 42px 0;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 0.8fr;
}

.footer-brand {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.admin-body {
  background: #f3ede2;
}

.admin-header {
  position: static;
}

.admin-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metric-card {
  background: linear-gradient(180deg, #fff8ea 0%, #f3e6cb 100%);
  border: 1px solid #e3d2af;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
}

.admin-panel {
  border: 1px solid #e5d8bf;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid #ebdfca;
}

th {
  color: #3b4956;
  font-size: 0.9rem;
}

.action-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-links a {
  color: #6f552a;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.pill-pending {
  background: rgba(200,163,93,0.18);
  color: #7b5c20;
}

.pill-approved {
  background: rgba(45,125,97,0.14);
  color: var(--success);
}

.admin-two-col {
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-row {
  border: 1px solid #eadcc2;
  border-radius: 14px;
  padding: 14px;
  background: #fffcf7;
}

.schedule-row strong,
.schedule-row span {
  display: block;
}

.inventory-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1080px) {
  .intro-grid,
  .vehicle-grid,
  .admin-metrics,
  .slot-grid,
  .footer-grid,
  .fleet-grid,
  .admin-two-col,
  .form-shell,
  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-panel,
  .request-form-grid,
  .inventory-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .topbar-inner,
  .results-header,
  .calendar-header,
  .panel-actions,
  .admin-panel-header,
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-grid,
  .vehicle-grid,
  .admin-metrics,
  .slot-grid,
  .footer-grid,
  .fleet-grid,
  .admin-two-col,
  .form-shell,
  .four-up,
  .request-form-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    gap: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 90px 0 84px;
  }

  .section {
    padding: 64px 0;
  }
}
