/* ============================================================
   Katelyn Manga Nutrition — shared stylesheet
   Palette: deep teal + citron + orange (bold, not a neutral wellness site)
   ============================================================ */

:root {
  --paper: #F2F1ED;
  --ink: #16211F;
  --ink-soft: #3C4A47;

  --teal: #0B3E46;
  --teal-deep: #072C33;
  --teal-tint: #E2ECEE;

  --citron: #40501F;

  --orange: #96A324;
  --orange-deep: #40501F;

  --stone: #DCD5C4;
  --sage: #5C7570;

  --max: 780px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.1 0 0 0 0 0.12 0 0 0 0 0.11 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.13;
  margin: 0;
  color: var(--teal-deep);
}

a { color: var(--teal); }
a:hover { color: var(--teal-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-deep);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 241, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--teal-deep);
  z-index: 10;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--teal-deep);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

nav.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav.primary-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.primary-nav a:hover { border-bottom-color: var(--citron); }
nav.primary-nav a[aria-current="page"] { color: var(--teal-deep); font-weight: 700; border-bottom-color: var(--orange); }

.nav-cta {
  display: inline-block;
  line-height: 1;
  background: var(--orange);
  color: var(--paper) !important;
  padding: 8px 16px;
  border-radius: 3px;
  font-weight: 700;
  text-align: center;
}
.nav-cta:hover { background: var(--orange-deep); border-bottom-color: transparent !important; }

@media (max-width: 700px) {
  nav.primary-nav ul { gap: 12px; }
  nav.primary-nav a { font-size: 0.85rem; }
}

/* ---------- Accessibility widget ---------- */
.a11y-widget { position: relative; flex-shrink: 0; }

.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-tint);
  border: 2px solid var(--teal);
  color: var(--teal-deep);
  padding: 7px 12px;
  border-radius: 3px;
  font-family: 'Karla', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
}
.a11y-toggle:hover { background: var(--stone); }

.a11y-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--paper);
  border: 1px solid var(--teal);
  border-radius: 4px;
  padding: 16px;
  width: 220px;
  box-shadow: 0 8px 22px rgba(10,53,50,0.18);
}
.a11y-panel.open { display: block; }
.a11y-panel h2 {
  font-family: 'Karla', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.a11y-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.a11y-row:last-child { margin-bottom: 0; }
.a11y-row span { font-size: 0.88rem; }
.a11y-btns { display: flex; gap: 6px; }
.a11y-btns button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--stone);
  background: var(--paper);
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
}
.a11y-btns button:hover { background: var(--teal-tint); }
.a11y-switch {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  border: 1px solid var(--stone);
  background: var(--stone);
  position: relative;
  cursor: pointer;
}
.a11y-switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  top: 2px;
  left: 2px;
  transition: left 0.15s ease;
}
.a11y-switch[aria-pressed="true"] { background: var(--teal); }
.a11y-switch[aria-pressed="true"]::after { left: 19px; }

/* font-size / contrast states applied to body */
body.a11y-large { font-size: 19px; }
body.a11y-larger { font-size: 21px; }
body.a11y-dyslexic, body.a11y-dyslexic * {
  font-family: 'OpenDyslexic', sans-serif !important;
  letter-spacing: 0.02em;
}
body.a11y-contrast {
  --paper: #FFFFFF;
  --ink: #000000;
  --ink-soft: #000000;
  --teal: #063C39;
  --teal-deep: #042523;
  --orange: #B34212;
  --stone: #000000;
  --sage: #222222;
  --teal-tint: #EFEFEF;
}

/* ---------- Hero (bold teal band) ---------- */
.hero {
  background: var(--teal-deep);
  color: var(--paper);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero .wrap { position: relative; }

.hero-flex {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-photo {
  width: 320px;
  height: 378px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--citron);
}

.hero-text { flex: 1; min-width: 0; }

@media (max-width: 640px) {
  .hero-flex { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-photo { width: 232px; height: 275px; }
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  max-width: 14ch;
}

.hero .lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.12rem;
  color: #D9E4E2;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: background 0.15s ease, color 0.15s ease;
  border: 3px solid transparent;
}

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

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: var(--citron);
}
.btn-secondary:hover { background: rgba(78,95,34,0.18); }

/* on-light variant of secondary (for non-hero contexts) */
.on-light .btn-secondary { color: var(--teal-deep); border-color: var(--teal); }
.on-light .btn-secondary:hover { background: var(--teal-tint); }

