/* Shared responsive refinements: keep page content clear of fixed controls. */
.header-inner > *, .hero-content, .section-head > *, .fleet-header > * { min-width: 0; }
.hero-content { width: min(1240px, calc(100% - 96px)); }
h1, h2, h3 { overflow-wrap: anywhere; }
.hero h1, .service-hero h1, .section-head h2, .fleet-header h1 { text-wrap: balance; }
.button > span:first-child { min-width: 0; }
.button > span[aria-hidden] { flex-shrink: 0; }
.header-links > .button-gold, .header-links > .button-gold:hover { color: var(--ink); }
.gallery-stage { position: relative; touch-action: pan-y pinch-zoom; }
.gallery-main, .gallery-main.photo { height: 350px; object-fit: contain; background: #e9e7dd; }
.gallery-main.photo { padding: 0; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 4px; border: 1px solid #ffffff80; border-radius: 50%; background: #0c1719e8; color: #fffdf8; font-size: 32px; line-height: 1; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-position { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 4px 11px; border-radius: 20px; font-size: 11px; color: #fffdf8; background: #0c1719de; }
.gallery-credit { padding: 0 18px 18px; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; color: var(--muted); }
.gallery-credit a { text-decoration: underline; text-underline-offset: 2px; }
.gallery-changes { display: block; margin-top: 4px; }
.gallery-caption { padding-bottom: 8px; }

@media (max-width: 1100px) {
  .hero-content { width: calc(100% - 56px); }
}

@media (max-width: 1000px) {
  html { scroll-padding-top: calc(var(--site-header-height, 74px) + 16px); }
  .site-header { height: auto; min-height: 74px; padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; height: auto; min-height: 74px; gap: 16px; }
  .brand { width: 145px; max-width: 100%; }
  .brand img { width: 100%; height: 58px; }
  .menu-toggle { display: flex; flex-shrink: 0; }
  .header-links {
    position: absolute; inset: 100% 0 auto; display: none;
    background: var(--ink); padding: 18px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #ffffff15; box-shadow: 0 20px 25px #0003;
    max-height: calc(100vh - var(--site-header-height, 74px) - 60px);
    max-height: calc(100dvh - var(--site-header-height, 74px) - 60px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .header-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .header-links > a { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
  .header-links > .header-phone { display: none; }
  .header-links > .button { justify-content: center; white-space: normal; text-align: center; }
  .language-switch { justify-content: center; gap: 12px; }
  .language-switch button { min-width: 44px; min-height: 44px; font-size: 13px; }
  body.menu-open .mobile-actions { visibility: hidden; pointer-events: none; }
}

@media (max-width: 800px) {
  :root { --mobile-actions-height: calc(77px + env(safe-area-inset-bottom, 0px)); }
  .container, .hero-content {
    width: auto;
    margin-left: max(18px, env(safe-area-inset-left, 0px));
    margin-right: max(18px, env(safe-area-inset-right, 0px));
  }
  body.marketing-page { padding-bottom: var(--mobile-actions-height); }
  .hero-content { flex: 1; }
  html { scroll-padding-bottom: calc(var(--mobile-actions-height) + 16px); }
  .site-footer { padding-bottom: 28px; }
  .hero h1 { max-width: 100%; font-size: clamp(44px, 10.5vw, 76px); }
  .hero-buttons { flex-wrap: wrap; row-gap: 20px; }
  .hero-buttons .button { max-width: 100%; white-space: normal; text-align: center; }
  .quick-field input, .quick-field select { font-size: 16px; min-height: 44px; }
  .quick-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-form .button { min-width: 0; gap: 10px; white-space: normal; text-align: center; }
  .mobile-actions {
    position: fixed; inset: auto 0 0; z-index: 35;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 10px;
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: #0c1719fa; color: var(--paper); border-top: 1px solid #ffffff20;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .mobile-actions a {
    min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; border: 1px solid #ffffff60; border-radius: 28px;
    font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center;
  }
  .mobile-actions a > span { min-width: 0; }
  .mobile-actions a > [aria-hidden] { flex: 0 0 auto; }
  .mobile-actions a:last-child { background: var(--gold-light); color: var(--ink); border-color: var(--gold-light); }
  .mobile-actions a:focus-visible { outline-offset: 2px; }
  .has-visual-viewport .mobile-actions { top: var(--mobile-viewport-bottom); bottom: auto; transform: translateY(-100%); }
  /* Continue the dock background through the native webview's bottom inset. */
  .mobile-actions::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: max(48px, env(safe-area-inset-bottom, 0px)); background: #0c1719; pointer-events: none; }
}

@media (max-width: 560px) {
  .preview-bar { font-size: 9px; line-height: 1.6; padding-inline: 16px; }
  .hero { min-height: 620px; padding: 48px 0 100px; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 64px); line-height: 1.04; }
  h2, .intro h2, .app-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .service-hero h1, .prose h1 { font-size: clamp(38px, 11vw, 56px); }
  .fleet-header h1 { font-size: clamp(38px, 11vw, 52px); }
  .closing h2 { font-size: clamp(40px, 11.5vw, 57px); }
  .hero-copy { font-size: 14px; max-width: 33ch; }
  .hero-buttons .button, .hero-buttons .text-link { font-size: 12px; min-height: 48px; }
  .quick-field:first-child { grid-column: 1 / -1; border-right: 0; padding-right: 0; }
  .quick-form > button { grid-column: 1 / -1; font-size: 12px; }
  .quick-field { border-right: 0; padding-right: 0; }
  .quick-field label { font-size: 10px; }
  .quick-field input, .quick-field select { padding-top: 4px; }
  .phone-frame { max-width: calc(100% - 14px); }
  .service-details h2 { font-size: clamp(34px, 10vw, 45px); }
  .gallery-dialog { max-height: 90dvh; }
  .gallery-main, .gallery-main.photo { height: clamp(230px, 67vw, 330px); }
}

@media (max-width: 380px) {
  .hero-buttons { flex-direction: column; align-items: flex-start; gap: 12px; }
  .destinations-grid { grid-template-columns: minmax(0, 1fr); }
  .destination:nth-child(2), .destination:nth-child(3) { padding-top: 18px; }
  .destination img { height: 250px; }
}
