/* ============================================================
   PORCHLIGHT COUNSELING — SHARED STYLESHEET
   Every page uses this one file, so a change here updates the
   whole website. Colors and sizes live at the top.
   ============================================================ */

/* ---------- COLORS, FONTS & SIZES (edit these first) ---------- */
:root {
  --cream:     #f8f3e9;   /* main page background */
  --paper:     #fffdf8;   /* cards and boxes */
  --ink:       #263026;   /* main text */
  --forest:    #2c3a2e;   /* dark green banners */
  --sage:      #68745b;   /* muted green text */
  --sage-soft: #e3e8da;   /* pale green card tint */
  --blush:     #f6e8e3;   /* pale pink card tint */
  --sand:      #efe7da;   /* warm beige card tint */
  --brass:     #a8792c;   /* buttons and small gold headings */
  --line:      #e3dacb;   /* border lines */
  --muted:     #5c6459;   /* small body text */

  --maxw: 1160px;         /* page width */
  --radius: 18px;         /* roundness of cards */
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(45, 38, 22, .05);
  --shadow-md: 0 12px 30px rgba(45, 38, 22, .09);
  --shadow-lg: 0 26px 60px rgba(45, 38, 22, .14);
  --header-h: 84px;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      'Lato', Arial, Helvetica, sans-serif;
  --font-script:  'Dancing Script', Georgia, cursive;
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto keeps every image's shape when CSS changes its width — without
   it, an image's height="..." attribute stays put and squashes or stretches it. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: auto;
  padding: 0 clamp(20px, 4vw, 34px);
}

/* Anchors stop below the sticky header instead of behind it */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* Keyboard users: visible focus ring everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

/* "Skip to content" link, visible only when tabbed to */
.skip {
  position: absolute;
  left: -9999px;
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 60;
}
.skip:focus { left: 0; top: 0; }

/* ---------- TEXT ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.4rem); }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.1vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
p  { margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}
.lead { font-size: clamp(1.08rem, 1rem + 0.55vw, 1.32rem); color: #4d554a; max-width: 62ch; }
.script { font-family: var(--font-script); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); color: var(--sage); line-height: 1.35; }
.small { font-family: var(--font-ui); font-size: 15px; color: var(--muted); }
.note  { font-family: var(--font-ui); font-size: 13.5px; color: #757c71; line-height: 1.65; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* A centered intro block above a grid of cards */
.section-intro { max-width: 720px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; }
.section-intro p:last-child { margin-bottom: 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 10px 0 0;
  padding: 15px 28px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--brass);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168, 121, 44, .28); }
.btn:active { transform: translateY(0); }
.btn.alt { background: transparent; color: var(--ink); }
.btn.alt:hover { background: rgba(168, 121, 44, .1); box-shadow: var(--shadow-sm); }
.btn.light { background: #fff; color: var(--forest); border-color: #fff; }
.btn.light:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, .18); }

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 243, 233, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
/* script.js adds .scrolled once the page moves */
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(38, 48, 38, .07);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(168, 121, 44, .35), var(--shadow-sm);
  flex: none;
}
.brand-name { font-family: var(--font-display); font-size: 25px; letter-spacing: .05em; line-height: 1.05; }
.brand-name small {
  display: block;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .19em;
  color: var(--sage);
  margin-top: 4px;
}

.menu { display: flex; align-items: center; gap: 16px; }
.menu a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 0;   /* keeps the links tappable on touch tablets */
  color: var(--ink);
  transition: color .18s ease;
}
/* Gold underline that grows on hover and stays on the current page */
.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.menu a:not(.btn):hover::after,
.menu a.active:not(.btn)::after { transform: scaleX(1); }
.menu a.active:not(.btn) { color: var(--brass); }
.menu .btn { margin: 0; padding: 12px 18px; font-size: 11.5px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 44px;   /* comfortable touch target on phones */
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn .bars { display: inline-block; width: 16px; height: 10px; position: relative; }
.menu-btn .bars::before,
.menu-btn .bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .22s ease;
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(46px, 6vw, 84px); }
.hero h1 { margin-bottom: 20px; }

