/* =====================================================================
   Anastasia Pro — prosalehomes.com
   Static rebuild of the Sitejet site. Shared design system.
   Palette sampled from the live site; a couple of values were nudged
   from the original to meet WCAG 2.2 AA (see --body, --header-green).
   ===================================================================== */

:root {
  /* Brand */
  --green:        #567357;  /* primary brand green (buttons, accents, header) */
  --green-dark:   #46603f;  /* hover / active */
  --sage:         #7b927b;  /* soft sage (live header tint) */

  /* Neutrals */
  --ink:          #0d1116;  /* headings */
  --body:         #5f5b58;  /* body copy — deepened from live #9e9b9a for AA */
  --muted:        #5a544d;  /* secondary text — dark enough to pass AA on beige band */
  --beige:        #deded7;  /* section band */
  --light:        #f0f2f1;  /* light gray section */
  --footer:       #2b241f;  /* dark brown footer */
  --footer-line:  #4a423b;
  --line:         #e4e4e0;
  --white:        #ffffff;

  --wrap:  1200px;
  --wrap-narrow: 860px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(13,17,22,.10);
  --ease: .25s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;      /* 18px */
  font-weight: 500;         /* medium — consistent body weight site-wide */
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--green-dark); }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: inherit; }

/* Visible keyboard focus (WCAG 2.2) */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }   /* up to 56px */
h2 { font-size: clamp(1.875rem, 3.6vw, 2.25rem); } /* up to 36px */
h3 { font-size: 1.5rem; }   /* 24px */
h4 { font-size: 1.125rem; } /* 18px */
h5 { font-size: 1rem; }     /* 16px */
p  { text-wrap: pretty; }

