/* ============================================================
   THE SPECTRUM — added lead surfaces: sticky bar + popup
   ------------------------------------------------------------
   Every value below comes from the page's own tokens (--paper,
   --ink, --paper-3, --r-sm, --r-lg, --shadow-l, --ease, --maxw,
   --gutter) and DM Sans is inherited via font:inherit. Inputs
   deliberately repeat the measurements of the page's own
   .field input so the three forms are indistinguishable.

   This file only ADDS classes. It never selects, overrides or
   re-declares anything belonging to the original theme.
   ============================================================ */

/* ══════════ shared field look (mirrors .field input) ══════════ */
.sc-stickybar input,
.sc-stickybar select,
.invite-form input[type="text"],
.invite-form input[type="tel"],
.invite-form input[type="email"] {
  width: 100%;
  padding: .78em .9em;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--paper-3);
  border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.sc-stickybar input::placeholder,
.invite-form input::placeholder { color: var(--ink-faint); }

.sc-stickybar input:focus,
.invite-form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .12);
}

/* ══════════ DESKTOP STICKY BAR ══════════ */
/* Hidden at 760px and below, where the theme's own .bar takes over,
   so the two never appear together. */
.sc-stickybar {
  position: fixed;
  inset: auto 0 0;
  z-index: 70;
  background: var(--paper);
  border-top: 1px solid var(--paper-3);
  box-shadow: 0 -4px 24px rgba(28, 43, 51, .17);
  padding: 12px var(--gutter);
}
@media (max-width: 760px) { .sc-stickybar { display: none; } }

.sc-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 26px);
}

.sc-call {
  flex: none;
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.sc-call span {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.sc-call:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1040px) { .sc-call { display: none; } }

.sc-stickybar form.sc-ajax-form { flex: 1; min-width: 0; }

/* Flex, never a fixed column count: sc-lead.js injects the OTP cell between
   the phone and email cells, and a grid with a set number of columns would
   push the Submit button on to a second row. Flex narrows the cells instead,
   so the bar keeps its height and everything stays on one line. */
.sc-fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(10px, 1.4vw, 16px);
}
.sc-cell { flex: 1 1 0; min-width: 0; }
.sc-cell-submit { flex: 0 0 auto; }

/* the theme's crayon button, sized for the bar */
.sc-stickybar .btn--crayon {
  margin: 0;
  padding: .62em 1.1em;
  font-size: .95rem;
  white-space: nowrap;
}

.sc-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: .76rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.sc-consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  padding: 0;
  accent-color: var(--ink);
  border-radius: 0;
}
.sc-consent label { cursor: pointer; }

/* Sticky bar only. The consent error is appended into .sc-consent, which is a
   flex row, so it rendered beside the label. Wrapping the row and giving the
   error a full-width basis drops it onto its own line under the checkbox, the
   same way the name / phone / email errors sit under their fields. */
.sc-stickybar .sc-consent { flex-wrap: wrap; }
.sc-stickybar .sc-consent .sc-err {
  flex: 0 0 100%;
  margin-top: 4px;
}

/* ══════════ POPUP (opens once, on load) ══════════ */
.invite-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 17, 17, .52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.invite-overlay.is-open { opacity: 1; pointer-events: auto; }

.invite-modal {
  position: relative;
  width: 100%;
  max-width: 452px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-l);
  padding: clamp(26px, 4vw, 38px);
  transform: translateY(14px) scale(.985);
  transition: transform .34s var(--ease);
}
.invite-overlay.is-open .invite-modal { transform: none; }

.invite-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.invite-close:hover { color: var(--ink); background: var(--paper-2); }
.invite-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.invite-title {
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: var(--ink);
  /* Centred, with symmetric side padding so the heading clears the close
     button on both sides. The bottom margin absorbs the spacing the
     removed sub-line used to provide. */
  text-align: center;
  padding: 0 34px;
}
.invite-sub {
  margin: 0 0 20px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.invite-form { display: grid; gap: 13px; }
.lead-field { min-width: 0; }
.lead-field label {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.lead-field-consent { margin-top: 2px; }
.invite-optin {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.invite-optin input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  padding: 0;
  accent-color: var(--ink);
}

.invite-form .btn--crayon { margin: 1.2em auto .4em; display: block; }

/* intl-tel-input sits inside .lead-field / .sc-cell and must fill it */
.lead-field .iti,
.sc-cell .iti { width: 100%; display: block; }


/* ══════════ phone widget width ══════════ */
/* intl-tel-input wraps the input in .iti, which is inline-block and therefore
   narrower than the field on mobile. The page's own .field needs this as much
   as the two added forms do. */
.field .iti { width: 100%; display: block; }

/* ══════════ form submit buttons ══════════ */
/* A bordered button that fills on hover, in the page's own ink/paper. Scoped to
   the three lead forms only, so the theme's other crayon-oval buttons — the
   hero CTAs and the mobile bar — keep their original look untouched. */
.sc-submit-btn,
#leadForm #submitBtn {
  position: relative;
  display: inline-block;
  padding: .74em 1.9em;
  font: inherit;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  margin: 0;
  transition:
    background .26s var(--ease),
    color .26s var(--ease),
    box-shadow .26s var(--ease),
    transform .18s var(--ease);
}
.sc-submit-btn span,
#leadForm #submitBtn span { position: relative; z-index: 1; }

/* the crayon oval would fight the border on these three buttons only */
#leadForm #submitBtn .crayon-oval { display: none; }

.sc-submit-btn:hover,
#leadForm #submitBtn:hover {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-s);
  transform: translateY(-1px);
}
.sc-submit-btn:active,
#leadForm #submitBtn:active { transform: translateY(0); box-shadow: none; }

