/* Page layout for the public site. Tokens and components come from organic.css. */

html { scroll-behavior: smooth; background: var(--color-bg); overflow-x: clip; }
body { text-wrap: pretty; overflow-x: clip; background: transparent; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

/* Animated backdrop: drawn scenes of Carrollton behind a veil of the page color. */
#backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#backdrop .scene {
  position: absolute; inset: 0; opacity: 0; transform: scale(1); transform-origin: 50% 70%;
  transition: opacity 1.6s ease, transform 0s linear 1.6s;
}
#backdrop .scene.is-current { opacity: 1; transform: scale(1.08); transition: opacity 1.6s ease, transform 8s linear; }
#backdrop .scene svg { width: 100%; height: 100%; display: block; }
#backdrop .veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-bg) 83%, transparent); }
#backdrop .scene-name { position: absolute; left: clamp(20px, 5vw, 72px); bottom: 20px; box-shadow: var(--shadow-sm); }

.site-nav {
  padding-inline: clamp(20px, 5vw, 72px); flex-wrap: wrap; gap: 20px;
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(8px);
}
.site-nav .nav-brand { color: var(--color-text); }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.nav-links a { color: var(--color-text); }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--color-bg); }
.btn { text-decoration: none; white-space: nowrap; flex: none; }
a.btn-primary, a.btn-primary:hover { color: var(--color-bg); }

.site-main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 72px); }
.narrow { max-width: 760px; }

.kicker {
  display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin: 0; }
.soft { color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.softer { color: color-mix(in srgb, var(--color-text) 72%, transparent); }

/* Hero */
.hero {
  position: relative; isolation: isolate; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px);
}
.hero-blob {
  position: absolute; right: -80px; top: -60px; width: clamp(260px, 36vw, 420px); aspect-ratio: 1;
  border-radius: 50%; background: var(--color-accent-2-200); z-index: -1; pointer-events: none;
}
.rotator { position: relative; overflow: hidden; background: var(--color-neutral-200); }
.rotator img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 1.4s ease;
}
.rotator img.is-current { opacity: 1; }
.hero .rotator {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  aspect-ratio: 1696 / 1168; max-width: 440px; width: 100%; margin-bottom: 32px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.08; margin: 0; }
.hero h1 span { display: block; }
.hero .lede {
  font-size: 18px; line-height: 1.65; max-width: 52ch; margin: 28px 0 0;
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero figure {
  margin: 0; border-radius: calc(2 * var(--radius-lg)); overflow: hidden;
  aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: end;
}
.hero figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured { justify-self: end; max-width: 460px; width: 100%; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.featured .kicker { margin-bottom: 0; }
.featured figure { justify-self: stretch; max-width: none; }
.featured figure img { transition: transform 0.4s ease; }
.featured:hover figure img { transform: scale(1.03); }
.featured-caption { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; }
.featured-caption strong { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 22px; line-height: 1.2; }
.featured-caption .soft { font-size: 15px; }
.featured-more { color: var(--color-accent-700); font-weight: 600; font-size: 15px; margin-top: 2px; }
.featured:hover .featured-more { color: var(--color-accent-800); text-decoration: underline; }

/* Two-column text sections */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 72px; align-items: start;
}
#about { padding: 56px 0 72px; }
#about h2 { max-width: 18ch; }
#about .copy { display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.7; max-width: 56ch; }
#about .copy p { margin: 0; }

/* Homes */
#homes, #gallery { padding: 48px 0 80px; }
.homes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px; margin-top: 32px; }
.home-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.home-photo { aspect-ratio: 4 / 3; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; display: block; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-soon {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden; background: var(--color-accent-2-200); display: grid; place-items: center;
}
.home-soon .blob-a { position: absolute; right: -40px; bottom: -60px; width: 200px; aspect-ratio: 1; border-radius: 50%; background: var(--color-accent-2-300); }
.home-soon .blob-b { position: absolute; left: -30px; top: -40px; width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--color-accent-200); }
.home-soon .label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--color-accent-2-800); }
.home-soon .label strong { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 26px; line-height: 1.1; }
.home-soon .label span { font-size: 14px; }
.home-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.home-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.home-body .card-title { margin: 4px 0 0; }
.home-body .card-title a { color: inherit; text-decoration: none; }
.home-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.rent { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); }
.map-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--color-accent-700); text-decoration: none; margin-top: 2px; align-self: flex-start; }
.map-link:hover { color: var(--color-accent-800); text-decoration: underline; }

