/* Meridian — Real Estate template
   Palette: deep navy + champagne gold, on warm white
   Type: Playfair Display (display) / Inter (body) / IBM Plex Mono (labels) */

:root {
  --ink: #1a2130;
  --navy: #1f2b45;
  --navy-deep: #131b2c;
  --gold: #c6a15b;
  --gold-deep: #a8843f;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #e6e1d6;

  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --font-label: "IBM Plex Mono", monospace;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html{scroll-behavior:auto;} * { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.label { font-family: var(--font-label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(250,248,244,.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); font-family: var(--font-display); font-weight: 700; font-size: 24px; }
nav.primary { display: flex; gap: 30px; }
nav.primary a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
nav.primary a:hover { color: var(--gold-deep); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; padding: 12px 22px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--outline:hover { border-color: var(--white); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* hero */
.hero { position: relative; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--white); }
.hero-inner { padding: 100px 0 60px; max-width: 720px; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(38px,5vw,58px); line-height: 1.08; margin: 16px 0 20px; }
.hero h1 span { color: var(--gold); }
.hero p.lede { font-size: 17px; line-height: 1.6; color: #c7cbd6; max-width: 48ch; margin-bottom: 34px; }

/* search bar overlapping hero */
.search-bar { background: var(--white); border-radius: 6px; box-shadow: 0 20px 44px rgba(0,0,0,.18); padding: 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; margin-top: -34px; position: relative; z-index: 5; }
.search-bar .field label { display: block; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #8a8471; margin-bottom: 6px; }
.search-bar .field input, .search-bar .field select { width: 100%; border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; font-family: var(--font-body); font-size: 14px; color: var(--ink); background: var(--paper); }
.search-bar .btn--primary { align-self: end; }

/* sections */
section { padding: 84px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .label { display: block; margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(26px,3.2vw,34px); margin: 0 0 12px; color: var(--navy-deep); }
.section-head p { color: #5a5a5a; line-height: 1.6; margin: 0; }

/* listings */
.listing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.listing { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.listing-photo { height: 190px; position: relative; }
.listing-photo .ribbon { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy-deep); font-family: var(--font-label); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; font-weight: 700; }
.listing-body { padding: 20px; }
.listing-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.listing-addr { font-size: 14px; color: #5a5a5a; margin-bottom: 12px; }
.listing-meta { display: flex; gap: 16px; font-family: var(--font-label); font-size: 12px; color: #8a8471; border-top: 1px solid var(--line); padding-top: 12px; }

/* agent */
.agent-shell { display: grid; grid-template-columns: .4fr 1fr; gap: 44px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 40px; }
.agent-photo { aspect-ratio: 1; background: linear-gradient(135deg,#1f2b45,#c6a15b); border-radius: 4px; }
.agent-copy h3 { font-family: var(--font-display); font-style: italic; font-size: 26px; margin: 0 0 6px; color: var(--navy-deep); }
.agent-copy p { color: #5a5a5a; line-height: 1.6; margin: 0 0 18px; }

/* testimonials */
.testi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.testi { background: var(--white); border-top: 3px solid var(--gold); padding: 24px; border-radius: 3px; }
.testi p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; font-style: italic; }
.testi .who { font-family: var(--font-label); font-size: 12px; color: #5a5a5a; }

/* contact CTA */
.contact-shell { background: var(--navy-deep); color: var(--white); border-radius: 8px; padding: 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.contact-copy h2 { font-family: var(--font-display); font-style: italic; font-size: clamp(24px,3vw,30px); margin: 12px 0 12px; }
.contact-copy p { color: #c7cbd6; line-height: 1.6; margin: 0; }
.form-row { margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; font-family: var(--font-label); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #c7cbd6; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; font-family: var(--font-body); font-size: 14.5px; padding: 11px 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: var(--white); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #8891a3; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.contact-form .btn--primary { width: 100%; justify-content: center; margin-top: 4px; background: var(--gold); color: var(--navy-deep); }
.contact-form .btn--primary:hover { background: var(--gold-deep); }

/* footer */
footer.site-footer { background: var(--ink); color: #9aa0ab; padding: 46px 0 26px; }
footer.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
footer.site-footer h4 { font-family: var(--font-label); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
footer.site-footer p, footer.site-footer a { font-size: 14px; line-height: 1.8; text-decoration: none; color: #9aa0ab; }
footer.site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-family: var(--font-label); font-size: 11px; color: #5c6270; }

@media (max-width: 900px) {
  nav.primary { display: none; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .listing-grid, .testi-row { grid-template-columns: 1fr; }
  .agent-shell, .contact-shell { grid-template-columns: 1fr; padding: 30px; }
  .two-col { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}
