/* Wendy Herst, REALTOR® — shared styles
   Layout: full-bleed photo bands alternating with quiet white and stone sections; black and white with a DeLex red accent */
:root {
  --ink: #141414;        /* text, dark bands */
  --white: #ffffff;
  --stone: #f4f1ec;      /* soft section ground */
  --muted: #6d6863;      /* secondary text */
  --line: #e3ded6;
  --red: #a3161b;        /* DeLex Luxury red, used sparingly */
  --display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --name: "Playfair Display SC", Georgia, serif;   /* Wendy's name only */
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 210px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.7rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.stone { background: var(--stone); }
.eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--red); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.center .lede { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border: 1px solid currentColor; background: transparent; color: inherit;
  font: 500 0.78rem/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--red); border-color: var(--red); }
.btn-light { color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--ink); z-index: 60; }
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; color: var(--white); transition: background .35s, box-shadow .35s; }
.site-header.solid { background: rgba(20,20,20,.96); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.brand-name { font-family: var(--name); font-size: 1.6rem; letter-spacing: 0.03em; }
.brand-role { font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; opacity: .8; }
.brand-logo { height: 116px; width: auto; background: var(--white); padding: 6px 10px; margin-top: 4px; align-self: flex-start; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #e7c9c9; }
.nav .btn { padding: 12px 20px; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.7); color: var(--white); padding: 10px 14px; font: 500 0.72rem var(--body); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }

/* Hero with moving photos */
.hero { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--ink); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; }
.slide.active { opacity: 1; }
/* The zoom keeps running while a slide fades out (.leaving), so it never snaps back mid-fade */
.slide.active, .slide.leaving { animation: drift 8.3s ease-out forwards; }
@keyframes drift { from { transform: scale(1.0); } to { transform: scale(1.1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.65) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 240px clamp(56px, 9vw, 110px); }
.hero-name { font-family: var(--name); font-weight: 400; font-size: clamp(3.2rem, 9.5vw, 8rem); letter-spacing: 0.03em; line-height: 1; }
.hero-sub { margin-top: 18px; font-size: clamp(0.72rem, 1.4vw, 0.9rem); letter-spacing: 0.34em; text-transform: uppercase; opacity: .92; }
.hero .btn-row { margin-top: 36px; }

/* Ticker */
.ticker { background: var(--ink); color: var(--white); overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { white-space: nowrap; padding: 18px 28px; font-family: var(--display); font-size: 1.25rem; font-style: italic; display: flex; align-items: center; gap: 56px; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Photo tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease, opacity .4s; opacity: .82; }
.tile:hover img { transform: scale(1.06); opacity: .65; }
.tile-label { position: absolute; inset: auto 0 0; padding: 28px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.tile-label strong { font-family: var(--display); font-weight: 400; font-size: 2rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; }
.tile-label span { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: .85; }

/* Meet Wendy */
.meet { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 96px); }
.meet-photo { position: relative; max-width: 480px; width: calc(100% - 22px); }
.meet-photo::after { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--red); z-index: -1; }
.meet-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.meet-video { max-width: 380px; justify-self: center; }
.meet-video iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; background: var(--ink); }
.meet-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.meet-copy p { color: #3a3735; max-width: 34em; }
.signature { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--ink); }

/* As seen on */
.press { background: var(--ink); color: var(--white); }
.press .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.press figure { margin: 0; min-width: 0; }
.press img { width: 100%; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.press-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.press .eyebrow { color: rgba(255,255,255,.75); }
.press-copy h2 em { font-style: italic; color: #e7c9c9; }
.press-copy p { color: rgba(255,255,255,.82); max-width: 30em; }
@media (max-width: 860px) { .press .wrap { grid-template-columns: 1fr; } }

/* Videos */
.videos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 4vw, 48px); }
.video-card { width: min(340px, 100%); display: flex; flex-direction: column; gap: 16px; margin: 0; }
.video-card iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; background: var(--ink); }
.video-card figcaption { font-family: var(--display); font-size: 1.45rem; line-height: 1.25; text-align: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-size: clamp(2.6rem, 4.6vw, 3.8rem); line-height: 1; }
.stat-label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Photo band (testimonials, search) */
.band { position: relative; color: var(--white); background: var(--ink) center / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.62); }
.band > .wrap { position: relative; }
.band .eyebrow { color: rgba(255,255,255,.8); }
.band .lede { color: rgba(255,255,255,.85); }

.quotes { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.quote { display: none; flex-direction: column; gap: 22px; align-items: center; }
.quote.active { display: flex; animation: fade .8s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quote-pull { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.15; font-style: italic; }
.quote p { font-size: 1.05rem; color: rgba(255,255,255,.88); max-width: 46em; }
.quote cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.quote-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; }
.quote-nav button { background: none; border: 1px solid rgba(255,255,255,.6); color: var(--white); width: 46px; height: 46px; cursor: pointer; font-size: 1.1rem; }
.quote-nav button:hover { background: var(--white); color: var(--ink); }
.dots { display: flex; gap: 10px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--white); }

