:root {
  --navy: #0b1830;
  --navy-deep: #071023;
  --navy-light: #16294d;
  --gold: #c9a24d;
  --gold-light: #e6cd93;
  --gold-metal: linear-gradient(135deg, #8a6a1f 0%, #d9af49 22%, #fdf3c0 45%, #d9af49 68%, #8a6a1f 100%);
  --gold-metal-hover: linear-gradient(135deg, #a4822c 0%, #e3c168 28%, #fffbe6 50%, #e3c168 72%, #a4822c 100%);
  --cream: #faf7f0;
  --ink: #1c1c1c;
  --ink-soft: #52586a;
  --border-soft: #e4ddcb;
  --radius: 4px;
  --shadow: 0 18px 40px rgba(11, 24, 48, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lora', serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  color: var(--navy);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.75rem;
}

.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.eyebrow.center { text-align: center; }
.hero .eyebrow,
.hours-card .eyebrow {
  background: var(--gold-metal);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}
.section-title.center { text-align: center; }

.section-lead {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--ink-soft);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 1.1rem 0 0;
}
.section-inner > .divider,
.about-copy .divider,
.contact .divider { justify-content: flex-start; }
.listings .divider { justify-content: center; }
.divider span { width: 46px; height: 1px; background: var(--gold-metal); display: block; }
.divider i { width: 6px; height: 6px; background: var(--gold-metal); transform: rotate(45deg); display: block; box-shadow: 0 0 4px rgba(253,243,192,0.7); }

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-gold {
  background: var(--gold-metal);
  color: var(--navy-deep);
  border-color: #8a6a1f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 12px rgba(138,106,31,0.35);
}
.btn-gold:hover {
  background: var(--gold-metal-hover);
  border-color: #a4822c;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 16px rgba(138,106,31,0.45);
}
.btn-outline-gold {
  background: transparent;
  color: var(--navy);
  border-color: var(--gold);
  margin-top: 1.5rem;
}
.btn-outline-gold:hover {
  background: var(--gold-metal);
  border-color: #8a6a1f;
  color: var(--navy-deep);
}

/* Topbar */
.topbar {
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.45rem 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-phone { color: var(--gold); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 16, 35, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 162, 77, 0.25);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.6rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand-logo { height: 58px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.main-nav {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.main-nav a {
  color: #f2ede1;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-metal);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); display: block; }

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 3.25rem 1.75rem 5rem;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at top right, rgba(22,41,82,0.7), rgba(11,24,48,0.82) 55%, rgba(7,16,35,0.92) 100%);
}
.hero-heading {
  position: relative;
}
.hero-logo-frame {
  display: inline-block;
  margin: 1.5rem auto;
  padding: 2rem 3.25rem;
  background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 22px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(253,243,192,0.15);
}
.hero-logo {
  display: block;
  width: clamp(240px, 36vw, 400px);
  height: auto;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,162,77,0.045) 0, rgba(201,162,77,0.045) 1px, transparent 1px, transparent 26px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #d9dced;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.filter-bar {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
  text-align: left;
}
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field label {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.filter-field select {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.filter-submit { white-space: nowrap; }

/* Listings */
.listings { background: var(--cream); }
.mls-attribution {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}
.filter-status {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink-soft);
  margin: 1.5rem 0 0;
}
.listing-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.listing-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11,24,48,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(18px);
}
.listing-card.is-visible { opacity: 1; transform: translateY(0); }
.listing-card.is-hidden { display: none; }
.listing-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(11,24,48,0.16); }
.listing-media { position: relative; height: 210px; overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.listing-card:hover .listing-media img { transform: scale(1.06); }
.listing-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
}
.listing-body { padding: 1.4rem 1.5rem 1.6rem; }
.listing-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.25rem;
}
.listing-address { margin: 0 0 0.75rem; color: var(--ink-soft); }
.listing-meta {
  list-style: none;
  display: flex;
  gap: 0.9rem;
  padding: 0;
  margin: 0 0 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.listing-meta li { position: relative; padding-left: 0.9rem; }
.listing-meta li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}
.listing-meta li:first-child { padding-left: 0; }
.listing-meta li:first-child::before { display: none; }
.listing-link {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.no-results {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--ink-soft);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

/* Agents */
.agents { background: #fff; }
.agents .section-lead { margin-top: 1rem; }
.agent-scroller-wrap {
  position: relative;
  margin-top: 3rem;
}
.agent-scroller {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.agent-scroller::-webkit-scrollbar { height: 6px; }
.agent-scroller::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 999px; }
.agent-card {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(11,24,48,0.06);
}
.agent-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.1rem;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(253,243,192,0.6), 0 4px 14px rgba(138,106,31,0.35);
  display: block;
}
.agent-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
}
.agent-name {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.agent-license {
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.agent-contact {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  margin-top: 0.25rem;
  white-space: nowrap;
}
.agent-contact:hover { border-bottom-color: var(--gold); }
.agent-arrow {
  position: absolute;
  top: 96px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--navy);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11,24,48,0.12);
  z-index: 2;
}
.agent-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.agent-arrow-prev { left: -22px; }
.agent-arrow-next { right: -22px; }

/* About */
.about { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
.about-copy p { color: var(--ink-soft); }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
  display: grid;
  gap: 0.9rem;
}
.feature-icon { color: var(--gold); margin-right: 0.6rem; font-size: 0.7rem; }

.hours-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2.5rem;
  box-shadow: var(--shadow);
}
.hours-card .eyebrow { color: var(--gold-light); }
.hours-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1.25rem; }
.hours-table { width: 100%; border-collapse: collapse; font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; }
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,0.12); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th, .hours-table td { text-align: left; padding: 0.65rem 0; font-weight: 400; }
.hours-table th { color: #d9dced; font-weight: 500; }
.hours-table td { text-align: right; color: var(--gold-light); }
.hours-table td.closed { color: #8f96ab; }
.hours-cta { display: block; text-align: center; margin-top: 1.75rem; }

/* Contact */
.contact { background: var(--cream); }
.contact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { position: relative; }
.badge-86 {
  position: absolute;
  top: -18px; right: 0;
  width: 56px; height: 56px;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(253,243,192,0.5), 0 3px 10px rgba(138,106,31,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-weight: 700;
}
.contact-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-line { margin: 0 0 0.5rem; color: var(--ink-soft); }
.contact-line a { color: var(--navy); font-weight: 600; }
.map-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 260px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: #fff;
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}
.form-row { display: grid; gap: 0.35rem; }
.form-row label {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.form-row input, .form-row textarea {
  font-family: 'Lora', serif;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  resize: vertical;
}
.form-note { font-family: 'Cormorant Garamond', serif; color: var(--gold); margin: 0; min-height: 1.2em; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d9dced;
  padding: 3.5rem 1.75rem 2rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo { height: 64px; margin: 0 auto 1.5rem; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}
.footer-nav a:hover { color: var(--gold); }
.footer-line { margin: 0 0 0.5rem; }
.footer-line a { color: var(--gold-light); }
.footer-copy { margin: 1.5rem 0 0; font-size: 0.82rem; color: #7c8296; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-submit { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; gap: 0.15rem; text-align: center; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 1.25rem 1.75rem;
    gap: 1rem;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .filter-bar { grid-template-columns: 1fr; }
  .brand-logo { height: 46px; }
  .agent-arrow { display: none; }
}
