:root {
  --teal: #1f6f78;
  --teal-dark: #155158;
  --coral: #e07a5f;
  --gold: #f2cc8f;
  --cream: #fff8f2;
  --ink: #2b2d42;
  --muted: #5c6470;
  --surface: #ffffff;
  --radius: 14px;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --text-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--text-scale));
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream) 0%, #fff 240px);
  line-height: 1.6;
}

body.a11y-contrast {
  --cream: #ffffff;
  --surface: #ffffff;
  --ink: #000000;
  --muted: #222222;
  --teal: #004d57;
  --coral: #a83200;
  background: #fff;
}

a { color: var(--teal-dark); }
a:hover { color: var(--coral); }

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 3px solid var(--teal);
}

.a11y-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid rgba(31, 111, 120, 0.15);
  font-size: 0.875rem;
}
.a11y-toolbar button {
  font: inherit;
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}
.a11y-toolbar button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.a11y-label { color: var(--muted); margin-right: 0.25rem; }

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 111, 120, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.brand img { width: 42px; height: 42px; }

.nav-toggle {
  display: none;
  font: inherit;
  border: 1px solid var(--teal);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}

.primary-nav .nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.primary-nav a[aria-current="page"] {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.linkish {
  background: none;
  border: none;
  font: inherit;
  color: var(--teal-dark);
  cursor: pointer;
  text-decoration: underline;
}
.lang-switch a { font-weight: 700; }

.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; }
.btn-secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.hero {
  padding: 3rem 0 2rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0.25rem 0 1rem;
}
.lead, .hero .lead { font-size: 1.125rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--teal); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-card-inner {
  background: linear-gradient(145deg, var(--teal) 0%, #298794 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 200px;
  box-shadow: 0 18px 40px rgba(31, 111, 120, 0.25);
}
.note-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.section { padding: 2.5rem 0; }
.section-muted { background: rgba(242, 204, 143, 0.15); }
.section h1, .section h2 {
  font-family: var(--font-display);
  color: var(--teal-dark);
}

.card-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(31, 111, 120, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(43, 45, 66, 0.06);
}
.quote-card blockquote { margin: 0; font-style: italic; }
.meta { color: var(--muted); font-size: 0.92rem; }
.price { font-weight: 700; color: var(--coral); font-size: 1.25rem; }
.stars { color: var(--gold); letter-spacing: 0.1em; }

.prose { max-width: 68ch; }
.prose h1 { margin-top: 0; }

.form-card .form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(31, 111, 120, 0.35);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form-field select { appearance: auto; }
.form-field input:focus-visible,
.form-field textarea:focus-visible,
.form-field select:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.narrow { max-width: 520px; }

.calendly-embed iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
  border-radius: var(--radius);
}

.banner {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.banner-ok { background: #e8f5e9; border: 1px solid #81c784; }
.banner-err { background: #ffebee; border: 1px solid #e57373; }
.banner-warn { background: #fff3e0; border: 1px solid #ffb74d; }

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  background: var(--teal-dark);
  color: #f5fbfb;
}
.site-footer a { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.post-list { list-style: none; padding: 0; }
.post-list li { margin-bottom: 1.5rem; border-bottom: 1px solid rgba(31, 111, 120, 0.15); padding-bottom: 1rem; }

.material-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.muted { color: var(--muted); font-size: 0.92rem; }

@media (max-width: 860px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .primary-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }
  .primary-nav .nav-list.is-open { display: flex; }
}
