/* Rosemont Grove — Stage 3 layout. Tokens live in tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--rg-bg);
  color: var(--rg-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rg-burgundy-cta);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--rg-burgundy);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--rg-burgundy);
  color: var(--rg-text-on-burgundy);
}

.header-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
}

.header-logo {
  flex: 0 0 auto;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
}

.header-logo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-width: 0;
}

.header-place {
  font-family: var(--rg-font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: var(--rg-tracking-chip);
  text-transform: uppercase;
  color: var(--rg-text-on-burgundy);
}

.header-cta {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 0.7em 1.35em;
  font-size: 1.02rem;
}

.header-cta:focus-visible {
  outline-color: #fff;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: var(--rg-text-on-burgundy);
  overflow: hidden;
  background: var(--rg-burgundy);
}

.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 68%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(82, 37, 46, 0.78) 0%, rgba(82, 37, 46, 0.52) 42%, rgba(82, 37, 46, 0.12) 72%),
    linear-gradient(180deg, rgba(82, 37, 46, 0.18) 0%, rgba(82, 37, 46, 0.08) 40%, rgba(82, 37, 46, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.75rem;
  max-width: 36rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-bottom: 1.15rem;
}

.hero-kicker {
  font-family: var(--rg-font-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: var(--rg-tracking-kicker);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.hero h1 {
  margin: 0 0 0.85rem;
  color: var(--rg-text-on-burgundy);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  letter-spacing: 0.01em;
  font-optical-sizing: auto;
}

.hero-product {
  margin: 0 0 0.35rem;
  color: var(--rg-text-on-burgundy);
  font-family: var(--rg-font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-optical-sizing: auto;
}

.hero-homes {
  margin: 0 0 1.5rem;
  font-family: var(--rg-font-sans);
  font-weight: 400;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero .rg-price {
  margin: 0 0 1.5rem;
}

.hero .rg-price-overline {
  color: rgba(255, 255, 255, 0.78);
}

.hero .rg-price-figure {
  display: block;
  margin-top: 0.15rem;
  color: var(--rg-text-on-burgundy);
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 700;
  line-height: 1;
}

.hero-cta {
  font-size: 1.2rem;
  padding: 0.95em 1.85em;
}

.hero-cta:focus-visible {
  outline-color: #fff;
}

.hero-note {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.hero-caption {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--rg-burgundy-cta);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--rg-text);
}

.section-muted {
  background: var(--rg-surface);
}

/* —— Collections —— */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.collection-card {
  background: var(--rg-surface-white);
  border-radius: var(--rg-radius-card);
  box-shadow: var(--rg-shadow-card);
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(44, 41, 38, 0.12);
}

.collection-card.is-38:hover {
  border-color: var(--rg-collection-38);
}

.collection-card.is-41:hover {
  border-color: var(--rg-collection-41);
}

.card-bar {
  height: 5px;
}

.is-38 .card-bar { background: var(--rg-collection-38); }
.is-41 .card-bar { background: var(--rg-collection-41); }

.card-still {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--rg-taupe);
}

.card-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.card-body {
  padding: 1.35rem 1.4rem 1.55rem;
}

.card-label {
  margin: 0 0 0.25rem;
  font-family: var(--rg-font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: var(--rg-tracking-kicker);
  text-transform: uppercase;
  color: var(--rg-muted);
}

.is-38 .card-label { color: var(--rg-collection-38); }
.is-41 .card-label { color: var(--rg-collection-41); }

.card-body h3 {
  margin: 0 0 0.85rem;
  font-size: 1.65rem;
}

.model-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border-top: 1px solid var(--rg-taupe);
}

.model-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rg-taupe);
}

.model-name {
  font-family: var(--rg-font-display);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--rg-text-display);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.model-meta {
  font-size: 0.78rem;
  color: var(--rg-muted);
  font-weight: 400;
}

.chip-corner {
  font-family: var(--rg-font-sans);
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22em 0.55em;
  border-radius: var(--rg-radius-pill);
  background: var(--rg-taupe);
  color: var(--rg-text);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.btn-view {
  font-family: var(--rg-font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85em 1.3em;
}

.download-link {
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

.collection-card.is-unlocked .download-link {
  display: inline;
}

.tarion-note {
  margin: 1.5rem 0 0;
}

/* —— Location —— */
.location {
  position: relative;
  overflow: hidden;
  color: var(--rg-text-on-burgundy);
  background: var(--rg-charcoal);
}

.location-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.location-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(56, 52, 52, 0.88) 0%, rgba(56, 52, 52, 0.72) 48%, rgba(56, 52, 52, 0.4) 100%);
}

.location .wrap {
  position: relative;
  z-index: 1;
}

.location h2,
.location .section-kicker {
  color: var(--rg-text-on-burgundy);
}

.location .section-kicker {
  opacity: 0.8;
}

.location-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 46rem;
}

