/* =============================================================
   Your Maryland Lifestyle — Editorial Luxury Design System
   Static, zero-build. Reusable across all pages.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --paper: #f7f3ea;          /* warm ivory canvas */
  --paper-deep: #efe7d6;     /* sunken cream */
  --card: #ffffff;
  --navy: #0b1f3a;           /* primary deep navy */
  --navy-soft: #14304e;
  --navy-ink: #0a1a30;
  --brass: #b0852f;          /* accent */
  --brass-bright: #c9a24b;
  --ink: #1b2733;            /* body text on light */
  --muted: #5a6672;          /* secondary text on light */
  --line: #e6ddcc;           /* hairline on light */
  --line-strong: #d9cdb6;
  --white: #ffffff;

  /* On-dark */
  --on-dark: rgba(255, 255, 255, 0.82);
  --on-dark-soft: rgba(255, 255, 255, 0.64);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Typography */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Shape & depth */
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 8px 24px rgba(11, 31, 58, 0.06);
  --shadow: 0 24px 60px rgba(11, 31, 58, 0.14);
  --shadow-lg: 0 40px 90px rgba(11, 31, 58, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t: 220ms;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 132px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { overflow-wrap: break-word; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: var(--brass-bright); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1340px; }
section { padding-block: var(--section-y); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }

.bg-paper { background: var(--paper); }
.bg-cream { background: var(--paper-deep); }
.bg-white { background: var(--card); }
.bg-navy { background: var(--navy); color: var(--on-dark); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.rule { width: 56px; height: 2px; background: var(--brass); border: 0; margin: 0 0 26px; }
.center .rule { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease),
              color var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn-primary { background: var(--brass); color: #1a1404; box-shadow: 0 10px 26px rgba(176, 133, 47, 0.34); }
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(176, 133, 47, 0.42); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--brass);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { gap: 12px; color: var(--brass); }
.text-link.on-dark { color: #fff; }
.text-link.on-dark:hover { color: var(--brass-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), padding var(--t) var(--ease);
  padding-block: 20px;
  background: linear-gradient(180deg, rgba(7, 18, 35, 0.55), rgba(7, 18, 35, 0));
}
.site-header.scrolled {
  background: rgba(9, 23, 44, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  padding-block: 12px;
  border-bottom: 1px solid var(--line-dark);
}
.site-header.scrolled .brand-lockup .bw-1 { font-size: 1.06rem; }
/* Solid header for pages without a dark hero image (funnel/legal pages) */
.site-header.solid { background: rgba(9, 23, 44, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ---------- Brand wordmark (typographic — replaces logo image) ---------- */
.brand-lockup { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; line-height: 1; }
.brand-lockup .bw-1 {
  font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: 0.015em;
  color: #fff; white-space: nowrap;
  transition: font-size var(--t) var(--ease), color var(--t) var(--ease);
}
.brand-lockup .bw-2 { display: flex; align-items: center; gap: 9px; }
.brand-lockup .bw-2::before, .brand-lockup .bw-2::after { content: ""; height: 1px; flex: 1 1 auto; }
.brand-lockup .bw-2::before { background: linear-gradient(90deg, transparent, var(--brass-bright)); }
.brand-lockup .bw-2::after { background: linear-gradient(90deg, var(--brass-bright), transparent); }
.brand-lockup .bw-2 span {
  font-family: var(--sans); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--brass-bright); padding-left: 0.4em; white-space: nowrap;
}
.brand-lockup.is-lg .bw-1 { font-size: 1.5rem; }
.brand-lockup.is-lg .bw-2 span { font-size: 0.64rem; }
.brand-lockup.is-sm .bw-1 { font-size: 1.08rem; }
.brand-lockup.is-sm .bw-2 span { font-size: 0.54rem; }
/* On-light variant for future light-background pages */
.brand-lockup.on-light .bw-1 { color: var(--navy); }
.brand-lockup.on-light .bw-2 span { color: var(--brass); }
.brand-lockup.on-light .bw-2::before { background: linear-gradient(90deg, transparent, var(--brass)); }
.brand-lockup.on-light .bw-2::after { background: linear-gradient(90deg, var(--brass), transparent); }
.primary-nav { display: flex; align-items: center; gap: 19px; }
.primary-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--on-dark);
  position: relative;
  padding-block: 6px;
  transition: color var(--t) var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brass-bright);
  transition: width var(--t) var(--ease);
}
.primary-nav a:hover { color: #fff; }
.primary-nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; color: #fff; padding-top: 120px; padding-bottom: 48px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 17, 33, 0.92) 0%, rgba(7, 17, 33, 0.66) 40%, rgba(7, 17, 33, 0.28) 78%),
    linear-gradient(0deg, rgba(7, 17, 33, 0.6), rgba(7, 17, 33, 0) 45%);
}
.hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; }
.hero-inner { width: 100%; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); max-width: none; font-size: clamp(2.2rem, 4.4vw, 3.55rem); line-height: 1.08; }
.hero h1 .accent { color: var(--brass-bright); font-style: italic; }
.hero-lede { margin-top: 24px; font-size: clamp(1.1rem, 1.5vw, 1.32rem); color: rgba(255,255,255,0.88); line-height: 1.55; max-width: 52ch; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.hero-trust .stars { display: inline-flex; gap: 2px; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass-bright); }
.stars svg { width: 17px; height: 17px; color: var(--brass-bright); }

