:root {
  --black: #060606;
  --charcoal: #171717;
  --graphite: #2a2a2a;
  --mid: #6f6f6f;
  --line: #d8d8d8;
  --soft: #f4f4f4;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(210px, 20vw, 300px);
  height: 52px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--graphite);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--black);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.42) 100%),
    var(--soft);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.17;
  transform: scale(1.18);
  animation: floatMark 14s ease-in-out infinite alternate;
}

.hero-media img {
  width: min(920px, 110vw);
  filter: grayscale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 36px));
  align-self: center;
  padding: 72px 0 118px;
  margin-left: clamp(18px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mid);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 11vw, 8.8rem);
  line-height: 0.9;
  font-weight: 400;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 400;
}

h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 620px;
  color: var(--graphite);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.admin-actions,
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.folder-loader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--black);
  background: var(--white);
}

.draft-notice[hidden] {
  display: none;
}

.draft-notice span {
  font-weight: 700;
}

.draft-notice div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--black);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  background: transparent;
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-light {
  color: var(--black);
  background: var(--white);
}

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

.hero-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--black);
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-strip span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 16px clamp(18px, 3vw, 44px);
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(960px, 100%);
  margin-bottom: 34px;
}

.story-grid,
.contact-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 4vw, 56px);
}

.story-copy {
  max-width: 860px;
  color: var(--graphite);
  font-size: 1.08rem;
}

.location-panel,
.contact-note,
.admin-list-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--soft);
}

address {
  margin-bottom: 22px;
  font-style: normal;
}

.inventory-section,
.requests-section {
  background: var(--soft);
}

.inventory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

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

.vehicle-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.vehicle-card button {
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.vehicle-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e9e9;
}

.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-photo img {
  transform: scale(1.04);
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.vehicle-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.vehicle-title {
  margin: 0;
  font-size: 1.1rem;
}

.vehicle-meta,
.vehicle-price {
  color: var(--graphite);
  margin: 0;
}

.vehicle-price {
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-form,
.admin-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--black);
  background: var(--white);
  text-transform: none;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 44px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--graphite);
}

.form-status:empty {
  min-height: 0;
  padding: 0;
  border: 0;
}

.form-status.success {
  color: var(--black);
  border-color: var(--line);
  background: var(--soft);
  font-weight: 700;
}

.form-status.error {
  color: var(--white);
  border-color: var(--black);
  background: var(--black);
  font-weight: 700;
}

.address-line {
  margin-top: 24px;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(850px, 92vh);
  overflow: auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--black);
  background: var(--white);
  font-weight: 700;
}

.modal-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 56px);
  z-index: 2;
}

.modal-listing {
  padding: 18px clamp(18px, 4vw, 44px) 44px;
}

.modal-gallery {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.photo-viewer {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  touch-action: pan-y;
}

.main-vehicle-image,
.modal-video iframe,
.modal-video video {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  background: var(--soft);
}

.main-vehicle-image {
  display: block;
  aspect-ratio: 16 / 10;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  cursor: pointer;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 2.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-control:hover {
  background: rgba(0, 0, 0, 0.88);
}

.gallery-control:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.gallery-control-prev {
  left: 14px;
}

.gallery-control-next {
  right: 14px;
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 11px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.modal-video {
  width: min(760px, 100%);
}

.modal-video iframe,
.modal-video video {
  aspect-ratio: 16 / 9;
}

.modal-details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.8fr);
  gap: 30px;
}

.modal-details h2 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
}

.vehicle-description {
  max-width: 850px;
  color: var(--black);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.72;
}

.vehicle-description p {
  margin-bottom: 16px;
}

.vehicle-description h3 {
  margin: 26px 0 8px;
  color: var(--black);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vehicle-description ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
}

.vehicle-description li::marker {
  color: var(--black);
}

.vehicle-description strong {
  font-weight: 800;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.spec {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.spec span {
  display: block;
  color: var(--mid);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.spec strong {
  display: block;
  margin-top: 4px;
}

.highlight-list {
  padding-left: 18px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 18px;
  color: var(--mid);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer img {
  width: min(320px, 78vw);
}

.admin-main {
  padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line);
}

.admin-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}

.admin-layout {
  padding-top: 34px;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
}

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

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

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

.file-label input {
  display: none;
}

.admin-vehicle-list,
.request-list {
  display: grid;
  gap: 12px;
}

.admin-list-item,
.request-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-list-actions {
  display: flex;
  gap: 8px;
}

.selected-image-preview {
  display: grid;
  gap: 12px;
}

.photo-manager-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.photo-manager-header p {
  margin: 0;
  color: var(--graphite);
  font-weight: 700;
}

.photo-manager-header span,
.photo-manager-empty span {
  color: var(--mid);
  font-size: 0.84rem;
}

.photo-manager-empty {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px dashed var(--line);
  background: var(--soft);
}

.selected-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.selected-image {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.selected-image.cover-selected {
  border-color: var(--black);
  background: var(--white);
}

.selected-image.dragging {
  opacity: 0.42;
  cursor: grabbing;
}

.selected-image.drag-over {
  border-color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
  transform: translateY(-2px);
}

.selected-image-frame {
  position: relative;
  overflow: hidden;
  background: #e9e9e9;
}

.selected-image-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.selected-image-frame span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px dashed var(--line);
  color: var(--graphite);
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.selected-image.dragging .drag-handle {
  cursor: grabbing;
}

.selected-image-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.72rem;
}

.small-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@keyframes floatMark {
  from {
    transform: scale(1.16) translateX(0);
  }

  to {
    transform: scale(1.2) translateX(28px);
  }
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-strip,
  .story-grid,
  .contact-layout,
  .admin-layout,
  .modal-details {
    grid-template-columns: 1fr;
  }

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

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

  .admin-hero,
  .inventory-heading,
  .photo-manager-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-row,
  .form-row.three,
  .form-row.four,
  .folder-loader {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero-content {
    margin-left: 18px;
    padding-top: 52px;
  }

  .hero {
    min-height: 820px;
  }

  .inventory-grid,
  .spec-grid,
  .selected-image-grid {
    grid-template-columns: 1fr;
  }

  .gallery-control {
    width: 42px;
    height: 56px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}
