/*
 * VALDIER Starter — editorial pages (Standard, Split, Immersive, Minimal) and the sections they add
 * (sub-pages, fleet, contact details). Same language as the approved home: Inter Tight, the same
 * weights and tracking, quiet greys, the theme's accent for actions, generous space. Values come from
 * the design-system tokens (--v-*), with the home's figures as fallbacks. Not loaded on the home.
 */

/* ---- Page frame -------------------------------------------------------- */
.vd-page {
  display: block;
}

.vd-section {
  padding: 6rem var(--v-page-gutter, 5%);
}

.vd-section + .vd-section {
  padding-top: 0;
}

.vd-section.is-tinted {
  padding-top: 0;
}

.vd-page .container-medium,
.vd-page .container-large {
  margin-left: auto;
  margin-right: auto;
}

.vd-reading {
  max-width: 42rem;
}

.vd-reading.is-wide {
  max-width: var(--v-container-reading, 50rem);
}

/* ---- Heading ----------------------------------------------------------- */
.vd-page__header {
  margin-bottom: 3rem;
}

.vd-page__badge {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.vd-page__title {
  margin: 0;
  color: var(--v-ink, #171717);
  font-size: clamp(2.5rem, 1.75rem + 2.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.vd-page__title.is-display {
  font-size: clamp(2.75rem, 1.75rem + 3.6vw, 4.5rem);
  line-height: 1.05;
  color: #fff;
}

.vd-page__title.is-quiet {
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.vd-page__intro {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--v-muted, #6b6b6b);
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ---- Running text (the block editor's content) ------------------------- */
.vd-prose {
  color: var(--v-text, #3d3d3d);
  font-size: 1rem;
  line-height: 1.75;
}

.vd-prose > * {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.vd-prose > :last-child {
  margin-bottom: 0;
}

.vd-prose h2,
.vd-prose h3,
.vd-prose h4 {
  margin-top: 2.25em;
  margin-bottom: 0.75em;
  color: var(--v-ink, #171717);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vd-prose h2 {
  font-size: 1.75rem;
  line-height: 1.25;
}

.vd-prose h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.vd-prose h4 {
  font-size: 1rem;
  line-height: 1.5;
}

.vd-prose > :first-child {
  margin-top: 0;
}

.vd-prose a {
  color: var(--v-ink, #171717);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.vd-prose a:hover {
  color: var(--v-accent-text, #252525);
}

.vd-prose ul,
.vd-prose ol {
  padding-left: 1.25em;
}

.vd-prose li + li {
  margin-top: 0.4em;
}

.vd-prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 2px solid var(--v-line-strong, rgba(0, 0, 0, 0.14));
  color: var(--v-ink, #171717);
  font-size: 1.25rem;
  line-height: 1.5;
}

.vd-prose img,
.vd-prose video {
  max-width: 100%;
  height: auto;
  border-radius: var(--v-radius-lg, 0.9375rem);
}

.vd-prose figcaption {
  margin-top: 0.5rem;
  color: var(--v-muted, #6b6b6b);
  font-size: 0.875rem;
  text-align: left;
}

.vd-prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--v-line, rgba(0, 0, 0, 0.08));
}

.vd-prose.is-generous {
  font-size: 1.125rem;
  line-height: 1.8;
}

.vd-prose.is-generous > p:first-child {
  color: var(--v-ink, #171717);
  font-size: 1.375rem;
  line-height: 1.6;
}

/* ---- Button ------------------------------------------------------------ */
.vd-page__actions {
  margin: 2.5rem 0 0;
}

.vd-button {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--v-radius-sm, 0.625rem);
  background-color: var(--v-accent, #252525);
  color: var(--v-accent-fg, #fff);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.2s;
}

.vd-button:hover {
  background-color: var(--v-accent-hover, #3b3b3b);
}

.vd-button[aria-disabled="true"] {
  cursor: default;
}

/* ---- Photographs ------------------------------------------------------- */
.vd-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-figure {
  margin: 0 0 3.5rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--v-radius-xl, 1.25rem);
  background-color: var(--v-surface, #f6f6f6);
}

/* ---- Split ------------------------------------------------------------- */
.vd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.vd-split__media {
  position: sticky;
  top: 6rem;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--v-radius-xl, 1.25rem);
  background-color: var(--v-surface, #f6f6f6);
}

.vd-split.is-reverse .vd-split__media {
  order: -1;
}

/* ---- Immersive --------------------------------------------------------- */
.vd-immersive {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(82vh, 46rem);
  padding: 8rem var(--v-page-gutter, 5%) 4.5rem;
  overflow: hidden;
  background-color: #1a1a1a;
}

.vd-immersive__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-immersive__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.62) 100%);
}

.vd-immersive__inner {
  position: relative;
  width: 100%;
}

.vd-immersive .vd-page__header {
  max-width: 48rem;
  margin-bottom: 0;
}

.vd-immersive .vd-page__intro {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
}

.vd-immersive .badge {
  background-color: rgba(255, 255, 255, 0.92);
}

/* ---- Sub-pages as cards ------------------------------------------------ */
.vd-cards,
.vd-fleet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vd-card {
  display: flex;
}

.vd-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--v-radius-lg, 0.9375rem);
  background-color: var(--v-surface-raised, #fff);
  box-shadow: 0 0 0 1px var(--vs-ring, rgba(0, 0, 0, 0.06)), 0 1px 2px rgba(0, 0, 0, 0.06);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.vd-card__link:hover {
  box-shadow: 0 0 0 1px var(--vs-ring-strong, rgba(0, 0, 0, 0.1)), 0 8px 24px rgba(0, 0, 0, 0.06);
}

.vd-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--v-surface, #f6f6f6);
}

.vd-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}

.vd-card__title {
  color: var(--v-ink, #171717);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.vd-card__text {
  color: var(--v-muted, #6b6b6b);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.vd-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--v-ink, #171717);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ---- Fleet ------------------------------------------------------------- */
.vd-vehicle {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--v-radius-lg, 0.9375rem);
  background-color: var(--v-surface-raised, #fff);
  box-shadow: 0 0 0 1px var(--vs-ring, rgba(0, 0, 0, 0.06)), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.vd-vehicle__media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: var(--v-surface, #f6f6f6);
}

.vd-vehicle__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.vd-vehicle__class {
  margin: 0 0 0.375rem;
  color: var(--v-muted, #6b6b6b);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25rem;
  text-transform: uppercase;
}

.vd-vehicle__name {
  margin: 0;
  color: var(--v-ink, #171717);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.vd-vehicle__text {
  margin: 0.75rem 0 0;
  color: var(--v-muted, #6b6b6b);
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.vd-vehicle__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  border-top: 0;
  list-style: none;
  color: var(--v-text, #3d3d3d);
  font-size: 0.875rem;
}

.vd-vehicle__text + .vd-vehicle__specs,
.vd-vehicle__name + .vd-vehicle__specs {
  margin-top: 1.25rem;
}

.vd-vehicle__specs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.vd-vehicle__specs svg,
.vd-contact svg {
  flex: none;
  color: var(--v-ink, #171717);
}

/* ---- Contact details --------------------------------------------------- */
.vd-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.vd-contact__item {
  padding: 1.5rem;
  border-radius: var(--v-radius-lg, 0.9375rem);
  background-color: var(--v-surface-raised, #fff);
  box-shadow: 0 0 0 1px var(--vs-ring, rgba(0, 0, 0, 0.06)), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.vd-contact dt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--v-ink, #171717);
  font-size: 1rem;
  font-weight: 500;
}

.vd-contact dd {
  margin: 0;
  color: var(--v-text, #3d3d3d);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.vd-contact dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.vd-contact dd a + a {
  margin-left: 1rem;
}

/* ---- Responsive -------------------------------------------------------- */
@media screen and (max-width: 991px) {
  .vd-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .vd-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-split__media {
    position: static;
    order: -1;
    aspect-ratio: 3 / 2;
  }

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

@media screen and (max-width: 767px) {
  .vd-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .vd-page__header {
    margin-bottom: 2rem;
  }

  .vd-figure {
    margin-bottom: 2.5rem;
    aspect-ratio: 3 / 2;
  }

  .vd-immersive {
    min-height: min(78vh, 36rem);
    padding-bottom: 3rem;
  }

  .vd-cards,
  .vd-fleet,
  .vd-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .vd-prose.is-generous > p:first-child {
    font-size: 1.25rem;
  }
}
