/* ============================================================
   KOSHER HOMES BY VILLATEL — CHROME STYLESHEET
   Owns: brand tokens, base resets, header/nav, mobile drawer,
   book panel, lead form, footer, newsletter, floating CTA.
   Loaded LAST on every page so the kit wins on chrome rules.
   NEVER redeclare these classes in a page body stylesheet.
   ============================================================ */

:root {
  /* Brand palette — exact, from the HBV guidelines. No alterations. */
  --deep-teal: #153442;
  --stone-taupe: #AFA085;
  /* Accessible ink counterpart of Stone Taupe, for small uppercase labels on the
     LIGHT surfaces. #AFA085 clears 4.5:1 only on Deep Teal, so brand taupe stays
     ink-on-teal (nav, footer) and decorative rules; light surfaces use this. */
  --taupe-ink: #665C4B;
  --seashell-white: #FFFFFF;
  --mist-blue: #98C1D8;
  --seafoam: #D1DBD6;

  --teal-900: #0d232c;
  --teal-700: #1d4453;
  --taupe-100: #ece7dc;
  --seafoam-50: #eef2f0;
  --line: #e3e7e6;
  --line-dark: rgba(255, 255, 255, 0.16);

  --bg: var(--seashell-white);
  --bg-tint: var(--seafoam-50);

  --fg1: #153442;
  --fg2: #46555d;
  --fg3: #525d64;
  --fg-on-dark: #ffffff;
  --fg-on-dark-2: rgba(255, 255, 255, 0.72);
  --fg-on-dark-3: rgba(255, 255, 255, 0.52);

  /* Font tokens are single-source-of-truth HERE. Never redeclare in a page CSS. */
  --font-display: "Archivo Expanded", "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(21,52,66,.06), 0 1px 3px rgba(21,52,66,.05);
  --shadow-md: 0 4px 16px rgba(21,52,66,.08);
  --shadow-lg: 0 18px 48px rgba(21,52,66,.14);

  --ease-standard: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 140ms;
  --dur: 240ms;

  --gutter: clamp(20px, 5vw, 56px);
  color-scheme: light;
  --maxw: 1160px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img, svg, video { max-width: 100%; }
a { color: var(--deep-teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: .03em; color: var(--fg1); margin: 0; text-wrap: pretty; }
p { margin: 0; }

/* Custom elements must not add layout of their own */
kosher-header, kosher-footer, kosher-lead-form, kosher-fab { display: contents; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--deep-teal);
  font-family: var(--font-body); font-size: 14px;
  padding: 12px 18px; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--mist-blue); outline-offset: 2px;
}

/* ---------- buttons (shared by chrome + page bodies) ---------- */
.btn {
  font-family: var(--font-body); font-weight: 500;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius-pill); padding: 15px 30px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px;
  transition: background var(--dur) var(--ease-standard), color var(--dur) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn--sm { font-size: 13px; padding: 12px 22px; }
