/* ============================================================
   Eric Buckner — The Coastal Portfolio
   Palette: ink #211F1C · ivory #F6F1E7 · brass #A9834F ·
            cypress #33403A · sea fog #9FA9A6
   Type: Playfair Display (display serif) · Inter (grotesque)
   ============================================================ */

:root {
  --ink: #211f1c;
  --ink-soft: #2c2a26;
  --ivory: #f6f1e7;
  --ivory-dim: #ece5d6;
  --brass: #a9834f;
  --brass-light: #c4a26e;
  --cypress: #33403a;
  --fog: #9fa9a6;
  --text-on-ivory: #35322c;
  --text-muted: #7d776b;
  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Inter", "Helvetica Neue", sans-serif;
  --pad-section: clamp(4.5rem, 10vw, 8.5rem);
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --max-w: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-on-ivory);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- typography helpers ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--ink); }

.display-xl { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.01em; }
.display-lg { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 34em; }

.serif-i { font-family: var(--serif); font-style: italic; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--brass);
  color: var(--ivory);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.btn--solid { background: var(--brass); color: var(--ink); }
.btn--solid:hover { background: var(--brass-light); border-color: var(--brass-light); }

.text-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.3s ease;
}
.text-link:hover { border-color: var(--brass); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled, .nav--solid {
  background: rgba(33, 31, 28, 0.96);
  box-shadow: 0 1px 0 rgba(169, 131, 79, 0.25);
}
.nav.scrolled { padding: 0.7rem var(--pad-x); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 2.4rem; list-style: none; align-items: center; }
.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.nav__links a:hover, .nav__links a.active { border-color: var(--brass); color: var(--brass-light); }
.nav__links .nav-cta {
  border: 1px solid var(--brass);
  padding: 0.55rem 1.3rem;
}
.nav__links .nav-cta:hover { background: var(--brass); color: var(--ink); border-bottom-color: var(--brass); }

.nav__burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
}
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ivory); transition: all 0.3s ease;
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 10px; }
.nav__burger span:nth-child(3) { top: 20px; }

@media (max-width: 920px) {
  .nav__burger { display: block; z-index: 102; }
  .nav__links {
    position: fixed; inset: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { font-size: 0.95rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav__burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
  body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  body.menu-open .nav__burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  isolation: isolate;
}
.hero--short { min-height: 62vh; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(33,31,28,0.45) 0%, rgba(33,31,28,0.32) 45%, rgba(33,31,28,0.75) 100%);
}
.hero__content {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(3rem, 8vh, 5.5rem);
}
.hero__content h1 { color: var(--ivory); max-width: 12em; text-shadow: 0 1px 24px rgba(33, 31, 28, 0.45); }
.hero__content .eyebrow { color: rgba(246, 241, 231, 0.92); text-shadow: 0 1px 12px rgba(33, 31, 28, 0.85); }
.hero__actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__rule {
  width: 72px; height: 1px; background: var(--brass);
  margin: 1.8rem 0 0;
}

/* ---------- shared section shells ---------- */

.section { padding: var(--pad-section) var(--pad-x); }
.section__inner { max-width: var(--max-w); margin: 0 auto; }
.section--ink { background: var(--ink); color: var(--ivory-dim); }
.section--ink h2, .section--ink h3 { color: var(--ivory); }
.section--cypress { background: var(--cypress); color: var(--ivory-dim); }
.section--cypress h2, .section--cypress h3 { color: var(--ivory); }
.section-head { max-width: 620px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.hairline { border: none; border-top: 1px solid rgba(169, 131, 79, 0.35); }

/* ---------- proof bar ---------- */

.proof {
  background: var(--ink);
  color: var(--ivory);
  padding: 2.8rem var(--pad-x);
}
.proof__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.proof__item { text-align: center; padding: 0 1rem; }
.proof__item + .proof__item { border-left: 1px solid rgba(169, 131, 79, 0.3); }
.proof__num { font-family: var(--serif); font-size: 2rem; color: var(--brass-light); line-height: 1.2; }
.proof__label {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fog); margin-top: 0.4rem;
}
@media (max-width: 720px) {
  .proof__item + .proof__item { border-left: none; border-top: 1px solid rgba(169,131,79,0.3); padding-top: 1.5rem; }
}

/* ---------- region cards ---------- */

.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 920px) { .regions { grid-template-columns: 1fr; } }

.region-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  isolation: isolate;
}
.region-card__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.region-card:hover .region-card__bg { transform: scale(1.045); }
.region-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(33,31,28,0) 40%, rgba(33,31,28,0.78) 100%);
}
.region-card__body { padding: 2rem; }
.region-card__body h3 { color: var(--ivory); font-size: 1.7rem; margin-bottom: 0.3rem; }
.region-card__body p { font-size: 0.9rem; color: rgba(246,241,231,0.75); margin-bottom: 0.9rem; }
.region-card__body .text-link { color: var(--brass-light); }

