/* The ART of Insight Counseling: site styles.
   Palette is taken from the logo (green #309870, deep #283F35). */

@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Merriweather";
  src: url("/fonts/merriweather-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #309870;
  --brand-ink: #1f6b4f;      /* AA-contrast green for text, links and buttons */
  --deep: #22372f;
  --deep-2: #2c463c;
  --mist: #eef5f1;
  --sand: #f8f6f1;
  --line: #dbe6e0;
  --text: #26332e;
  --muted: #56655f;
  --white: #fff;
  --warm: #b4572a;

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --shadow: 0 1px 2px rgb(20 40 32 / .06), 0 8px 24px rgb(20 40 32 / .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.75 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: .18em; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); color: var(--deep); line-height: 1.3; font-weight: 700; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--deep); color: var(--white); padding: .6rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid var(--brand-ink);
  background: var(--brand-ink); color: var(--white);
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--brand-ink); }
.btn--ghost:hover { background: var(--brand-ink); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--sm { padding: .6em 1.15em; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--deep); color: #d9e7e0; font-size: .82rem; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .5rem; }
.topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; text-decoration: none; color: var(--deep); }
.brand img { width: 78px; height: auto; }
.brand__name { font: 700 1.15rem/1.2 var(--serif); }
.brand__name small { display: block; font: 500 .78rem/1.4 var(--sans); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--line); border-radius: 8px;
  padding: .5rem .8rem; font: 600 .9rem var(--sans); color: var(--deep); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.site-nav a { display: block; white-space: nowrap; text-decoration: none; color: var(--text); font-weight: 500; font-size: .9rem; padding: .55rem .5rem; border-radius: 6px; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav .is-active > a { color: var(--brand-ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.site-nav .btn { color: var(--white); margin-left: .5rem; padding: .6em 1.15em; }
.site-nav .btn:hover { color: var(--white); }
.site-nav .btn[aria-current="page"] { text-decoration: none; }

.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .4em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); }
.sub {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .5rem .75rem; white-space: normal; }
.sub a:hover { background: var(--mist); }

@media (max-width: 1220px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1.25rem; max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: .7rem .25rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .sub a { font-size: .95rem; color: var(--muted); }
  .site-nav .btn { margin: 1rem 0 0; border-bottom: 2px solid var(--brand-ink); }
  .brand img { width: 62px; }
}
@media (max-width: 560px) {
  .topbar__inner { justify-content: center; text-align: center; }
  .topbar p { justify-content: center; }
  .topbar__hours { display: none; }
  .brand__name { font-size: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section__head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head p { color: var(--muted); }
.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 .6rem; }
.prose { max-width: 70ch; }
.prose--center { margin-inline: auto; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Home: quote slider ---------- */
.hero { position: relative; height: clamp(440px, 72vh, 640px); background: var(--deep); color: var(--white); overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 30 24 / .35), rgb(15 30 24 / .62)); }
.slide blockquote {
  position: absolute; inset: 0; z-index: 1; margin: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 3rem var(--gutter) 5rem;
}
.slide blockquote p {
  max-width: 820px; margin: 0 0 1rem;
  font: italic 400 clamp(1.3rem, 1rem + 1.6vw, 2.15rem)/1.5 var(--serif);
  text-shadow: 0 2px 16px rgb(0 0 0 / .35);
}
.slide cite { font: 600 .9rem/1.4 var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #e3efe9; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

.hero__controls {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.25rem;
  display: flex; justify-content: center; align-items: center; gap: .5rem;
}
.hero__controls button {
  background: rgb(255 255 255 / .16); color: var(--white); border: 1px solid rgb(255 255 255 / .5);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.hero__controls button:hover { background: rgb(255 255 255 / .3); }
.hero__dots { display: flex; gap: .15rem; margin: 0 .5rem; }
.hero__dots button { width: 24px; height: 24px; background: none; border: 0; }
.hero__dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--white); }
.hero__dots button[aria-current="true"]::before { background: var(--white); }
.hero:not(.is-ready) .hero__controls { display: none; }

/* ---------- Home: notices ---------- */
.notice-band { background: var(--brand-ink); color: var(--white); }
.notice-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.25rem; }
.notice-band p { margin: 0; }
.notice-band strong { font: 700 1.2rem/1.3 var(--serif); display: block; }