/* Communities */
.communities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.community { position: relative; aspect-ratio: 3 / 4; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); }
.community img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.community:hover img { transform: scale(1.07); }
.community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 55%); }
.community div { position: absolute; z-index: 1; inset: auto 0 0; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.community strong { font-family: var(--display); font-weight: 400; font-size: 1.75rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05; }
.community span { font-size: 0.85rem; opacity: .85; }

/* Search */
.search-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 980px; margin: 0 auto; position: relative; }
.search-form .wide { grid-column: span 2; }
.search-form .hp { position: absolute; left: -9999px; }
.search-form label, .form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; min-width: 0; }
input, select, textarea { font: 400 1rem var(--body); padding: 15px 16px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); width: 100%; }
.search-form .btn { align-self: end; height: 54px; background: var(--white); color: var(--ink); border-color: var(--white); }
.search-form .btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.draft-note { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,.8); }

/* Valuation */
.valuation { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.valuation-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; position: relative; }
.form .full { grid-column: 1 / -1; }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.post-card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; min-width: 0; }
.post-card .img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--stone); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.post-card:hover img { transform: scale(1.05); }
.post-meta { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.post-card:hover h3 { color: var(--red); }
.read-more { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; border-bottom: 1px solid var(--red); align-self: flex-start; padding-bottom: 4px; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); }
.contact-info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.details { margin: 8px 0 0; display: grid; gap: 16px; }
.details dt { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 4px 0 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.details a:hover { border-color: var(--red); }

/* Page hero (inner pages) */
.page-hero { position: relative; color: var(--white); background: var(--ink) center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-hero .wrap { position: relative; padding-block: 190px 90px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 300; }
.page-hero .eyebrow { color: rgba(255,255,255,.85); }

/* Article (about + blog posts) */
.article { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; font-size: 1.08rem; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 18px; }
.article .byline { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.article blockquote { margin: 8px 0; padding-left: 24px; border-left: 2px solid var(--red); font-family: var(--display); font-size: 1.6rem; line-height: 1.35; font-style: italic; }
.article .figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reviews-full { display: grid; gap: 28px; max-width: 820px; margin: 0 auto; }
.review { margin: 0; padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; font-style: italic; }
.review cite { font-style: normal; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 72px 40px; }
.footer-grid h4 { margin: 0 0 14px; font: 500 0.7rem var(--body); letter-spacing: 0.26em; text-transform: uppercase; color: var(--white); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.site-footer .brand-name { color: var(--white); }
.footer-logos { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.footer-logo { width: 120px; height: auto; background: var(--white); padding: 10px 12px; }
.eho-logo { width: 72px; height: auto; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; }
.footer-legal a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-legal a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 1000px) {
  .communities { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px var(--gutter-r) 24px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: 18px; }
  .site-header.menu-open { background: var(--ink); }
  .tiles, .posts { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .meet, .valuation, .contact { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-form .wide, .search-form .btn { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .communities { grid-template-columns: 1fr 1fr; gap: 10px; }
  .community div { padding: 14px; }
  .community strong { font-size: 1.2rem; }
  .community span { display: none; }
  .form { grid-template-columns: 1fr; }
  .stat { padding: 28px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.active, .slide.leaving, .quote.active { animation: none; }
  .ticker-track { animation: none; }
  .tile img, .community img, .post-card img { transition: none; }
}

/* Communities note */
.communities-note { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 24px; }
.communities-note p { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.4; max-width: 34em; }

/* Slim page banner and compact bio (Meet Wendy) */
.page-hero.slim .wrap { padding-block: 240px 36px; }
.page-hero.slim h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.section.tight { padding-block: clamp(36px, 5vw, 56px); }
.bio { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.bio-photo { position: sticky; top: 220px; display: flex; flex-direction: column; gap: 18px; }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.bio-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; font-size: 1rem; line-height: 1.65; color: #3a3735; }
.bio-copy h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: var(--ink); margin-bottom: 4px; }
.bio-copy h3 { font-size: 1.45rem; color: var(--ink); margin-top: 8px; }
@media (max-width: 760px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { position: static; max-width: 260px; }
}

.privacy-contact { max-width: 760px; }

/* Drone clip on the first hero slide (it moves on its own, so no drift zoom) */
.slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.has-video.active, .slide.has-video.leaving { animation: none; }

/* Marketing landing pages (lifedid, yourneighbor, notjustlooking) */
.landing { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.landing-copy { display: flex; flex-direction: column; gap: 16px; font-size: 1.08rem; min-width: 0; }
.landing-call { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--ink); }
.landing-closing { color: var(--muted); font-size: 0.98rem; border-top: 1px solid var(--line); padding-top: 16px; }
.landing .form h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
@media (max-width: 860px) { .landing { grid-template-columns: 1fr; } }

/* Phones: the DeLex logo stays large enough to read but leaves room for the page */
@media (max-width: 860px) {
  .brand-logo { height: 88px; padding: 5px 8px; }
  html { scroll-padding-top: 180px; }
  .page-hero.slim .wrap { padding-block: 210px 32px; }
}
