/* Ellison Psychological Services — replicates the Squarespace 7.1 design */
:root {
  --bg: #edecea;
  --ink: #4a4a4a;
  --ink-strong: #333;
  --heading: #7d7d7d;
  --green: #3f7a3a;
  --slate: #33454f;
  --btn: #5d5d5d;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.25;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 2.2em; }
h3 { font-size: 1.25rem; color: var(--slate); font-weight: 600; }
h2 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
a { color: var(--ink-strong); }
strong { color: var(--ink-strong); }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
.brand img { height: 54px; display: block; }
.site-header nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; color: var(--ink); font-size: 16px; }
.site-header nav a:hover, .site-header nav a.active { text-decoration: underline; text-underline-offset: 6px; }
#menu-toggle, .menu-btn { display: none; }

main { max-width: var(--max); margin: 0 auto; padding: 24px 32px 64px; }

/* hero (home) — full-bleed tree */
.hero-bleed {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw);
  min-height: 540px; display: flex; align-items: center; justify-content: center;
  text-align: center; margin-top: -24px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,30,25,.55), rgba(20,30,25,.62)); }
.hero-inner { position: relative; z-index: 1; color: #fff; padding: 48px 24px; max-width: 760px; }
.hero-inner h1 { font-size: 2.6rem; font-weight: 600; color: #fff; margin: 0 0 8px; }
.hero-inner .lede { font-size: 1.1rem; line-height: 1.65; opacity: .95; }
.ruleline {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  margin: 12px auto 22px; max-width: 560px; letter-spacing: .24em; font-size: .88rem;
  font-family: "Quicksand", sans-serif; font-weight: 500;
}
.ruleline::before, .ruleline::after { content: ""; flex: 1; height: 1.5px; background: #fff; opacity: .7; }
.hero-cta { margin-top: 22px; }
.tagline {
  margin-top: 26px; font-family: "Quicksand", sans-serif; font-style: italic;
  font-size: 1.05rem; opacity: .85; letter-spacing: .02em;
}
.btn.hero-solid { background: #fff; color: var(--slate); font-family: "Quicksand", sans-serif; font-weight: 600; margin: 0 6px; }
.btn.hero-solid:hover { background: #e8e6e2; }
.btn.hero-ghost { background: transparent; color: #fff; border: 2px solid #fff; font-family: "Quicksand", sans-serif; font-weight: 600; margin: 0 6px; }
.btn.hero-ghost:hover { background: rgba(255,255,255,.12); }

/* interior page banners */
.page-banner {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -24px;
  min-height: 240px; display: flex; align-items: center; justify-content: center;
  text-align: center; margin-bottom: 34px;
}
.banner-bg { position: absolute; inset: 0; overflow: hidden; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,30,25,.5), rgba(20,30,25,.58)); }
.page-banner h1 {
  position: relative; z-index: 1; color: #fff; margin: 0;
  padding: 40px 24px; font-size: 2.3rem; max-width: 850px;
}

/* home cards */
.cards-intro { text-align: center; margin-top: 56px; }
.cards-intro .lede { margin-top: -8px; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 28px;
}
.card {
  background: #f4f3f1; border-radius: 14px; padding: 22px 24px;
  text-decoration: none; box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.card h3 { margin: 0 0 8px; color: var(--green); }
.card p { margin: 0; font-size: .95rem; }

/* prose pages */
.prose { max-width: 900px; margin: 0 auto; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .45em 0; }

/* two column (about, contact) */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; padding-top: 12px; }
.photo {
  display: block; width: 100%; max-width: 380px; margin: 0 auto;
  border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.photo.center { display: block; max-width: 440px; margin: 40px auto 0; }
figure.arrival { max-width: 640px; margin: 28px auto 8px; padding: 0; }
figure.arrival img { display: block; width: 100%; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
figure.arrival figcaption { text-align: center; margin-top: 10px; color: var(--heading); font-size: .95rem; font-style: italic; }
.sub { margin-top: 0; }

/* fees table */
table.fees { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
table.fees td { padding: 10px 8px; border-bottom: 1px solid #dcdad6; }
table.fees td:last-child { text-align: right; font-weight: 600; color: var(--ink-strong); white-space: nowrap; }

/* buttons */
.cta { margin-top: 30px; text-align: center; }
.btn {
  display: inline-block; background: var(--slate); color: #fff; text-decoration: none;
  padding: 14px 30px; border-radius: 30px; font-family: "Quicksand", sans-serif;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
}
.btn:hover { background: #24333b; }

/* form */
form input, form textarea {
  width: 100%; padding: 10px; border: 1px solid #cfcdc9; border-radius: 6px;
  background: #fbfaf9; font: inherit; color: var(--ink);
}
form label { font-weight: 600; color: var(--ink-strong); font-size: .95rem; }
form .btn { margin-top: 4px; }
.hidden { display: none; }

/* footer */
.site-footer { text-align: center; padding: 0 20px 48px; }
.wave { width: 100%; height: 60px; display: block; margin-bottom: 30px; }
.footer-logo { width: min(390px, 70%); }
.site-footer p { margin: 6px 0; }
.site-footer a { text-decoration: none; }
.muted { color: var(--heading); font-size: .95rem; }

/* mobile */
@media (max-width: 760px) {
  h1 { font-size: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero-bleed { min-height: 460px; }
  .hero-inner h1 { font-size: 1.9rem; }
  .ruleline { letter-spacing: .16em; font-size: .78rem; }
  .page-banner { min-height: 170px; margin-bottom: 22px; }
  .page-banner h1 { font-size: 1.6rem; padding: 28px 18px; }
  main { padding: 16px 20px 48px; }
  .site-header { padding: 12px 18px; }
  .menu-btn {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px;
  }
  .menu-btn span { width: 24px; height: 2px; background: var(--ink-strong); }
  .site-header nav ul {
    display: none; position: absolute; right: 0; top: 100%;
    flex-direction: column; background: var(--bg); width: 100%;
    padding: 10px 24px 20px; gap: 14px; box-shadow: 0 8px 12px rgba(0,0,0,.08);
  }
  #menu-toggle:checked ~ ul { display: flex; }
}

/* insurance payer pills */
.payer-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 14px; }
.payer-pills span {
  background: var(--green); color: #fff; padding: 10px 22px; border-radius: 24px;
  font-family: "Quicksand", sans-serif; font-weight: 600; font-size: 1rem;
}

/* services page: jump nav + boxed panels */
.jump-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 4px 0 8px; }
.jump-pills a {
  border: 1.5px solid var(--slate); color: var(--slate); text-decoration: none;
  border-radius: 22px; padding: 8px 18px; font-family: "Quicksand", sans-serif;
  font-weight: 600; font-size: .92rem; transition: background .12s ease, color .12s ease;
}
.jump-pills a:hover { background: var(--slate); color: #fff; }
.service-panel {
  background: #f4f3f1; border-radius: 16px; padding: 26px 32px; margin: 26px 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.06); scroll-margin-top: 96px;
}
.service-panel h2 { margin-top: 0; font-size: 1.45rem; color: var(--green); }
.service-panel .more { margin-bottom: 0; }
.service-panel .more a { font-family: "Quicksand", sans-serif; font-weight: 600; color: var(--slate); }
@media (max-width: 760px) { .service-panel { padding: 20px 20px; } }

/* contact form privacy note + select */
.form-note {
  background: #f0efe9; border-left: 4px solid var(--green); border-radius: 8px;
  padding: 12px 16px; font-size: .93rem;
}
form select {
  width: 100%; padding: 10px; border: 1px solid #cfcdc9; border-radius: 6px;
  background: #fbfaf9; font: inherit; color: var(--ink);
}