.callout {
  border-left: 4px solid var(--warm); background: #fbf3ee; border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem; font-size: .98rem;
}
.callout h2, .callout h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout a { color: #8a3d18; font-weight: 600; }

.pullquote {
  margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--brand);
  font: italic 400 1.3rem/1.6 var(--serif); color: var(--deep);
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 40 32 / .06), 0 14px 32px rgb(20 40 32 / .12); }
.card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: var(--deep); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card p { color: var(--muted); font-size: .97rem; }
.card__more { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--brand-ink); }
.card__more::after { content: " \2192"; }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font: 700 1.02rem/1.45 var(--serif); color: var(--deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 1.25rem; top: .8rem; font: 400 1.5rem/1 var(--sans); color: var(--brand-ink); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details > div { padding: 0 1.25rem 1.1rem; }
.faq-list details > div p:last-child { margin-bottom: 0; }

.faq-full { max-width: 820px; }
.faq-full section { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.faq-full section:first-child { padding-top: 0; }
.faq-full h2 { font-size: 1.25rem; }
.faq-full p:last-child { margin-bottom: 0; }

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.15fr .85fr; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__media figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; }
.split__media img + img { margin-top: 1.25rem; }
@media (max-width: 820px) {
  .split, .split--even { grid-template-columns: 1fr; }
  .split__media { max-width: 560px; }
}

.therapist { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.therapist img { border-radius: var(--radius); box-shadow: var(--shadow); }
.therapist .creds { font: 600 .9rem var(--sans); letter-spacing: .1em; color: var(--brand-ink); text-transform: uppercase; margin-top: -.3rem; }
@media (max-width: 820px) { .therapist { grid-template-columns: 1fr; } }

/* ---------- Interior pages ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { margin-bottom: .3rem; }
.page-hero .lede { margin: .5rem 0 0; max-width: 62ch; }

.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.cred-list li:last-child { border-bottom: 0; }
.cred-list span { display: block; color: var(--muted); font-size: .92rem; font-style: italic; }

.info-card { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.info-card h2, .info-card h3 { font-size: 1.15rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.info-list li { padding: .3rem 0; }
.info-list b { display: inline-block; min-width: 4.5rem; color: var(--deep); font-weight: 600; }

.cta { background: var(--deep); color: #dce9e3; }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta h2 { color: var(--white); margin-bottom: .4rem; }
.cta p { margin: 0; max-width: 60ch; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map iframe { width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: #cfdfd8; font-size: .93rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #bfe3d3; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1.4fr .9fr 1fr; padding-block: 3rem 2rem; }
.footer-grid h2 { color: var(--white); font: 600 .8rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: .2rem 0; }
.footer-grid li a { text-decoration: none; }
.footer-grid li a:hover { text-decoration: underline; }
.footer-brand { font: 700 1.1rem/1.35 var(--serif); color: var(--white); margin-bottom: .5rem; }
.footer-crisis { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.25rem; }
.footer-crisis p { margin: 0; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 1.25rem; font-size: .84rem; color: #a9c0b6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.footer-bottom p { margin: 0; }
.pay-methods { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pay-methods > span:first-child { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; margin-right: .35rem; }
.pay { border: 1px solid rgb(255 255 255 / .25); border-radius: 4px; padding: .1rem .5rem; font-size: .78rem; font-weight: 600; color: #dce9e3; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Small helpers ---------- */
.btn-row--center { justify-content: center; margin-top: 1.75rem; }
figure.split__media { margin: 0; }
.mt-2 { margin-top: 2rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.info-list a, .footer-grid a { overflow-wrap: anywhere; }

/* Psychology Today seal: its script sets display/size/background once the badge loads. */
.pt-seal { margin-top: 1.5rem; }
.sx-verified-seal { display: none; }

/* ---------- Fee table ---------- */
.fees { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.fees th, .fees td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.fees thead th { background: var(--deep); color: var(--white); font: 600 .78rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.fees tbody th[scope="row"] { color: var(--deep); font-weight: 600; }
.fees td:last-child, .fees thead th:last-child { text-align: right; white-space: nowrap; }
.fees td:last-child { font-weight: 600; color: var(--brand-ink); }
.fees__group th { background: var(--mist); font: 700 1rem/1.4 var(--serif) !important; color: var(--deep); }
.fees tr:last-child > * { border-bottom: 0; }
@media (max-width: 420px) { .fees th, .fees td { padding: .6rem .6rem; } }
.mt-1 { margin-top: 1rem; }
