/* ============================================================
   Real Estate Property Landing Page — styles.css
   Two themes: theme-red (KW Classic) + theme-gold (Luxury)
   Mobile-first, pure CSS, no frameworks
   ============================================================ */

/* ── 1. CSS Custom Properties (Theme: Red/White default) ── */
:root,
body.theme-red {
  --accent:       #B40101;   /* Keller Williams Red */
  --accent-dk:    #8B0000;
  --accent-lt:    #cc2222;
  --bg:           #FFFFFF;
  --bg-alt:       #F7F7F7;
  --bg-card:      #FFFFFF;
  --text:         #1A1A1A;
  --text-soft:    #555555;
  --border:       #E0E0E0;
  --header-bg:    #FFFFFF;
  --header-text:  #1A1A1A;
  --cta-text:     #FFFFFF;
  --shadow:       0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --radius:       10px;
  --radius-sm:    6px;
  --footer-bg:    #1A1A1A;
  --footer-text:  rgba(255,255,255,0.7);
  --hero-overlay: rgba(0,0,0,0.45);
  --stats-bg:     #B40101;
  --stats-text:   #FFFFFF;
}

body.theme-gold {
  --accent:       #C9A84C;
  --accent-dk:    #A07830;
  --accent-lt:    #e8c96a;
  --bg:           #0F0F0F;
  --bg-alt:       #1A1A1A;
  --bg-card:      #141414;
  --text:         #F0EDE6;
  --text-soft:    #AAAAAA;
  --border:       #2E2E2E;
  --header-bg:    #080808;
  --header-text:  #F0EDE6;
  --cta-text:     #0F0F0F;
  --shadow:       0 2px 12px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --footer-bg:    #080808;
  --footer-text:  rgba(240,237,230,0.6);
  --hero-overlay: rgba(0,0,0,0.6);
  --stats-bg:     #1A1A1A;
  --stats-text:   #C9A84C;
}

/* ── 2. Reset + Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── 3. Typography ── */
h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-soft); }

/* ── 4. Layout Containers ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.divider {
  border: none;
  border-top: 3px solid var(--accent);
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* ── 5. Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.header-address {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  font-weight: 800;
  color: var(--header-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.agency-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 120px;
  height: 36px;
  transition: border-color 0.25s ease;
}
.agency-logo:hover { border-color: var(--accent); color: var(--accent); }

/* ── 6. Theme Toggle Button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  white-space: nowrap;
  transition: all 0.25s ease;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}

/* ── 7. Hero Split (Above the Fold) ── */
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-alt);
}
.hero__video-side {
  position: relative;
  min-height: 280px;
  background: #000;
  overflow: hidden;
}
.hero__video-side video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__video-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1200&q=80') center/cover no-repeat;
  transition: background 0.3s ease;
}
.hero__video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 24px;
}
.hero__play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__play-icon:hover { background: rgba(255,255,255,0.15); transform: scale(1.06); }
.hero__video-label { font-size: 0.92rem; font-weight: 600; opacity: 0.8; }

.hero__cta-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}
.hero__price {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero__address-small {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero__book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--cta-text);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 18px 28px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(204,0,0,0.25);
  text-decoration: none;
  width: 100%;
}
body.theme-gold .hero__book-btn { box-shadow: 0 4px 20px rgba(201,168,76,0.3); }
.hero__book-btn:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(204,0,0,0.35); }

