/* ============================================================
   Kevin Keogh — Coastal Editorial × Editorial Monument
   Duotone: Atlantic ink × warm sand · BHHS cabernet owns the CTA
   ============================================================ */

:root {
  --sand: #f5efe3;
  --sand-deep: #ece3d0;
  --dawn: #f0e2c8;
  --ink: #0c2531;
  --ink-deep: #081b24;
  --ink-soft: #3c5560;
  --teal: #2e5a66;
  --cabernet: #5e1f40;
  --cabernet-deep: #491731;
  --hairline: rgba(12, 37, 49, 0.16);
  --hairline-soft: rgba(12, 37, 49, 0.09);
  --display: "Crimson Pro", Georgia, serif;
  --accent-serif: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cabernet); color: var(--sand); }

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

em { font-family: var(--accent-serif); font-style: italic; font-weight: 400; }

a { color: inherit; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border-radius: 2.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--cabernet);
  color: var(--sand);
}
.btn-primary:hover { background: var(--cabernet-deep); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--hairline);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--sand);
  color: var(--ink);
}
.btn-light:hover { background: var(--dawn); transform: translateY(-1px); }

.btn-ghost-dark {
  border-color: rgba(245, 239, 227, 0.35);
  color: var(--sand);
}
.btn-ghost-dark:hover { border-color: var(--sand); }

.btn-small { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn-wide { justify-content: center; width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cabernet);
  outline-offset: 3px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 239, 227, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline-soft);
}

.header-inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.wordmark-name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }
.wordmark-title { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.wordmark sup { font-size: 0.6em; }

.header-nav { display: flex; gap: 1.8rem; }
.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.header-phone {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero — Editorial Monument ---------- */

.hero {
  position: relative;
  padding: 9.5rem 1.5rem 0;
  text-align: center;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2.6rem;
}

.hero-h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.2rem, 11vw, 8.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 auto 2.4rem;
  max-width: 18ch;
}

.hero-h1 em { letter-spacing: -0.02em; }

.h1-line { display: block; overflow: hidden; }
.h1-line-inner { display: block; }

.hero-sub {
  max-width: 38rem;
  margin: 0 auto 2.6rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 5rem;
}

/* the shoreline — signature moment */

.shoreline {
  position: relative;
  height: clamp(220px, 38vh, 420px);
  margin: 0 auto;
  /* permanent CSS fallback: Atlantic dawn */
  background:
    linear-gradient(to bottom,
      var(--sand) 0%,
      var(--dawn) 26%,
      #dbc9a4 42%,
      #7e9298 52%,
      #2e5a66 58%,
      #16323e 78%,
      var(--ink-deep) 100%);
}

.shoreline-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.shoreline-canvas.is-live { opacity: 1; }

.shoreline-horizon {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 30%;
  background: linear-gradient(to bottom, var(--sand), transparent);
  pointer-events: none;
}

/* trust strip overlapping the shoreline foot */

.trust-strip {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: -3.2rem auto 0;
  background: var(--sand);
  border: 1px solid var(--hairline-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: left;
}

.trust-item {
  padding: 1.4rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}
.trust-item + .trust-item { border-left: 1px solid var(--hairline-soft); }

.trust-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

/* ---------- shared section bones ---------- */

section { padding: 8rem 1.5rem; }

.section-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.section-kicker.on-dark { color: rgba(245, 239, 227, 0.6); }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 2.2rem;
}
.section-title.on-dark { color: var(--sand); }

/* ---------- paths ---------- */

.paths {
  max-width: 72rem;
  margin: 0 auto;
  padding-bottom: 6.5rem;
}

.path-list {
  margin-top: 3.4rem;
  border-top: 1px solid var(--hairline);
}

.path-row {
  display: grid;
  grid-template-columns: 5rem 1fr 3rem;
  align-items: baseline;
  gap: 1.5rem;
  padding: 2.6rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  position: relative;
  transition: padding-left 0.3s ease;
}
.path-row:hover { padding-left: 1.4rem; }
.path-row::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--cabernet);
  transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.path-row:hover::after { width: 100%; }

