/* VenueCalls — no-scroll landing page
   One viewport on desktop (>= 1000px wide and >= 620px tall). Mobile stacks and scrolls. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --evergreen: #1F3A33;
  --evergreen-deep: #162B25;
  --linen: #F6F1E8;
  --brass: #B08D57;
  --brass-dark: #7A5E33;
  --charcoal: #1C1C1A;
  --text: #4A4A45;
  --muted: #6B6B64;
  --sage: #7FA48C;
  --card: #FFFDF9;
  --border: #E4DCCD;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: clamp(1240px, 75vw, 1480px);
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--linen);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--evergreen); color: var(--linen);
  padding: 12px 18px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: min(100vw, calc(var(--wrap) + 2 * var(--gutter)));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--evergreen);
  text-decoration: none;
}
.wordmark em { font-style: italic; }

.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 16px;
  color: var(--evergreen);
  text-decoration: underline;
  text-decoration-color: rgba(176, 141, 87, .7);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.quiet-link:hover { text-decoration-color: var(--evergreen); }

/* ---------- Hero ---------- */
.hero { padding-block: 28px 32px; }
.hero__grid { display: grid; gap: 28px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.hero__title {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 8.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}
.hero__lede {
  margin-top: 14px;
  font-size: 17px;
  max-width: 50ch;
  text-wrap: pretty;
}
.hero__actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--evergreen);
  color: var(--linen);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color .2s ease;
}
.btn::after {
  content: "→";
  transition: transform .25s ease;
}
.btn:hover { background: var(--evergreen-deep); }
.btn:hover::after { transform: translateX(3px); }
.btn:focus-visible { outline-offset: 3px; }
.hero__or { color: var(--muted); font-size: 16px; }

.hero__note {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}


/* ---------- Hero terms row (added with the copy rewrite) ---------- */
.hero__terms {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--evergreen);
}
.hero__terms li { white-space: nowrap; }
.hero__terms li + li::before {
  content: "·";
  margin-inline: 8px;
  color: var(--brass);
}

/* ---------- Hero card (.vsl): 16:9 frame, now hosts the voice-agent widget (voice-agent.css) ---------- */
.vsl {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(28, 28, 26, .03), 0 24px 48px -36px rgba(31, 58, 51, .35);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vsl::before {
  /* thin brass keyline inset from the frame */
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 141, 87, .35);
  border-radius: 4px;
  pointer-events: none;
}
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--linen);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}
.tag--small { font-size: 12.5px; padding: 3px 8px; }