/* Gallery */
.gallery-row { display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 18px; margin-top: 32px; }
.gallery-row div { width: 200px; aspect-ratio: 3 / 4; border-radius: calc(2 * var(--radius-lg)); overflow: hidden; flex: none; }
.gallery-row div.pill { border-radius: 999px; }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; }
.fineprint { margin: 16px 0 0; font-size: 14px; line-height: 1.5; }

/* FAQ */
#faq, #contact { padding: 48px 0 80px; }
#faq h2 { max-width: 14ch; }
#faq .rotator {
  margin-top: 28px; aspect-ratio: 2 / 3; max-width: 340px;
  border-radius: calc(2 * var(--radius-lg)); box-shadow: var(--shadow-sm);
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--color-surface, var(--color-neutral-100)); border-radius: var(--radius-lg); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 600; font-size: 16.5px; border-radius: var(--radius-lg);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--color-accent-100); }
.faq-list summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-accent-200); color: var(--color-accent-800);
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { margin: 0; padding: 0 24px 22px; font-size: 15.5px; line-height: 1.7; max-width: 60ch; }
.faq-list .steps { margin: 0; padding: 0 24px 22px 46px; font-size: 15.5px; line-height: 1.7; max-width: 60ch; display: flex; flex-direction: column; gap: 6px; }

/* Contact */
#contact { gap: 40px 72px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.contact-copy p { margin: 0; font-size: 16px; line-height: 1.7; max-width: 44ch; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.6; margin-top: 8px; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: calc(2 * var(--radius-lg)); align-self: start; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }

/* Forms: sized for thumbs; 16px inputs stop phones zooming on focus. */
.field > label { font-size: 14px; margin-bottom: 6px; }
.input { min-height: 46px; padding-block: 10px; font-size: 16px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%), linear-gradient(135deg, var(--color-text) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.btn { min-height: 44px; }
.hint { font-size: 13.5px; margin: 6px 0 0; color: color-mix(in srgb, var(--color-text) 66%, transparent); }
.optional { font-weight: 400; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.error { font-size: 14px; margin: 6px 0 0; color: #a3261c; font-weight: 600; }
.has-error .input { border-color: #a3261c; }
.error-summary { background: var(--color-accent-100); color: #7d1d15; border-radius: var(--radius-md); padding: 14px 18px; margin: 0 0 20px; font-weight: 600; }
fieldset.group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
fieldset.group legend { font-family: var(--font-heading); font-size: 22px; padding: 0; margin-bottom: 14px; }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.checkline input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--color-accent); }

/* Property, form and thank-you pages */
.page-head { padding: clamp(28px, 4vw, 48px) 0 24px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 0; }
.page-head .softer { margin: 12px 0 0; font-size: 16px; }
.property { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 56px; align-items: start; padding-bottom: 72px; }
.property figure { border-radius: calc(2 * var(--radius-lg)); overflow: hidden; aspect-ratio: 4 / 3; }
.property figure img { width: 100%; height: 100%; object-fit: cover; }
.property .facts { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; }
.property .facts p { margin: 0; }
.page-body { padding-bottom: 72px; }

/* Property photo grid and viewer */
.photos { padding: 0 0 72px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.photo-grid a { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-neutral-200); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.area { padding: 0 0 72px; }
.map-frame { margin-top: 28px; border-radius: calc(2 * var(--radius-lg)); overflow: hidden; background: var(--color-neutral-200); aspect-ratio: 16 / 9; min-height: 340px; width: 100%; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: color-mix(in srgb, var(--color-neutral-900) 92%, transparent); }
.lightbox img { max-width: min(94vw, 900px); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius-md); }
.lightbox button {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--color-bg); color: var(--color-text); font-size: 28px; line-height: 1; display: grid; place-items: center;
}
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; color: var(--color-neutral-100); font-size: 14px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent-2-200); color: var(--color-accent-2-800); display: grid; place-items: center; font-size: 26px; }

.site-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 32px 0 48px; font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rotator img, #backdrop .scene { transition: none; }
}
