/*
 * FHT24 Signature - responsive.css
 * Target widths: 1440, 1024, 768, 390, 375, 320 CSS px.
 * Breakpoints: 1100 / 900 / 768 / 640 / 360.
 */

@media (max-width: 1100px) {
  :root {
    --sig-gutter: 40px;
    --sig-section: 112px;
  }

  .header-inner {
    gap: 24px;
  }

  .primary-navigation,
  .primary-navigation ul {
    gap: 24px;
  }

  .brand {
    max-width: min(280px, 34%);
  }

  .brand img {
    max-height: 40px;
  }

  .content-section[aria-labelledby="benefits-heading"] > .vehicle-grid {
    column-gap: 40px;
  }

  .content-section:has(> .process-list) {
    column-gap: 56px;
  }
}

@media (max-width: 900px) {
  :root {
    --sig-section: 96px;
  }

  .header-inner {
    min-height: 60px;
    gap: 16px;
  }

  .header-language-row {
    min-height: 26px;
  }

  .brand {
    max-width: 100%;
  }

  .brand > :not(.brand-mark):not(img):not(picture) {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .primary-navigation-shell--drawer {
    display: block;
    margin-left: auto;
  }

  .primary-navigation-shell--drawer .primary-navigation-toggle {
    display: flex;
    flex-direction: column;
  }

  .primary-navigation-shell--drawer.is-open .primary-navigation-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .primary-navigation-shell--drawer.is-open .primary-navigation-toggle span:nth-child(2) {
    opacity: 0;
  }

  .primary-navigation-shell--drawer.is-open .primary-navigation-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .primary-navigation-shell--drawer .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px var(--sig-gutter) 20px;
    border-top: 1px solid var(--sig-line-soft);
    border-bottom: 1px solid var(--sig-line);
    background: var(--sig-surface);
    box-shadow: 0 20px 40px rgba(10, 18, 24, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity var(--sig-ease), transform var(--sig-ease), visibility var(--sig-ease);
  }

  .primary-navigation-shell--drawer.is-open .primary-navigation {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .primary-navigation-shell--drawer .primary-navigation a {
    min-height: 50px;
    justify-content: space-between;
    border-bottom: 1px solid var(--sig-line-soft);
    white-space: normal;
  }

  .primary-navigation-shell--drawer .primary-navigation a:not(.nav-action)[aria-current="page"]::after {
    right: 0;
    bottom: -1px;
    left: 0;
  }

  .primary-navigation-shell--drawer .primary-navigation .nav-action {
    justify-content: center;
    margin-top: 14px;
    border-bottom: 0;
  }

  .split-section,
  .about-intro-grid,
  .content-section:has(> .process-list) {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-section:has(> .process-list) > .process-list {
    grid-column: 1;
    grid-row: auto;
    margin-top: 40px;
  }

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

  .contact-card {
    border-radius: var(--sig-r-panel);
  }

  .form-card {
    border-radius: var(--sig-r-panel);
  }

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

  .route-entry > :not(input[type="hidden"]):not(button):not([data-address-status]) {
    border-bottom: 1px solid var(--sig-line-soft);
  }

  .route-entry > button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 12px;
    border-bottom: 0;
  }

  .route-entry button[type="submit"],
  .route-entry > button[type="submit"] {
    min-height: 56px;
  }
}

@media (max-width: 768px) {
  .content-section[aria-labelledby="benefits-heading"] > .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list details > :not(summary) {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --sig-gutter: 20px;
    --sig-section: 72px;
  }

  body {
    font-size: 1rem;
  }

  .brand {
    gap: 10px;
    font-size: 1rem;
  }

  .brand img {
    max-height: 32px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    font-size: 1.1875rem;
  }

  /* Hero: image block on top, headline over its lower edge, form overlaps below */
  .route-hero {
    display: block;
    min-height: 0;
    background: linear-gradient(180deg, #4A5A66 0, var(--sig-secondary) 440px, var(--sig-paper) 440px);
  }

  .route-hero__image,
  .route-hero__shade {
    bottom: auto;
    height: 440px;
  }

  .route-hero__image,
  .route-hero__image img {
    object-position: 74% center;
  }

  .route-hero__shade {
    background: linear-gradient(0deg, rgba(15, 25, 33, 0.9) 0%, rgba(15, 25, 33, 0.55) 45%, rgba(15, 25, 33, 0.1) 75%);
  }

  .route-hero__content {
    padding: 0;
    gap: 0;
  }

  .route-hero__copy {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 72px var(--sig-gutter) 56px;
  }

  .route-entry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -32px 16px 0;
    padding: 8px 8px 12px;
    box-shadow: var(--sig-shadow-soft);
  }

  .route-entry > :not(input[type="hidden"]):not(button):not([data-address-status]) {
    padding: 12px;
    border-right: 0;
  }

  .route-entry > .platform-address-field {
    grid-column: 1 / -1;
  }

  .route-entry > :has(input[type="date"]) {
    border-right: 1px solid var(--sig-line-soft);
  }

  .route-entry > button[type="submit"] {
    grid-column: 1 / -1;
    margin: 12px 4px 0;
    padding: 0;
  }

  .route-entry button[type="submit"],
  .route-entry > button[type="submit"] {
    min-height: 52px;
  }

  .content-section[aria-labelledby="benefits-heading"] > .vehicle-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }

  .content-section[aria-labelledby="benefits-heading"] > .vehicle-grid > .vehicle-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px 0 24px;
  }

  .process-list > li {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 20px;
    padding-bottom: 40px;
    font-size: 1rem;
  }

  .process-list > li::before {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .process-list > li::after {
    top: 48px;
    left: 23.5px;
  }

  .process-list > li :is(h3, h4, strong) {
    margin-top: 8px;
  }

  .vehicle-grid {
    gap: 20px;
  }

  .vehicle-card > :not(.vehicle-geometry):not(img):not(picture) {
    padding-inline: 24px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .form-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
  }

  .form-card > label,
  .form-card > label:nth-of-type(n + 3) {
    grid-column: 1;
  }

  .form-card button[type="submit"] {
    justify-self: stretch;
    align-self: stretch;
  }

  .faq-list summary {
    min-height: 72px;
    gap: 20px;
    padding: 18px 0;
  }

  .site-footer {
    padding: 48px 0 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .legal-navigation {
    width: 100%;
  }

  .legal-navigation {
    flex-direction: column;
    gap: 0;
  }

  .legal-navigation a {
    border-bottom: 1px solid var(--sig-on-dark-line);
  }

  .platform-signature {
    margin-top: 0;
  }

  .page--booking {
    padding-top: 48px;
  }
}

@media (max-width: 360px) {
  :root {
    --sig-gutter: 16px;
  }

  .route-entry {
    margin-inline: 12px;
  }
}