.path-num {
  font-family: var(--accent-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.path-name {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.path-desc {
  display: block;
  max-width: 34rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.path-arrow {
  font-size: 1.5rem;
  color: var(--cabernet);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.path-row:hover .path-arrow { opacity: 1; transform: translateX(0); }

/* ---------- neighborhoods ---------- */

.neighborhoods {
  padding-top: 2rem;
  padding-bottom: 7rem;
  text-align: center;
  overflow: hidden;
}

.neighborhoods-lede {
  font-size: 1.35rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto 3.2rem;
}

.hood-rail {
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 1.9rem 0;
  white-space: nowrap;
}

.hood-track { display: inline-block; }

.hood-track a {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0 1.6rem;
  transition: color 0.25s ease;
}
.hood-track a:hover { color: var(--cabernet); }

.hood-sep {
  font-family: var(--accent-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--teal);
  vertical-align: 0.2em;
}

/* ---------- military — dark punctuation ---------- */

.military {
  background: var(--ink);
  color: var(--sand);
  padding: 9rem 1.5rem;
}

.military-inner { max-width: 62rem; margin: 0 auto; }

.military-copy {
  max-width: 40rem;
  font-size: 1.1rem;
  color: rgba(245, 239, 227, 0.78);
  margin-bottom: 2.8rem;
}

.military-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

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

.proof {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
  padding: 9rem 1.5rem;
}

.proof-quote p {
  font-family: var(--accent-serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 2.2rem;
}

.proof-quote cite {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

.about {
  background: var(--sand-deep);
  padding: 8.5rem 1.5rem;
}

.about-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 5fr) 7fr;
  gap: 4.5rem;
  align-items: center;
}

.about-photo img {
  border-radius: 0.4rem;
  border: 1px solid var(--hairline-soft);
  background: #fff;
}

.about-promise {
  font-family: var(--accent-serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--teal);
  border-left: 2px solid var(--cabernet);
  padding-left: 1.4rem;
  margin-bottom: 1.8rem;
}

.about-copy { max-width: 36rem; color: var(--ink-soft); margin-bottom: 2.4rem; }

.about-facts { list-style: none; border-top: 1px solid var(--hairline); }
.about-facts li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.97rem;
}
.about-facts li span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}
.about-facts a { text-decoration: none; font-weight: 500; }
.about-facts a:hover { color: var(--cabernet); }

/* ---------- contact — dark ---------- */

.contact {
  background: var(--ink-deep);
  color: var(--sand);
  text-align: center;
  padding: 9.5rem 1.5rem;
}

.contact-inner { max-width: 42rem; margin: 0 auto; }

.contact-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.contact-sub { color: rgba(245, 239, 227, 0.7); margin-bottom: 2.6rem; }

.contact-phone {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--sand);
  border-bottom: 2px solid var(--cabernet);
  padding-bottom: 0.3rem;
  margin-bottom: 3.5rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.contact-phone:hover { color: var(--dawn); }

.contact-form { text-align: left; }

.form-row { display: flex; gap: 1rem; margin-bottom: 1rem; }
.form-row label { flex: 1; display: flex; flex-direction: column; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245, 239, 227, 0.6);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--sand);
  background: rgba(245, 239, 227, 0.06);
  border: 1px solid rgba(245, 239, 227, 0.22);
  border-radius: 0.35rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease;
}
.contact-form select { appearance: none; }
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--sand);
  outline: none;
}

.contact-form .btn-wide { margin-top: 0.6rem; }

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(245, 239, 227, 0.5);
}

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

.site-footer {
  background: var(--ink-deep);
  color: rgba(245, 239, 227, 0.62);
  border-top: 1px solid rgba(245, 239, 227, 0.12);
  padding: 3rem 1.5rem 7rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-id { line-height: 1.7; }
.footer-id sup { font-size: 0.6em; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.footer-links a { text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--sand); }

.footer-legal { width: 100%; font-size: 0.78rem; color: rgba(245, 239, 227, 0.4); }
.footer-legal a { color: inherit; }

/* ---------- sticky mobile bar ---------- */

.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: none;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(245, 239, 227, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline-soft);
}
.sticky-bar .btn { flex: 1; justify-content: center; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .header-nav { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: none; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--hairline-soft); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { max-width: 24rem; }
}

@media (max-width: 768px) {
  section { padding: 5.5rem 1.25rem; }
  .hero { padding-top: 7.5rem; }
  .hero-kicker { margin-bottom: 1.8rem; }
  .hero-ctas { margin-bottom: 3.5rem; }
  .header-phone { display: none; }
  .sticky-bar { display: flex; }
  .site-footer { padding-bottom: 8.5rem; }
  .path-row { grid-template-columns: 2.6rem 1fr; }
  .path-arrow { display: none; }
  .path-row:hover { padding-left: 0.5rem; }
  .form-row { flex-direction: column; }
  .trust-strip { margin-top: -2rem; }
  .about-facts li { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.7rem 0; }
  .military, .contact, .proof { padding-top: 6.5rem; padding-bottom: 6.5rem; }
}

/* ---------- motion safety ---------- */

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