/* ---------- Bottom band ---------- */
.band { padding-bottom: 12px; }
.band__grid {
  display: grid;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.cell {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.cell:first-child { border-top: 0; }
.cell__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
}
.cell__title {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-wrap: balance;
}
.cell__text {
  margin-top: 6px;
  font-size: 15.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- Logo strip (placeholder marquee) ----------
   Two identical tracks inside one rail; the rail slides -50% and loops seamlessly.
   Each track must be at least as wide as the widest viewport (8 × 200px = 1600px). */
.strip { padding-bottom: 12px; }
.strip:focus-visible { outline-offset: -1px; }
.strip__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.strip__rail {
  display: flex;
  width: max-content;
  animation: strip-scroll 42s linear infinite;
}
.strip:hover .strip__rail,
.strip:focus-within .strip__rail { animation-play-state: paused; }
.strip__track { display: flex; flex: none; }
.strip__slot {
  flex: none;
  display: grid;
  place-items: center;
  width: 180px;
  height: 34px;
  margin-right: 20px;
  border: 1px dashed #C9BCA5;
  border-radius: 6px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   Tablet / small laptop: 2 × 2 band
   ========================================================= */
@media (min-width: 640px) {
  .band__grid { grid-template-columns: 1fr 1fr; }
  .cell { border-top: 0; }
  .cell:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .cell:nth-child(even) { border-left: 1px solid var(--border); }
}

/* =========================================================
   Desktop: one viewport, no scroll
   ========================================================= */
@media (min-width: 1000px) and (min-height: 620px) {
  html, body { height: 100%; max-width: 100vw; overflow: hidden; overflow-x: hidden; }
  body {
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto; /* header, hero, band, footer — logo strip hidden */
  }

  .top__inner { padding-block: clamp(6px, 1.4vh, 18px); }
  .wordmark { font-size: clamp(24px, 3.2vh, 30px); }

  .hero {
    display: grid;
    align-items: center;
    padding-block: clamp(16px, 3.6vh, 56px);
    min-height: 0;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 80px);
  }

  .eyebrow { font-size: clamp(11.5px, 1.5vh, 13px); }
  .hero__copy { container-type: inline-size; }
  .hero__title {
    margin-top: clamp(10px, 1.8vh, 20px);
    font-size: clamp(36px, min(7.9cqi, 6.4vh), 66px);
    line-height: 1.05;
  }
  .hero__lede {
    margin-top: clamp(10px, 2vh, 22px);
    font-size: clamp(16px, 2.3vh, 19px);
  }
  .hero__actions { margin-top: clamp(16px, 3vh, 34px); }
  .hero__note { margin-top: clamp(8px, 1.6vh, 18px); }

  /* Hero card: width derived from a bounded 16:9 height, so it never pushes past the viewport */
  .vsl {
    justify-self: end;
    width: min(100%, calc(min(44vh, 500px) * 16 / 9));
  }

  .band { padding-bottom: clamp(6px, 1.2vh, 16px); }
  .band__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cell,
  .cell:nth-child(n + 3) { border-top: 0; }
  .cell { padding: clamp(12px, 2vh, 24px) clamp(16px, 1.6vw, 26px); }
  .cell + .cell { border-left: 1px solid var(--border); }
  .cell__title { font-size: clamp(17px, 2.4vh, 22px); }
  .cell__text { font-size: clamp(15px, 1.9vh, 16.5px); }
  .strip { padding-bottom: clamp(8px, 1.4vh, 16px); }
  .strip__slot { height: clamp(32px, 4.2vh, 44px); }

  .foot__inner { padding-block: clamp(4px, .8vh, 10px) clamp(8px, 1.4vh, 16px); }
}

/* Tighter band copy between 900 and 1180px wide, where four cells get narrow */
@media (min-width: 1000px) and (max-width: 1179px) and (min-height: 620px) {
  .cell__text { font-size: 15px; }
  .hero__note { display: none; } /* demo microcopy is optional; the terms row stays */
  .hero__terms { margin-top: clamp(8px, 1.6vh, 18px); font-size: 13px; }
  .hero__terms li + li::before { margin-inline: 6px; }
}

/* Short desktop viewports (e.g. a 1366 × 768 laptop with browser toolbars) */
@media (min-width: 1000px) and (min-height: 620px) and (max-height: 700px) {
  .top__inner { padding-block: 4px; }
  .hero { padding-block: 12px; }
  .hero__lede { line-height: 1.5; }
  .cell { padding-block: 10px 12px; }
  .cell__title { margin-top: 4px; font-size: 17px; }
  .cell__text { margin-top: 4px; font-size: 15px; line-height: 1.45; }
  .strip { padding-bottom: 8px; }
  .strip__slot { height: 30px; }
  .vsl { width: min(100%, calc(42vh * 16 / 9)); }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 639px) {
  .wordmark { font-size: 25px; }
  .top__inner { padding-block: 6px; }
  .hero { padding-block: 20px 22px; }
  .hero__grid { gap: 22px; }
  .hero__lede { font-size: 16px; }
  .hero__actions { margin-top: 18px; }
  .btn { width: 100%; }
  .hero__or { width: 100%; text-align: center; }
  .cell { padding: 14px 16px; }
  .vsl::before { inset: 8px; }
  .tag { font-size: 13px; }
}

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

  /* Logo strip: no scrolling. One finished, evenly spaced row; duplicate track hidden. */
  .strip__rail { animation: none; width: 100%; }
  .strip__viewport { -webkit-mask-image: none; mask-image: none; }
  .strip__track[aria-hidden="true"] { display: none; }
  .strip__track { flex: 1 1 auto; gap: 12px; }
  .strip__slot { flex: 1 1 0; min-width: 0; width: auto; margin-right: 0; }
  .strip__slot:nth-child(n + 4) { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 640px) {
  .strip__slot:nth-child(n + 4) { display: grid; }
  .strip__slot:nth-child(n + 6) { display: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1000px) {
  .strip__track { gap: 20px; }
  .strip__slot:nth-child(n + 6) { display: grid; }
  .strip__slot:nth-child(n + 7) { display: none; }
}

/* ---------- Background photo (Fairmere House, from the live demo) ---------- */
body {
  background-color: var(--linen);
  background-image:
    linear-gradient(rgba(246, 241, 232, .86), rgba(246, 241, 232, .93)),
    url("images/hero-house-1400.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (min-width: 1600px) {
  body {
    background-image:
      linear-gradient(rgba(246, 241, 232, .86), rgba(246, 241, 232, .93)),
      url("images/hero-house-2000.webp");
  }
}
@media (max-width: 760px) {
  body {
    background-attachment: scroll;
    background-image:
      linear-gradient(rgba(246, 241, 232, .86), rgba(246, 241, 232, .93)),
      url("images/hero-house-800.webp");
  }
}