/* Display override (size decoupled from level) */
.display { font-size: clamp(2.75rem, 4.8vw, 4rem); } /* “Anastasia Pro” */

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--beige { background: var(--beige); }
.section--light { background: var(--light); }
.section--green { background: var(--green); color: #eef1ee; }
.section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  font-size: .875rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--green); margin: 0 0 .75rem;
}
.lead { font-size: 1.25rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: .85em 1.75em; border-radius: 0;
  border: 2px solid var(--green); background: var(--green); color: #fff;
  cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease);
  text-align: center;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--white:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* White outline → fills white on hover (for use over photos/video) */
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { display: block; width: 100%; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.site-header .wrap { max-width: 1360px; display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); min-height: 84px; }
.brand { flex: 0 0 auto; margin-right: auto; }
.brand img { height: 50px; width: auto; filter: brightness(0) invert(1); }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2.25rem); margin: 0; padding: 0; }
.main-nav a { color: #fff; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; display: block; padding: .4rem 0; white-space: nowrap; }
.main-nav a:hover { color: #dfe7df; }
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .8; }

/* Dropdowns */
.submenu {
  list-style: none; margin: 0; padding: .5rem 0;
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.submenu a { color: var(--ink); text-transform: none; letter-spacing: normal; font-size: .95rem; font-weight: 500; padding: .55rem 1.25rem; }
.submenu a:hover { color: var(--green); background: var(--light); }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.header-cta { flex: 0 0 auto; }
.header-cta a {
  display: inline-block; color: #fff; font-weight: 600; font-size: .8125rem;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  padding: .7rem 1.25rem; border: 2px solid #fff; border-radius: 0;
  transition: background var(--ease), color var(--ease);
}
.header-cta a:hover { background: #fff; color: var(--green); }

/* Hamburger */
.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 0; cursor: pointer; padding: .5rem;
  width: 44px; height: 44px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px auto; transition: var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative; color: #fff;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(13,17,22,.6); z-index: 1; }
.hero .wrap { position: relative; z-index: 2; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero--tall { min-height: min(88vh, 760px); }
.hero--page { min-height: 340px; text-align: center; }
.hero h1, .hero h2 { color: #fff; text-shadow: 0 2px 10px rgba(13,17,22,.45); }
/* Heavier weight + shadow so body copy stays readable over the photo */
.hero p { color: #f4f3f1; font-weight: 500; text-shadow: 0 1px 6px rgba(13,17,22,.5); }
.hero .contact-block .label { text-shadow: 0 1px 6px rgba(13,17,22,.5); }
.hero--page .hero-inner { max-width: 780px; margin-inline: auto; }
.hero .hero-desc { font-size: 1.15rem; margin-top: .5rem; }

/* Home hero */
.home-hero .hero-tag { max-width: 640px; }
.home-hero .btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

/* Hero with content (about) — keep text legible on the dark overlay */
.hero a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero .contact-block .label { color: #fff; }
.hero .social a { background: #fff; color: var(--green); }
.hero .social a:hover { background: var(--beige); }
.hero--about { align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero--about .about-split { align-items: center; }
.hero--about h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.hero--about img { width: 100%; }

/* =====================================================================
   Home — intro / agent
   ===================================================================== */
.intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.intro__photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.intro .contact-block { margin-top: 1.5rem; }
.intro .contact-block .label { font-weight: 700; color: var(--ink); display: block; margin-bottom: .5rem; }
.social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; color: #fff;
}
.social a:hover { background: var(--green-dark); color: #fff; }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Services band (Selling / Buying) */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); }
.svc { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; align-items: start; }
.svc .icon { width: 56px; height: 56px; color: var(--green); }
.svc .icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.svc h2 { border-bottom: 1px solid rgba(13,17,22,.15); padding-bottom: .5rem; margin-bottom: .75rem; }
.svc p { color: var(--muted); margin: 0; }

/* Listings embeds */
.embed { width: 100%; border: 0; display: block; }
.embed-wrap { margin-top: 2rem; }
.view-more { text-align: center; margin-top: 2rem; }

/* Home-type feature rows */
.feature-rows { display: flex; flex-direction: column; gap: 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.frow__img { aspect-ratio: 1/1; background-size: cover; background-position: center; width: 100%; height: 100%; min-height: 360px; }
.frow__body { padding: clamp(2rem, 5vw, 4.5rem); }
.frow__body h2 a { color: var(--ink); }
.frow__body h2 a:hover { color: var(--green); }
.frow__body p { color: var(--muted); margin-bottom: 1.5rem; }
.frow .arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.frow .arrow svg { width: 26px; height: 14px; }

/* CTA band */
.cta-band { position: relative; background: #514a43 center/cover no-repeat; color: #fff; text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(13,17,22,.66); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto .6em; }
.cta-band p { color: #ece8e3; max-width: 620px; margin: 0 auto 1.5rem; }
.cta-band .btn { margin-top: 1rem; }

/* =====================================================================
   Testimonials
   ===================================================================== */
/* Carousel — one testimonial at a time, comfortably wide */
.testi-carousel { position: relative; max-width: 900px; margin: 2.5rem auto 0; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform .45s ease; }
.testi {
  flex: 0 0 100%; box-sizing: border-box; margin: 0;
  background: #fff; border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-align: center;
}
.testi .quote { color: var(--muted); font-style: italic; font-size: 1.125rem; margin: 0 0 1.5rem; }
.testi .quote::before { content: "“"; color: var(--green); font-size: 3rem; line-height: 0; vertical-align: -.4em; margin-right: .1em; }
.testi .who strong { display: block; color: var(--ink); font-size: 1.125rem; }
.testi .who span { font-size: .9rem; color: var(--green); }

.testi-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border: 2px solid var(--green); background: #fff; color: var(--green);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  transition: background var(--ease), color var(--ease);
}
.testi-nav:hover { background: var(--green); color: #fff; }
.testi-nav.prev { left: -22px; }
.testi-nav.next { right: -22px; }
.testi-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.testi-dots button {
  width: 11px; height: 11px; padding: 0; border: 0; background: #cfcdc9; cursor: pointer;
  transition: background var(--ease);
}
.testi-dots button[aria-current="true"] { background: var(--green); }
@media (max-width: 640px) {
  .testi-nav.prev { left: 4px; } .testi-nav.next { right: 4px; }
}

/* =====================================================================
   Content pages (buying / selling / about)
   ===================================================================== */
.prose { max-width: var(--wrap-narrow); margin-inline: auto; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }
.step-title { color: var(--ink); font-weight: 700; }

/* About split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Connect band (shared CTA) */
.connect { text-align: center; }
.connect h2 { margin-bottom: .75rem; }
.connect p { max-width: 620px; margin: 0 auto 1.5rem; color: var(--muted); }
.connect .btn-stack { display: flex; flex-direction: column; gap: .9rem; max-width: 520px; margin: 1.5rem auto 0; }

/* =====================================================================
   Contact page
   ===================================================================== */
.contact-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; }
.ccard { text-align: center; display: flex; flex-direction: column; }
.ccard .icon { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--ink); }
.ccard .icon svg { width: 100%; height: 100%; fill: currentColor; }
.ccard h2 { margin-bottom: 1rem; text-wrap: balance; }
.ccard .btn { width: 100%; margin-top: auto; }

.contact-form { max-width: var(--wrap-narrow); margin: 2.5rem auto 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.form-field input, .form-field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1px solid #c9c9c6; border-radius: var(--radius);
  background: #fafafa; width: 100%; transition: border-color var(--ease), box-shadow var(--ease);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(86,115,87,.18); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-actions { margin-top: 1.25rem; }
.form-note { margin-top: 1rem; font-size: .95rem; }
.form-note[hidden] { display: none; }
.form-note.ok { color: var(--green-dark); }
.form-note.err { color: #b3261e; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--footer); color: #cfc9c2; }
.site-footer a { color: #cfc9c2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: clamp(2rem,5vw,4rem); padding-block: clamp(3rem,6vw,4.5rem); }
.footer-brand img.logo { height: 64px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.footer-heller img { height: 46px; width: auto; margin-bottom: 1rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.125rem; margin-bottom: 1rem; }
.site-footer p { color: #cfc9c2; margin-bottom: .35rem; font-size: .95rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid var(--footer-line); padding-block: 1.5rem; font-size: .85rem; color: #9c948b; }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .intro, .svc-row, .frow, .about-split, .footer-grid { grid-template-columns: 1fr; }
  .frow__img { min-height: 300px; }
  .frow--reverse .frow__img { order: -1; }
  .testi-grid, .contact-cards { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 84px 0 0 auto; width: min(340px, 84vw);
    background: var(--green); margin: 0; padding: 1.25rem;
    transform: translateX(100%); transition: transform var(--ease);
    overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.2);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.15); }
  .main-nav a { padding: .85rem 0; font-size: .95rem; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 .5rem 1rem; display: none;
  }
  .has-sub.open > .submenu { display: block; }
  .submenu a { color: #e4ebe4; padding: .5rem 0; }
  .submenu a:hover { background: transparent; color: #fff; }
  .has-sub > a::after { float: right; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .home-hero .btn-row .btn { width: 100%; }
}
