/* Live Cumberland Harbour — site styles
   Palette pulled from the Coastal Roots Realty logo navy, plus marsh and sand tones from the aerials. */
:root {
  --navy-900: #0f2537;
  --navy-800: #16324a;
  --navy-700: #1d4060;       /* logo navy */
  --navy-100: #e6edf3;
  --marsh-700: #4f6b4a;      /* marsh grass */
  --marsh-100: #eef2ea;
  --sand-50:  #fbf8f3;
  --sand-100: #f4eee4;
  --sand-300: #e2d6c2;
  --tide-600: #2f7f8f;       /* water accent for links/buttons */
  --tide-700: #246673;
  --ink: #1b2630;
  --ink-soft: #4a5866;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 37, 55, .12);
  --wrap: 1160px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tide-700); }
a:hover { color: var(--navy-700); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy-800); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--marsh-700); margin-bottom: .8em; display: block; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--sand-300); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--navy-800); letter-spacing: .01em; }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 420px) { .brand-name { font-size: 1.3rem; } .brand-sub { font-size: .58rem; letter-spacing: .12em; } }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tide-700); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--sand-300); border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 700; color: var(--navy-800); cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sand-50); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--sand-300); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--sand-100); }
  .nav .btn { margin-top: 10px; text-align: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--tide-600); color: var(--white); text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--tide-600); cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--tide-700); border-color: var(--tide-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-900); }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,37,55,.15) 0%, rgba(15,37,55,.35) 45%, rgba(15,37,55,.88) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 64px; width: 100%; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,.92); }
.hero .eyebrow { color: var(--sand-300); }
.page-hero { min-height: 420px; }
.page-hero h1 { max-width: 22ch; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-sand { background: var(--sand-100); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lede, .section-navy p { color: rgba(255,255,255,.88); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 28px; } section { padding: 60px 0; } }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--ink-soft); padding-top: 8px; }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-soft); }
.card-body .btn, .card-body .text-link { margin-top: auto; align-self: flex-start; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link::after { content: " \2192"; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-300); border-radius: var(--radius); overflow: hidden; margin-top: 8px; }
.fact { background: var(--white); padding: 22px 18px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--navy-800); line-height: 1.1; }
.fact span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--marsh-700); border-bottom: 2.5px solid var(--marsh-700); transform: rotate(-45deg); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.note { background: var(--marsh-100); border-left: 4px solid var(--marsh-700); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 2px 10px rgba(15,37,55,.06); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy-800); list-style: none; position: relative; padding-right: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--tide-600); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Lead form ---------- */
.lead { background: var(--navy-800); color: var(--white); }
.lead .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.lead h2 { color: var(--white); }
.lead p { color: rgba(255,255,255,.88); }
.lead .checklist li::before { border-color: var(--sand-300); }
@media (max-width: 860px) { .lead .wrap { grid-template-columns: 1fr; gap: 28px; } }
.lead-form { background: var(--white); color: var(--ink); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.lead-form h3 { margin-bottom: .3em; }
.field { margin-bottom: 14px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--navy-800); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--sand-300); border-radius: 8px; background: var(--sand-50); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tide-600); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); border: 1.5px solid var(--sand-300); border-radius: 999px; padding: 8px 14px; cursor: pointer; margin: 0; font-size: .92rem; }
.choice-row input { accent-color: var(--tide-600); }
.consent { font-size: .76rem; color: var(--ink-soft); line-height: 1.5; margin: 10px 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { width: 100%; font-size: 1.05rem; }
.form-error { display: none; color: #a3261b; font-weight: 700; font-size: .9rem; margin-top: 10px; }

/* ---------- Agent strip ---------- */
.agent { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.agent img { border-radius: 50%; width: 220px; height: 220px; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
@media (max-width: 700px) { .agent { grid-template-columns: 1fr; text-align: left; } .agent img { width: 160px; height: 160px; } }

/* ---------- Search widget slot ---------- */
.search-slot { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.8); font-size: .92rem; padding: 56px 0 32px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 220px; margin-bottom: 14px; }
.site-footer h3 { color: var(--white); font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: .78rem; color: rgba(255,255,255,.65); display: flex; gap: 18px; align-items: flex-start; }
.legal img { width: 44px; flex: none; filter: invert(1); opacity: .8; }
.legal p { margin: 0 0 .6em; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .mobile-cta a { text-align: center; padding: 14px 8px; font-weight: 700; text-decoration: none; color: var(--white); background: var(--tide-600); }
  .mobile-cta a:first-child { background: var(--navy-800); }
  body { padding-bottom: 52px; }
}
