/* =========================================================
   Matt McGrath Real Estate — Design System
   ========================================================= */

:root {
  --navy: #0E1B2C;
  --navy-2: #182A44;
  --navy-3: #243A5C;
  --cream: #F8F3EA;
  --cream-2: #EFE6D2;
  --cream-3: #E4D9BE;
  --gold: #B8884A;
  --gold-2: #C9A24C;
  --gold-light: #E5CB91;
  --ink: #14202F;
  --text: #1A2436;
  --muted: #5C6877;
  --muted-2: #8A95A4;
  --line: #E6DEC9;
  --line-2: #EFE9DA;
  --white: #FFFFFF;
  --bg: #FBF8F1;
  --shadow-sm: 0 2px 8px rgba(14, 27, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(14, 27, 44, 0.08);
  --shadow-lg: 0 32px 80px rgba(14, 27, 44, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --container: 1240px;
  --header-h: 84px;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --t-fast: 180ms cubic-bezier(.2,.7,.3,1);
  --t-base: 320ms cubic-bezier(.2,.7,.3,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--muted); }
p.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #3A4658; line-height: 1.65; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
ul li, ol li { margin-bottom: 0.4em; color: var(--muted); }

hr { border: none; height: 1px; background: var(--line); margin: 3rem 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 28px; }

section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.center::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #FFF;
  box-shadow: 0 12px 28px rgba(184, 136, 74, 0.35);
}
.btn-primary:hover {
  background: var(--ink);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(14, 27, 44, 0.25);
}
.btn-dark {
  background: var(--ink);
  color: #FFF;
}
.btn-dark:hover {
  background: var(--gold);
  color: #FFF;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #FFF;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}
.btn-link:hover { color: var(--gold); border-color: var(--gold); gap: 12px; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(14, 27, 44, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.site-header.transparent:not(.is-scrolled) .brand,
.site-header.transparent:not(.is-scrolled) .nav-link {
  color: #FFF;
}
.site-header.transparent:not(.is-scrolled) .brand small { color: rgba(255,255,255,0.7); }
.site-header.transparent:not(.is-scrolled) .brand .brand-mark { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  border-radius: 999px;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--gold); }
.nav-link.active { color: var(--gold); }
.nav-item.has-sub { position: relative; }
.nav-item.has-sub > .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  margin-top: -3px;
  opacity: 0.6;
}
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: #FFF;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 14px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear var(--t-fast);
}
.nav-item.has-sub:hover .submenu,
.nav-item.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s linear 0s;
}
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.submenu a small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}
.submenu a:hover { background: var(--cream); color: var(--gold); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.site-header.transparent:not(.is-scrolled) .header-phone { color: #FFF; }
.header-phone svg { color: var(--gold); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFF;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .header-phone, .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--cream);
    padding: 32px 28px;
    transform: translateX(100%);
    transition: transform var(--t-base);
    overflow-y: auto;
  }
  body.menu-open .nav { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav-item.has-sub > .nav-link::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  color: #FFF;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 27, 44, 0.55) 0%, rgba(14, 27, 44, 0.78) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=2000&q=80&auto=format&fit=crop") center/cover no-repeat;
  z-index: -1;
}
.hero-inner { max-width: 820px; }
.hero h1 {
  color: #FFF;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 500;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero p.lead {
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
  max-width: 720px;
}
.hero-stats .stat-num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  color: #FFF;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll .line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold-light);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; } 100% { top: 100%; }
}

/* ---------- Page Hero (interior pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 90px;
  color: #FFF;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(180deg, rgba(14, 27, 44, 0.65) 0%, rgba(14, 27, 44, 0.85) 100%),
    var(--page-hero-img, url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=2000&q=80&auto=format&fit=crop"));
  z-index: -1;
}
.page-hero h1 {
  color: #FFF;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  margin-bottom: 18px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero .eyebrow::before { background: var(--gold-light); }
.page-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}
.breadcrumbs a:hover { color: var(--gold-light); }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  position: relative;
  background: #FFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--cream-3);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; font-size: 0.95rem; }
.service-card .btn-link { margin-top: auto; align-self: flex-start; }

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius);
  background: #FFF;
  border: 1px solid var(--line);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-item .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}

/* ---------- Pillars / Marquee ---------- */
.pillars {
  background: var(--ink);
  color: #FFF;
  padding: 28px 0;
  overflow: hidden;
}
.pillars-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.pillars-track span {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.pillars-track span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.9rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Benefits / About Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.05fr; }
.split.reverse .split-image { order: 1; }
.split.reverse .split-content { order: 2; }
@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-image { order: 0; }
}
.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-2);
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.split-image:hover img { transform: scale(1.05); }
.split-image .badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  backdrop-filter: blur(10px);
}
.split-image .badge .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}