/* Property quick stats */
.property-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item__val { font-size: 1.15rem; font-weight: 800; color: var(--text); display: block; line-height: 1.1; }
.stat-item__lbl { font-size: 0.72rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.hero__call {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.hero__call a { color: var(--accent); font-weight: 700; }
.hero__call a:hover { color: var(--accent-dk); }

/* ── 8. Gallery Slider ── */
.gallery {
  position: relative;
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-slide.active img { transform: scale(1.02); }
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 20px 20px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.gallery-counter { font-size: 0.78rem; opacity: 0.8; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.gallery-arrow:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.05); }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }
.gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── 9. Property Description ── */
.desc-features {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.desc-features h3 { margin-bottom: 18px; color: var(--text); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-item__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-soft); }
.feature-item__val { font-size: 1rem; font-weight: 700; color: var(--text); }
.desc-narrative h3 { margin-bottom: 16px; color: var(--text); }
.desc-narrative p { margin-bottom: 14px; line-height: 1.75; font-size: 0.97rem; }
.desc-more { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.desc-more.open { max-height: 500px; }
.read-more-btn {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.read-more-btn:hover { color: var(--accent-dk); }

/* ── 10. CTA Cards (Lead Capture) ── */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cta-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cta-card__icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.cta-card__title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cta-card__sub { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 22px; line-height: 1.5; }

/* ── 11. Forms ── */
.form-group { margin-bottom: 14px; }
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
body.theme-gold .form-group input:focus,
body.theme-gold .form-group select:focus {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group input::placeholder { color: var(--text-soft); opacity: 0.65; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
}
.form-status.success { display: block; background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error   { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── 12. Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}
.btn--accent {
  background: var(--accent);
  color: var(--cta-text);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); }
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: var(--cta-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-text { opacity: 0.6; }

/* ── 13. Section Labels ── */
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title { margin-bottom: 12px; color: var(--text); }
.section-sub { color: var(--text-soft); font-size: 1rem; max-width: 580px; }

/* ── 14. Stats Bar ── */
.stats-bar {
  background: var(--stats-bg);
  padding: 32px 0;
}
.stats-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}
.stats-bar-item { text-align: center; }
.stats-bar-item__val { display: block; font-size: 1.8rem; font-weight: 800; color: var(--stats-text); line-height: 1.1; }
.stats-bar-item__lbl { font-size: 0.78rem; color: var(--stats-text); opacity: 0.75; text-transform: uppercase; letter-spacing: 0.07em; }

/* ── 15. Footer ── */
.site-footer {
  background: var(--footer-bg);
  border-top: 4px solid var(--accent);
  padding: 48px 0 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-agent { display: flex; gap: 20px; align-items: flex-start; }
.footer-headshot {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.footer-agent-info h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.footer-agent-info p { font-size: 0.85rem; color: var(--footer-text); margin-bottom: 3px; }
.footer-agent-info a { color: var(--accent); font-weight: 600; }
.footer-agent-info a:hover { color: var(--accent-lt); }
.footer-brokerage h4 { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.footer-brokerage p, .footer-brokerage a { font-size: 0.85rem; color: var(--footer-text); display: block; margin-bottom: 4px; }
.footer-compliance h4 { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.07em; }
.fair-housing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 10px;
}
.fair-housing-icon { font-size: 1.4rem; }
.fair-housing-text { font-size: 0.72rem; color: var(--footer-text); line-height: 1.3; }
.footer-disclaimer { font-size: 0.75rem; color: var(--footer-text); opacity: 0.6; line-height: 1.5; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── 16. Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Header Agent Subtitle ── */
.header-address-wrap { display: flex; flex-direction: column; overflow: hidden; }
.header-agent { font-size: 0.72rem; font-weight: 600; color: var(--text-soft); letter-spacing: 0.04em; margin-top: 2px; white-space: nowrap; }

/* ── KW Logo in Header ── */
.agency-logo img { height: 28px; width: auto; display: block; }
body.theme-red .agency-logo img { filter: none; }

/* ── Hero Urgency Text ── */
.hero__urgency {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
  margin-top: -14px;
  margin-bottom: 20px;
  font-style: italic;
}

/* ── Property Inquiry Form Section ── */
.inquiry-section {
  background: var(--bg-alt);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.inquiry-form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.inquiry-form-card__header { text-align: center; margin-bottom: 24px; }
.inquiry-form-card__header h2 { font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }
.inquiry-form-card__header p { font-size: 0.92rem; color: var(--text-soft); }
.inquiry-form-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .inquiry-form-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.inquiry-form-card .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-alt);
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.inquiry-form-card .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,1,1,0.1);
}
.inquiry-full { grid-column: 1 / -1; }

/* ── Map Section ── */
.map-section { padding: 56px 0; }
.map-section .section-label { display: block; margin-bottom: 6px; }
.map-section h2 { margin-bottom: 6px; color: var(--text); }
.map-section .map-sub { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 20px; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; border: none; height: 380px; }
.map-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; font-size: 0.88rem; margin-top: 12px; transition: color 0.2s ease; }
.map-link:hover { color: var(--accent-dk); }

/* ── KW Footer Logo ── */
.footer-kw-logo { margin-top: 12px; }
.footer-kw-logo img { height: 36px; width: auto; opacity: 0.85; }

/* ── 17. Media Queries ── */
@media (min-width: 600px) {
  .container { padding: 0 28px; }
  .hero__cta-side { padding: 48px 40px; }
  .cta-cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .container { padding: 0 40px; }
  .hero { grid-template-columns: 3fr 2fr; min-height: calc(100vh - 64px); }
  .hero__video-side { min-height: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .gallery { aspect-ratio: 16 / 7; }
}

/* ── 18. Animations ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }

/* ── 19. Accessibility ── */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