/* Hero address-capture (transparent — Homebot widget runs full-width under the headline) */
.hero-capture { width: 100%; max-width: none; margin-top: 28px; color: #fff; }
.capture-bar { background: transparent; padding: 0; }
.homebot-widget { width: 100%; min-height: 64px; color: #fff; }
.capture-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.privacy-note svg { width: 14px; height: 14px; color: var(--brass-bright); }

/* ---------- Credibility strip ---------- */
.cred { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 4vw, 48px); }
.cred-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.cred-metric { display: flex; flex-direction: column; gap: 2px; }
.cred-metric strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); line-height: 1; }
.cred-metric span { font-size: 0.84rem; color: var(--muted); letter-spacing: 0.02em; }
.cred-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
/* mix-blend multiply makes the white JPEG/PNG backgrounds read as transparent on the cream strip */
.cred-logos img { height: 36px; width: auto; opacity: 0.82; mix-blend-mode: multiply; transition: opacity var(--t) var(--ease); }
.cred-logos img:hover { opacity: 1; }
.cred-logos .kw { height: 46px; }
.cred-divider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Funnel cards (seller engine) ---------- */
.funnel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.funnel-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
.funnel-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.4vw, 32px);
  min-height: 270px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.funnel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brass); }
.funnel-num { font-family: var(--serif); font-size: 1.5rem; color: var(--brass); font-style: italic; margin-bottom: 22px; }
.funnel-card h3 { color: var(--navy); margin-bottom: 10px; }
.funnel-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.funnel-card .text-link { margin-top: 18px; align-self: flex-start; }

