/* Keystone Residential Group - single-property site
   2705 Emerald Lake Ct, Kissimmee FL */

:root {
  --sage: #4e5e57;
  --brown: #775d47;
  --greige: #e1dcd5;
  --tan: #d2bdac;
  --ink: #1f1f1f;
  --white: #ffffff;
  --sage-deep: #3f4d47;
  --line: rgba(31, 31, 31, 0.12);
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .geo {
  font-family: "Jost", "Century Gothic", sans-serif;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 78px 0; }

.eyebrow {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--brown);
  margin-bottom: 14px;
}

h2 { font-size: 26px; color: var(--sage); margin-bottom: 26px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header img { height: 34px; width: auto; }
.header-cta {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--brown);
  padding: 10px 20px;
  transition: background .2s, color .2s;
}
.header-cta:hover { background: var(--brown); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--sage);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(63,77,71,0.30) 0%, rgba(63,77,71,0.10) 40%, rgba(63,77,71,0.82) 100%),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 60px; }
.hero-logo { height: 46px; width: auto; margin-bottom: 30px; opacity: 0.96; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 200;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.hero .citystate {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.6vw, 16px);
  opacity: 0.92;
}
.hero .price {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 22px;
}
.hero .quickstats {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.hero .quickstats span { opacity: 0.95; }
.hero .quickstats span + span { position: relative; }

/* ---------- Intro / description ---------- */
.intro p { max-width: 760px; font-size: 18px; margin-bottom: 18px; color: #33372f; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--greige);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform .5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.staged-tag {
  position: absolute;
  left: 10px; bottom: 10px;
  background: rgba(31,31,31,0.72);
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
}

/* ---------- Facts ---------- */
.facts { background: var(--greige); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.fact {
  background: var(--greige);
  padding: 26px 22px;
}
.fact .label {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--brown);
  margin-bottom: 8px;
}
.fact .value { font-family: "Jost", sans-serif; font-weight: 300; font-size: 22px; letter-spacing: 0.04em; }

/* ---------- Video walkthrough ---------- */
.walkthrough {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--sage-deep);
  border: 1px solid var(--line);
}

/* ---------- Map ---------- */
.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(0.2);
}

/* ---------- Contact / form ---------- */
.contact { background: var(--sage); color: #fff; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--tan); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.contact-lead p { max-width: 420px; opacity: 0.94; }
.contact-lead .agent {
  margin-top: 26px;
  font-family: "Jost", sans-serif;
  letter-spacing: 0.06em;
}
.contact-lead .agent strong { font-weight: 400; display: block; font-size: 19px; letter-spacing: 0.1em; }
.contact-lead .agent a { color: var(--tan); text-decoration: none; }

form label {
  display: block;
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  margin: 0 0 7px;
  opacity: 0.9;
}
form .field { margin-bottom: 18px; }
form input, form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}
form input::placeholder, form textarea::placeholder { color: rgba(255,255,255,0.5); }
form input:focus, form textarea:focus { outline: none; border-color: var(--tan); background: rgba(255,255,255,0.1); }
form textarea { resize: vertical; min-height: 110px; }
.hidden-field { position: absolute; left: -9999px; }
button[type="submit"] {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  color: #fff;
  background: var(--brown);
  border: none;
  padding: 15px 34px;
  cursor: pointer;
  transition: background .2s;
}
button[type="submit"]:hover { background: #634c39; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfcac3;
  font-size: 13px;
  line-height: 1.7;
  padding: 46px 0;
}
.site-footer .foot-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.site-footer .foot-logo { height: 30px; width: auto; }
.site-footer .eho { height: 40px; width: auto; }
.site-footer a { color: var(--tan); text-decoration: none; }
.site-footer .disclaimer { max-width: 900px; color: #9a948c; }
.site-footer .disclaimer p { margin-bottom: 10px; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0;
  background: rgba(20,24,22,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb .lb-close, .lb .lb-nav {
  position: absolute;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  user-select: none;
  font-family: "Jost", sans-serif;
  opacity: 0.8;
}
.lb .lb-close { top: 22px; right: 30px; }
.lb .lb-nav { top: 50%; transform: translateY(-50%); padding: 20px; }
.lb .lb-prev { left: 12px; }
.lb .lb-next { right: 12px; }
.lb .lb-nav:hover, .lb .lb-close:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 56px 0; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { min-height: 74vh; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
  .hero-logo { height: 38px; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Video placeholder (used until a walkthrough is added) ---------- */
.video-ph {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--sage-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.14);
}
.video-ph .play {
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
}
.video-ph .play::after {
  content: "";
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.video-ph p {
  font-family: "Jost", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  opacity: 0.85;
}

/* ---------- Floor plans ---------- */
.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.floorplan-grid figure {
  margin: 0;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 18px;
}
.floorplan-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.floorplan-grid figcaption {
  margin-top: 12px;
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--brown);
  text-align: center;
}