/* ---------- listings ---------- */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2.2rem;
}
.listing-card { background: transparent; }
.listing-card__img {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
}
.listing-card__img > div {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s ease;
}
.listing-card:hover .listing-card__img > div { transform: scale(1.04); }
.listing-card__status {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  background: rgba(33,31,28,0.85); color: var(--brass-light);
  padding: 0.45rem 0.9rem;
}
.listing-card__body { padding: 1.4rem 0 0; }
.listing-card__body h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.listing-card__meta { font-size: 0.85rem; color: var(--text-muted); }
.listing-card__price {
  font-family: var(--serif); font-style: italic;
  color: var(--brass); margin-top: 0.5rem; font-size: 1.05rem;
}

.photo-note {
  margin-top: 3rem; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- split (story) ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.split__img { position: relative; }
.split__img img { width: 100%; height: auto; }
.split__img::after {
  content: ""; position: absolute;
  top: 1.4rem; left: 1.4rem; right: -1.4rem; bottom: -1.4rem;
  border: 1px solid var(--brass); z-index: -1;
}
.split__body .lede { margin-bottom: 1.5rem; }
.split__body p + p { margin-top: 1.1rem; }

/* ---------- film placeholder ---------- */

.film {
  position: relative; isolation: isolate;
  color: var(--ivory); text-align: center;
  padding: clamp(6rem, 14vw, 10rem) var(--pad-x);
}
.film__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.film::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(33, 40, 36, 0.72); }
.film h2 { color: var(--ivory); }
.film__play {
  width: 84px; height: 84px; margin: 0 auto 2rem;
  border: 1px solid var(--brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.35s ease;
}
.film__play svg { margin-left: 5px; }
.film__play:hover { background: rgba(169, 131, 79, 0.25); }
.film__note {
  margin-top: 1.6rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fog);
}

/* ---------- testimonials placeholder ---------- */

.testimonials { text-align: center; }
.testimonials__mark {
  font-family: var(--serif); font-size: 4.5rem; line-height: 1;
  color: var(--brass); opacity: 0.55;
}
.testimonials blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.5; color: var(--ink);
  max-width: 30em; margin: 0 auto;
}
.testimonials__attr {
  margin-top: 1.8rem;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}
.testimonials__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1000px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(169, 131, 79, 0.35);
  text-align: center;
}
@media (max-width: 720px) { .testimonials__grid { grid-template-columns: 1fr; } }
.testimonials__small { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.testimonials__grid .testimonials__attr { margin-top: 1.2rem; }

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

.valuation {
  position: relative; isolation: isolate;
  color: var(--ivory); text-align: center;
  padding: clamp(5rem, 12vw, 9rem) var(--pad-x);
}
.valuation__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.valuation::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(33,31,28,0.66); }
.valuation h2 { color: var(--ivory); margin-bottom: 1rem; }
.valuation p { color: rgba(246,241,231,0.8); max-width: 36em; margin: 0 auto 2.2rem; }

/* ---------- neighborhood chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.chip {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid rgba(169, 131, 79, 0.5);
  color: var(--text-on-ivory);
  padding: 0.6rem 1.2rem;
}
.section--ink .chip, .section--cypress .chip { color: var(--ivory-dim); }

/* ---------- prose (region/story pages) ---------- */

.prose { max-width: 680px; }
.prose p + p { margin-top: 1.2rem; }
.prose .drop::first-letter {
  font-family: var(--serif);
  font-size: 3.4em; float: left; line-height: 0.85;
  padding-right: 0.12em; color: var(--brass);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.contact-info__block { margin-bottom: 2rem; }
.contact-info__block p { color: var(--text-muted); }
.contact-info__block a { color: var(--brass); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1px solid rgba(169, 131, 79, 0.5);
  padding: 0.7rem 0.1rem;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.field textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  border: 1px solid var(--brass);
  padding: 2.5rem;
  text-align: center;
}
.form-success h3 { margin-bottom: 0.5rem; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--fog);
  padding: 4.5rem var(--pad-x) 2.5rem;
  font-size: 0.85rem;
  font-weight: 300;
}
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(169, 131, 79, 0.25);
}
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; } }
.footer__logo img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer h4 {
  font-family: var(--sans);
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.1rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.55rem; }
.footer a:hover { color: var(--ivory); }
.footer__legal {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  font-size: 0.72rem;
  color: rgba(159, 169, 166, 0.75);
}
.footer__legal .eho { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
