/* Laptop */
@media (max-width: 1199px) {
  .xg-header-inner {
    gap: 18px;
  }
  .xg-logo img,
  .xg-site .custom-logo {
    width: 210px;
  }
  .xg-header nav {
    gap: 20px;
    font-size: 13px;
  }
  .xg-header .xg-header-cta {
    padding-inline: 12px;
    font-size: 13px;
  }
  .xg-hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 32px;
    min-height: 660px;
  }
  .xg-site .xg-hero h1 {
    font-size: 40px;
    letter-spacing: -0.7px;
  }
  .xg-site .xg-hero-badge {
    font-size: 10px;
    letter-spacing: 0.2px;
  }
  .xg-booking form {
    padding: 20px;
  }
  .xg-site .xg-booking h2 {
    font-size: 24px;
    padding-inline: 20px;
  }
  .xg-hero-benefits li {
    font-size: 9px;
    gap: 6px;
  }
  .xg-hero-benefits .xg-icon {
    width: 23px;
    height: 23px;
  }
  .xg-route-body {
    padding: 20px 14px;
  }
  .xg-site .xg-route-body h3 {
    font-size: 15px;
  }
  .xg-route-body p {
    font-size: 13px;
  }
  .xg-benefits-grid {
    gap: 16px;
  }
  .xg-benefit-card {
    padding: 24px 12px;
  }
  .xg-site .xg-benefit-card h3 {
    font-size: 16px;
  }
  .xg-benefit-card p {
    font-size: 13px;
  }
  .xg-fleet-grid {
    gap: 28px;
  }
  .xg-fleet-grid > div > h2 {
    font-size: 28px;
  }
  .xg-gallery {
    height: 400px;
  }
  .xg-site th,
  .xg-site td {
    padding: 12px 9px;
  }
  .xg-cta-grid {
    gap: 28px;
  }
  .xg-site .xg-cta h2 {
    font-size: 28px;
  }
  .xg-footer-grid {
    gap: 24px;
  }
}

