:root {
  --bg: #f6f3ee;
  --bg-deep: #ebe6de;
  --ink: #14233a;
  --muted: #5a6576;
  --line: rgba(20, 35, 58, 0.12);
  --teal: #1a8f8a;
  --teal-dark: #12706c;
  --sand: #d4a574;
  --white: #fffcf8;
  --shadow: 0 18px 50px rgba(20, 35, 58, 0.1);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.demo-banner {
  background: #14233a;
  color: #f6f3ee;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 60;
}
.demo-banner a { color: #7fd4cf; text-decoration: underline; text-underline-offset: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand span { color: var(--teal); display: block; font-size: 0.72rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.15rem; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--teal-dark) !important; }

.shell { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,35,58,0.25) 0%, rgba(20,35,58,0.78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.25rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fe3df;
  margin-bottom: 0.85rem;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.05;
  max-width: 14ch;
  font-weight: 650;
}
.hero-lead {
  margin: 1rem 0 0;
  max-width: 38ch;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: inherit; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #0c1829; color: #fff; }
.btn-outline-dark { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-deep); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.card-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.card-body p { margin: 0; color: var(--muted); flex: 1; }
.card-link { font-weight: 700; text-decoration: none; color: var(--teal-dark); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.split-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.split-copy p { color: var(--muted); margin: 0 0 0.85rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
}
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-grid figcaption {
  padding: 0.65rem 0.8rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--white);
}

.page-hero {
  padding: 3rem 0 2rem;
  background:
    linear-gradient(180deg, rgba(246,243,238,0.2), var(--bg)),
    url("/images/demos/harbor-line/house-coastal.jpg") center/cover;
}
.page-hero .shell { max-width: var(--max); }
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-hero p { max-width: 42rem; color: var(--muted); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }

.prose { max-width: 44rem; }
.prose h2 { font-family: var(--font-display); margin: 2rem 0 0.7rem; }
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); padding-left: 1.2rem; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.7rem;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 0.65rem 0 0; color: var(--muted); }

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.area-list a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.area-list a:hover { border-color: var(--teal); }

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  max-width: 36rem;
}
label { display: block; font-weight: 700; font-size: 0.9rem; margin: 0.85rem 0 0.35rem; }
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 0.75rem; }

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.cta-band p { margin: 0 auto 1.2rem; max-width: 36rem; color: rgba(255,255,255,0.78); }

.site-footer {
  background: #101b2c;
  color: rgba(255,255,255,0.78);
  padding: 2.5rem 0 2rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h3 { color: #fff; margin: 0 0 0.7rem; font-size: 1rem; }
.site-footer a { color: #9fe3df; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.35rem 0; }
.footer-note {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 900px) {
  .card-grid, .gallery-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 1.25rem 1rem;
  }
  .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .card-grid, .gallery-grid, .steps, .area-list { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
}