.btn--primary { background: var(--deep-teal); color: #fff; }
.btn--primary:hover { background: var(--teal-900); }
.btn--white { background: #fff; color: var(--deep-teal); }
.btn--white:hover { background: rgba(255,255,255,.86); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--ghost { background: transparent; color: var(--deep-teal); border-color: var(--deep-teal); }
.btn--ghost:hover { background: var(--deep-teal); color: #fff; }

/* ============================================================
   HEADER  (<kosher-header>)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--deep-teal);
  border-bottom: 1px solid var(--line-dark);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--gutter);
  max-width: 1440px; margin: 0 auto; min-width: 0;
}
.nav__brand { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; min-height: 44px; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { height: 46px; width: auto; display: block; }
.nav__brand-tag {
  font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .26em;
  text-transform: uppercase; color: var(--stone-taupe); white-space: nowrap;
  border-left: 1px solid var(--line-dark); padding-left: 14px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a, .nav__dd-trigger {
  font-family: var(--font-body); font-size: 13px; font-weight: 400;
  letter-spacing: .16em; line-height: 1;
  text-transform: uppercase; color: rgba(255,255,255,.86);
  text-decoration: none;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center;
  position: relative; padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.nav__links a::after, .nav__dd-trigger::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 0; height: 1px; background: currentColor;
  transition: width .3s var(--ease-standard), left .3s var(--ease-standard);
}
.nav__links a:hover, .nav__dd-trigger:hover { color: #fff; text-decoration: none; }
.nav__links a:hover::after,
.nav__dd-trigger:hover::after,
.nav__item.is-open .nav__dd-trigger::after { width: 100%; left: 0; }
.nav__links a[aria-current="page"], .nav__dd-trigger[data-current="true"] { color: #fff; }
.nav__links a[aria-current="page"]::after, .nav__dd-trigger[data-current="true"]::after { width: 100%; left: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item.is-open { z-index: 30; }
.nav__dd-trigger { gap: 6px; }
.nav__caret { font-size: 12px; line-height: 1; opacity: .6; transition: transform var(--dur-fast) var(--ease-standard); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }
.nav__dd {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 240px; display: none; flex-direction: column;
  z-index: 40; isolation: isolate;
}
.nav__item.is-open .nav__dd { display: flex; }
.nav__dd a, .nav__dd span {
  font-family: var(--font-body); font-size: 14px; color: var(--fg1);
  text-decoration: none; padding: 10px 14px; border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-standard);
}
.nav__dd a { text-transform: none; letter-spacing: normal; }
.nav__dd a:hover { background: var(--bg-tint); text-decoration: none; }
.nav__dd a::after { display: none; }
.nav__dd span { color: var(--fg3); cursor: default; }
.nav__dd em { font-style: normal; color: var(--fg3); font-size: 12px; }
.nav__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav__phone { font-family: var(--font-body); font-size: 15px; letter-spacing: .04em; color: rgba(255,255,255,.82); text-decoration: none; }
.nav__phone:hover { color: #fff; }
.nav__burger {
  display: none; background: none; border: 0; cursor: pointer; padding: 0;
  width: 44px; height: 44px; flex: 0 0 44px;
  align-items: center; justify-content: center; flex-direction: column;
}
.nav__burger span { display: block; width: 22px; height: 1.5px; background: #fff; }
.nav__burger span + span { margin-top: 5px; }

/* ---------- mobile drawer ---------- */
.nav-drawer {
  display: none; background: var(--deep-teal);
  border-top: 1px solid var(--line-dark);
  padding: 8px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  flex-direction: column;
  max-height: calc(100dvh - 64px); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a, .nav-drawer > span {
  font-family: var(--font-body); font-size: 16px; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
}
.nav-drawer__group {
  font-family: var(--font-body); font-size: 12px !important; letter-spacing: .2em;
  text-transform: uppercase; color: var(--stone-taupe) !important;
  padding: 16px 0 6px !important; border-bottom: 0 !important;
}
.nav-drawer__sub {
  font-size: 15.5px !important; letter-spacing: 0 !important; text-transform: none !important;
  color: rgba(255,255,255,.82) !important; padding: 11px 0 11px 14px !important; border-bottom: 0 !important;
}
.nav-drawer__sub.is-soon { color: rgba(255,255,255,.4) !important; }
.nav-drawer__cta { margin-top: 20px; align-self: flex-start; }

@media (max-width: 980px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__inner { gap: 12px; padding: 12px var(--gutter); }
  .nav__brand { gap: 10px; }
  .nav__brand img { height: 44px; }
  .nav__brand-tag { font-size: 12px; letter-spacing: .18em; padding-left: 10px; }
  .nav__actions { gap: 8px; }
}

/* Below 700px the header keeps only brand + burger — Book Now lives in the
   drawer and in the floating CTA, so it never squeezes the menu off-screen. */
@media (max-width: 700px) {
  #bookNowBtnHero { display: none; }
}

/* ---------- book panel (HBV search/booking UI) ---------- */
.book-panel { display: none; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-md); }
.book-panel.is-open { display: block; }
/* Desktop: the panel is an inline drop-down band — scrim and header are mobile-only. */
.book-panel__scrim, .book-panel__head { display: none; }
.book-panel__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter) 26px;
  display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 0;
  align-items: stretch;
}
.book-field { position: relative; border: 1px solid var(--line); border-right-width: 0; }
.book-field[data-field="guests"] { border-right-width: 1px; }
.book-field.is-active { z-index: 20; }
.book-field__trigger {
  width: 100%; height: 100%; background: transparent; border: 0;
  padding: 14px 18px; display: flex; flex-direction: column; gap: 4px;
  text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease-standard);
  touch-action: manipulation;
}
@media (hover: hover) { .book-field__trigger:hover { background: var(--bg-tint); } }
.book-field__label {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--taupe-ink);
}
.book-field__value { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-field__display { font-family: var(--font-body); font-size: 15px; color: var(--fg1); }
.book-field__display.is-placeholder { color: var(--fg3); }
.chevron {
  width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 1px solid var(--fg3); border-bottom: 1px solid var(--fg3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease-standard);
}
.book-field.is-active .chevron { transform: rotate(225deg) translateY(-2px); }
.book-panel__submit { margin-left: 18px; align-self: center; white-space: nowrap; }

.book-popover {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px; display: none; box-shadow: var(--shadow-lg); z-index: 20;
}
.book-field.is-active .book-popover { display: block; }
.book-popover--cal { width: min(92vw, 620px); }

/* destination list */
.dest-list { list-style: none; margin: 0; padding: 0; }
.dest-list__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 14px; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard); touch-action: manipulation;
}
.dest-list__item:hover, .dest-list__item.is-selected { background: var(--bg-tint); }
.dest-list__name { font-family: var(--font-body); font-size: 15px; color: var(--fg1); }
.dest-list__sub { font-family: var(--font-body); font-size: 12.5px; color: var(--fg3); }

