/* Alyson Yates — "Seafoam & Sand" */
:root {
  --paper: #f7f4ec;
  --light: #fcfaf5;
  --band: #dcefe9;
  --ph: #e3dccb;
  --ink: #1b3440;
  --accent: #6cc3b4;
  --accenth: #58b1a2;
  --deep: #23706b;
  --soft: #b7e2d8;
  --muted: #566b6b;
  --line: rgba(20, 40, 55, .18);
  --error: #a83a2c;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: 56px;
  --section-y: 112px;
  --header-h: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
picture > source { display: none; } /* keep <source> out of grid auto-placement */
h1, h2, h3, p { margin: 0; }
a { color: var(--deep); }
a:hover { color: var(--ink); }
input, select, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--light); border-radius: 4px; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.stack-20, .stack-26, .stack-40, .stack-48, .stack-56 { display: flex; flex-direction: column; }
.stack-20 { gap: 20px; } .stack-26 { gap: 26px; } .stack-40 { gap: 40px; } .stack-48 { gap: 48px; } .stack-56 { gap: 56px; }

/* Type */
.display { font-family: var(--serif); font-weight: 400; font-size: 84px; line-height: .98; letter-spacing: -.02em; }
.display em, .display-2 em { color: var(--deep); }
.display-2 { font-family: var(--serif); font-weight: 400; font-size: 68px; line-height: .98; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: 60px; line-height: 1.02; }
.h2-sm { font-size: 52px; }
.lead { font-size: 19px; line-height: 1.55; max-width: 560px; }
.lead-lg { font-size: 19px; line-height: 1.65; }
.body-lg { font-size: 17px; line-height: 1.6; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--deep); }
.eyebrow-sm { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.signature { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--deep); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 30px; line-height: 1; color: inherit; text-decoration: none; white-space: nowrap; }
.brand-mark { height: 46px; width: auto; flex: none; }
.wordmark:hover { color: inherit; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 16px 28px; background: var(--accent); color: var(--ink); border-radius: 4px; font-weight: 600; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--accenth); color: var(--ink); }
.text-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--deep); }
.btn-pill { padding: 15px 28px; border: none; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; }
.btn-pill:hover { background: var(--accenth); }
.btn-pill:disabled { opacity: .6; cursor: progress; }
.text-button { align-self: flex-start; margin-top: 8px; padding: 0; background: none; border: none; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Header / nav */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--light); transition: background .25s, color .25s, box-shadow .25s; }
.site-header.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; transition: padding .25s; }
.site-header.is-solid .nav { padding-block: 16px; }
.site-header .brand-mark--color,
.site-header.is-solid .brand-mark--light,
.site-header.menu-open .brand-mark--light { display: none; }
.site-header.is-solid .brand-mark--color,
.site-header.menu-open .brand-mark--color { display: block; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; height: 820px; overflow: hidden; background: var(--ph) url("../video/hero-poster.jpg") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 40, .45), rgba(10, 30, 40, 0) 28%); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 56px; }
.hero-card { width: 700px; max-width: 100%; padding: 48px; background: var(--paper); border-radius: 4px; display: flex; flex-direction: column; gap: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }

/* Story */
.story { padding-block: 120px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-grid img { width: 100%; object-fit: cover; border-radius: 4px; }
.photo-tall { grid-row: span 2; height: 100%; min-height: 520px; object-position: center 20%; }
.photo-short { height: 252px; }
.pos-35 { object-position: center 35%; }
.pos-40 { object-position: center 40%; }
.pos-60 { object-position: center 60%; }

/* Moving South */
.band-accent { background: var(--accent); }
.moving-title { max-width: 860px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.point { display: flex; flex-direction: column; gap: 12px; border-top: 1.5px solid var(--ink); padding-top: 22px; }
.point h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.point p { font-size: 17px; line-height: 1.6; }

/* History */
.history { padding-block: 120px; }
.history-grid { display: grid; grid-template-columns: 380px 1fr; gap: 80px; }
.timeline { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline-date { font-family: var(--serif); font-size: 34px; line-height: 1.1; }

/* Guide */
.guide { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.guide-intro { max-width: 420px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; gap: 14px; }
.guide-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--ph); }
.guide-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.guide-card p { font-size: 15px; line-height: 1.5; opacity: .8; }

/* Guide cards (home + listing) */
.section-head-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 420px; }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.btn-outline:hover { background: var(--ink); color: var(--light); }
.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { background: var(--deep); color: var(--light); }
.guide-card-link { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.guide-card-link:hover { color: inherit; }
.guide-card-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.guide-card-link .guide-img { transition: opacity .2s; }
.guide-card-link:hover .guide-img { opacity: .9; }
.guide-img-empty { background: repeating-linear-gradient(135deg, rgba(20, 40, 55, .06) 0 1px, transparent 1px 12px), var(--ph); }
.guide-grid-listing { row-gap: 48px; }
.guide-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Inner pages */
.inner-page main { padding-top: 76px; }
.page-head { padding: 64px 0 8px; }
.page-head .lead { max-width: 640px; }
.page-error { padding: 96px 0 120px; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: 68px; line-height: 1; letter-spacing: -.01em; }
.h1 em { color: var(--deep); }
.guide-listing { padding-top: 48px; }
.empty-note { color: var(--muted); }

.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); }

