/* FirstLight365 Outdoors — Mobile + Tablet Responsive Layer
   Load AFTER styles.css
   Designed as additive overrides only.
*/

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

.coming-soon {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.bg-fill,
.bg-main,
.shade,
.light,
.mist,
.grain {
  position: absolute;
  inset: 0;
}

.bg-fill,
.bg-main {
  background-repeat: no-repeat;
}

.content {
  position: relative;
  z-index: 10;
  width: min(92vw, 760px);
  margin-inline: auto;
  padding-inline:
    max(18px, env(safe-area-inset-left))
    max(18px, env(safe-area-inset-right));
  text-align: center;
}

.eyebrow,
.coming,
.tagline,
.mission,
blockquote,
h1 {
  overflow-wrap: anywhere;
}

#coming-title {
  font-size: clamp(3.6rem, 10vw, 8.5rem);
  line-height: .9;
}

.eyebrow {
  font-size: clamp(.72rem, 1.5vw, .95rem);
}

.coming {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

.tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.content > blockquote {
  max-width: 34rem;
  margin-inline: auto;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  min-height: 46px;
  touch-action: manipulation;
}

.footer-note {
  z-index: 10;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.modal {
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.modal__panel {
  width: min(100%, 760px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal__close {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.modal__contact-btn,
.modal__link {
  min-height: 44px;
  touch-action: manipulation;
}

@media (max-width: 1024px) {
  .coming-soon {
    display: flex;
    align-items: center;
  }

  .content {
    width: min(88vw, 680px);
    padding-top: clamp(34px, 6vh, 70px);
    padding-bottom: clamp(88px, 12vh, 126px);
  }

  .bg-main {
    background-size: cover;
    background-position: center center;
  }

  .actions {
    margin-inline: auto;
    max-width: 620px;
  }

  .btn {
    flex: 1 1 230px;
    max-width: 290px;
  }

  .modal__panel {
    padding: 42px 38px 38px;
  }
}

@media (max-width: 680px) {
  .coming-soon {
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .content {
    width: 100%;
    padding-top:
      max(28px, calc(env(safe-area-inset-top) + 18px));
    padding-bottom:
      max(110px, calc(env(safe-area-inset-bottom) + 96px));
  }

  #coming-title {
    font-size: clamp(3.35rem, 18vw, 5.35rem);
    letter-spacing: -.02em;
  }

  .eyebrow {
    margin-bottom: 8px;
    letter-spacing: .16em;
  }

  .coming {
    margin-top: 14px;
  }

  .tagline {
    margin-top: 7px;
  }

  .content > blockquote {
    width: min(90%, 28rem);
    margin-top: 20px;
  }

  .content > blockquote cite {
    display: block;
    margin-top: 6px;
  }

  .actions {
    width: min(100%, 420px);
    margin: 24px auto 0;
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: none;
    min-height: 50px;
    padding-inline: 18px;
  }

  .loader {
    width: min(88%, 340px);
    margin-inline: auto;
  }

  .mission {
    width: min(90%, 32rem);
    margin-inline: auto;
    line-height: 1.55;
  }

  .mission br {
    display: none;
  }

  .footer-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: clamp(.58rem, 2.6vw, .72rem);
    letter-spacing: .12em;
    white-space: nowrap;
  }

  .footer-note i {
    flex: 0 0 24px;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal__panel,
  .modal__panel--compact {
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 820px);
    border-radius: 18px 18px 0 0;
    padding:
      48px
      max(22px, env(safe-area-inset-right))
      max(28px, calc(env(safe-area-inset-bottom) + 18px))
      max(22px, env(safe-area-inset-left));
  }

  .modal__panel h2 {
    font-size: clamp(1.8rem, 8vw, 2.55rem);
    line-height: 1.05;
  }

  .modal__panel p {
    line-height: 1.65;
  }

  .modal__quote {
    font-size: clamp(1.15rem, 5vw, 1.45rem);
  }

  .modal__contact-btn,
  .modal__link {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .content {
    padding-inline:
      max(14px, env(safe-area-inset-left))
      max(14px, env(safe-area-inset-right));
  }

  #coming-title {
    font-size: clamp(3.05rem, 17vw, 4.15rem);
  }

  .footer-note {
    gap: 7px;
    letter-spacing: .08em;
  }

  .footer-note i {
    flex-basis: 16px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .coming-soon {
    overflow-y: auto;
  }

  .content {
    padding-top: 28px;
    padding-bottom: 78px;
  }

  #coming-title {
    font-size: clamp(3rem, 12vh, 5rem);
  }

  .ornament {
    margin-block: 10px;
  }

  .content > blockquote {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .actions {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist,
  .light,
  .grain,
  .loader__line span {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   v2 — SHORT LANDSCAPE PHONE FIX
   Tuned for devices in the Galaxy S9+/S-series landscape class
   (roughly 700–900 CSS px wide and 320–430 CSS px tall).
   ========================================================================== */

@media (orientation: landscape) and (max-height: 430px) and (max-width: 900px) {

  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
  }

  .coming-soon {
    display: block !important;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Keep the cinematic art full-screen without allowing the responsive
     flex centering rules to squash the composition. */
  .bg-fill,
  .bg-main,
  .shade,
  .light,
  .mist,
  .grain {
    position: fixed;
    inset: 0;
  }

  .bg-main {
    background-size: cover !important;
    background-position: center 46% !important;
  }

  /* Compact presentation mode for very short landscape viewports. */
  .content {
    width: min(76vw, 610px) !important;
    max-width: 610px;
    margin: 0 auto;
    padding:
      max(10px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(40px, calc(env(safe-area-inset-bottom) + 32px))
      max(16px, env(safe-area-inset-left)) !important;
  }

  .ornament {
    display: none !important;
  }

  .eyebrow {
    margin: 0 0 2px !important;
    font-size: .62rem !important;
    letter-spacing: .17em !important;
    line-height: 1.05 !important;
  }

  #coming-title {
    margin: 0 !important;
    font-size: clamp(2.8rem, 13vh, 4.1rem) !important;
    line-height: .86 !important;
    letter-spacing: -.025em !important;
  }

  .coming {
    margin: 4px 0 0 !important;
    font-size: .82rem !important;
    line-height: 1.05 !important;
    letter-spacing: .15em !important;
  }

  .tagline {
    margin: 4px 0 0 !important;
    font-size: .82rem !important;
    line-height: 1.1 !important;
  }

  .content > blockquote {
    width: min(100%, 420px) !important;
    margin: 7px auto 0 !important;
    font-size: .92rem !important;
    line-height: 1.12 !important;
  }

  .content > blockquote cite {
    display: inline-block !important;
    margin: 0 0 0 7px !important;
    font-size: .66rem !important;
  }

  .actions {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    margin: 9px auto 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .btn {
    width: 100% !important;
    max-width: none !important;
    min-height: 38px !important;
    padding: 8px 11px !important;
    font-size: .72rem !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  /* Decorative/progress material is the first thing to yield on short screens. */
  .loader {
    display: none !important;
  }

  .mission {
    width: min(100%, 500px) !important;
    margin: 7px auto 0 !important;
    font-size: .68rem !important;
    line-height: 1.2 !important;
    letter-spacing: .035em !important;
  }

  .mission br {
    display: none !important;
  }

  .footer-note {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 26px;
    padding:
      4px max(16px, env(safe-area-inset-right))
      max(5px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left)) !important;
    gap: 8px !important;
    font-size: .56rem !important;
    letter-spacing: .10em !important;
    background:
      linear-gradient(180deg, transparent, rgba(4,8,8,.72) 44%, rgba(4,8,8,.90));
  }

  .footer-note i {
    flex: 0 0 20px !important;
  }

  /* Landscape phone dialogs should be centered, shallow, and scroll internally. */
  .modal {
    display: grid !important;
    place-items: center !important;
    padding:
      max(8px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left)) !important;
  }

  .modal__panel,
  .modal__panel--compact {
    width: min(88vw, 720px) !important;
    max-width: 720px !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 10px !important;
    padding: 34px 30px 24px !important;
  }

  .modal__panel h2 {
    font-size: clamp(1.45rem, 5vw, 2.05rem) !important;
    line-height: 1.03 !important;
  }

  .modal__panel p {
    margin-block: 9px !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
  }

  .modal__eyebrow {
    font-size: .64rem !important;
  }

  .modal__quote {
    margin-block: 12px !important;
    font-size: 1rem !important;
  }

  .modal__close {
    top: 7px !important;
    right: 9px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* Slightly taller landscape phones/tablets keep more of the atmospheric detail. */
@media (orientation: landscape) and (min-height: 431px) and (max-height: 600px) and (max-width: 1024px) {
  .content {
    width: min(78vw, 680px);
    padding-top: 22px !important;
    padding-bottom: 72px !important;
  }

  #coming-title {
    font-size: clamp(3.4rem, 14vh, 5.4rem);
  }

  .actions {
    flex-direction: row;
  }

  .btn {
    min-height: 44px;
  }
}