/* Tablet: a spacious stacked hero avoids squeezing four heading lines and a form. */
@media (max-width: 1023px) {
  .xg-home {
    --section-space: var(--section-space-tablet);
    --container-gutter: 20px;
    --heading-gap: 32px;
    --card-gap: 18px;
  }
  .xg-header {
    height: 72px;
  }
  .xg-header nav {
    gap: 20px;
  }
  .xg-header .xg-header-cta {
    display: none;
  }
  .xg-hero {
    background-size: auto 600px;
    background-position: 62% top;
  }
  .xg-hero::before {
    background:
      linear-gradient(90deg, #04243bea, #063c68a3 65%, #073f6b44),
      linear-gradient(0deg, #082e52 32%, #082e5200 70%);
  }
  .xg-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "form" "benefits";
    gap: 32px;
    padding-block: 56px;
    min-height: 0;
  }
  .xg-hero-copy {
    max-width: 650px;
  }
  .xg-site .xg-hero h1 {
    font-size: 42px;
  }
  .xg-site .xg-hero-badge {
    font-size: 11px;
  }
  .xg-hero .xg-booking {
    max-width: 620px;
    justify-self: center;
  }
  .xg-site .xg-hero-benefits {
    max-width: 620px;
    width: 100%;
    justify-self: center;
    padding-top: 26px;
    gap: 20px;
  }
  .xg-hero-benefits li {
    font-size: 11px;
    gap: 10px;
  }
  .xg-hero-benefits .xg-icon {
    width: 26px;
    height: 26px;
  }
  .xg-routes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .xg-route-body {
    padding: 20px;
  }
  .xg-site .xg-route-body h3 {
    font-size: 17px;
  }
  .xg-route-body p {
    font-size: 14px;
  }
  .xg-benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .xg-benefit-card {
    padding: 26px 20px;
  }
  .xg-site .xg-benefit-card h3 {
    font-size: 18px;
    min-height: 0;
  }
  .xg-benefit-card p {
    font-size: 14px;
  }
  .xg-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .xg-process-grid li:not(:last-child)::after {
    display: none;
  }
  .xg-fleet-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .xg-fleet-grid > div > p {
    min-height: 0;
    margin-bottom: 28px;
  }
  .xg-fleet-grid > div > h2 {
    font-size: 30px;
  }
  .xg-gallery {
    height: 430px;
  }
  .xg-fleet-photo figcaption {
    width: 65%;
    min-height: 0;
    font-size: 14px;
  }
  .xg-site tbody th {
    font-size: 14px;
  }
  .xg-site th,
  .xg-site td {
    padding: 14px 16px;
  }
  .xg-testimonial-grid {
    grid-template-columns: 1fr;
  }
  .xg-faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .xg-faq-grid > img {
    aspect-ratio: 2.4;
    max-height: 320px;
  }
  .xg-cta-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
  }
  .xg-cta-buttons {
    gap: 12px;
  }
  .xg-cta-contact strong {
    font-size: 17px;
  }
  .xg-cta p {
    max-width: 540px;
  }
  .xg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .xg-home {
    --section-space: var(--section-space-mobile);
    --container-gutter: 16px;
    --heading-gap: 28px;
    --card-gap: 16px;
  }
  .xg-header {
    height: 68px;
  }
  .admin-bar .xg-header {
    top: 46px;
  }
  .xg-logo img,
  .xg-site .custom-logo {
    width: 200px;
    max-height: 46px;
  }
  .xg-menu-toggle {
    display: block;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #dce6f0;
    border-radius: 9px;
    background: #fff;
    color: var(--xg-blue);
    font-size: 24px;
  }
  .xg-header nav {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    gap: 0;
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 14px 20px #09254412;
    transition:
      max-height 0.24s,
      padding 0.24s,
      opacity 0.2s,
      visibility 0.24s;
  }
  .xg-header nav.is-open {
    max-height: min(440px, calc(100dvh - 120px));
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    padding-block: 12px;
  }
  .xg-header nav a {
    padding: 12px 4px;
    font-size: 15px;
  }
  .xg-header nav a:first-child {
    border: 0;
  }
  .xg-site h2 {
    font-size: 25px;
    line-height: 1.35;
    letter-spacing: 0;
  }
  .xg-site .xg-heading h2 {
    gap: 10px;
    text-wrap: balance;
  }
  .xg-heading h2::before,
  .xg-heading h2::after {
    width: 20px;
  }
  .xg-heading p {
    font-size: 14px;
    margin-top: 10px;
  }
  .xg-site section,
  .xg-site footer,
  .xg-booking {
    scroll-margin-top: 88px;
  }
  .xg-hero {
    background-image: url("../images/home/hero-1280.webp");
    background-size: auto 570px;
    background-position: 56% top;
  }
  .xg-hero::before {
    background:
      linear-gradient(90deg, #041f3de6, #063a65b3),
      linear-gradient(0deg, #082e52 55%, #082e5200);
  }
  .xg-hero-grid {
    padding-block: 52px;
    gap: 32px;
  }
  .xg-site .xg-hero-badge {
    font-size: 9px;
    padding: 8px 10px;
    gap: 5px;
    letter-spacing: 0.15px;
    margin: 0 auto;
  }
  .xg-site .xg-hero h1 {
    margin-top: 22px;
    font-size: clamp(28px, 7vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.45px;
    text-wrap: initial;
    text-align: center;
  }
  .xg-hero h1 .xg-hero-accent {
    margin-top: 10px;
    font-size: 0.9em;
  }
  .xg-site .xg-hero-description {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
    text-align: center;
  }
  .xg-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .xg-hero-actions .xg-button {
    min-height: 50px;
    padding: 12px 10px;
    gap: 8px;
    font-size: 13px;
  }
  .xg-hero-actions .xg-icon {
    width: 21px;
    height: 21px;
  }
  .xg-hero .xg-booking {
    max-width: 500px;
    box-shadow: 0 15px 38px #041b3538;
  }
  .xg-site .xg-booking h2 {
    font-size: 24px;
    padding: 20px;
  }
  .xg-booking form {
    padding: 20px;
  }
  .xg-field {
    min-height: 66px;
    padding: 9px 10px;
    gap: 9px;
    margin-bottom: 14px;
  }
  .xg-field strong {
    font-size: 12px;
  }
  .xg-site .xg-field input,
  .xg-site .xg-field select {
    font-size: 16px;
  }
  .xg-field-pair {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px;
  }
  .xg-field-pair .xg-icon {
    width: 20px;
    height: 20px;
  }
  .xg-site .xg-hero-benefits {
    grid-template-columns: 1fr;
    gap: 22px 16px;
    padding-top: 24px;
  }
  .xg-hero-benefits li {
    justify-content: left;
    font-size: 11px;
  }
  .xg-routes-grid {
    grid-template-columns: 1fr;
  }
  .xg-route-card > img {
    aspect-ratio: 1.85;
  }
  .xg-route-body {
    padding: 24px;
  }
  .xg-site .xg-route-body h3 {
    font-size: 20px;
  }
  .xg-route-body h3 .xg-icon {
    width: 20px;
    height: 24px;
  }
  .xg-route-body p {
    font-size: 15px;
    margin-block: 12px 20px;
  }
  .xg-route-body small {
    font-size: 13px;
  }
  .xg-route-body .xg-button {
    min-height: 48px;
    font-size: 15px;
  }
  .xg-benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .xg-benefit-card {
    padding: 24px 14px;
  }
  .xg-site .xg-benefit-card h3 {
    font-size: 17px;
    min-height: 46px;
  }
  .xg-benefit-card p {
    font-size: 13px;
  }
  .xg-process-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 500px;
    margin-inline: auto;
  }
  .xg-process-grid li {
    padding: 28px;
  }
  .xg-process-grid li:not(:last-child)::after {
    display: block;
    content: "↓";
    right: calc(50% - 10px);
    top: auto;
    bottom: -32px;
    font-size: 26px;
  }
  .xg-step-number {
    top: 18px;
    left: 18px;
  }
  .xg-process-grid h3 {
    font-size: 20px;
  }
  .xg-fleet-grid {
    gap: 36px;
  }
  .xg-fleet-grid > div > h2 {
    font-size: 25px;
    text-align: center;
  }
  .xg-fleet-grid > div > p {
    font-size: 14px;
    margin: 12px 0 26px;
    text-align: center;
  }
  .xg-gallery {
    height: auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .xg-fleet-photo {
    aspect-ratio: 1.42;
  }
  .xg-gallery-small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
  .xg-gallery-small img {
    height: auto;
    aspect-ratio: 1.05;
  }
  .xg-fleet-photo figcaption {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 12px;
    font-size: 12px;
    bottom: 12px;
    left: 12px;
  }
  .xg-site th,
  .xg-site td {
    padding: 13px 10px;
  }
  .xg-site table {
    min-width: 310px;
  }
  .xg-site tbody th,
  .xg-site thead th,
  .xg-site td {
    font-size: 12px;
  }
  .xg-commitment {
    padding: 20px 16px;
  }
  .xg-commitment ul {
    font-size: 13px;
  }
  .xg-review {
    padding: 24px;
  }
  .xg-review-top {
    gap: 12px;
  }
  .xg-site .xg-review h3 {
    font-size: 15px;
  }
  .xg-avatar {
    width: 52px;
    height: 52px;
  }
  .xg-faq-grid {
    gap: 26px;
  }
  .xg-faq-grid > img {
    aspect-ratio: 1.85;
  }
  .xg-faq summary {
    padding: 16px 38px 16px 16px;
    font-size: 14px;
    align-items: flex-start;
  }
  .xg-faq summary > span {
    display: none;
  }
  .xg-faq summary::after {
    right: 14px;
  }
  .xg-faq details p {
    padding: 16px;
  }
  .xg-cta {
    padding-block: 48px;
  }
  .xg-cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .xg-site .xg-cta h2 {
    font-size: 25px;
    line-height: 1.35;
  }
  .xg-cta p {
    font-size: 14px;
  }
  .xg-cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 540px;
    justify-self: center;
  }
  .xg-cta-buttons .xg-button {
    font-size: 13px;
    padding-inline: 10px;
  }
  .xg-footer {
    padding-top: 48px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .xg-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 32px;
  }
  .xg-footer-grid > div:first-child,
  .xg-footer-grid > div:nth-child(2) {
    grid-column: 1 / -1;
  }
  .xg-footer p,
  .xg-footer li,
  .xg-footer nav a {
    font-size: 14px;
  }
  .xg-footer li a,
  .xg-footer nav a {
    padding-block: 7px;
  }
  .xg-copyright {
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
  }
  .xg-mobile-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 12px #072c4c26;
  }
  .xg-mobile-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    background: var(--xg-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }
  .xg-mobile-contact a:last-child {
    background: #0670d7;
  }
  .xg-dialog {
    padding: 24px 20px;
  }
  .xg-dialog h2 {
    font-size: 22px;
  }

  .xg-hero-copy {
    display: flex;
    flex-direction: column;
  }
}

/* Small mobile */
@media (max-width: 479px) {
  .xg-heading h2::before,
  .xg-heading h2::after {
    display: none;
  }
  .xg-hero-actions {
    grid-template-columns: 1fr;
  }
  .xg-hero-actions .xg-button {
    min-height: 50px;
    font-size: 14px;
  }
  .xg-booking form {
    padding: 18px;
  }
  .xg-site .xg-booking h2 {
    padding: 18px;
    font-size: 23px;
  }
  .xg-field-pair {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 10px;
  }
  .xg-field-pair .xg-icon {
    display: none;
  }
  .xg-site .xg-review h3 {
    font-size: 14px;
  }
  .xg-cta-buttons {
    grid-template-columns: 1fr;
  }
  .xg-site .xg-cta .xg-cta-contact {
    min-height: 84px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 18px 22px;
    gap: 16px;
    text-align: left;
  }
  .xg-cta-contact strong {
    font-size: 19px;
  }
  .xg-footer-grid {
    grid-template-columns: 1fr;
  }
  .xg-footer-grid > div {
    grid-column: auto;
  }
  .xg-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
}
@media (max-width: 359px) {
  .xg-site h2,
  .xg-fleet-grid > div > h2,
  .xg-site .xg-cta h2 {
    font-size: 23px;
  }
  .xg-site .xg-hero-badge {
    display: block;
    font-size: 9px;
  }
  .xg-site .xg-hero h1 {
    font-size: 28px;
  }
  .xg-field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .xg-benefits-grid {
    grid-template-columns: 1fr;
  }
  .xg-site .xg-benefit-card h3 {
    min-height: 0;
    font-size: 18px;
  }
  .xg-site .xg-hero-benefits {
    gap: 20px 10px;
  }
  .xg-hero-benefits li {
    font-size: 10px;
    gap: 7px;
  }
  .xg-fleet-photo figcaption {
    font-size: 11px;
  }
  .xg-route-body,
  .xg-review {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.xg-home.xg-site) {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xg-site *,
  .xg-site *::before,
  .xg-site *::after {
    transition: none;
    animation: none;
  }
  .xg-route-card:hover,
  .xg-benefit-card:hover,
  .xg-review:hover,
  .xg-site .xg-cta .xg-cta-contact:hover {
    transform: none;
  }
}
@media (max-width: 767px) {
  .xg-section-action {
    margin-top: 28px;
  }
  .xg-section-action .xg-button {
    width: 100%;
    max-width: 420px;
  }
}

/* Introduction and news responsive layout. */
@media (max-width: 1199px) {
  .xg-about-grid {
    gap: 36px;
  }
  .xg-about-photo > img {
    aspect-ratio: 0.85;
  }
}
@media (max-width: 1023px) {
  .xg-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .xg-about-photo > img {
    aspect-ratio: 1.65;
  }
  .xg-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .xg-about-grid {
    gap: 28px;
  }
  .xg-about-photo > img {
    aspect-ratio: 1.2;
  }
  .xg-about-photo figcaption {
    inset: auto 12px 12px;
    padding: 14px;
    gap: 10px;
  }
  .xg-about-photo figcaption strong {
    font-size: 13px;
  }
  .xg-about-photo figcaption > .xg-icon {
    width: 28px;
    height: 28px;
  }
  .xg-site .xg-about-copy h2 {
    margin-bottom: 16px;
  }
  .xg-about-eyebrow {
    margin-bottom: 10px;
  }
  .xg-about-actions {
    gap: 16px;
    margin-top: 24px;
  }
  .xg-about-actions a {
    width: 100%;
  }
  .xg-about-points li {
    font-size: 13px;
  }
  .xg-news-grid {
    grid-template-columns: 1fr;
  }
  .xg-news-body {
    padding: 22px;
  }
  .xg-site .xg-news-body h3 {
    font-size: 19px;
  }
  .xg-news-empty {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 18px;
  }
  .xg-news-empty h3 {
    font-size: 19px;
  }
}
@media (max-width: 359px) {
  .xg-about-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .xg-about-actions > a {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .xg-news-card {
    transition: none;
  }
  .xg-news-card:hover {
    transform: none;
  }
}
