@font-face {
  font-family: "XCharterLocal";
  src: url("../.fonts/XCharter-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "XCharterLocal";
  src: url("../.fonts/XCharter-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "XCharterLocal";
  src: url("../.fonts/XCharter-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "SourceSansLocal";
  src: url("../.fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SourceSansLocal";
  src: url("../.fonts/SourceSans3-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --ink: #1b1815;
  --muted: #5d554d;
  --paper: #f6f0e6;
  --paper-strong: #efe4d2;
  --forest: #27463d;
  --forest-deep: #183029;
  --clay: #a34f2f;
  --sand: #ddc6a6;
  --line: rgba(27, 24, 21, 0.14);
  --shadow: 0 20px 60px rgba(24, 48, 41, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 106.25%; /* ~17px base — 1pt up from default 16px */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(221, 198, 166, 0.4), transparent 34%),
    linear-gradient(180deg, #f9f4ec 0%, #f3ecdf 100%);
  font-family: "XCharterLocal", Georgia, serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

main a:not(.button):not(.nav-cta) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.8rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.4rem 0 2rem;
}

.topbar,
.site-nav,
.hero-actions,
.fact-strip,
.footer-grid,
.card-grid {
  display: flex;
  gap: 1rem;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  position: relative;
}

.eyebrow,
.eyebrow-link,
.section-label,
.hero-kicker,
.contact-label,
.footer-title {
  margin: 0;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.eyebrow,
.eyebrow-link,
.section-label,
.contact-label {
  color: var(--clay);
  font-size: 0.78rem;
}

.eyebrow-link {
  text-decoration: none;
}

.eyebrow-link:hover {
  text-decoration: underline;
}

.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: none;
  cursor: pointer;
  color: var(--forest);
  transition: background 0.15s, border-color 0.15s;
}

.user-menu-btn:hover {
  background: rgba(39, 70, 61, 0.07);
  border-color: var(--forest);
}
.user-menu-btn[disabled] {
  cursor: default;
  opacity: 0.5;
  animation: user-menu-pulse 1.5s ease-in-out infinite;
}
@keyframes user-menu-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.3; }
}

.user-menu-btn--signed-in {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.user-menu-btn--signed-in:hover {
  background: #1a3d32;
  border-color: #1a3d32;
}

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.4rem;
  min-width: 190px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.11);
  z-index: 200;
}

.user-menu-who {
  padding: 0.35rem 0.65rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-action {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.65rem;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--forest);
  font-family: inherit;
}

.user-menu-action:hover {
  background: rgba(39, 70, 61, 0.07);
}

.user-menu-sep {
  border: none;
  border-top: 1px solid var(--line, #e0e0e0);
  margin: 0.35rem 0;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-cta {
  background: var(--forest);
  color: #fff !important;
  border-radius: 20px;
  padding: 0.3rem 0.9rem !important;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: #1a3d32;
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clay);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.site-nav a,
.text-link {
  font-family: "SourceSansLocal", Arial, sans-serif;
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover,
.site-nav a:focus-visible,
.text-link:focus-visible,
.button:hover,
.button:focus-visible,
.contact-value a:hover,
.contact-value a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(140deg, rgba(239, 228, 210, 0.96), rgba(246, 240, 230, 0.9)),
    linear-gradient(135deg, rgba(39, 70, 61, 0.08), transparent 40%);
  box-shadow: var(--shadow);
}

.hero-with-portrait {
  grid-template-columns: 1fr 30%;
}

.hero-no-portrait {
  grid-template-columns: 1fr;
}

.mobile-bio-photo {
  display: none;
}

.hero-copy h1,
.section-heading h2,
.section-grid h2,
.split-panel h2,
.emergency-panel h2,
.contact-block h2,
.subpage-header h1 {
  margin: 0;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.hero-subhead {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-summary,
.subhead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-caveat {
  margin: 0.6rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-detail {
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-roles-body {
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--muted);
  opacity: 0.8;
}

.hero-roles-label {
  margin-top: 1.2rem;
  margin: 0 0 0.4rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}


.hero-actions {
  flex-wrap: wrap;
  margin: 2rem 0 1.4rem;
}

.bio-portrait {
  margin: 1.4rem 0 0;
}

.bio-portrait img {
  width: 180px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(24, 48, 41, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.btn-saved { background: #2e7d32 !important; color: #fff !important; }

.button-primary {
  color: #fff;
  background: var(--forest);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button-danger {
  color: #fff;
  background: #b91c1c;
  border-color: #991b1b;
}

.button-danger:hover {
  background: #991b1b;
}

.fact-strip {
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fact-strip li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(24, 48, 41, 0.08);
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-size: 0.95rem;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: transparent;
}

.section-accent {
  background: linear-gradient(180deg, rgba(39, 70, 61, 0.06), rgba(39, 70, 61, 0.12));
}

.section-dark {
  color: #f6f0e6;
  background: linear-gradient(180deg, var(--forest), var(--forest-deep));
}

.section-warning {
  background: linear-gradient(180deg, rgba(163, 79, 47, 0.08), rgba(163, 79, 47, 0.15));
}

.section-grid,
.contact-block,
.split-panel,
.footer-grid,
.emergency-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.stack > * + *,
.prose > * + * {
  margin-top: 1rem;
}

.compact > * + * {
  margin-top: 0.65rem;
}

.card-grid {
  flex-wrap: wrap;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-card,
.panel,
.contact-card {
  flex: 1 1 280px;
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(24, 48, 41, 0.06);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--clay);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  margin: 0;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
}

.section-dark .panel {
  color: var(--ink);
}

/* Panels in a vertical stack should fit content, not stretch to a minimum flex-basis height */
.panel-stack > .panel {
  flex: 0 0 auto;
}

.info-card h3,
.panel h3 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.plain-list li + li {
  margin-top: 0.6rem;
}

.panel-note {
  margin: 1rem 0 0;
  color: var(--ink);
}

.contact-value {
  margin: 0.25rem 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.contact-value a {
  color: var(--forest);
  text-decoration: none;
}

.contact-note {
  color: var(--muted);
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-row--phone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--forest);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.contact-action-btn:hover,
.contact-action-btn:focus-visible {
  background: rgba(39, 70, 61, 0.07);
  border-color: var(--forest);
}

.site-footer {
  padding: 2.2rem 0 3rem;
  color: #f6f0e6;
  background: #171612;
}

.site-footer p {
  margin: 0.2rem 0;
}

.site-footer a {
  color: #f6f0e6;
  text-decoration: none;
}

.page-body {
  min-height: 100vh;
}

.subpage-header {
  padding: 2rem 0 1rem;
}

.prose {
  width: min(760px, 100%);
}

.prose h2 {
  margin-bottom: 0.2rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
}

/* Dark section label — visible on forest green */
.section-dark .section-label {
  color: #d4f0e0;
  font-size: 1.1rem;
}

/* Small caveat notes inside the dark section */
.section-caveat {
  font-size: 0.85rem;
  color: rgba(246, 240, 230, 0.72);
  margin-top: 0.8rem;
}

@media (max-width: 860px) {
  .price-includes {
    display: none;
  }

  .hero,
  .section-grid,
  .contact-block,
  .split-panel,
  .footer-grid,
  .emergency-panel,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: center;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 100;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    min-width: 160px;
    background: #faf9f7;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    padding: 0.5rem 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
  }

  .site-nav .nav-cta {
    margin: 0.4rem 0.8rem;
    padding: 0.5rem 1rem !important;
    text-align: center;
    border-radius: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
    padding: 1.4rem;
  }

  .hero-with-portrait {
    grid-template-columns: 1fr !important;
  }

  #hero-photo-figure {
    display: none !important;
  }

  .hero-summary {
    max-width: none;
  }

  .mobile-bio-photo {
    display: block !important;
    float: right;
    width: 110px;
    height: 140px;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius);
    margin: 0.2rem 0 0.8rem 1rem;
  }

  .bio-portrait img {
    width: 140px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3.2rem 0;
  }

  .shell {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero {
    border-radius: 18px;
    padding: 1.1rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    display: flex;
    width: 100%;
  }

  .info-card,
  .panel,
  .contact-card {
    border-radius: 16px;
    padding: 1.1rem;
  }

  .bio-portrait img {
    width: 120px;
  }
}

/* Panel stack — stacks panel cards vertically; panels fit their content, no forced equal height */
.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

/* Journey steps — vertical numbered timeline */
.journey-steps {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.journey-step {
  display: flex;
  gap: 0.85rem;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  width: 1px;
  background: var(--line);
  margin: 3px 0;
  min-height: 0.5rem;
}

.journey-step:last-child .step-line {
  display: none;
}

.step-body {
  padding-bottom: 1.1rem;
  min-width: 0;
}

.journey-step:last-child .step-body {
  padding-bottom: 0;
}

.step-title {
  margin: 0.1rem 0 0.2rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.step-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.step-desc a {
  color: var(--forest);
  text-decoration: underline;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.price-card--initial {
  grid-column: 1 / -1;
}

.price-card {
  position: relative;
  padding: 1.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(24, 48, 41, 0.06);
  transition: box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}

.price-card:hover {
  box-shadow: 0 16px 40px rgba(24, 48, 41, 0.13);
  transform: translateY(-2px);
}

.price-label {
  margin: 0 0 0.6rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-amount {
  margin: 0 0 0.35rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--forest);
  line-height: 1;
}

.price-detail {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.price-includes {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.price-includes li + li {
  margin-top: 0.4rem;
}

.price-book-btn {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
}

/* Stretched-link: ::after covers the whole card so clicking anywhere works */
.price-book-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  z-index: 1;
}

.pricing-note {
  margin: 1.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 64ch;
}

.appt-intro {
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
  color: var(--body);
  max-width: 58ch;
}

.appt-login-note {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 64ch;
}

.field-locked {
  background: var(--bg, #f9f9f9);
  color: var(--muted, #666);
  cursor: not-allowed;
  border-color: var(--line, #ddd);
}

/* ── Profile modal ─────────────────────────────────────────────────── */
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-modal-backdrop[hidden] { display: none; }
.profile-modal {
  background: #fff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.profile-modal h2 {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-family: "SourceSansLocal", Arial, sans-serif;
}
.profile-modal-field { margin-bottom: 1rem; }
.profile-modal-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-modal-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line, #ddd);
  border-radius: 6px;
  font-size: 0.95rem;
}
.profile-modal-field input[readonly] {
  background: var(--bg, #f9f9f9);
  color: var(--muted, #666);
  cursor: not-allowed;
}
.profile-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.profile-modal-status {
  font-size: 0.85rem;
  color: var(--muted, #666);
  margin-top: 0.5rem;
  min-height: 1.2em;
}
