@charset "UTF-8";
/* ============================================================
   Phone landscape (wide but SHORT viewport) adjustments.
   Injected from the shared header template so every page gets it.
   Mobile breakpoints elsewhere only test width, so a landscape
   phone (568-932px wide, 320-500px tall) was treated as a tall
   phone: 80px bar, 480px menu clipped, 700px hero, 150px footer gap.
   ============================================================ */
@media (orientation: landscape) and (max-height: 560px) {

  /* --- 1. Compact top bar: 80px -> 50px --- */
  .header { height: 50px !important; }
  .header.menu-open { height: 100% !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; }
  header .logo { width: 100px !important; top: 9px !important; left: 16px !important; }
  .header .icon-container { height: 50px !important; width: 44px !important; padding-right: 14px !important; }
  /* Keep global.css margin:-4px auto 0 + top:50% so the burger stays vertically centred */
  .header #menuicon { margin: -4px auto 0 !important; top: 50% !important; }

  /* --- 2. Menu must be fully usable on a short screen --- */
  .header ul.menu {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 18px !important;
    padding: 2px 16px 0 !important;
    max-height: calc(100vh - 50px);
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .header ul.menu li { margin-top: 0 !important; }
  .header ul.menu li a { line-height: 2 !important; font-size: 14px !important; }
  .header ul.menu li.quickMail,
  .header ul.menu li.quickPhone { margin: 0 !important; line-height: 2 !important; }
  /* 130px decorative social bar would cover the last menu row */
  .menu-open .header-social-media { display: none !important; }

  /* --- 3. Content top offset follows the shorter bar --- */
  .h1Banner { margin-top: 50px !important; }

  /* --- 4. No giant white gap before the footer --- */
  footer { margin-top: 0 !important; padding-top: 28px !important; }

  /* --- 5. Tighter vertical rhythm --- */
  h1 { margin: 18px 0 18px !important; font-size: 28px !important; }
  h2 { margin: 22px 0 12px !important; font-size: 24px !important; }
  p { margin-bottom: 10px !important; font-size: 16px !important; }

  /* --- 6. Hero / banner fit the short viewport --- */
  .pageBanner { height: clamp(230px, 62vh, 360px) !important; margin-bottom: 24px !important; }
  .transparent-text { height: clamp(230px, 62vh, 360px) !important; padding-top: 12vh !important; font-size: 6vw !important; }
  .last-banner img { height: clamp(240px, 68vh, 420px) !important; object-fit: cover !important; }
  .ag-hero { min-height: 0 !important; height: auto !important; padding-top: 66px !important; padding-bottom: 36px !important; }
  .ag-hero-scroll { display: none !important; }

  /* --- 7. Home-page blocks --- */
  .great-honor { margin: 22px 0 !important; padding: 22px 0 !important; }
  .great-honor .we-served { font-size: 26px !important; margin: 8px 0 14px !important; }
  .great-honor .great-number { font-size: 18px !important; margin: 8px 0 14px !important; }
  .ftSection { margin-top: 26px !important; }
  .ftSection .ftHead { margin-bottom: 20px !important; }
  .ftGrid { gap: 16px !important; }
  .ftCard { height: 300px !important; }
  .ftCard.wide { height: 280px !important; }
  .ftMore { margin-top: 24px !important; }
  #workshops { margin: 26px 0 30px !important; }
  .private-list { padding-top: 22px !important; margin-top: 22px !important; }
  .explore-more { margin: 22px 0 !important; }
}

/* ============================================================
   Desktop: the fixed left sidebar (width 200px) has a 2rem
   bottom-right corner radius. The cut-out used to show the white
   <body> underneath, because all content sat at x>=200 (main has
   padding-left:200px). Extend the full-width background/photo
   blocks leftwards under the sidebar so the corner reveals the
   real content scrolling past (image, colour, etc.) instead of
   white. padding-left:200px keeps inner content exactly in place.
   ============================================================ */
@media (min-width: 992px) {
  .pageBanner,
  .homeBanner,
  .contactBanner,
  .bannerPhotoGallery,
  .h1Banner,
  .great-honor,
  .last-banner,
  .ag-hero,
  .ag-route,
  .ag-open,
  .ag-itin,
  .ag-plates,
  .ag-notes,
  .ag-close {
    margin-left: -200px !important;
    width: calc(100% + 200px) !important;
    padding-left: 200px !important;
  }
  /* keep decorative overlay aligned to the visible content area */
  .pageBanner .transparent-text { left: 200px !important; width: calc(100% - 200px) !important; }
  /* last-banner holds a plain <img> in normal flow (not a CSS background),
     so extending the box alone leaves the img stranded in the 200px padding
     and the corner cut-out still shows white. Pull the photo left to fill it.
     Do NOT touch its height: the box height and inner .plan-trip must stay put. */
  .last-banner img { margin-left: -200px !important; max-width: calc(100% + 200px) !important; }
}