.sc-submit-btn:focus-visible,
#leadForm #submitBtn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sc-submit-btn[disabled],
#leadForm #submitBtn[disabled] {
  opacity: .55;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* full width in the popup, natural width in the bar */
.invite-form .sc-submit-btn { width: 100%; margin-top: 6px; }
.sc-stickybar .sc-submit-btn { padding: .68em 1.5em; }

@media (max-width: 760px) {
  #leadForm #submitBtn { width: 100%; }
}

/* ══════════ toast notifications ══════════ */
/* ohsnap.css ships a red fill; this restates it in the page's ink/paper. Red is
   kept only as a 3px edge, the same way .field .err uses a red mark beside ink
   type rather than colouring the whole message. Loaded after ohsnap.css, and
   #ohsnap .alert outranks its .alert / .alert-red rules. */
#ohsnap {
  position: fixed;
  right: 24px;
  bottom: 118px;            /* clears the desktop sticky enquiry bar */
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  max-width: min(420px, calc(100vw - 32px));
  pointer-events: none;     /* never blocks the form underneath */
}

#ohsnap .alert {
  margin: 0;
  float: none;
  clear: none;
  max-width: 100%;
  padding: 14px 18px;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-left: 3px solid #EF3734;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-m);
  pointer-events: auto;
}

/* every colour ohSnap can be called with resolves to the same ink panel */
#ohsnap .alert-red,
#ohsnap .alert-green,
#ohsnap .alert-blue,
#ohsnap .alert-yellow,
#ohsnap .alert-orange {
  color: var(--paper);
  background: var(--ink);
}
#ohsnap .alert-green { border-left-color: #1C7C4A; }

@media (max-width: 760px) {
  #ohsnap {
    right: 16px;
    left: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));  /* clears the mobile bar */
    max-width: none;
    align-items: stretch;
  }
  #ohsnap .alert { font-size: .86rem; padding: 13px 16px; }
}

/* ══════════ banner slider (replaces the hero) ══════════ */
/* The hero stays in the DOM - the nav brand links to #top and two scripts hold
   references to it - but is hidden and its 240vh scroll stage collapsed. */
.hero--hidden { display: none !important; }

/* Same rules as the Forestview LP. padding-top clears the fixed nav: this
   header is 14px + a 166px-wide 380x132 logo + 14px = ~86px on desktop and
   ~74px once the logo clamps down, so Forestview's own 84/90 would leave a
   gap here. */
#banner-section {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  padding-top: 86px;
}
@media (max-width: 1024px) {
  #banner-section { padding-top: 74px; }
}

/* The slide is just the picture; the page's global img rule does the scaling. */
#banner-section .swiper-slide img { width: 100%; height: auto; display: block; }

/* ══════════ section slider arrows ══════════ */
/* One arrow style for the amenities strip and the testimonial films: a thin
   rule with a head, in ink, nothing boxed. */
.nav-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.nav-arrow svg {
  width: 24px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-arrow:hover { opacity: .62; }
#amenPrev:hover, #filmPrev:hover { transform: translateX(-3px); }
#amenNext:hover, #filmNext:hover { transform: translateX(3px); }
.nav-arrow:active { transform: none; }
.nav-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* amenities: below the strip, breathing room above and below */
.amen-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: clamp(28px, 4vw, 44px) 0 clamp(8px, 1.6vw, 18px);
}

/* ══════════ testimonials: one film below 768px ══════════ */
.films-nav { display: none; }

@media (max-width: 767px) {
  .films { gap: 0; }
  .films .film-card[data-pos]:not([data-pos="0"]) { display: none; }
  .films .film-card[data-pos="0"] { flex: 0 0 100%; width: 100%; }
  .films-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 22px 0 2px;
  }
}
/* ══════════ testimonials carousel below 768px ══════════ */
.films-owl { display: none; }

@media (max-width: 767px) {
  .films { display: none; }
  .films-owl {
    display: block;
    margin-top: clamp(28px, 4vw, 52px);
  }
  .films-owl .film-card--owl {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: 0 2px 3px rgba(17, 17, 17, .06), 0 24px 54px -22px rgba(17, 17, 17, .34);
  }
  .films-owl .film-card--owl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* ══════════ owl cards: show the play badge ══════════ */
/* The theme gates it on [data-pos="0"], which only the desktop slots carry. */
.films-owl .film-card--owl .film-card__play { display: grid; }
.films-owl .film-card--owl:hover .film-card__play i { transform: scale(1.08); }

/* ══════════ ring legend bullets ══════════ */
/* The theme sizes these 9 / 13 / 17px so they echo the three rings of the orbit
   diagram, but at that scale the graduation just reads as three bullets someone
   forgot to make the same size. Equalised at every width to the 12px the colour
   legend directly below already uses. */
.okey--band li:nth-child(1) i,
.okey--band li:nth-child(2) i,
.okey--band li:nth-child(3) i { width: 12px; height: 12px; }
