/* ==========================================================================
   Template: "Meridian Realty" — real estate starter
   Style lineage: reskin of a TemplateMonster "RenewPath" rehab-center demo —
   rounded pill buttons, soft card shadows, overlapping image+stat-badge
   hero motif, dark contrast band, fade-in-on-scroll cards, accordion FAQ,
   sticky call button. Palette swapped from mint/teal to navy + warm gold
   to suit real estate. Swap the --color-* tokens below to reskin further.
   ========================================================================== */

:root {
  --navy: #1b2a4a;
  --navy-soft: #33405c;
  --gold: #c9a227;
  --gold-light: #e0c158;
  --ink: #26314a;
  --muted: #6b7280;
  --cream: #faf7f0;
  --sand: #ece0be;
  --white: #ffffff;
  --border: rgba(27,42,74,0.10);
  --shadow: 0 4px 20px -4px rgba(27,42,74,0.12);
  --shadow-lg: 0 12px 32px -8px rgba(27,42,74,0.18);
  --radius-card: 16px;
  --radius-pill: 9999px;
  --font-heading: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1240px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.2;
}
h1 { font-size: 52px; }
h2 { font-size: 34px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { margin: 0 0 18px; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.10);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 22px;
}

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; justify-content: center; }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,247,240,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--navy); }
.logo .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.nav-links a:hover { color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 18px; }

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: 70px 0 110px;
  background: linear-gradient(135deg, var(--cream) 0%, #f3ebd8 50%, var(--sand) 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 18px; max-width: 480px; }
.btn-group { display: flex; gap: 16px; margin: 30px 0 34px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 26px; font-size: 14px; font-weight: 500; color: var(--navy); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media .img-slot { height: 420px; border-radius: 24px; }
.stat-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px;
  max-width: 220px;
}
.stat-badge .num { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat-badge .label { font-size: 13px; color: var(--muted); }

.sticky-call {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 15px 22px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
}
.sticky-call svg { width: 18px; height: 18px; color: var(--gold-light); }
.sticky-call:hover { background: var(--navy-soft); }

/* ------------------------------------------------------------------ Section */
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* --------------------------------------------------------------- Fade-in */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------- Listings */
.listing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.listing-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.listing-card .img-slot { height: 190px; border-radius: 0; }
.listing-card .body { padding: 20px 22px 24px; }
.listing-card .price { font-family: var(--font-heading); font-weight: 700; color: var(--navy); font-size: 20px; margin-bottom: 6px; }
.listing-card .addr { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.listing-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--navy); font-weight: 500; margin-bottom: 14px; }
.listing-card a.view { font-size: 13px; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; }

/* -------------------------------------------------------------- Image slots */
.img-slot {
  width: 100%;
  background: repeating-linear-gradient(135deg, var(--cream), var(--cream) 12px, #efe6cc 12px, #efe6cc 24px);
  border: 1px dashed rgba(27,42,74,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #9b9583;
}
.img-slot svg { width: 26px; height: 26px; margin-bottom: 10px; opacity: 0.6; }
.img-slot .label { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 700; color: #6b6656; }
.img-slot .dims { font-size: 11px; color: #a19b89; margin-top: 5px; }

.hero-photo { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; display: block; }
.about-img { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; display: block; }
.listing-photo { width: 100%; height: 190px; object-fit: cover; display: block; }
.neighborhood-photo { width: 100%; height: 300px; object-fit: cover; display: block; }

/* ------------------------------------------------------------------- About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-media .img-slot { height: 440px; border-radius: 24px; }
.about-media .stat-badge { right: -24px; left: auto; bottom: -24px; }
.check-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink); font-weight: 500; }
.check-list svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

/* ---------------------------------------------------------------- Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.process-step { position: relative; padding-top: 8px; }
.process-step .step-num {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------- Why band */
.why-band { background: var(--navy); color: var(--white); padding: 100px 0 70px; }
.why-band h2 { color: var(--white); }
.why-band .section-head p { color: rgba(255,255,255,0.65); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 64px; }
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}
.why-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(201,162,39,0.18);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card h4 { color: var(--white); margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 0; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 48px; }
.stats-row .num { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: var(--gold-light); margin-bottom: 6px; }
.stats-row .label { font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------------------------------------------------------- Neighborhoods */
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.neighborhood-card { position: relative; border-radius: var(--radius-card); overflow: hidden; }
.neighborhood-card .img-slot { height: 300px; border: none; border-radius: 0; }
.neighborhood-card .tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(27,42,74,0.85);
  color: var(--white);
  font-size: 13px; font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------- Services */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px 26px; box-shadow: var(--shadow); }
.service-card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(201,162,39,0.12);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card p { font-size: 14px; margin-bottom: 0; }

/* --------------------------------------------------------------- Contact */
.contact-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 54px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
}
.contact-perks { display: grid; gap: 16px; margin: 26px 0; }
.contact-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--navy); }
.contact-perks svg { width: 18px; height: 18px; color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.form-grid textarea { min-height: 110px; resize: vertical; }

/* ----------------------------------------------------------- Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow); }
.testimonial-card .quote-icon { color: var(--sand); width: 30px; height: 30px; margin-bottom: 14px; }
.testimonial-card p { font-size: 14px; font-style: italic; color: var(--ink); margin-bottom: 18px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar-initial {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.testimonial-person .name { font-weight: 700; font-size: 14px; color: var(--navy); }
.testimonial-person .role { font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------------- FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 20px 26px; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { width: 26px; height: 26px; border-radius: 50%; background: rgba(201,162,39,0.14); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item p { margin: 14px 0 0; font-size: 14.5px; }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: 28px;
  padding: 70px 60px;
  text-align: center;
  color: var(--white);
  margin: 0 32px;
}
.cta-band h2 { color: var(--white); max-width: 600px; margin: 0 auto 16px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 30px; }
.cta-band .btn-group { justify-content: center; margin-bottom: 0; }
.cta-phone { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--gold-light); }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 90px 0 30px; margin-top: 90px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 50px; }
.footer-top h4 { color: var(--white); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px; }
.footer-top a, .footer-top li { display: block; font-size: 14px; padding: 6px 0; color: rgba(255,255,255,0.6); }
.footer-top a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 14px; }
.newsletter-row { display: flex; gap: 0; margin-top: 16px; }
.newsletter-row input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); color: var(--white); font-family: var(--font-body); font-size: 13px;
}
.newsletter-row button {
  padding: 12px 20px; border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--gold); color: var(--navy); border: none; font-weight: 700; font-size: 13px; cursor: pointer;
}
.badge-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.badge-pill { font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: flex; justify-content: space-between; font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1000px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero-grid, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .listing-grid, .why-grid, .service-grid, .testimonial-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .about-media { margin-bottom: 40px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .listing-grid, .why-grid, .service-grid, .testimonial-grid, .process-grid, .footer-top, .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 50px 28px; margin: 0 20px; }
  .contact-card { padding: 30px 24px; }
  .sticky-call span.text { display: none; }
}
