/* Touch layouts share the desktop content and keep browser zoom available. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: calc(92px + env(safe-area-inset-top, 0px));
  }

  body {
    font-size: 15px;
  }

  .container {
    width: auto;
    margin-left: max(28px, env(safe-area-inset-left, 0px));
    margin-right: max(28px, env(safe-area-inset-right, 0px));
  }

  .utility-bar,
  .floating-contact {
    display: none;
  }

  .site-header {
    padding-top: env(safe-area-inset-top, 0px);
  }

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

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    width: 52px;
    height: 40px;
  }

  .brand strong {
    font-size: 23px;
    white-space: nowrap;
  }

  .brand small {
    font-size: 8px;
  }

  .header-contact {
    margin-left: auto;
    min-height: 44px;
    padding: 9px 16px;
    font-size: 14px;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px max(28px, env(safe-area-inset-right, 0px)) 20px
      max(28px, env(safe-area-inset-left, 0px));
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: white;
    box-shadow: 0 15px 20px #20342f10;
    z-index: 35;
    gap: 0 16px;
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-nav > a,
  .main-nav > .mobile-contact {
    display: flex;
    height: auto;
    min-height: 52px;
    font-size: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav > a:after {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 500px;
    min-height: clamp(420px, calc(100svh - 170px), 580px);
  }

  .hero-content {
    height: auto;
    min-height: inherit;
    padding-top: 48px;
    padding-bottom: 110px;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-slogan {
    font-size: 28px;
  }

  .hero-description {
    max-width: 520px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px 28px;
  }

  .hero-actions .button,
  .hero-secondary {
    min-height: 48px;
    font-size: 14px;
  }

  .hero-control,
  .hero-control.play-toggle {
    width: 44px;
    height: 44px;
    margin-left: 0;
  }

  .hero-control svg {
    width: 17px;
    height: 17px;
  }

  .hero-bottom {
    bottom: 20px;
    gap: 16px;
  }

  .hero-location {
    font-size: 13px;
    gap: 6px;
  }

  .location-en {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  h2 {
    font-size: 32px;
  }

  .about-grid,
  .service-panel,
  .contact-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .about-copy,
  .service-detail,
  .contact-copy,
  .inquiry-form,
  .fleet-item,
  .news-list {
    min-width: 0;
  }

  .section-heading > p,
  .about-copy > p:not(.eyebrow),
  .service-detail > p,
  .contact-copy > p:not(.eyebrow),
  .dialog-body > p,
  .dialog-body > ul,
  .dialog-body > ol {
    font-size: 15px;
    line-height: 1.95;
  }

  .eyebrow,
  .eyebrow span,
  .service-number,
  .photo-caption,
  .section-caption {
    font-size: 12px;
  }

  .about-values {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .about-values > span {
    font-size: 13px;
  }

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

  .shortcut-grid > a {
    min-height: 100px;
    padding: 20px 24px;
    gap: 16px;
  }

  .shortcut-grid > a:first-child,
  .shortcut-grid > a:nth-child(3) {
    padding-left: 0;
  }

  .shortcut-grid > a:nth-child(2) {
    border-right: 0;
  }

  .shortcut-grid > a:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .shortcut-grid strong {
    font-size: 16px;
  }

  .shortcut-grid small {
    font-size: 13px;
    white-space: normal;
  }

  .service-tab {
    min-height: 58px;
    font-size: 15px;
    gap: 8px;
  }

  .service-points li {
    font-size: 14px;
    align-items: flex-start;
  }

  .service-points svg {
    margin-top: 5px;
  }

  .text-link {
    min-height: 44px;
    font-size: 14px;
  }

  .segmented-control button {
    min-height: 44px;
    font-size: 14px;
    padding: 8px 16px;
  }

  .fleet-toolbar > p,
  .fleet-info p,
  .fleet-note,
  .destination-note,
  .news-list p,
  .news-feature-copy > span {
    font-size: 13px;
  }

  .fleet-info h3 {
    font-size: 21px;
  }

  .fleet-info .text-link {
    font-size: 14px;
  }

  .image-tag,
  .destination-top,
  .destination-top > span,
  .destination-bottom small,
  .destination-bottom > span:first-child > span,
  .news-list small,
  .news-feature-copy small {
    font-size: 12px;
  }

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

  .assurance-list strong {
    font-size: 15px;
  }

  .assurance-list small {
    font-size: 13px;
  }

  .news-list h3 {
    font-size: 17px;
  }

  .news-list > button {
    min-height: 126px;
  }

  .contact-details dd {
    font-size: 14px;
  }

  .contact-details dt {
    font-size: 13px;
  }

  .form-heading {
    display: block;
  }

  .form-heading > span {
    display: block;
    max-width: none;
    margin-top: 6px;
    font-size: 13px;
    text-align: left;
  }

  .form-grid label {
    font-size: 14px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    font-size: 16px;
    min-height: 48px;
    padding: 11px 12px;
  }

  .form-grid input[type="date"] {
    min-inline-size: 0;
    -webkit-appearance: none;
    appearance: none;
  }

  .form-grid input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 24px;
  }

  .consent {
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    gap: 10px;
  }

  .consent input {
    width: 20px;
    height: 20px;
    margin-top: 0;
  }

  .form-note,
  .form-result,
  .dialog-body .dialog-note {
    font-size: 13px;
  }

  .form-result a,
  .form-result button {
    min-height: 44px;
    font-size: 14px;
    margin-right: 16px;
  }

  .footer-main nav {
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
  }

  .footer-main nav a,
  .footer-bottom a,
  .footer-bottom button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .footer-bottom,
  .footer-bottom button {
    font-size: 12px;
  }

  .footer-bottom {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  .detail-dialog {
    width: calc(100% - 40px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
  }

  .dialog-close {
    position: sticky;
    top: 8px;
    right: auto;
    display: flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: 8px;
    margin-bottom: -44px;
    transform: translateY(8px);
  }

  .dialog-cover {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 320px;
  }

  .dialog-body {
    padding: 30px;
  }

  .dialog-body h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 900px) {
  .contact-grid,
  .service-panel,
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-copy h2 br {
    display: none;
  }

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

  .contact-signature {
    display: none;
  }

  .contact-copy .eyebrow > span {
    display: inline-block;
    border-left: 1px solid #b5c4bc;
    margin-left: 12px;
    padding-left: 12px;
    margin-top: 0;
  }

  .service-image-wrap > img {
    height: auto;
    aspect-ratio: 1.8;
    max-height: 360px;
  }

  .service-detail h3 {
    font-size: 28px;
  }

  .service-image-wrap > span {
    font-size: 22px;
  }

  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .fleet-image-button {
    aspect-ratio: 1.3;
  }

  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .destination-large {
    grid-column: 1 / -1;
  }

  .news-feature > button {
    height: 340px;
  }

  .news-list > button:first-child {
    padding-top: 16px;
  }

  .inquiry-form {
    padding: 32px;
  }

  .form-grid {
    gap: 22px;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .container {
    margin-left: max(20px, env(safe-area-inset-left, 0px));
    margin-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .header-inner {
    height: 72px;
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    width: 42px;
    height: 34px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 7px;
  }

  .header-contact {
    padding: 8px 12px;
    font-size: 13px;
    gap: 8px;
  }

  .main-nav {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }

  .hero {
    min-height: 440px;
    min-height: clamp(400px, calc(100svh - 145px), 540px);
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.45;
  }

  .hero-slogan {
    font-size: 25px;
  }

  .hero-description {
    max-width: 440px;
    font-size: 14px;
    margin-top: 18px;
  }

  .hero-description br {
    display: none;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 12px 20px;
  }

  .hero-actions .button {
    min-width: 150px;
  }

  .hero-secondary {
    font-size: 13px;
    gap: 8px;
  }

  .hero-location {
    font-size: 12px;
    white-space: nowrap;
  }

  .slide-controls {
    gap: 7px;
  }

  .slide-rule {
    width: 22px;
  }

  .section {
    padding: 54px 0;
  }

  h2 {
    font-size: 29px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    font-size: 14px;
    margin-top: 14px;
  }

  .section-heading > p br {
    display: none;
  }

  .section-heading .text-link {
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
  }

  .shortcut-grid > a {
    padding: 20px 12px;
    gap: 12px;
  }

  .about-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 28px;
  }

  .about-copy h2 {
    font-size: 30px;
  }

  .about-copy h2 br {
    display: none;
  }

  .about-values {
    justify-content: flex-start;
    gap: 12px 20px;
  }

  .about-visual {
    width: 100%;
  }

  .about-visual > img {
    height: auto;
    aspect-ratio: 1.15;
    max-height: 400px;
  }

  .photo-caption {
    flex-wrap: wrap;
  }

  .photo-caption > span:last-child {
    display: none;
  }

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

  .service-tab {
    font-size: 14px;
    padding: 14px 5px;
    border-bottom: 1px solid #d8e2d9;
  }

  .service-detail h3 {
    font-size: 25px;
  }

  .service-image-wrap > img {
    aspect-ratio: 1.45;
  }

  .fleet-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .segmented-control button {
    min-width: 0;
    padding: 8px 4px;
  }

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

  .fleet-image-button {
    aspect-ratio: 1.45;
  }

  .fleet-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 14px;
  }

  .fleet-info h3,
  .fleet-info p {
    grid-column: 1;
    max-width: none;
    padding-right: 0;
    margin: 0;
  }

  .fleet-info .text-link {
    position: static;
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    align-self: center;
    font-size: 13px;
    gap: 8px;
    margin: 0;
  }

  .fleet-photo-previews span {
    font-size: 12px;
  }

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

  .destination,
  .destination-large {
    grid-column: auto;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1.1;
    max-height: 400px;
    min-height: 290px;
    padding: 24px;
  }

  .destination-bottom strong {
    font-size: 24px;
  }

  .assurance-list > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .assurance-list small {
    max-width: none;
  }

  .assurance-list svg {
    margin: 4px 0 0;
    width: 24px;
    height: 24px;
  }

  .news-list > button {
    gap: 14px;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

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

  .inquiry-form {
    padding: 28px 24px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .form-grid .field-full {
    grid-column: 1;
  }

  .form-submit {
    min-height: 50px;
    font-size: 15px;
  }

  .footer-main nav {
    width: 100%;
    justify-content: space-between;
    gap: 4px 12px;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 8px;
  }

  .dialog-body {
    padding: 28px 24px;
  }

  .dialog-body h2 {
    font-size: 26px;
  }

  .gallery-meta {
    padding: 8px 12px;
  }

  .gallery-thumbnails {
    padding: 0 12px 12px;
    gap: 6px;
  }
}

@media (max-width: 380px) {
  .container {
    margin-left: max(16px, env(safe-area-inset-left, 0px));
    margin-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .brand img {
    width: 34px;
    height: 30px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    font-size: 6px;
  }

  .header-contact {
    padding: 8px;
    font-size: 12px;
  }

  .header-contact svg {
    display: none;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero-slogan {
    font-size: 23px;
  }

  .hero-content {
    padding-top: 32px;
    padding-bottom: 124px;
  }

  .hero-actions {
    gap: 8px 12px;
  }

  .hero-actions .button {
    min-width: 140px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .hero-secondary {
    font-size: 12px;
  }

  .hero-bottom {
    flex-wrap: wrap;
    gap: 6px 16px;
    bottom: 14px;
  }

  .hero-location {
    width: 100%;
  }

  .shortcut-grid > a {
    gap: 10px;
    padding-left: 14px;
    padding-right: 8px;
  }

  .shortcut-grid strong {
    font-size: 14px;
  }

  .shortcut-grid small {
    font-size: 12px;
  }

  .assurance-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .inquiry-form {
    padding: 24px 18px;
  }

  .gallery-meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  .gallery-caption {
    width: 100%;
  }

  .gallery-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .gallery-count {
    margin-right: auto;
  }

  .vehicle-gallery + .dialog-body h2 {
    font-size: 22px;
    padding-right: 0;
  }

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

@media (max-width: 600px) and (max-height: 650px) and (orientation: portrait) {
  .hero {
    min-height: 400px;
    min-height: max(360px, calc(100svh - 160px));
  }

  .hero-content {
    padding-top: 24px;
  }

  .hero-description {
    display: none;
  }
}

@media (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  html {
    scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    min-height: 250px;
    min-height: max(220px, calc(100svh - 100px));
  }

  .hero-content {
    padding-top: 18px;
    padding-bottom: 74px;
  }

  .hero-kicker,
  .hero-description {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero-slogan {
    font-size: 20px;
    line-height: 1.4;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-bottom {
    bottom: 10px;
  }

  .main-nav {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px));
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-nav > a {
    min-height: 44px;
    padding: 8px 12px;
  }

  .detail-dialog {
    width: min(720px, calc(100% - 64px));
  }

  .dialog-cover {
    max-height: 180px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .header-contact,
  .hero-secondary,
  .text-link,
  .service-tab,
  .segmented-control button {
    min-height: 44px;
  }

  .hero-control,
  .hero-control.play-toggle {
    width: 44px;
    height: 44px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .button:hover,
  .fleet-image-button:hover img,
  .destination:hover > img,
  .news-feature > button:hover img {
    transform: none;
  }
}