.benefit-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}
.benefit-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.benefit-list li:last-child { border-bottom: 1px solid var(--line); }
.benefit-list .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
}
.benefit-list h4 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.benefit-list p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr; } }
.process-item {
  position: relative;
  padding: 40px 32px;
  background: #FFF;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.process-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-item .step-num {
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--cream-2);
  line-height: 0.9;
  letter-spacing: -0.04em;
  position: absolute;
  top: 20px;
  right: 24px;
}
.process-item h3 { position: relative; }
.process-item p { position: relative; margin-bottom: 0; }
.process-item .icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  color: var(--gold);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--cream); }
.tm-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tm-track {
  display: flex;
  gap: 24px;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.tm-track:hover { animation-play-state: paused; }
.tm-card {
  flex: 0 0 380px;
  background: #FFF;
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tm-card .stars {
  color: var(--gold);
  letter-spacing: 4px;
  font-size: 0.95rem;
}
.tm-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}
.tm-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tm-card .who .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--sans);
}
.tm-card .who .name {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.tm-card .who .source {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: var(--ink);
  color: #FFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.stats-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(184, 136, 74, 0.28), transparent 60%);
}
@media (max-width: 760px) { .stats-row { grid-template-columns: 1fr; } }
.stats-row .stat {
  padding: 56px 40px;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.stats-row .stat:last-child { border-right: none; }
@media (max-width: 760px) {
  .stats-row .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats-row .stat:last-child { border-bottom: none; }
}
.stats-row .num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-row .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stats-row p {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card {
  background: #FFF;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card .meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-card .meta .tag { color: var(--gold); }
.post-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { margin: 0; font-size: 0.95rem; }
.post-card .btn-link { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast);
}
.faq-q:hover { color: var(--gold); }
.faq-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  position: relative;
  transition: background var(--t-fast), transform var(--t-base);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform var(--t-base), background var(--t-fast);
}
.faq-toggle::before { width: 12px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 12px; }
.faq-item.is-open .faq-toggle { background: var(--gold); }
.faq-item.is-open .faq-toggle::before,
.faq-item.is-open .faq-toggle::after { background: #FFF; }
.faq-item.is-open .faq-toggle::after { transform: scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
}
.faq-a-inner {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 720px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  color: #FFF;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 27, 44, 0.78) 0%, rgba(14, 27, 44, 0.92) 100%),
    url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=2000&q=80&auto=format&fit=crop") center/cover;
  z-index: -1;
}
.cta-banner h2 { color: #FFF; margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3rem); }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 620px; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 80px 0 24px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer .brand { color: #FFF; }
.site-footer .brand small { color: rgba(255,255,255,0.6); }
.site-footer .brand .brand-mark { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--gold-light); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { margin: 0; }
.footer-col a { color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact p { color: rgba(255,255,255,0.78); margin: 14px 0 0; line-height: 1.7; }
.footer-contact a { display: block; margin-top: 4px; color: rgba(255,255,255,0.78); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.78);
  transition: all var(--t-fast);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #FFF; transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card {
  background: var(--ink);
  color: #FFF;
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(184, 136, 74, 0.5), transparent 70%);
  z-index: 0;
}
.info-card > * { position: relative; }
.info-card h3 { color: #FFF; }
.info-card p { color: rgba(255,255,255,0.82); }
.info-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: flex-start; margin: 0; color: rgba(255,255,255,0.85); }
.info-list .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(184, 136, 74, 0.18);
  color: var(--gold-light);
  display: grid; place-items: center;
}
.info-list h5 { color: #FFF; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 4px; }

.form {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #FFF;
}
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { align-self: flex-start; }

/* ---------- Article ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.article p, .article ul, .article ol { color: #2D3849; font-size: 1.06rem; line-height: 1.8; }
.article h2 { margin-top: 2.4em; }
.article h3 { margin-top: 1.8em; }
.article ul li, .article ol li { color: #2D3849; }
.article blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  border-radius: 0 14px 14px 0;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--muted);
}
.article-meta .tag {
  background: var(--cream);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  aspect-ratio: 16/8;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.next-prev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
}
@media (max-width: 640px) { .next-prev { grid-template-columns: 1fr; } }
.next-prev a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFF;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.next-prev a:hover { border-color: var(--gold); transform: translateY(-3px); }
.next-prev .label { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.next-prev h4 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.next-prev .next { text-align: right; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.3,1), transform 700ms cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pillars-track, .tm-track, .hero-scroll .line::after { animation: none; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

/* ---------- Misc ---------- */
.section-bg-cream { background: var(--cream); }
.section-bg-dark { background: var(--ink); color: #FFF; }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: #FFF; }
.section-bg-dark p { color: rgba(255,255,255,0.78); }

.divider-pattern {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 6px, transparent 6px, transparent 12px);
  margin: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; }

/* Areas served chips */
.areas-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.areas-list li {
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Pricing table for stats */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}
@media (max-width: 760px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
.fact {
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius);
  text-align: center;
}
.fact .v { font-family: var(--serif); font-size: 1.8rem; color: var(--gold); display: block; }
.fact .l { font-size: 0.82rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; }

.socials.mt-md { margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.why-grid.left-aligned { margin-top: 64px; text-align: left; }
.areas-list.center { justify-content: center; }
.form h2 { margin-top: 6px; }

/* Article header section (post pages) */
.article-section { padding-top: calc(var(--header-h) + 60px); padding-bottom: 40px; }
.breadcrumbs.muted { color: var(--muted); margin-bottom: 24px; }
.breadcrumbs.muted a:hover { color: var(--gold); }

/* Utility helpers (replacing inline styles) */
.badge-sub { display: block; color: var(--muted); font-size: 0.78rem; }
.benefits-cta { margin-top: 36px; }
.section-spacer-48 { margin-top: 48px; }
.eyebrow-light { color: var(--gold-light); }
.h2-centered { text-align: center; max-width: 760px; margin: 0 auto 56px; }

/* 404 */
.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 28px 60px;
}
.not-found .code {
  font-family: var(--serif);
  font-size: clamp(7rem, 22vw, 14rem);
  line-height: 1;
  color: var(--cream-2);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
}
.skip:focus {
  left: 12px;
  background: var(--ink);
  color: #FFF;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