/* ---------- Split / editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split.reverse .split-media { order: 2; }
.figure-frame { position: relative; }
.figure-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--brass); border-radius: var(--radius-lg); z-index: 0;
}
.figure-frame img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.split-img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.split-copy .eyebrow { margin-bottom: 14px; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy p { color: var(--muted); margin-bottom: 22px; }
.about-logo { width: 230px; margin-bottom: 22px; }
.about-copy p { color: var(--muted); margin-top: 16px; }
.about-copy .lead-line { color: var(--ink); font-size: 1.15rem; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.signature .sig-name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--navy); }
.about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Value ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.ladder-step { padding-top: 26px; border-top: 2px solid var(--line); }
.ladder-step .num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.1rem; }
.ladder-step .icon { width: 40px; height: 40px; color: var(--brass); margin: 14px 0 16px; }
.ladder-step .icon svg { width: 100%; height: 100%; }
.ladder-step h3 { color: var(--navy); margin-bottom: 8px; }
.ladder-step p { color: var(--muted); font-size: 0.97rem; }
.bg-navy .ladder-step { border-top-color: var(--line-dark); }
.bg-navy .ladder-step h3 { color: #fff; }
.bg-navy .ladder-step p { color: var(--on-dark); }

/* ---------- Social proof ---------- */
.proof-top { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.rating-block .score { font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 5.5rem); color: var(--navy); line-height: 1; }
.rating-block .stars { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 6px; }
.rating-block .stars svg { width: 22px; height: 22px; color: var(--brass); }
.rating-block .src { color: var(--muted); font-size: 0.92rem; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.quote .mark { font-family: var(--serif); font-size: 3rem; line-height: 0.6; color: var(--brass); }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink); margin: 6px 0 16px; }
.quote cite { font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(36px, 4vw, 56px); }
.gallery figure { overflow: hidden; border-radius: var(--radius-lg); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Carousel (reviews + photo gallery) ---------- */
.proof-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 3vw, 44px); }
.proof-head .proof-label { max-width: 460px; }
.proof-head .proof-label h2 { margin-top: 6px; }
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 6px; margin: -6px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 auto; scroll-snap-align: start; }
.reviews-carousel .carousel-slide { width: calc((100% - 22px) / 2); }
.reviews-carousel .quote { height: 100%; }
.gallery-carousel { margin-top: clamp(40px, 4vw, 60px); }
.gallery-carousel .carousel-track { gap: 18px; }
.gallery-carousel .carousel-slide { width: calc((100% - 36px) / 3); }
.gallery-carousel figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); }
.gallery-carousel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-carousel figure:hover img { transform: scale(1.05); }
.carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--navy); display: grid; place-items: center;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.carousel-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:disabled { opacity: 0.35; cursor: default; background: var(--card); color: var(--navy); border-color: var(--line); transform: none; }

/* ---------- Funnel pages (conversion: copy/video + form) ---------- */
.funnel { padding-block: clamp(116px, 13vw, 156px) var(--section-y); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-bottom: 30px; transition: color var(--t) var(--ease), gap var(--t) var(--ease); }
.back-link:hover { color: var(--navy); gap: 12px; }
.back-link svg { width: 16px; height: 16px; }
.funnel-grid-2 { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.funnel-content .lede { margin-top: 18px; }
.mini-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.mini-proof div { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mini-proof strong { display: block; font-family: var(--sans); font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.96rem; }
.mini-proof p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.funnel-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.funnel-form { position: sticky; top: 96px; }

/* Video facade (click-to-load YouTube) */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); cursor: pointer; margin-top: 30px; }
.video-embed .thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.84; transition: opacity var(--t) var(--ease), transform 700ms var(--ease); }
.video-embed:hover .thumb { opacity: 1; transform: scale(1.03); }
.video-embed .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-embed .play span { width: 78px; height: 78px; border-radius: 50%; background: rgba(176, 133, 47, 0.94); color: #1a1404; display: grid; place-items: center; box-shadow: 0 14px 34px rgba(0,0,0,0.4); transition: transform var(--t) var(--ease), background var(--t) var(--ease); }
.video-embed:hover .play span { transform: scale(1.08); background: var(--brass-bright); }
.video-embed .play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-embed .vlabel { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; font-weight: 600; font-size: 0.98rem; text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.playing .thumb, .video-embed.playing .play, .video-embed.playing .vlabel { display: none; }

/* ---------- Legal / policy pages ---------- */
.legal { padding-block: clamp(116px, 13vw, 156px) var(--section-y); }
.legal-article { max-width: 820px; margin: 0 auto; }
.legal-article .eyebrow { margin-bottom: 14px; }
.legal-article h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.legal-article h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--navy); margin-top: 38px; margin-bottom: 10px; }
.legal-article p { color: var(--ink); margin-top: 14px; line-height: 1.75; }
.legal-article p strong { color: var(--navy); }
.legal-article a { color: var(--brass); border-bottom: 1px solid var(--line-strong); }
.legal-article a:hover { border-bottom-color: var(--brass); }

