/* Medina Homes — Luxury Real Estate Site */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --navy: #10151d;
  --navy-2: #171f2b;
  --gold: #b99457;
  --gold-light: #d8bd8b;
  --cream: #f6f3ee;
  --grey: #8a8f98;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(16,21,29,0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--navy);
  font-weight: 300;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: .02em;
}
.brand .tagline {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .85;
  transition: opacity .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover { opacity: 1; color: var(--gold-light); }
.header-phone {
  font-size: .85rem;
  color: var(--gold-light);
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(16,21,29,.55), rgba(16,21,29,.75)), url('https://medinanw.com/wp-content/uploads/2025/11/A-102-scene-1-1-1024x683.jpg') center/cover no-repeat;
  color: var(--cream);
  padding: 130px 32px 100px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  max-width: 900px;
  margin: 14px auto 20px;
}
.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(246,243,238,.85);
  font-size: 1.05rem;
}
.hero .scroll-cue {
  margin-top: 46px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Sections ---------- */
section { padding: 84px 32px; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: #4a4f57; }

.homes { background: var(--cream); }

/* ---------- Home Grid ---------- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}
.home-card {
  background: #fff;
  border: 1px solid rgba(16,21,29,.08);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(16,21,29,.14);
}
.home-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.home-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.home-card:hover .home-thumb img { transform: scale(1.06); }
.home-status {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(16,21,29,.85);
  color: var(--gold-light);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.home-status.active { background: #4c6b4f; color: #fff; }
.home-body { padding: 24px 26px 28px; }
.home-body .community {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.home-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.home-body .address { font-size: .86rem; color: #666; margin-bottom: 16px; }
.home-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: .82rem;
  color: #33373e;
  border-top: 1px solid rgba(16,21,29,.08);
  padding-top: 14px;
}
.home-specs span { display: flex; align-items: center; gap: 6px; }
.home-specs b { color: var(--navy); font-weight: 500; }
.home-link {
  display: inline-block;
  margin-top: 18px;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

/* ---------- Map ---------- */
.map-section { background: var(--navy-2); color: var(--cream); }
.map-section .section-head p { color: rgba(246,243,238,.7); }
#map {
  width: 100%;
  height: 520px;
  border: 1px solid var(--line);
}
.leaflet-popup-content-wrapper { border-radius: 0; font-family: 'Jost', sans-serif; }
.popup-card { min-width: 200px; }
.popup-card img { width: 100%; height: 110px; object-fit: cover; margin-bottom: 8px; }
.popup-card .community { font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #b99457; }
.popup-card h4 { font-size: .95rem; margin: 2px 0 4px; }
.popup-card a { font-size: .75rem; text-decoration: underline; color: #10151d; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about img { width: 100%; height: 460px; object-fit: cover; }
.about-text .eyebrow { margin-bottom: 10px; }
.about-text p { color: #444; margin-bottom: 16px; }
.stat-row { display: flex; gap: 40px; margin-top: 28px; }
.stat-row div { display: flex; flex-direction: column; }
.stat-row b { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); }
.stat-row span { font-size: .78rem; color: #666; letter-spacing: .04em; }

/* ---------- Contact / Footer ---------- */
.contact-cta {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.contact-cta h2 { color: #fff; }
.contact-cta p { color: rgba(246,243,238,.75); max-width: 560px; margin: 0 auto 28px; }
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 34px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .2s;
}
.btn-gold:hover { background: var(--gold-light); }

.site-footer {
  background: #0b0f15;
  color: rgba(246,243,238,.6);
  padding: 40px 32px;
  font-size: .82rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner a { opacity: .85; }
.footer-inner a:hover { color: var(--gold-light); }

/* ---------- Detail Page ---------- */
.breadcrumb {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 32px;
  font-size: .78rem;
  color: #777;
}
.breadcrumb a { color: var(--gold); }

.detail-hero {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 0 32px;
}
.gallery-main {
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(16,21,29,.08);
  cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: .65;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.gallery-thumbs img:hover { opacity: 1; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--gold); }

.detail-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 90px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.detail-main .community { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.detail-main h1 { font-size: 2.1rem; margin-bottom: 6px; }
.detail-main .address { color: #666; font-size: .95rem; margin-bottom: 22px; }
.status-pill {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--navy);
  color: var(--gold-light);
  margin-bottom: 24px;
}
.status-pill.active { background: #4c6b4f; color: #fff; }
.detail-main .desc { color: #3a3f47; font-size: 1rem; margin-bottom: 30px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(16,21,29,.1);
  border-bottom: 1px solid rgba(16,21,29,.1);
  padding: 26px 0;
  margin-bottom: 30px;
}
.spec-grid div { text-align: center; }
.spec-grid b { display: block; font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); }
.spec-grid span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #777; }

.detail-side {
  background: #fff;
  border: 1px solid rgba(16,21,29,.08);
  padding: 28px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.detail-side h3 { font-size: 1.1rem; margin-bottom: 16px; }
#detail-map { width: 100%; height: 220px; margin-bottom: 20px; border: 1px solid var(--line-dark); }
.detail-side .btn-gold { width: 100%; text-align: center; margin-bottom: 12px; }
.detail-side .phone { display: block; text-align: center; color: var(--navy); font-size: .9rem; margin-top: 8px; }
.back-link { display: inline-block; margin-top: 34px; font-size: .8rem; color: var(--navy); border-bottom: 1px solid var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(11,15,21,.94);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 26px; right: 36px;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 2.4rem; cursor: pointer; padding: 10px 18px; user-select: none;
}
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

/* ---------- Owners Request Form ---------- */
.owners-hero {
  background: linear-gradient(180deg, rgba(16,21,29,.6), rgba(16,21,29,.78)), url('https://medinanw.com/wp-content/uploads/2025/11/A-102-scene-2-1-1-1024x683.jpg') center/cover no-repeat;
  color: var(--cream);
  padding: 90px 32px 70px;
  text-align: center;
}
.owners-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-top: 10px; }
.owners-hero p { max-width: 600px; margin: 0 auto; color: rgba(246,243,238,.85); }

.owners-form-section { background: var(--cream); padding: 70px 32px 100px; }
.owners-form-wrap { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid rgba(16,21,29,.08); padding: 46px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.form-row.single { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(16,21,29,.18);
  padding: 12px 14px;
  font-family: 'Jost', sans-serif;
  font-size: .95rem;
  background: #fdfcfa;
  color: var(--navy);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 130px; }

.owners-form-wrap .btn-gold {
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: .82rem;
}
.owners-form-wrap .btn-gold:disabled { opacity: .6; cursor: not-allowed; }

.form-status {
  margin-top: 18px;
  font-size: .88rem;
  padding: 12px 16px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e9f1ea; color: #345a37; border: 1px solid #b7d2ba; }
.form-status.error { background: #f7e9e9; color: #7a2f2f; border: 1px solid #e2b6b6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about img { height: 320px; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .owners-form-wrap { padding: 30px 22px; }
}