.fact dt {
  margin: 0 0 0.3rem;
  font-family: var(--rg-font-sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: var(--rg-tracking-kicker);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.fact dd {
  margin: 0;
  font-family: var(--rg-font-display);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--rg-text-on-burgundy);
}

.location-caption {
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.55);
}

/* —— Why Hallett —— */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.why-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-points li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rg-taupe);
}

.why-points strong {
  display: block;
  font-family: var(--rg-font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--rg-text-display);
  margin-bottom: 0.25rem;
}

.why-points p {
  margin: 0;
  color: var(--rg-text);
}

/* —— Buyer-rep strip —— */
.buyer-rep {
  background: var(--rg-burgundy);
  color: var(--rg-text-on-burgundy);
  padding: 3rem 0;
}

.buyer-rep h2 {
  color: var(--rg-text-on-burgundy);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.buyer-rep p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.02rem;
}

.buyer-rep strong {
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  background: var(--rg-charcoal);
  color: var(--rg-text-on-burgundy);
  padding: 3rem 0 2rem;
}

.footer-lockups {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lockup {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lockup-label {
  font-family: var(--rg-font-sans);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lockup img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.lockup-type {
  font-family: var(--rg-font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rg-text-on-burgundy);
}

.footer-legal {
  padding-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
  color: rgba(244, 236, 232, 0.62);
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 52rem;
}

.footer-legal p {
  margin: 0;
}

.footer-legal strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

/* —— Unlocked bar —— */
.unlock-bar {
  display: none;
  background: var(--rg-surface);
  border-bottom: 1px solid var(--rg-taupe);
  padding: 0.75rem 0;
  font-size: 0.88rem;
}

.unlock-bar.is-on {
  display: block;
}

.unlock-bar a {
  font-weight: 500;
}

/* —— Gate modal —— */
.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.gate.is-open {
  display: flex;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: var(--rg-backdrop);
}

.gate-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--rg-surface);
  border-radius: var(--rg-radius-card);
  border: 1px solid var(--rg-taupe);
  box-shadow: 0 18px 50px rgba(44, 41, 38, 0.22);
  padding: 1.5rem 1.45rem 1.6rem;
}

.gate-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--rg-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.gate-brand img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
}

.gate-panel h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
}

.gate-intro {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--rg-text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rg-text);
}

.field .rg-input,
.field select {
  width: 100%;
  font-family: var(--rg-font-sans);
  font-size: 0.95rem;
  color: var(--rg-text);
  background: var(--rg-surface-white);
  border: 1px solid var(--rg-rule);
  border-radius: var(--rg-radius-input);
  padding: 0.75em 0.9em;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237A736E' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.4rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--rg-text);
}

.consent input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--rg-burgundy-cta);
}

.gate-submit {
  width: 100%;
  font-size: 1.12rem;
}

.gate-fine {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
}

.form-error {
  display: none;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--rg-burgundy);
}

.form-error.is-on {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Check-your-email panel */
.thanks {
  display: none;
}

.thanks.is-on {
  display: block;
}

.form-view.is-off {
  display: none;
}

.thanks h2 {
  margin-bottom: 0.5rem;
}

.thanks p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.thanks-downloads {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
}

.thanks-downloads a {
  font-weight: 500;
}

body.gate-open {
  overflow: hidden;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 30;
  text-align: center;
  box-shadow: 0 8px 24px rgba(44, 41, 38, 0.18);
}

body.gate-open .sticky-cta {
  display: none !important;
}

/* PDF gate page */
.pdf-page {
  min-height: 100vh;
  background: var(--rg-charcoal);
}

.pdf-frame {
  width: 100%;
  height: calc(100vh - 64px);
  border: 0;
  background: #111;
}

.pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--rg-burgundy);
  color: #fff;
}

.pdf-toolbar a {
  color: #fff;
}

.pdf-locked {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

@media (max-width: 860px) {
  .collection-grid,
  .why-grid,
  .fact-row {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .sticky-cta {
    display: inline-flex;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-copy {
    padding: 3.2rem 0 5.5rem;
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .header-logo,
  .header-logo img {
    width: 52px;
    height: 52px;
  }

  .section {
    padding: 3.25rem 0;
  }

  .card-body {
    padding: 1.15rem 1.1rem 1.3rem;
  }

  .hero-cta {
    width: 100%;
  }

  .lockup img {
    height: 36px;
  }
}

@media (min-width: 861px) {
  .sticky-cta {
    display: none !important;
  }
}