/* The logo emblem. Its background was made transparent (logo-emblem.png /
   .webp), so it sits directly on the page with no pale square around it and
   no cropping of the gold ring. The glow behind it is CSS, not part of the
   image. */
.emblem { position: relative; }
.emblem img {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}
.emblem::before {
  content: "";
  position: absolute;
  inset: 6% 10% 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 224, 160, .42), rgba(248, 243, 233, 0) 70%);
  filter: blur(10px);
}

/* A real photo (for example, a portrait of the therapist) */
.portrait { width: 100%; max-width: 440px; border-radius: var(--radius); box-shadow: var(--shadow-md); object-fit: cover; }

/* Small reassurance pills under the hero text */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.chip::before { content: "✦"; color: var(--brass); font-size: 11px; }

/* ---------- DARK GREEN PAGE BANNER ---------- */
.band {
  background: linear-gradient(160deg, #33422f, #243024);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 6vw, 68px) 0;
}
.band h1, .band h2 { color: #fff; margin-bottom: 10px; }
.band p { color: #dfe6d6; }
.band .sub {
  font-family: var(--font-ui);
  font-size: clamp(12px, 0.6rem + 0.3vw, 13.5px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #cfd8c4;
  margin: 0;
}

/* ---------- SECTIONS & GRIDS ---------- */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section.tight { padding: clamp(34px, 4vw, 54px) 0; }
.soft  { background: #ece5d7; }
.paper { background: var(--paper); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* Always exactly two columns (used for the four therapy approach cards, so
   they sit 2 by 2 instead of 3 on top and 1 underneath) */
.cols-2-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Four across on wide screens, then 2 by 2 — never 3 with one stranded
   underneath. Used by the "Which option fits you?" cards and the quick facts. */
.cols-4-even { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); }
.split  { display: grid; gap: clamp(30px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.split.top { align-items: start; }

/* ---------- CARDS ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card.blush { background: var(--blush); border-color: #ecd8d1; }
.card.sage  { background: var(--sage-soft); border-color: #d2dac6; }
.card.sand  { background: var(--sand); border-color: #e0d5c2; }
.card ul { margin: 0; padding-left: 20px; font-family: var(--font-ui); font-size: 15px; color: var(--muted); }
.card li { margin-bottom: 8px; }
.card li:last-child { margin-bottom: 0; }

/* A card that is a link: the whole tile responds */
a.card { text-decoration: none; display: block; }
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
a.card .more { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; letter-spacing: .07em; color: var(--brass); text-transform: uppercase; }
a.card .more::after { content: " →"; }

/* Link cards whose arrow is pushed to the bottom, so a row of them lines up
   however long the text runs — used by "Which option fits you?" on
   services.html and the approach cards on the home page. */
/* a.card.choice, not just .choice: the a.card rule above is more specific
   than a lone class would be, and would otherwise keep display:block. */
a.card.choice { display: flex; flex-direction: column; }
.choice .eyebrow { margin-bottom: 8px; }
.choice h3 { font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem); margin-bottom: 10px; }
.choice p { margin-bottom: 18px; }
.choice .more { margin-top: auto; }

/* ---------- PRICE ROWS ---------- */
.price {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.price:last-child { margin-bottom: 0; }
.price.blush { background: var(--blush); border-color: #ecd8d1; }
.price.sand  { background: var(--sand); border-color: #e0d5c2; }
.price.sage  { background: var(--sage-soft); border-color: #d2dac6; }
.price h3 { margin-bottom: 6px; }
.price .tag { font-family: var(--font-ui); font-size: 14px; color: var(--muted); font-weight: 400; }
.price p, .price ul { font-family: var(--font-ui); font-size: 15px; color: var(--muted); margin-bottom: 0; }
.price ul { padding-left: 20px; }
.price li { margin-bottom: 6px; }
.price .amount {
  text-align: right;
  border-left: 1px solid rgba(92, 100, 89, .25);
  padding-left: clamp(16px, 3vw, 32px);
  min-width: 195px;
}
.price .amount strong { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 600; line-height: 1.1; }
.price .amount span { font-family: var(--font-ui); font-size: 12px; letter-spacing: .05em; color: var(--muted); display: block; }

/* ---------- PLAN CARDS ---------- */
.plan { display: flex; flex-direction: column; text-align: center; }
/* min-height keeps the four plan prices on the same line even when a
   plan name wraps onto two lines */
.plan h3 { margin-bottom: 6px; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.plan .cost { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.2rem); font-weight: 600; color: var(--forest); margin-bottom: 16px; }
.plan .cost span { font-size: .48em; color: var(--muted); }
.plan ul { text-align: left; }

/* ---------- NUMBERED STEPS ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
.stepcard {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 26px);
  box-shadow: var(--shadow-sm);
}
.stepcard::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brass);
  background: rgba(168, 121, 44, .09);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
}
.stepcard h3 { margin-bottom: 6px; }
.stepcard p { margin-bottom: 0; font-family: var(--font-ui); font-size: 15px; color: var(--muted); }

/* Older simple step rows (kept so existing pages still look right) */
.step { padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step b { display: block; color: var(--brass); font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .15em; margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ---------- POLICY BLOCKS ---------- */
.policy h3 { margin-bottom: 2px; }
.policy .tag { display: block; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.policy ul { margin: 0; padding-left: 20px; font-family: var(--font-ui); font-size: 15px; color: var(--muted); }
.policy li { margin-bottom: 9px; }

/* ---------- QUICK FACTS STRIP ---------- */
.facts { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.fact strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); line-height: 1.2; }
.fact span { font-family: var(--font-ui); font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ (click to open) ---------- */
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 22px;
  color: var(--brass);
  transition: transform .22s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; font-family: var(--font-ui); font-size: 15px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CRISIS BOX ---------- */
.crisis {
  background: linear-gradient(160deg, #33422f, #243024);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.crisis h3 { color: #fff; }
.crisis ul { font-family: var(--font-ui); font-size: 15px; padding-left: 20px; margin: 0; color: #e7ecdf; }
.crisis li { margin-bottom: 9px; }
.crisis li:last-child { margin-bottom: 0; }
.crisis a { color: #fff; }

/* ---------- QUOTE STRIP ---------- */
.quote {
  background: var(--ink);
  color: #fff;
  padding: clamp(34px, 5vw, 56px) 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem);
  font-style: italic;
  line-height: 1.35;
}

/* ---------- KEYWORD STRIP ---------- */
.keywords {
  font-family: var(--font-ui);
  font-size: clamp(10px, 0.5rem + 0.35vw, 12.5px);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- FORM ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .05em; margin-bottom: 7px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d5cbb9;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168, 121, 44, .14); }
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-family: var(--font-ui); font-size: 12.5px; color: #7b8175; margin: 6px 0 0; }
.req { color: var(--brass); }

/* Date of birth: Month / Day / Year dropdowns (built by script.js) */
.dob-picker { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 10px; }
.field .dob-picker select { min-width: 0; padding-right: 10px; }
@media (max-width: 560px) {
  .dob-picker { gap: 8px; }
  /* 16px stops iPhones zooming the page when a dropdown is tapped. */
  .field .dob-picker select { font-size: 16px; padding: 13px 8px 13px 12px; }
}

/* Parts of the contact form that appear only for the payment option the
   visitor picks. script.js shows, hides, and switches these off so hidden
   answers are never sent. */
[hidden] { display: none !important; }
.conditional { animation: fieldsIn .25s ease; }
.form-note {
  background: var(--sage-soft);
  border: 1px solid #d2dac6;
  border-left: 3px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.form-note strong { color: var(--ink); }

/* Insurance card upload: the consent panel appears when the upload button is
   clicked, and the file pickers stay locked until the box is ticked. */
.card-upload { margin-top: 0; }
.consent {
  margin-top: 16px;
  padding: 18px 20px;
  background: var(--sand);
  border: 1px solid #e0d5c2;
  border-radius: var(--radius-sm);
}
.consent h3 { margin: 0 0 8px; }
.consent p { font-family: var(--font-ui); font-size: 14px; line-height: 1.6; color: var(--muted); }
.field .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 4px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  cursor: pointer;
}
.field .check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--brass); }
.card-files { margin-top: 16px; transition: opacity .2s ease; }
.card-files.is-locked { opacity: .5; }
.card-files .field { margin-bottom: 12px; }
.field .card-files input[type="file"] { padding: 10px 12px; background: #fff; cursor: pointer; }
.field .card-files input[type="file"]:disabled { cursor: not-allowed; }

/* Contact form result messages */
.form-note.form-error { background: #f7e7e2; border-color: #e8cabf; border-left-color: #a24a36; }
#form-confirm, .form-error { margin-top: 18px; }

@keyframes fieldsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- LINK LIST ---------- */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 6px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background .18s ease, padding-left .18s ease;
}
.linklist a:hover { background: rgba(168, 121, 44, .07); padding-left: 14px; }
.linklist .arrow { color: var(--brass); transition: transform .18s ease; }
.linklist a:hover .arrow { transform: translateX(4px); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--forest); color: #dde2d6; padding: clamp(46px, 6vw, 70px) 0 28px; font-family: var(--font-ui); font-size: 14.5px; }
.site-footer h4 { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.site-footer a { color: #dde2d6; text-decoration: none; transition: color .18s ease; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-mark { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.footer-script { font-family: var(--font-script); font-size: 23px; color: #fff; }
.footer-bottom { border-top: 1px solid #47563f; margin-top: 38px; padding-top: 22px; font-size: 12.5px; color: #b9c2ae; }

/* ---------- BACK TO TOP ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 25;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brass); color: #fff; border-color: var(--brass); }

/* ---------- GENTLE FADE-IN ----------
   Only applies when JavaScript is running (the .js class is added by the
   one-line script in each page's <head>), so the text is never hidden
   if the script does not load. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- TABLETS & PHONES ---------- */
@media (max-width: 1000px) {
  .cols-4-even, .facts, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .cols-2-even { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cols-4-even, .facts, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 6px 6vw 24px;
  }
  .menu.open { display: flex; animation: menuIn .22s ease; }
  .menu a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 18px; justify-content: center; border-bottom: 0; }
  .site-header .wrap { position: relative; }
  .price { grid-template-columns: 1fr; }
  .price .amount { text-align: left; border-left: 0; border-top: 1px solid rgba(92, 100, 89, .25); padding-left: 0; padding-top: 16px; }
  .emblem img { max-width: 420px; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Extra-narrow phones: shrink the brand so the header never overflows */
@media (max-width: 520px) {
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 20px; }
  .brand-name small { font-size: 8.5px; letter-spacing: .12em; }
  .menu-btn { padding: 10px 14px; }
  .stepcard { grid-template-columns: 1fr; gap: 12px; }
  .to-top { right: 14px; bottom: 14px; }
}

/* On the narrowest phones the practice's full line is too long to sit beside
   the MENU button, which pushed the button onto a second row. Drop the second
   line there — it still appears in the footer and on the About page. */
@media (max-width: 430px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand { gap: 10px; }
  /* icon-only menu button: font-size:0 hides the word but keeps it readable
     by screen readers, and the 44px box stays easy to tap */
  .menu-btn { font-size: 0; gap: 0; width: 44px; padding: 0; justify-content: center; }
}

/* Respect "reduce motion" settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card.hover:hover, a.card:hover { transform: none; }
  .menu.open { animation: none; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .site-footer, .btn, .to-top { display: none; }
  body { background: #fff; }
  .card, .price, .crisis { box-shadow: none; }
}
