/* =========================================================
   Deep Bay Cottage Management — stylesheet
   ========================================================= */

:root {
  --navy: #10263f;
  --navy-deep: #0a1a2c;
  --forest: #3c5a3f;
  --forest-dark: #2c4530;
  --sage: #eef2ea;
  --gold: #b98b3e;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1c2a22;
  --ink-soft: #445046;
  --border: #e2ddd0;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(16, 38, 63, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- layout helpers ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 6rem) 1.5rem; }
.section-alt { background: var(--sage); }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-inner.narrow { max-width: 800px; }
.section-inner .section-inner { max-width: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 0.75em;
}
.eyebrow-light { color: #d9e6d3; }

.section-intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }

.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost-light { border-color: rgba(255,255,255,0.75); color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.22); }

.btn-lg { padding: 1em 1.9em; font-size: 1rem; }

.center-cta { text-align: center; margin-top: 2.5rem; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.98);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 761px) {
    .site-header {
      background: rgba(250, 248, 243, 0.92);
      backdrop-filter: saturate(180%) blur(10px);
    }
  }
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.simple-header .header-inner { justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.brand-sub { font-size: 0.62rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--forest); font-weight: 700; }

.main-nav { display: flex; gap: 1.5rem; margin-left: auto; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.main-nav a:hover { color: var(--forest); }

.header-cta { flex-shrink: 0; padding: 0.65em 1.3em; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.brand { position: relative; z-index: 2; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: clamp(4rem, 3rem + 6vw, 8.5rem) 1.5rem clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 78% 45%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,26,44,0.92) 0%, rgba(10,26,44,0.8) 28%, rgba(10,26,44,0.4) 55%, rgba(10,26,44,0.12) 80%),
    linear-gradient(to top, rgba(10,26,44,0.35), rgba(10,26,44,0.02) 40%),
    rgba(10,26,44,0.08);
}
.hero-inner { max-width: var(--container); margin: 0 auto; position: relative; }
.hero-heading {
  color: #fff;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero-support { font-size: 1.15rem; max-width: 46ch; color: #eef1ec; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2em; }
.hero-service-line { max-width: 48ch; font-size: 0.92rem; color: #cfd9d0; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 1.2em; }

/* ---------- trust bar ---------- */
.trust-bar { background: var(--navy-deep); }
.trust-bar-inner { max-width: var(--container); margin: 0 auto; padding: 0.9rem 1.5rem; }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: center; }
.trust-list li { display: flex; align-items: center; gap: 0.5em; color: #e7e2d3; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.icon-sm { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; flex-shrink: 0; }

/* ---------- section 2 ---------- */
.lede-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; margin: 1.5rem 0 2rem; }
.lede { font-size: 1.15rem; color: var(--navy); font-family: var(--font-head); font-weight: 500; }
.body-copy p { color: var(--ink-soft); }
.pull-statement {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--forest);
  border-left: 3px solid var(--forest);
  padding-left: 1.1em;
  margin: 2rem 0;
}

/* ---------- card grids ---------- */
.card-grid { display: grid; gap: 1.5rem; margin: 2.5rem 0; }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.help-card, .why-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.help-card .icon {
  width: 34px; height: 34px;
  stroke: var(--forest); fill: none; stroke-width: 1.6;
  margin-bottom: 0.9rem;
}
.help-card h3, .why-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.help-card p, .why-card p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0; }

.why-card { display: flex; flex-direction: column; gap: 0.2rem; }
.icon-check {
  width: 26px; height: 26px;
  stroke: #fff; stroke-width: 3;
  background: var(--forest);
  border-radius: 50%;
  padding: 5px;
  box-sizing: content-box;
  margin-bottom: 0.7rem;
}

/* ---------- report section ---------- */
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin: 1rem 0 2rem; }
.report-block h3 { margin-bottom: 0.7em; }
.report-block-intro { color: var(--ink-soft); }

.check-list, .step-list, .area-list, .framework-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.check-list li, .area-list li {
  padding-left: 1.7em;
  position: relative;
  color: var(--ink-soft);
}
.check-list li::before, .area-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--forest);
}
.check-list-inline { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }

.framework-list {
  counter-reset: fw;
  gap: 0.55rem;
}
.framework-list li {
  counter-increment: fw;
  padding-left: 2.2em;
  position: relative;
  color: var(--ink-soft);
}
.framework-list li::before {
  content: counter(fw);
  position: absolute; left: 0; top: -1px;
  width: 1.6em; height: 1.6em;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
}

.scope-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--sage);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}

.attention-block { max-width: 800px; margin: 0 auto; }
.step-list { counter-reset: sl; }
.step-list li {
  counter-increment: sl;
  padding-left: 2.2em;
  position: relative;
  color: var(--ink-soft);
}
.step-list li::before {
  content: counter(sl);
  position: absolute; left: 0; top: -1px;
  width: 1.6em; height: 1.6em;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- kevin block ---------- */
.kevin-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.kevin-photo-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.kevin-copy p { color: var(--ink-soft); }
blockquote {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 1.1em;
  margin: 1.5em 0 0;
}
blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.6em;
  font-weight: 600;
}

