/* ========================================
   26-1095 Cooke Blvd — Property Website
   ======================================== */

/* --- Reset & Variables --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F6F4;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-accent: #2C3E50;
  --color-accent-light: #34495E;
  --color-callout-bg: #1C1C1E;
  --color-border: #E5E5E5;
  --color-white: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: clamp(3rem, 8vw, 6rem);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-white);
  transition: color 0.3s ease;
}

.nav--scrolled .nav__logo {
  color: var(--color-text);
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.nav--scrolled .nav__links a {
  color: var(--color-text-muted);
}

.nav__links a:hover {
  color: var(--color-white);
}

.nav--scrolled .nav__links a:hover {
  color: var(--color-text);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  transition: background 0.3s ease, transform 0.3s ease;
}

.nav--scrolled .nav__hamburger span {
  background: var(--color-text);
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem 5rem;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  color: var(--color-white);
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero__price {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* --- OVERVIEW --- */
.overview {
  background: var(--color-bg-alt);
  padding: var(--section-padding) 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.stat__icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.5rem;
  color: var(--color-accent);
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.overview__text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.overview__text strong {
  color: var(--color-text);
}

/* --- SECTIONS (shared) --- */
.section {
  padding: var(--section-padding) 0;
}

.section:nth-child(even) {
  background: var(--color-bg-alt);
}

.section__heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--color-text);
}

.subsection__heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
  color: var(--color-text);
}

.section__intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

/* --- KITCHEN --- */
.kitchen__showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.kitchen__hero img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

.kitchen__copy p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.kitchen__copy ul {
  list-style: none;
}

.kitchen__copy li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.kitchen__copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.kitchen__copy li strong {
  color: var(--color-text);
}

.kitchen__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.kitchen__grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.kitchen__grid a:hover img {
  opacity: 0.9;
}

/* --- HVAC --- */
.hvac {
  background: var(--color-callout-bg);
  color: var(--color-white);
  padding: var(--section-padding) 0;
}

.hvac__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hvac__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.hvac__headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hvac__value {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hvac__value span {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.25rem;
}

.hvac__body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}

.hvac__body strong {
  color: var(--color-white);
}

.hvac__savings {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}

.hvac__savings-number {
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.hvac__savings-number span {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--color-white);
}

.hvac__savings p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.hvac__savings p strong {
  color: var(--color-white);
}

.hvac__equipment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hvac__equipment span {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- GALLERIES --- */
.gallery {
  display: grid;
  gap: 1rem;
}

.gallery--living {
  grid-template-columns: 1fr;
}

.gallery--den {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--suite {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
}

.gallery--second {
  grid-template-columns: repeat(2, 1fr);
}

.gallery--additional {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
  margin: 2rem auto 0;
}

.gallery__item img,
.gallery__captioned img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gallery__item:hover img,
.gallery__captioned a:hover img {
  opacity: 0.9;
}

.gallery__caption {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.suite__hero {
  display: block;
}

.suite__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}

/* --- OUTDOOR --- */
.outdoor__showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.outdoor__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
}

.outdoor__copy p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.outdoor__accent {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.outdoor__accent:hover {
  background: var(--color-border);
}

.outdoor__accent img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.outdoor__accent span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.garage {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.garage p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.garage p strong {
  color: var(--color-text);
}

.garage__photo {
  display: block;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.garage__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.garage__photo:hover img {
  opacity: 0.9;
}

/* --- LOCATION --- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.location__grid--single {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.amenity-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.95rem;
}

.amenity-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.location-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.location-list li strong {
  display: block;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.location-list li span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.location__exterior {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.location__exterior img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.location__exterior a:hover img {
  opacity: 0.9;
}

/* --- CONTACT --- */
.contact {
  background: var(--color-bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact__card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.contact__card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact__card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact__card p strong {
  color: var(--color-text);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.contact__email {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact__email a {
  color: var(--color-accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact__email a:hover {
  border-color: var(--color-accent);
}

/* --- OPEN HOUSE (hero) --- */
.hero__openhouse {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.hero__openhouse-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.1rem;
}

.hero__openhouse span:not(.hero__openhouse-label) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
}

/* --- OPEN HOUSE (footer bar) --- */
.openhouse-bar {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1.1rem 0;
}

.openhouse-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.openhouse-bar__label {
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.openhouse-bar__divider {
  opacity: 0.3;
}

.openhouse-bar__rsvp {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.openhouse-bar__rsvp:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

@media (max-width: 767px) {
  .openhouse-bar__divider {
    display: none;
  }

  .openhouse-bar .container {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}

/* --- FOOTER --- */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.footer__legal {
  font-size: 0.78rem;
  color: #999;
  max-width: 600px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
}

.footer__copyright {
  font-size: 0.78rem;
  color: #999;
}

/* ========================================
   RESPONSIVE — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .kitchen__showcase {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  .kitchen__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery--living {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery--living .gallery__item--wide {
    grid-column: 1 / -1;
  }

  .outdoor__showcase {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  .location__grid:not(.location__grid--single) {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   RESPONSIVE — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .stats {
    gap: 2rem;
  }

  .gallery--living {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery--living .gallery__item--wide {
    grid-column: 1 / 3;
    aspect-ratio: 16 / 9;
  }

  .gallery--living .gallery__item--wide img {
    aspect-ratio: 16 / 9;
  }
}

/* ========================================
   RESPONSIVE — Mobile (<768px)
   ======================================== */
@media (max-width: 767px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links a {
    color: var(--color-text) !important;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .kitchen__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery--suite {
    grid-template-columns: 1fr;
  }

  .gallery--second {
    grid-template-columns: 1fr;
  }

  .gallery--den {
    grid-template-columns: 1fr;
  }

  .gallery--additional {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .location__exterior {
    grid-template-columns: 1fr;
  }

  .outdoor__accent {
    flex-direction: column;
    text-align: center;
  }

  .outdoor__accent img {
    width: 100%;
    height: 150px;
  }

  .hero__overlay {
    padding: 2rem 1.5rem 4rem;
  }
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .nav,
  .hero__scroll,
  .gallery,
  .kitchen__grid {
    display: none;
  }

  .hero {
    height: auto;
    min-height: auto;
  }

  .hero__img {
    position: static;
    max-height: 300px;
  }

  .hero__overlay {
    background: none;
    color: var(--color-text);
    padding: 1rem;
  }

  .hero__badge {
    border-color: var(--color-text);
    color: var(--color-text);
  }

  .hvac {
    background: var(--color-bg-alt);
    color: var(--color-text);
  }

  .hvac__eyebrow,
  .hvac__value span,
  .hvac__savings-number span,
  .hvac__body,
  .hvac__savings p {
    color: var(--color-text);
  }

  .contact__email {
    font-size: 1.2rem;
    font-weight: 600;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__scroll {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
