/* Responsive adjustments for shared navigation and calls to action.
   Section-specific breakpoints remain next to their components in home.css. */
html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-stopped {
  overflow: hidden;
}

/* Keep the gallery's image reveal working when its optional GSAP CDN fails. */
#story.story-fallback .story-scatter-photo,
#story.story-fallback .story-slide {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transform: translateY(26px);
  transition: clip-path .9s cubic-bezier(.77, 0, .175, 1), opacity .65s ease, transform .8s cubic-bezier(.22, .68, 0, 1);
}

#story.story-fallback .story-scatter-photo.story-image-visible,
#story.story-fallback .story-slide.story-image-visible {
  clip-path: inset(0);
  opacity: 1;
  transform: translateY(0);
}

#story.story-fallback .story-scatter-photo img,
#story.story-fallback .story-slide img {
  transform: scale(1.07);
  transition: transform 1.1s cubic-bezier(.22, .68, 0, 1);
}

#story.story-fallback .story-scatter-photo.story-image-visible img,
#story.story-fallback .story-slide.story-image-visible img {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  #story.story-fallback .story-scatter-photo,
  #story.story-fallback .story-slide,
  #story.story-fallback .story-scatter-photo img,
  #story.story-fallback .story-slide img {
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1300px) {
  .nav .nav-schedule-mobile {
    margin-top: 12px;
  }

  .section-cta {
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {

  .section-cta,
  .footer-cta {
    padding: 13px 17px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  svg {
    max-width: 100%;
  }

  .site-header {
    min-height: 64px;
    padding: 8px 16px;
  }

  .wordmark { font-size: 17px; }
  .menu-toggle { width: 42px; height: 42px; flex-basis: 42px; }

  .nav {
    width: min(86vw, 360px);
    padding: 82px 24px 28px;
  }

  .nav a { padding-top: 15px; padding-bottom: 15px; }

  .launch-hero {
    min-height: 100svh;
    padding: 88px 20px 20px;
  }

  .launch-copy {
    min-height: calc(100svh - 88px);
    padding: 2svh 0 3svh;
  }
  .launch-title { font-size: clamp(48px, 13vw, 72px); }
  .launch-description { max-width: 31ch; font-size: 13px; line-height: 1.55; }
  .launch-actions { flex-wrap: wrap; gap: 12px 18px; }
  .launch-hero .cta { padding: 13px 17px; }

  .trust-strip { gap: 12px; }
  .trust-value { font-size: clamp(17px, 5vw, 22px); }
  .trust-detail { font-size: 9px; line-height: 1.45; }

  .community-highlight { padding: 58px 20px; }
  .community-copy h2 { font-size: clamp(40px, 11vw, 58px); }
  .community-facts { margin: 34px 0; }
  .community-facts > div { min-height: 92px; padding: 14px 9px; }
  .community-lower { gap: 24px; }
  .community-highlight > .section-cta { margin-top: 24px; }

  #story .story-heading { font-size: clamp(34px, 8.5vw, 54px); }
  html.js-ready #story .story-heading { top: max(78px, 10svh); }
  html.js-ready #story .story-scatter-photo { width: clamp(86px, 25vw, 122px); border-radius: 9px; }
  html.js-ready #story .story-scatter-photo.scatter-1,
  html.js-ready #story .story-scatter-photo.scatter-2 { top: 24%; }
  html.js-ready #story .story-scatter-photo.scatter-3,
  html.js-ready #story .story-scatter-photo.scatter-4 { top: 73%; }
  html.js-ready #story .story-carousel { clip-path: inset(35% 5% 29% 5% round 10px); }
  html.js-ready #story .story-controls { bottom: 37%; }
  #story .story-arrow { width: 42px; height: 42px; }

  .site-plan { gap: 24px; padding: 58px 20px 62px; }
  .site-plan-copy h2,
  .amenities-heading h2,
  .pricing-heading h2,
  .faq-heading h2 { font-size: clamp(40px, 11vw, 58px); }
  .site-plan-visual { max-height: 52svh; }
  .site-plan-legend { flex-wrap: wrap; }

  .district-intro {
    min-height: 54svh;
    padding: 70px 22px;
  }
  .district-intro-copy { font-size: clamp(42px, 11vw, 60px); }
  .plans-section { min-height: 0; }

  .amenities-section { padding: 58px 18px 26px; }
  .amenities-column { gap: 8px; }
  .amenity-card { min-height: 178px; padding: 13px 11px; }
  .amenity-card p { font-size: 10px; }
  .amenities-footer { gap: 14px; margin-top: 20px; }

  .pricing-section { padding: 60px 18px 30px; }
  .pricing-card { min-height: 0; padding: 22px 20px; }
  .pricing-card h3 { font-size: clamp(30px, 8vw, 42px); }

  .location-section {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }
  .location-map-frame {
    position: relative;
    inset: auto;
    height: clamp(230px, 43svh, 340px);
    flex: 0 0 auto;
  }
  .location-map-topline { top: 16px; left: 16px; right: 16px; gap: 8px; font-size: 7px; }
  .location-map-coordinates { top: auto; bottom: 12px; left: 12px; max-width: calc(100% - 24px); padding: 8px 10px; font-size: 6px; }
  .location-info {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    padding: 25px 20px 24px;
    border-top: 1px solid rgba(203, 181, 130, .2);
    border-left: 0;
    box-shadow: none;
  }
  .location-description { font-size: 12px; line-height: 1.6; }
  .location-detail { padding: 12px 0; }
  .location-detail small { font-size: 10px; line-height: 1.5; }
  .location-link { width: 100%; justify-content: center; }
  .location-index { margin-top: 16px; }

  .faq-section { padding: 58px 20px 52px; }
  .faq-layout { gap: 28px; }
  .faq-item summary { min-height: 66px; }
  .faq-answer p { padding-right: 36px; padding-left: 36px; }

  .footer-content { gap: 28px; padding: 28px 0; }
  .footer-nav { gap: 0 16px; }
  .footer-bottom { gap: 12px 18px; padding-top: 14px; }

  .whatsapp-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 48px;
    min-height: 48px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }

  .whatsapp-float svg { width: 23px; height: 23px; }
  .whatsapp-float span { display: none; }
}

@media (max-width: 420px) {
  .launch-hero { padding-right: 16px; padding-left: 16px; }
  .launch-title { font-size: clamp(44px, 12.5vw, 58px); }
  .trust-strip { gap: 8px; }
  .trust-label { font-size: 7px; }
  .trust-value { font-size: 18px; }
  .trust-detail { font-size: 8px; }
  .community-facts > div { min-height: 82px; }
  .amenities-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenity-card { min-height: 150px; }
  .location-map-topline span:first-child { max-width: 42%; }
  .footer-legal { gap: 12px; }
}

@media (min-width: 1301px) {
  .nav {
    position: absolute;
    left: 50%;
    width: max-content;
    justify-content: center;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(238, 226, 189, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
  }

  .brand-note {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #e8e1d0;
    font-size: 9px;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .nav a:hover,
  .nav a:focus-visible {
    transform: none;
    border-color: rgba(238, 226, 189, .14);
    background: rgba(203, 181, 130, .12);
    color: #fff9e9;
  }

  .nav-schedule-mobile {
    display: none;
  }

  .header-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
    padding: 13px 19px;
    border: 1px solid rgba(239, 213, 148, .9);
    border-radius: 999px;
    background: #b99d63;
    box-shadow: 0 0 0 1px rgba(239, 213, 148, .24), 0 0 18px rgba(203, 181, 130, .38);
    color: #17160f;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    animation: schedule-visit-glow 2.2s ease-in-out infinite;
  }

  .header-cta:hover,
  .header-cta:focus-visible {
    background: #cfb276;
    color: #17160f;
  }

  .header-cta {
    outline: 1px solid transparent;
    outline-offset: 2px;
  }

  .header-cta.is-active {
    outline-color: rgba(239, 213, 148, .9);
    outline-offset: 4px;
  }
}

@media (max-width: 1300px) {
  .header-cta {
    display: none;
  }
}

@media (min-width: 1301px) and (max-width: 1750px) {
  .site-header {
    gap: 14px;
    padding-right: 24px;
    padding-left: 24px;
    background-color: #153216;
  }

  .brand {
    gap: 14px;
  }

  .brand-note {
    display: none;
  }

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: .06em;
  }
}

/* Keep the centered desktop navigation clear of the brand and visit button
   on common laptop widths, while retaining the full pill navigation. */
@media (min-width: 1301px) and (max-width: 1480px) {
  .site-header { gap: 10px; padding-inline: 22px; }
  .brand { gap: 12px; }
  .brand-rule { width: 40px; }
  .nav { gap: 2px; }
  .nav a { padding: 8px 9px; font-size: 10px; letter-spacing: .045em; font-weight:500}
  .header-cta { gap: 8px; padding: 11px 14px; font-size: 11px; font-weight:800 }
}

@media (max-width: 1300px) {
  .nav {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 88px;
  }

  .nav a {
    flex: 0 0 auto;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}

@media (max-width: 760px) {
  .location-map-canvas {
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

/* Keep CTA text white across all sections and interaction states. */
.cta,
.header-cta,
.nav .nav-schedule-mobile,
.nav .nav-contact,
.plans-section .district-cta,
.pricing-section .pricing-action,
.site-plan .site-plan-link,
.location-section .location-link,
.faq-section,
.contact-submit,
.confirmation-primary {
  color: #fff;
}

.cta:hover,
.cta:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.nav .nav-schedule-mobile:hover,
.nav .nav-schedule-mobile:focus-visible,
.nav .nav-contact:hover,
.nav .nav-contact:focus-visible,
.plans-section .district-cta:hover,
.plans-section .district-cta:focus-visible,
.pricing-section .pricing-action:hover,
.pricing-section .pricing-action:focus-visible,
.site-plan .site-plan-link:hover,
.site-plan .site-plan-link:focus-visible,
.location-section .location-link:hover,
.location-section .location-link:focus-visible,
.faq-section,
.faq-section .faq-contact:focus-visible,
.contact-submit:hover,
.contact-submit:focus-visible,
.confirmation-primary:hover,
.confirmation-primary:focus-visible {
  color: #fff;
}
