/* ============================================================
   Living in the Miracle Real Estate — main stylesheet
   Palette and type direction derived from the supplied brand
   guidelines (Spadore/Lato pairing approximated with licensed
   web fonts; charcoal artwork preserved for logo legibility).
   ============================================================ */

:root {
  --ivory: #FAF7F1;
  --cream: #FFFAF4;
  --oat: #EFE7D9;
  --stone: #F4EFE6;
  --taupe: #D4CFC3;
  --beige: #E4D7C3;
  --charcoal: #3E3B36;
  --charcoal-soft: #5C584F;
  --green: #375F58;
  --green-deep: #2C4B45;
  --slate: #314E66;
  --rose: #B66068;
  --rose-deep: #9C4F57;
  --sage: #789D8A;
  --mustard: #EDD496;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 10px 30px rgba(62, 59, 54, 0.08);
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--ivory);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }
a:hover { color: var(--rose-deep); }

/* ---------- Layout helpers ---------- */

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 58ch;
}

.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  min-height: 44px;
  line-height: 1.2;
}

.btn-primary { background: var(--green); color: var(--ivory); }
.btn-primary:hover { background: var(--green-deep); color: var(--ivory); }

.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal-soft); }
.btn-outline:hover { border-color: var(--green); color: var(--green); background: rgba(55, 95, 88, 0.06); }

.btn-light { background: var(--ivory); color: var(--green-deep); }
.btn-light:hover { background: var(--cream); color: var(--green-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--taupe);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

/* Single combined logo lockup: Living in the Miracle × Set Apart Realty */
.lockup {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.lockup img { display: block; }
.lockup .combined { height: 48px; width: auto; }

/* ---------- Navigation ---------- */

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }

.site-nav > ul > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.6rem 0;
  min-height: 44px;
}

.nav-link:hover, .site-nav a:focus-visible { color: var(--green); }

.nav-link .caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav-cta {
  background: var(--green);
  color: var(--ivory) !important;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta:hover { background: var(--green-deep); }

.dropdown {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  background: var(--ivory);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  text-decoration: none;
}
.dropdown a:hover { background: var(--stone); color: var(--green); }
.dropdown .dropdown-note {
  padding: 0.35rem 1.25rem 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--taupe);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(237, 212, 150, 0.28), transparent 60%),
    radial-gradient(900px 420px at 8% 110%, rgba(120, 157, 138, 0.16), transparent 60%),
    var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 0.5em; }
.hero .lede { font-size: 1.2rem; margin-bottom: 1.8rem; }

.hero-brokerage {
  margin-top: 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--charcoal-soft);
}
.hero-brokerage a { color: inherit; }

.hero-art { position: relative; }

.hero-art svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-alt { background: var(--stone); }
.section-oat { background: var(--oat); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center .section-head { margin-inline: auto; }

/* ---------- Cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.card {
  background: var(--ivory);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.section-alt .card, .section-oat .card { background: var(--cream); }

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--charcoal-soft); font-size: 1rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .btn + .card-link { margin-top: 1rem; }

/* Arch-top pillar cards */
.pillar {
  border-radius: 160px 160px var(--radius) var(--radius);
  padding: 2.6rem 1.8rem 2rem;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--taupe);
}
.pillar .glyph { margin: 0 auto 1.2rem; width: 54px; height: auto; color: var(--green); }
.pillar h3 { font-size: 1.45rem; }
.pillar p { font-size: 0.98rem; color: var(--charcoal-soft); }

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--rose);
  width: 56px; height: 56px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.2em; }
.step p { color: var(--charcoal-soft); font-size: 1rem; }

/* ---------- Split feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-art svg { width: 100%; height: auto; }

/* ---------- Decorative dividers ---------- */

.scallop {
  height: 14px;
  background:
    radial-gradient(circle at 10px -6px, transparent 14px, var(--stone) 15px) repeat-x;
  background-size: 20px 20px;
}
.scallop-next-ivory { background: radial-gradient(circle at 10px -6px, transparent 14px, var(--ivory) 15px) repeat-x; background-size: 20px 20px; }

.rule {
  display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0;
}
.rule::before, .rule::after {
  content: ""; height: 1px; background: var(--taupe); flex: 1;
}
.rule .key { width: 22px; height: auto; opacity: 0.7; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--green);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 220px at 50% 120%, rgba(237, 212, 150, 0.25), transparent 60%);
  pointer-events: none;
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(250, 247, 241, 0.88); max-width: 52ch; margin-inline: auto; }

/* ---------- Forms / Flodesk ---------- */

.form-card {
  background: var(--ivory);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  max-width: 640px;
  margin-inline: auto;
}
.section-alt .form-card, .section-oat .form-card { background: var(--cream); }

.fd-form-hint {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 1rem;
}

/* ---------- Contact details ---------- */