/* calendar */
.calendar__state {
  font-family: var(--font-body); font-size: 13px; letter-spacing: .04em;
  color: var(--fg2); text-align: center; padding: 8px 6px 10px;
}
/* Arrows only — the month names live on each .calendar__month-label below, so the
   nav overlaps that row rather than adding an empty band above it. */
.calendar__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: -34px; }
.calendar__nav-btn {
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--deep-teal);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard); touch-action: manipulation;
}
.calendar__nav-btn:hover:not(:disabled) { background: var(--deep-teal); color: #fff; }
.calendar__nav-btn:disabled { opacity: .25; cursor: not-allowed; }
.calendar__months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 12px; }
.calendar__month-label {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--fg2);
  text-align: center; padding-bottom: 10px; line-height: 20px;
}
.calendar__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--taupe-ink); text-align: center;
}
.calendar__weekdays div { padding: 6px 0; }
.calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar__day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; color: var(--fg1);
  cursor: pointer; user-select: none; position: relative; background: transparent;
  border: 0; padding: 0; touch-action: manipulation;
}
.calendar__day > span { position: relative; z-index: 2; pointer-events: none; }
.calendar__day::before {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: transparent; transition: background var(--dur-fast) var(--ease-standard); z-index: 1;
}
.calendar__day:hover:not(.is-disabled):not(.is-empty):not(.is-selected)::before { background: var(--bg-tint); }
.calendar__day.is-disabled { color: rgba(21,52,66,.28); cursor: not-allowed; }
.calendar__day.is-empty { cursor: default; }
.calendar__day.is-today > span { font-weight: 600; }
.calendar__day.is-today::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--stone-taupe); z-index: 2;
}
.calendar__day.is-in-range { background: var(--seafoam); }
.calendar__day.is-selected::before { background: var(--deep-teal); }
.calendar__day.is-selected > span { color: #fff; }
.calendar__day.is-selected.is-today::after { background: var(--mist-blue); }
.calendar__day.is-range-start { background: linear-gradient(90deg, transparent 50%, var(--seafoam) 50%); }
.calendar__day.is-range-end { background: linear-gradient(270deg, transparent 50%, var(--seafoam) 50%); }
.calendar__day.is-range-start.is-range-end { background: transparent; }
.calendar__footer {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.calendar__clear {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-ink);
  background: none; border: 0; border-bottom: 1px solid var(--taupe-ink);
  padding-bottom: 2px; cursor: pointer; touch-action: manipulation;
}
.calendar__clear:hover { color: var(--deep-teal); border-color: var(--deep-teal); }
.popover-done {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: var(--deep-teal); border: 0; border-radius: var(--radius-pill);
  padding: 12px 22px; min-height: 44px; cursor: pointer; touch-action: manipulation;
}
.popover-done:hover { background: var(--teal-900); }

/* guests */
.guest-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 8px; }
.guest-row + .guest-row { border-top: 1px solid var(--line); }
.guest-row__label { font-family: var(--font-body); font-size: 15px; color: var(--fg1); display: block; }
.guest-row__sublabel { font-family: var(--font-body); font-size: 12.5px; color: var(--fg3); margin-top: 2px; display: block; }
.counter { display: flex; align-items: center; gap: 10px; }
.counter__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--deep-teal); font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard); touch-action: manipulation;
}
.counter__btn:hover:not(:disabled) { background: var(--deep-teal); border-color: var(--deep-teal); color: #fff; }
.counter__btn:disabled { opacity: .3; cursor: not-allowed; }
.counter__value { min-width: 22px; text-align: center; font-family: var(--font-body); font-size: 15px; color: var(--fg1); }

/* ---------- mobile: the book panel becomes a dismissable popup ----------
   Inline it filled most of the viewport and stayed put while scrolling.
   As a top-anchored rounded card it can be closed by the X, the scrim, or Escape. */
@media (max-width: 900px) {
  .book-panel.is-open {
    position: fixed; inset: 0; z-index: 120;
    background: transparent; border-top: 0; box-shadow: none;
    display: block; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 12px 12px calc(28px + env(safe-area-inset-bottom));
  }
  .book-panel__scrim {
    display: block; position: fixed; inset: 0;
    background: rgba(11,26,33,.52);
    animation: bookFade var(--dur) var(--ease-standard);
  }
  .book-panel.is-open .book-panel__inner {
    position: relative; z-index: 1;
    max-width: 520px; margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0 16px 18px;
    grid-template-columns: 1fr; gap: 10px;
    animation: bookRise var(--dur) var(--ease-standard);
  }
  .book-panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 0 12px; border-bottom: 1px solid var(--line);
  }
  .book-panel__title {
    font-family: var(--font-display); font-weight: 300; font-size: 15px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--fg1);
  }
  .book-panel__close {
    width: 44px; height: 44px; flex: 0 0 44px; margin-right: -10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; cursor: pointer; color: var(--fg1);
    font-size: 26px; line-height: 1; touch-action: manipulation;
  }
  @keyframes bookRise { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes bookFade { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .book-panel.is-open .book-panel__inner, .book-panel__scrim { animation: none; }
  }
  body.book-open { overflow: hidden; }

  /* Each field is its own fully-closed rounded box, like the CTAs. */
  .book-panel__inner { grid-template-columns: 1fr; }
  .book-field, .book-field[data-field="guests"] {
    border-width: 1px; border-radius: var(--radius-sm); overflow: hidden;
    align-self: start;
  }
  /* height:100% against a stretched grid row made the trigger cover the whole
     field in iOS Safari, pushing the popover outside the clipped box. */
  .book-field__trigger { height: auto; }
  .book-panel__submit { margin: 4px 0 0; justify-content: center; width: 100%; }
  /* Popovers flow inline inside their field — a floating layer would be clipped. */
  .book-panel.is-open .book-field.is-active .book-popover {
    position: static; inset: auto; width: auto; min-width: 0;
    border-width: 1px 0 0; border-radius: 0; box-shadow: none;
    padding: 6px 14px 12px;
  }
  .book-popover--cal { width: auto; }
  .calendar__months { grid-template-columns: 1fr; gap: 0; }
  .calendar__month + .calendar__month { display: none; }
}