.cta-note { font-size: 0.9rem; color: #B7C7C4; }

/* page header (non-home pages) — also teal band for consistency/boldness */
.page-header {
  background: var(--teal-deep);
  color: var(--paper);
  padding: 60px 0 46px;
}
.page-header h1 { color: var(--paper); font-size: clamp(1.9rem, 4vw, 2.5rem); max-width: 18ch; }
.page-header .lede { margin-top: 16px; max-width: 52ch; color: #D9E4E2; }

/* divider */
.divider { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.divider svg { width: 150px; height: 20px; display: block; }

/* ---------- Sections ---------- */
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--stone); }

.eyebrow { font-size: 0.85rem; color: var(--orange-deep); font-weight: 700; margin-bottom: 10px; }

h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); max-width: 20ch; }
h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }

.section-body { margin-top: 18px; max-width: 58ch; color: var(--ink-soft); }
.section-body p + p { margin-top: 14px; }

/* photo placeholder */
.photo-placeholder {
  border-radius: 6px;
  background: var(--teal-tint);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--teal);
  text-align: center;
  padding: 10px;
}

/* service blurbs */
.blurb-grid { margin-top: 28px; display: flex; flex-direction: column; gap: 26px; }
.blurb { max-width: 54ch; padding-left: 18px; border-left: 3px solid var(--citron); }
.blurb h3 { margin-bottom: 6px; }
.blurb p { margin: 0; color: var(--ink-soft); }

/* statement / checklist rows */
.for-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.for-item { display: flex; gap: 14px; max-width: 54ch; }
.for-mark { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; }
.for-mark svg { width: 100%; height: 100%; }

/* referred by */
.referred-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.referred-chip {
  border: 1px solid var(--teal);
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--teal-deep);
  background: var(--teal-tint);
}

/* testimonials */
.testimonial-grid {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
}
.testimonial p.quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0;
}
.testimonial .attribution {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--sage);
}

/* FAQ accordion */
.faq-list { margin-top: 28px; }
.faq-item { border-bottom: 1px solid var(--stone); }
.faq-item:first-child { border-top: 1px solid var(--stone); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.faq-q .icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 1px;
}
.faq-q .icon::before { width: 14px; height: 3px; top: 8.5px; left: 3px; }
.faq-q .icon::after { width: 3px; height: 14px; top: 3px; left: 8.5px; transition: transform 0.15s ease; }
.faq-item[data-open="true"] .icon::after { transform: rotate(90deg); }

.faq-a { max-width: 58ch; color: var(--ink-soft); padding: 0 0 20px; display: none; }
.faq-item[data-open="true"] .faq-a { display: block; }

/* rates table */
.rate-list { margin-top: 28px; display: flex; flex-direction: column; gap: 0; }
.rate-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone);
  align-items: baseline;
}
.rate-row:first-child { border-top: 1px solid var(--stone); }
.rate-row .rate-name { font-weight: 700; color: var(--ink); }
.rate-row .rate-desc { font-size: 0.92rem; color: var(--sage); margin-top: 4px; max-width: 44ch; }
.rate-row .rate-price { font-family: 'Fraunces', serif; font-style: italic; color: var(--teal-deep); white-space: nowrap; }

.info-note {
  margin-top: 24px;
  background: var(--teal-tint);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* insurance list */
.insurance-list { margin-top: 16px; columns: 2; column-gap: 24px; }
.insurance-list li { break-inside: avoid; margin-bottom: 8px; }
@media (max-width: 560px) { .insurance-list { columns: 1; } }

/* bookshelf grid */
.shelf-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.shelf-item { display: flex; flex-direction: column; gap: 10px; }
.shelf-cover {
  aspect-ratio: 2/3;
  border-radius: 4px;
  background: var(--teal-tint);
  border: 2px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.78rem;
  text-align: center;
  padding: 10px;
}
.shelf-item h3 { font-size: 0.96rem; }
.shelf-item p { margin: 0; font-size: 0.86rem; color: var(--sage); }
.shelf-item .shelf-note { color: var(--ink-soft); font-size: 0.9rem; margin-top: 2px; }

.category-label {
  margin-top: 40px;
  margin-bottom: -4px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--orange-deep);
}
.category-label:first-of-type { margin-top: 0; }

/* contact / footer band */
.contact-band { background: var(--teal-deep); color: var(--paper); }
.contact-band h2 { color: var(--paper); }
.contact-band .section-body { color: #D9E4E2; }

.contact-details {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  color: #D9E4E2;
}
.contact-details a { color: var(--citron); }
.contact-details a:hover { color: #3A4519; }

footer.site-footer {
  padding: 28px 0 40px;
  font-size: 0.82rem;
  background: var(--teal-deep);
}
footer.site-footer .wrap { color: #9EB3AF; }
footer.site-footer a { color: #C8DAD6; }