/* ---------- Funnel step pages (centered video / step flow) ---------- */
.funnel-center { max-width: 920px; margin: 0 auto; text-align: center; }
.funnel-center .lede { margin-left: auto; margin-right: auto; }
.step-indicator { display: inline-flex; align-items: center; gap: 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.step-dots { display: inline-flex; gap: 6px; }
.step-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: inline-block; }
.step-dots i.on { background: var(--brass); }
.video-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy); margin-top: 30px; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.funnel-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }

/* ---------- Community ---------- */
.community { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.community-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.impact-list { display: grid; gap: 22px; margin-top: 28px; }
.impact-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.impact-item .badge { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1.2rem; }
.impact-item h4 { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }
.impact-item p { color: var(--on-dark); font-size: 0.95rem; }
.bg-navy .impact-item h4 { color: #fff; }

/* ---------- Resources / lead magnets ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.resource-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brass); }
.tag { align-self: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); background: var(--paper-deep); border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: 999px; }
.resource-card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.resource-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-info .detail { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.contact-info .detail svg { width: 22px; height: 22px; color: var(--brass-bright); flex: none; }
.contact-info .detail a, .contact-info .detail span { color: var(--on-dark); }
.contact-info .detail strong { color: #fff; display: block; font-weight: 600; }
.form-card { background: var(--card); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-lg); color: var(--ink); }
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .form-card label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fcfbf7; border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 133, 47, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brass); }
.consent label { font-weight: 400; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.success-message {
  display: none; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: #eef6ef; border: 1px solid #bcdcc2; color: #25593a; font-size: 0.92rem; font-weight: 500;
}

/* ---------- Final CTA ---------- */
.final-cta { position: relative; text-align: center; overflow: hidden; }
.final-cta .container { position: relative; z-index: 2; max-width: 800px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: var(--on-dark); margin: 18px auto 0; max-width: 56ch; }
.final-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: var(--on-dark-soft); padding-block: clamp(56px, 7vw, 84px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.15fr; gap: 34px; }
.footer-brand img.fb-logo { width: 220px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 32ch; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--on-dark); transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.socials a:hover { background: var(--brass); color: #1a1404; border-color: var(--brass); }
.socials svg { width: 18px; height: 18px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--on-dark-soft); transition: color var(--t) var(--ease); }
.footer-col a:hover { color: #fff; }
.brokerage .kw-logo { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 16px; }
.brokerage p { font-size: 0.85rem; line-height: 1.6; }
.compliance-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.compliance-row img { height: 46px; width: auto; background: #fff; padding: 5px; border-radius: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 0.82rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { color: var(--on-dark-soft); }
.legal-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scroll reveal ----------
   Hidden only when JS opts in (html.js-anim); content stays visible without JS. */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .reveal.d1 { transition-delay: 80ms; }
.js-anim .reveal.d2 { transition-delay: 160ms; }
.js-anim .reveal.d3 { transition-delay: 240ms; }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-nav.open { display: block; }
.mobile-nav-scrim { position: absolute; inset: 0; background: rgba(7, 17, 33, 0.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw);
  background: var(--navy); padding: 26px 26px 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform 280ms var(--ease); box-shadow: var(--shadow-lg);
}
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav-head img { width: 180px; }
.mobile-nav-close { background: none; border: 0; color: #fff; padding: 6px; }
.mobile-nav-close svg { width: 26px; height: 26px; }
.mobile-nav a { color: var(--on-dark); font-size: 1.05rem; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .funnel-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 880px) {
  .primary-nav { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 104px; }
  .hero h1 { max-width: 100%; }
  .hero-lede { max-width: 100%; }
  .split, .community, .proof-top, .contact { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .ladder { grid-template-columns: 1fr; gap: 0; }
  .ladder-step { padding-block: 26px; border-top: 1px solid var(--line); }
  .resource-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .figure-frame::before { inset: 12px -12px -12px 12px; }
  .reviews-carousel .carousel-slide { width: 88%; }
  .gallery-carousel .carousel-slide { width: calc((100% - 18px) / 2); }
  .funnel-grid-2 { grid-template-columns: 1fr; }
  .mini-proof { grid-template-columns: 1fr; }
  .funnel-form { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .funnel-grid, .resource-grid, .gallery, .quotes { grid-template-columns: 1fr; }
  .reviews-carousel .carousel-slide { width: 100%; }
  .gallery-carousel .carousel-slide { width: 84%; }
  .field.two { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cred-divider { display: none; }
  .btn { width: 100%; }
  .capture-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .gallery figure:hover img { transform: none; }
}

/* ---------- Landing pages (seller-situation campaigns) ---------- */
.lp-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.lp-list li { position: relative; padding-left: 34px; color: var(--muted); line-height: 1.5; }
.lp-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--brass); }
.lp-list li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.lp-faq { max-width: 840px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 24px 4px; font-family: var(--serif); font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: color var(--t) var(--ease); }
.lp-faq summary:hover { color: var(--brass); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--brass); font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.lp-faq details[open] summary::after { content: "\2013"; }
.lp-faq details > p { color: var(--muted); margin: -4px 4px 24px; max-width: 74ch; line-height: 1.65; }
.lp-answer { font-size: 1.1rem; line-height: 1.6; color: var(--ink); max-width: 74ch; }
.lp-answer strong { color: var(--navy); font-weight: 600; }
.lp-updated { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.lp-table { width: 100%; border-collapse: collapse; }
.lp-table th, .lp-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lp-table thead th { font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); font-weight: 700; }
.lp-table tbody td { color: var(--muted); font-size: 0.98rem; }
.lp-table tbody td:first-child { color: var(--navy); font-weight: 600; }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.lp-stats > div { padding: 28px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.lp-stats .stat-num { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.5rem); color: var(--navy); line-height: 1.05; }
.lp-stats .stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
@media (max-width: 700px) { .lp-stats { grid-template-columns: repeat(2, 1fr); } }
/* ---------- Blog index ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: clamp(36px, 5vw, 56px); }
.blog-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-media { aspect-ratio: 16 / 9; background: var(--navy); display: flex; align-items: flex-end; padding: 20px; background-image: radial-gradient(120% 90% at 80% 0%, rgba(201,162,75,0.20), transparent 60%); }
.blog-card-kicker { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-bright); }
.blog-card-body { padding: 26px 28px 30px; }
.blog-card-body h2 { font-size: 1.4rem; line-height: 1.22; color: var(--navy); margin: 0 0 12px; }
.blog-card-body p { color: var(--muted); font-size: 0.97rem; line-height: 1.55; margin: 0 0 16px; }
.blog-card-meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
/* ---------- Blog post (CMS-rendered) ---------- */
.post-head { padding-block: clamp(112px,13vw,150px) clamp(28px,4vw,42px); }
.post-head .eyebrow { display:block; margin: 8px 0 14px; }
.post-head h1 { max-width: 22ch; }
.post-meta { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }
.post-wrap { padding-bottom: clamp(40px,6vw,72px); }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-family: var(--serif); font-size: clamp(1.6rem,3vw,2rem); color: var(--navy); margin: 1.9em 0 0.55em; letter-spacing:-0.01em; }
.post-body h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); margin: 1.6em 0 0.5em; }
.post-body p { color: var(--ink); font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.1em; }
.post-body ul, .post-body ol { color: var(--ink); font-size: 1.08rem; line-height: 1.7; padding-left: 1.3em; margin: 0 0 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.post-body a { color: var(--brass); border-bottom: 1px solid rgba(176,133,47,0.4); text-decoration: none; }
.post-body a:hover { border-color: var(--brass); }
.post-body blockquote { border-left: 3px solid var(--brass); margin: 1.6em 0; padding: 0.3em 0 0.3em 1.4em; font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height:1.5; color: var(--navy); }
.post-body img { max-width: 100%; height:auto; border-radius: var(--radius-lg); margin: 1.6em 0; }
.post-body strong { color: var(--navy); }