/* ============================================================
   LEAD FORM  (<kosher-lead-form>)
   ============================================================ */
.lead {
  background: var(--bg-tint);
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.lead--dark { background: var(--deep-teal); }
.lead__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.lead__eyebrow {
  font-family: var(--font-body); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--taupe-ink);
}
.lead--dark .lead__eyebrow { color: var(--stone-taupe); }
.lead__heading {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.15;
  margin: 16px 0 0; text-wrap: balance;
}
.lead--dark .lead__heading { color: #fff; }
.lead__form { margin-top: 40px; text-align: left; }
.lead__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.lead__form input, .lead__form textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--fg1);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 15px; width: 100%;
}
.lead--dark .lead__form input, .lead--dark .lead__form textarea { background: transparent; color: #fff; border-color: var(--line-dark); }
.lead--dark .lead__form ::placeholder { color: var(--fg-on-dark-3); }
.lead__form textarea { margin-top: 16px; resize: vertical; }
.lead__actions { display: flex; justify-content: center; margin-top: 28px; }
.lead__actions button[disabled] { opacity: .55; pointer-events: none; }
.lead__fine {
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.55;
  color: var(--fg3); text-align: center; text-wrap: pretty;
  max-width: 560px; margin: 18px auto 0;
}
.lead__fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lead--dark .lead__fine { color: var(--fg-on-dark-3); }
.lead__thanks {
  margin-top: 40px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-md); padding: 40px; text-align: center;
}
.lead--dark .lead__thanks { background: transparent; border-color: var(--line-dark); }
.lead__thanks-title { font-family: var(--font-display); font-weight: 300; font-size: 26px; letter-spacing: .02em; color: var(--fg1); }
.lead--dark .lead__thanks-title { color: #fff; }
.lead__thanks-text { font-family: var(--font-body); font-size: 15.5px; color: var(--fg2); margin-top: 10px; }
.lead--dark .lead__thanks-text { color: var(--fg-on-dark-2); }
.is-hidden { display: none !important; }

/* ============================================================
   FOOTER  (<kosher-footer>)
   ============================================================ */
.footer { background: var(--teal-900); color: #fff; }
.footer__news { border-bottom: 1px solid var(--line-dark); }
.footer__news-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 36px; justify-content: space-between;
}
.footer__news-copy { flex: 1 1 380px; max-width: 520px; }
.footer__eyebrow {
  font-family: var(--font-body); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--stone-taupe);
}
.footer__news-copy h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; color: #fff; margin-top: 14px; }
.footer__news-form { flex: 1 1 320px; max-width: 440px; }
.footer__news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__news-row input {
  flex: 1 1 200px; font-family: var(--font-body); font-size: 16px; color: #fff;
  background: transparent; border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm); padding: 13px 14px;
}
.footer__news-row input::placeholder { color: var(--fg-on-dark-3); }
.footer__fine { font-family: var(--font-body); font-size: 12.5px; line-height: 1.5; color: var(--fg-on-dark-3); margin-top: 12px; }
.footer__fine a { color: var(--fg-on-dark-2); text-decoration: underline; }
.footer__cols {
  max-width: var(--maxw); margin: 0 auto; padding: 56px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 56px;
}
.footer__brand { flex: 1 1 260px; }
.footer__brand img { height: 84px; width: auto; }
.footer__brand p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--fg-on-dark-3); margin-top: 20px; max-width: 260px; }
.footer__col { flex: 0 1 auto; min-width: 155px; }
.footer__col-head {
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--stone-taupe); margin-bottom: 18px;
}
.footer__links { display: flex; flex-direction: column; gap: 6px; }
.footer__links a { padding: 5px 0; }
.footer a { font-family: var(--font-body); font-size: 14.5px; color: var(--fg-on-dark-2); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { border-top: 1px solid var(--line-dark); }
.footer__legal-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.footer__copy { font-family: var(--font-body); font-size: 12.5px; color: var(--fg-on-dark-3); }
.footer__legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal-links a { padding: 5px 0; }

/* ---------- floating CTA (<kosher-fab>) ----------
   The Homes by Villatel round icon-button (`.icon-btn`) treatment, scaled to a
   floating 56px target: circle, thin 1.4-stroke line icon, no visible label. */
.fab {
  position: fixed; z-index: 70;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--deep-teal); color: #fff; text-decoration: none;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-standard), transform var(--dur) var(--ease-standard), background var(--dur) var(--ease-standard), visibility var(--dur);
}
.fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab:hover { background: var(--teal-900); color: #fff; text-decoration: none; }

.gtm-noscript { display: none; visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- high-contrast & forced-colors ---------- */
@media (forced-colors: active) {
  .card, .panel, .price-table, .rail-btn, .counter__btn, .book-field { border: 1px solid CanvasText; }
  .hero__scrim, .band__scrim { background: none; }
  .badge, .note-pill, .fab { border: 1px solid CanvasText; }
  :where(a, button, input, select, textarea):focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
}
@media (prefers-contrast: more) {
  :root {
    --fg2: #24343c;
    --fg3: #33434b;
    --taupe-ink: #4d452f;
    --line: #b6c0be;
    --fg-on-dark-2: #ffffff;
  }
}