/* ---------- memberships ---------- */
.shared-inclusions {
  background: var(--sage);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin: 2rem 0 3rem;
}
.shared-inclusions h3 { margin-bottom: 1em; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.plan-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-featured {
  border-color: var(--forest);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute; top: -12px; left: 1.75rem;
  background: var(--forest); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3em 0.9em; border-radius: 999px;
}
.plan-descriptor { color: var(--ink-soft); font-size: 0.95rem; }
.plan-price { font-family: var(--font-head); font-size: 2rem; color: var(--navy); margin: 0.4em 0 0.1em; }
.plan-price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.plan-frequency { font-weight: 600; color: var(--forest); font-size: 0.92rem; margin-bottom: 1em; }
.plan-best-for { font-size: 0.9rem; color: var(--ink-soft); }
.plan-card .check-list { margin: 1rem 0 1.5rem; font-size: 0.88rem; }
.plan-btn { margin-top: auto; width: 100%; }

.addon-card {
  margin-top: 3rem;
  background: var(--navy);
  color: #eef1ec;
  border-radius: var(--radius);
  padding: 2.2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.addon-card h3 { color: #fff; }
.addon-card .eyebrow { color: #a9c4a1; }
.addon-copy p { color: #cdd6cd; max-width: 55ch; }
.addon-price { font-family: var(--font-head); font-size: 1.5rem; color: #fff; }
.addon-price span { font-size: 0.8rem; font-family: var(--font-body); color: #a9b6ad; }
.addon-disclaimer { font-size: 0.82rem; color: #9fb0a2; }

.how-it-works { margin-top: 4.5rem; text-align: center; }
.how-it-works h3 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; text-align: left; margin-bottom: 1rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem;
  background: var(--forest); color: #fff;
  border-radius: 50%; font-family: var(--font-head); font-weight: 700;
  margin-bottom: 0.8rem;
}
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- service area ---------- */
.service-area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; margin-top: 1.5rem; align-items: start; }
.area-list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; margin: 1rem 0 1.5rem; }
.boundary-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-top: 2rem;
}
.boundary-box p { font-weight: 600; color: var(--navy); }

.map-label { font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; margin-bottom: 0.6rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-caption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.7rem; }

/* ---------- FAQ accordion ---------- */
.accordion { margin-top: 2rem; border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: none; cursor: pointer;
  padding: 1.3rem 0.2rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.accordion-icon { width: 20px; height: 20px; stroke: var(--forest); fill: none; stroke-width: 2; flex-shrink: 0; transition: transform 0.2s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding: 0 0.2rem 1.3rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------- contact ---------- */
.section-contact { background: var(--sage); }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; margin-top: 2rem; align-items: start; }
.contact-direct { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2rem; }
.contact-direct-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: #a9c4a1; margin-bottom: 1em; }
.contact-direct a { text-decoration: none; font-family: var(--font-head); font-size: 1.15rem; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}
.form-intro { font-size: 0.92rem; color: var(--ink-soft); }
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.form-row-half { flex-direction: row; gap: 1rem; }
.form-row-half > div { flex: 1; display: flex; flex-direction: column; }
label { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4em; }
input, textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--forest); outline-offset: 1px; }
.form-submit { width: 100%; margin-top: 0.4rem; }
.form-privacy { font-size: 0.78rem; color: var(--ink-soft); margin-top: 1rem; margin-bottom: 0; }
.form-confirmation {
  margin-top: 1.2rem;
  background: var(--sage);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  color: var(--forest-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-confirmation p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd6cd; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 3.5rem 1.5rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: var(--font-head); color: #fff; font-size: 1.15rem; margin: 0; }
.footer-tagline { font-size: 0.85rem; color: #9fb0a2; margin: 0; }

.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-heading { color: #fff; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7em; }
.footer-grid p { font-size: 0.9rem; margin: 0; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.8rem; margin-bottom: 1.5rem; }
.footer-links a { text-decoration: none; font-size: 0.85rem; color: #cdd6cd; }
.footer-links a:hover { color: #fff; }

.footer-legal, .footer-scope { font-size: 0.78rem; color: #7f9083; margin: 0.3em 0 0; }

/* ---------- legal pages ---------- */
.legal-page { padding: 3rem 1.5rem 5rem; max-width: 800px; margin: 0 auto; }
.build-note {
  background: #fff4e0;
  border: 1px solid #e8c98a;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: #6b4e12;
  margin-bottom: 2rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .lede-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-area-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .kevin-block { grid-template-columns: 160px 1fr; gap: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--cream);
    flex-direction: column;
    padding: 5.5rem 1.5rem 1.5rem;
    gap: 0.2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 0.9rem 0.3rem; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .card-grid-4, .card-grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .check-list-inline { grid-template-columns: 1fr; }
  .area-list { grid-template-columns: 1fr; }
  .kevin-block { grid-template-columns: 1fr; }
  .kevin-photo-wrap { max-width: 220px; }
  .form-row-half { flex-direction: column; gap: 1.1rem; }
  .addon-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-photo { object-position: 68% 45%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