.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 0.5rem 0; }
.contact-list a { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--taupe); }
.contact-list a:hover { border-color: currentColor; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; }
.faq h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
.faq p { color: var(--charcoal-soft); }
.faq-item { padding: 1.6rem 0; border-bottom: 1px solid var(--taupe); }
.faq-item:last-child { border-bottom: none; }

/* ---------- Prose ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--charcoal-soft); }
.prose li { margin-bottom: 0.5em; }

/* ---------- Page banner (interior pages) ---------- */

.page-banner {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(237, 212, 150, 0.22), transparent 60%),
    var(--ivory);
  border-bottom: 1px solid var(--taupe);
}
.page-banner h1 { margin-bottom: 0.35em; }
.page-banner .lede { margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--oat);
  border-top: 1px solid var(--taupe);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  color: var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.footer-lockup { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.footer-pair-row {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.footer-pair-row .litm-full { height: 78px; width: auto; }
/* Collab-style × between the two footer logos */
.footer-pair-row .pair-sep {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  color: #111;
}
.footer-pair-row .setapart { height: 60px; width: auto; }

.footer-brokerage {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.footer-brokerage a { color: var(--charcoal); }

.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: var(--charcoal); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-col a:hover { color: var(--green); border-color: var(--taupe); }

.footer-contact a { font-weight: 700; }

.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--taupe);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

/* ---------- Hero art ---------- */

.hero-art {
  text-align: center;
  position: relative;
  padding-top: 2.4rem;
}

.sunburst {
  /* sized by .hero-art svg (width: 100%); centered behind the arch card */
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
}

.arch-frame {
  width: min(320px, 78%);
  margin: 0 auto;
  border: 1.5px solid rgba(62, 59, 54, 0.55);
  border-radius: 200px 200px 14px 14px;
  padding: 2.6rem 2rem 1.9rem;
  background: var(--cream);
  position: relative;
}

.arch-frame img { margin: 0 auto; width: 56%; height: auto; }

.arch-frame-soft { border-color: rgba(62, 59, 54, 0.35); }

.hero-key {
  width: 118px;
  margin: 1.5rem auto 0;
  opacity: 0.85;
}

/* ---------- Portrait photos ---------- */

.photo-arch {
  width: min(400px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(62, 59, 54, 0.35);
  border-radius: 220px 220px 14px 14px;
  padding: 10px;
  background: var(--cream);
}

.photo-arch img {
  width: 100%;
  height: auto;
  border-radius: 210px 210px 8px 8px;
  display: block;
}

.photo-arch-small { width: min(300px, 78%); margin-top: 1.4rem; }

.photo-arch-inline { width: min(340px, 100%); margin-bottom: 0; }

/* ---------- Google reviews widget ---------- */

.gr-reviews { text-align: left; }

.gr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.gr-grid-few { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; }

.gr-card {
  background: var(--ivory);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.section-alt .gr-card, .section-oat .gr-card { background: var(--cream); }

.gr-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gr-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.3rem;
}

.gr-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.gr-name { font-weight: 700; }
.gr-name a { color: var(--charcoal); text-decoration: none; border-bottom: 1px solid var(--taupe); }
.gr-name a:hover { color: var(--green); }

.gr-date { font-size: 0.82rem; color: var(--charcoal-soft); }

.gr-stars { display: inline-flex; gap: 2px; }

.gr-star { width: 16px; height: 16px; fill: var(--taupe); }
.gr-star-on { fill: #C9A54A; }

.gr-text {
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  margin: 0.25rem 0 0.5rem;
  text-wrap: pretty;
}

.gr-review-link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gr-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.gr-attribution {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin: 0 0 1.2rem;
}

.gr-more { display: inline-block; }

.gr-fallback { text-align: center; }
.gr-fallback .gr-attribution { margin-bottom: 0.9rem; }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; order: -1; }
}

@media (max-width: 1020px) {
  .site-nav ul { gap: 0.9rem; }
  .nav-link { font-size: 0.72rem; }
  .lockup .litm { height: 24px; }
  .lockup .setapart { height: 32px; }
}

@media (max-width: 880px) {
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-art { max-width: 380px; margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-pair-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .footer-pair-row .pair-sep { font-size: 1.9rem; align-self: center; }

  /* Mobile navigation */
  .nav-toggle { display: flex; flex-direction: column; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--taupe);
    box-shadow: var(--shadow);
    display: none;
    padding: 0.5rem 4vw 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--stone); }
  .nav-link { justify-content: space-between; padding: 0.9rem 0; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    padding: 0 0 0.8rem 0.9rem;
    background: transparent;
  }
  .nav-cta { margin-top: 1rem; justify-content: center; }

  /* Compact combined logo on small screens */
  .lockup .combined { height: 38px; }
}

@media (max-width: 560px) {
  .btn { width: 100%; text-align: center; }
  .btn-row .btn { width: auto; }
  .step { grid-template-columns: 44px 1fr; }
  .step::before { width: 44px; height: 44px; font-size: 1.3rem; }
}
