/*
Theme Name: ZenithEstate
Theme URI: https://yourdomain.com
Author: Your Name
Author URI: https://yourdomain.com
Description: A luxury real estate WordPress theme with property listings, agents, and featured content management.
Version: 1.0.0
License: GPL v2 or later
Text Domain: zenithestate
*/

:root {
  --navy:      #0B1426;
  --navy-mid:  #152238;
  --gold:      #C9A84C;
  --gold-lt:   #E2C97A;
  --offwhite:  #F5F0E8;
  --coolbg:    #E8EDF2;
  --slate:     #6B7A8D;
  --card-bg:   #FFFFFF;
  --border:    #DDE3EA;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--coolbg);
  color: var(--navy);
  margin: 0;
  padding-top: 72px;
}

.font-display { font-family: 'Cormorant Garamond', serif; }

/* ── NAVBAR ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,20,38,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  height: 72px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-lt); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; color: var(--navy) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,20,38,0.2) 0%,
    rgba(11,20,38,0.3) 40%,
    rgba(11,20,38,0.72) 80%,
    rgba(11,20,38,0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 64px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: white;
  margin: 0 0 40px;
  max-width: 700px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-lt);
}

/* ── SEARCH BAR ── */
.search-bar {
  background: rgba(255,255,255,0.97);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 860px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.search-field select,
.search-field input {
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  padding: 0;
  font-family: 'Inter', sans-serif;
  width: 100%;
  appearance: none;
  cursor: pointer;
}
.search-btn {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--gold); color: var(--navy); }

.hero-indicators {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 24px; height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}
.hero-dot.active {
  background: var(--gold);
  width: 36px;
}

/* ── STATS RIBBON ── */
.stats-ribbon {
  background: var(--navy);
  padding: 32px 0;
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
  justify-content: space-between;
  align-items: center;
}
.stat-item {
  text-align: center;
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 0 24px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  display: block;
}

/* ── SECTION WRAPPER ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 8px;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--slate);
  max-width: 480px;
  line-height: 1.65;
}

/* ── FILTER TABS ── */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  margin-top: 32px;
}
.filter-tab {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

/* ── PROPERTY CARD ── */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.prop-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
  position: relative;
}
.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(11,20,38,0.12);
}

.prop-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.prop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.prop-card:hover .prop-img-wrap img { transform: scale(1.05); }

.prop-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}
.prop-tag.for-rent { background: var(--navy); color: white; }

.prop-save {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--slate);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.prop-save:hover { background: white; color: #E53E3E; }

.prop-body {
  padding: 20px 22px 16px;
}

.prop-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.prop-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.prop-location {
  font-size: 0.78rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.prop-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.prop-specs {
  display: flex;
  gap: 16px;
}
.prop-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--slate);
  font-weight: 500;
}
.prop-spec i { color: var(--gold); font-size: 0.8rem; }

.prop-footer {
  padding: 12px 22px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prop-agent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prop-agent-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.prop-agent-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
}
.prop-view-btn {
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  display: inline-block;
}
.prop-view-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── FEATURED (LARGE CARD) ── */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(11,20,38,0.08);
  margin-bottom: 28px;
}
.featured-img {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(255,255,255,0.08));
}
.featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-flag {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.featured-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.featured-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}
.featured-loc {
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 24px;
}
.featured-specs {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.featured-spec {
  text-align: center;
}
.featured-spec-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  line-height: 1;
}
.featured-spec-lbl {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-top: 4px;
}
.btn-primary-dark {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 13px 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-primary-dark:hover { background: var(--gold); color: var(--navy); }

/* ── WHY US ── */
.why-wrap {
  background: var(--navy);
  padding: 80px 0;
}
.why-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.why-inner .section-title { color: var(--offwhite); }
.why-inner .section-sub { color: rgba(255,255,255,0.5); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 56px;
}
.why-card {
  background: rgba(255,255,255,0.04);
  padding: 36px 28px;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.why-card:first-child { border-left: none; }
.why-card:hover { background: rgba(201,168,76,0.08); }
.why-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,0.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.3rem;
}
.why-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 10px;
}
.why-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ── AGENTS ── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.agent-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
  transition: box-shadow 0.2s;
}
.agent-card:hover { box-shadow: 0 16px 40px rgba(11,20,38,0.1); }
.agent-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}
.agent-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 16px 0 3px;
  padding: 0 16px;
}
.agent-title-txt {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.agent-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.agent-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  display: block;
  line-height: 1;
}
.agent-stat-lbl {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-top: 3px;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-radius: 12px;
  padding: 64px 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.04;
  right: -80px; top: -140px;
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.06;
  left: -60px; bottom: -80px;
  pointer-events: none;
}
.cta-text { position: relative; z-index: 1; }
.cta-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: white;
  line-height: 1.2;
  margin: 0 0 8px;
}
.cta-sub {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
}
.cta-actions {
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 4px;
  padding: 13px 28px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-lt); color: var(--navy); }
.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  padding: 13px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline-white:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
  color: white;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  padding: 72px 0 0;
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--gold); }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--offwhite); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { height: 300px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-content { padding: 0 20px 80px; }
  .hero-headline { font-size: 2.6rem; }
  .search-bar {
    flex-direction: column;
    gap: 0;
    padding: 8px;
  }
  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 14px;
  }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 6px;
    margin-top: 6px;
  }
  .stats-inner {
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
  }
  .stat-item {
    flex: 0 0 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
  }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .section { padding: 56px 20px; }
  .prop-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner {
    flex-direction: column;
    padding: 44px 28px;
    text-align: center;
  }
  .cta-actions { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 20px; text-align: center; }
  .hero-indicators { bottom: 88px; right: 20px; }
}

@media (max-width: 480px) {
  .agent-grid { grid-template-columns: 1fr; }
}