.tag-filter, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(20, 40, 55, .25); border-radius: 999px; font-size: 14px; color: var(--ink); text-decoration: none; transition: all .15s; }
.tag-chip:hover { border-color: var(--ink); color: var(--ink); }
.tag-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--light); }
.tag-count { font-size: 12px; opacity: .6; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }

/* Article */
.article-head { padding: 56px 0 40px; }
.article-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.article-wide { max-width: calc(1100px + 2 * var(--gutter)); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--ph); }
.prose { padding: 56px 0 8px; font-size: 19px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; margin-top: 1.6em; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin-top: 1.4em; }
.prose h4 { font-size: 19px; font-weight: 600; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--deep); }
.prose img { width: 100%; height: auto; border-radius: 4px; }
.prose a { color: var(--deep); text-underline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-top: 48px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.gallery-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--ph); }
.gallery figcaption { font-size: 14px; color: var(--muted); }
.article-back { padding: 48px 0 96px; }

.cta-band { background: var(--accent); padding-block: 80px; }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.cta-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 440px; }
.cta-band h2 em { font-style: italic; }
.related { padding-top: 96px; }

/* Homes / IDX */
.band { background: var(--band); }
.idx-slot { min-height: 380px; border: 1.5px dashed rgba(20, 40, 55, .3); border-radius: 4px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); }
.idx-disclaimer { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 88px; }
.contact-intro { display: flex; flex-direction: column; gap: 24px; }
.contact-direct { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-direct li { display: flex; flex-direction: column; gap: 4px; }
.contact-direct a { color: var(--ink); font-size: 21px; text-decoration: none; overflow-wrap: anywhere; }
.contact-direct a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 4px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.contact-direct .social-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.broker-panel { margin-top: auto; padding: 24px 28px; border-radius: 4px; background: var(--ink); color: var(--light); display: flex; gap: 24px; align-items: center; }
.broker-panel img { height: 64px; width: auto; flex: none; }
.broker-panel p { font-size: 15px; line-height: 1.5; }
.broker-panel a { color: var(--soft); }
.broker-panel a:hover { color: var(--light); }

/* Inquiry form */
.inquiry-form { display: flex; flex-direction: column; gap: 22px; }
.pill-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.pill-group legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: block; padding: 10px 16px; border: 1px solid rgba(20, 40, 55, .25); border-radius: 999px; font-size: 14px; white-space: nowrap; transition: all .15s; cursor: pointer; }
.pill:hover span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 2px; }

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.select-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.inquiry-form input:not([type=radio]), .inquiry-form select, .inquiry-form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid rgba(20, 40, 55, .22);
  background: rgba(255, 255, 255, .7); color: var(--ink); font-size: 15px; font-weight: 400;
}
.inquiry-form select { padding-block: 12px; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form [aria-invalid=true] { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 14px; color: var(--error); }
.form-status:empty { display: none; }

.inquiry-success { padding: 40px 32px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .55); display: flex; flex-direction: column; gap: 10px; }
.inquiry-success p { font-size: 26px; line-height: 1.25; }
.inquiry-success[hidden], .inquiry-form[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 48px; }
.footer-grid { display: grid; grid-template-columns: .9fr 1.6fr 1fr; gap: 48px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-heading { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.footer-tagline { font-size: 14px; line-height: 1.6; opacity: .75; max-width: 300px; }
.footer-broker { display: flex; align-items: center; gap: 20px; }
.footer-broker-logo { height: 48px; width: auto; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: auto auto; grid-auto-flow: column; justify-content: start; gap: 10px 32px; font-size: 14px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); opacity: .85; text-decoration: none; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--soft); }
.footer-contact a:hover { opacity: 1; text-decoration: underline; color: var(--paper); }
.eho-logo { width: 40px; height: auto; flex: none; opacity: .85; }
.footer-credit { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(247, 244, 236, .14); font-size: 13px; }
.footer-credit a { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); opacity: .7; text-decoration: none; transition: opacity .15s; }
.footer-credit a:hover { opacity: 1; color: var(--paper); }
.footer-credit .heart { fill: #e25d5d; flex: none; }
.footer-credit a:hover .heart { animation: heartbeat .8s ease-in-out; }
.footer-credit img { height: 16px; width: auto; }
@keyframes heartbeat { 30% { transform: scale(1.25); } 60% { transform: scale(.95); } }
.site-footer .wordmark { font-size: 28px; color: var(--paper); }
.site-footer .brand-mark { height: 52px; }
.footer-meta { font-size: 13px; line-height: 1.6; opacity: .75; }

/* Footer: below 1200px the brokerage column moves to its own row. */
@media (max-width: 1199px) {
  .footer-grid { grid-template-columns: minmax(200px, 1fr) auto; gap: 40px 56px; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; border-top: 1px solid rgba(247, 244, 236, .14); }
  .footer-grid .footer-col:last-child .footer-heading { flex-basis: 100%; }
  .footer-grid .footer-col:last-child .footer-meta { flex: 1; min-width: 260px; }
}

/* ---------- Tablet: 640–1023px ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 32px; --section-y: 88px; }
  .display { font-size: 56px; }
  .display-2 { font-size: 52px; }
  .h2 { font-size: 46px; }
  .h2-sm { font-size: 42px; }
  .hero { height: 760px; }
  .hero-inner { padding-bottom: 32px; }
  .hero-card { width: 100%; padding: 40px; }
  .story, .history { padding-block: 88px; }
  .story-grid, .history-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .three-col { grid-template-columns: 1fr; gap: 32px; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .guide-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .h1 { font-size: 52px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .prose h2 { font-size: 34px; }
  .broker-panel { margin-top: 16px; }
}

/* ---------- Phone: <640px ---------- */
@media (max-width: 639px) {
  :root { --gutter: 20px; --section-y: 72px; }
  .display { font-size: 42px; }
  .display-2 { font-size: 44px; }
  .h2, .h2-sm { font-size: 38px; }
  .lead, .lead-lg { font-size: 17px; }
  .wordmark { font-size: 26px; gap: 10px; }
  .brand-mark { height: 38px; }
  .nav { padding-block: 18px; }

  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, background .2s; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
  .menu-toggle[aria-expanded=true] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded=true] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); font-size: 17px; }
  .nav-links a { padding: 12px 0; }
  .site-header.menu-open { background: var(--paper); color: var(--ink); }
  .site-header.menu-open .nav-links { display: flex; }

  .hero { height: 640px; }
  .hero-inner { padding-inline: 16px; padding-bottom: 16px; }
  .hero-card { padding: 28px 24px; gap: 18px; }
  .story, .history { padding-block: 72px; }
  .photo-tall { min-height: 360px; }
  .photo-short { height: 172px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .timeline-date { font-size: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .guide-grid { grid-template-columns: 1fr; gap: 40px; }
  .guide-grid-3 { grid-template-columns: 1fr; }
  .inner-page main { padding-top: 64px; }
  .h1 { font-size: 42px; }
  .page-head { padding-top: 40px; }
  .article-head { padding: 36px 0 28px; }
  .prose { padding-top: 36px; font-size: 18px; }
  .prose h2 { font-size: 30px; }
  .prose h3 { font-size: 25px; }
  .prose blockquote { font-size: 22px; }
  .article-cover { aspect-ratio: 4 / 3; }
  .cta-band { padding-block: 64px; }
  .section-head-aside { max-width: none; }
  .guide-img { aspect-ratio: 4 / 3; }
  .broker-panel { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pill span { padding: 12px 16px; }
  .btn-pill { width: 100%; min-height: 48px; }
  .inquiry-success { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-contact { grid-auto-flow: row; grid-template-rows: none; }
  .footer-contact a { min-height: 32px; }
}

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