/* ========================================================
   Jennifer Coonce, LP — site styles
   Palette matched to the live Squarespace site:
   mustard hero, navy accent sections, dark charcoal ink
   ======================================================== */

:root {
  --mustard: #edd286;
  --mustard-deep: #e0bd68;
  --navy: #34659b;
  --navy-deep: #2a4f7a;
  --sage: #7bb5b2;
  --ink: #2d2d2a;
  --cream: #faf6ea;
  --cream-text: #eae6dd;
  --line: rgba(45, 45, 42, 0.35);
  --max-width: 1120px;
  --radius-pill: 999px;
  --radius: 14px;
  --btn-radius: 45px 0 45px 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--mustard);
  line-height: 1.6;
  font-size: 18px;
}

h1, h2, h3, h4, .display {
  font-family: 'Young Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1.2em; }

a { color: inherit; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  background: transparent;
  padding: 22px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

/* ---------- Services dropdown ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: " \25BE";
  font-size: 0.7em;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* No margin-gap between trigger and menu — a gap here creates an
     unhoverable dead zone that closes the menu before the cursor
     reaches it. Padding-top gives visual breathing room instead,
     since padding stays inside the hoverable box. */
  margin-top: 0;
  padding: 20px 0 8px;
  background: var(--mustard);
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  min-width: 240px;
  list-style: none;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: none;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(45,45,42,0.08);
}
.brand {
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.btn-pill {
  display: inline-block;
  background: var(--ink);
  color: var(--cream-text);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn-pill:hover { opacity: 0.85; }
.btn-pill.on-navy,
.btn-pill.accent {
  background: var(--sage);
  color: var(--ink);
}
.btn-pill.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: transparent;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero h1 {
  max-width: 900px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.hero .lead {
  max-width: 620px;
  font-size: 1.2rem;
}
.hero-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 800px) {
  .hero-split { grid-template-columns: 1fr; }
}
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}
.hero-image.portrait {
  aspect-ratio: 3 / 4;
  max-width: 440px;
}
@media (max-width: 600px) {
  .hero-image.portrait { max-width: 100%; }
}

/* Content images in two-col blocks — locks the box to the photo's real
   aspect ratio (set via inline style) so the image can never be stretched
   or squished regardless of column width. */
.content-image {
  border-radius: var(--radius);
  overflow: hidden;
}
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ---------- Navy sections ---------- */
.section-navy {
  background: var(--navy);
  color: var(--cream-text);
  padding: 80px 0;
}
.section-navy h2, .section-navy h3 { color: var(--cream-text); }
.section-navy .eyebrow {
  color: var(--cream-text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.section-navy a.underline {
  color: var(--mustard);
}
.section-navy em { color: var(--cream-text); opacity: 0.9; }

/* Framed photo panel — mustard "matte" border around a full-bleed image,
   the way the Services section looks on the live site */
.photo-frame {
  padding: 44px;
}
.photo-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 72px 40px;
  isolation: isolate;
}
.photo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.1;
  z-index: -1;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  margin-top: 16px;
  text-align: center;
}
.services-grid .service-card:nth-child(3) {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card h3 {
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-underline-offset: 8px;
}
.service-card h3 a {
  color: var(--mustard);
  text-decoration: none;
}
.service-card p { color: var(--cream-text); opacity: 0.92; }

/* ---------- Content sections ---------- */
.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: none; }
.section-tight { padding: 48px 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  padding-left: 1.4em;
  position: relative;
}
.checklist li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Comparison chart ---------- */
.compare-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fdf3d8;
  font-size: 0.95rem;
  min-width: 640px;
}
table.compare caption {
  text-align: left;
  font-family: 'Young Serif', serif;
  font-size: 1.1rem;
  padding: 16px 20px 0;
}
table.compare th, table.compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  background: #fdf3d8;
  color: var(--ink);
  font-family: 'Young Serif', serif;
  font-weight: 700;
}
table.compare tbody th {
  background: #fdf3d8;
  font-weight: 600;
  white-space: nowrap;
}
table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th { border-bottom: none; }

/* Highlighted Psychoanalysis column — header and cells share one fill */
table.compare thead th.psa {
  background: #f4e4b4;
  color: var(--ink);
}
table.compare td.psa {
  background: #f4e4b4;
  font-weight: 500;
}
.th-sub {
  display: block;
  font-family: 'Bitter', Georgia, serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.3;
  margin-top: 5px;
  opacity: 0.92;
}

.compare-note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: -8px;
}

/* ---------- Info cards (side-by-side callout boxes) ---------- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .info-cards { grid-template-columns: 1fr; }
}
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.info-card.cream { background: #faf6ea; }
.info-card.sage { background: #eef1ed; }
.info-card h3 { margin-bottom: 16px; }
.info-card p { margin: 0; }
.info-card p + p { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.faq-item summary {
  font-family: 'Young Serif', serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-family: Georgia, serif;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: 'Young Serif', serif;
  font-size: 2rem;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}

/* ---------- Pull quote ---------- */
blockquote.pull {
  font-family: 'Young Serif', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--navy);
  border-left: 4px solid var(--mustard);
  padding-left: 24px;
  margin: 40px 0;
}
blockquote.pull cite {
  display: block;
  font-family: 'Bitter', serif;
  font-size: 1rem;
  font-style: normal;
  margin-top: 12px;
  opacity: 0.8;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--mustard);
  padding: 56px 0;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: transparent;
  color: var(--ink);
  padding: 56px 0 64px;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.7fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 800px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .site-footer .container { grid-template-columns: 1fr; }
}
.site-footer h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.site-footer a { color: var(--ink); text-decoration: underline; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* ---------- Forms ---------- */
form.contact-form {
  display: grid;
  gap: 22px;
  max-width: 560px;
}
form.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
form.contact-form label em {
  font-weight: 400;
  font-style: normal;
  opacity: 0.6;
  font-size: 0.9em;
}
.field-sublabel {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.field-sublabel em {
  font-style: normal;
  opacity: 0.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #9a9890;
  border-radius: 6px 0 6px 0;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream-text);
  color: var(--ink);
}
form.contact-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: fit-content;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.credential {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.credential strong { display: block; font-family: 'Young Serif', serif; font-size: 1.1rem; }

/* ---------- General eyebrow (non-navy sections) ---------- */
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

/* ---------- Numbered service touts ---------- */
.tout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}
@media (max-width: 700px) { .tout-grid { grid-template-columns: 1fr; } }
.tout {
  background: #fdf3d8;
  padding: 38px 34px;
}
.tout-num {
  font-family: 'Young Serif', serif;
  font-size: 1rem;
  color: var(--navy);
  opacity: 0.55;
  margin-bottom: 10px;
}
.tout h3 { margin: 0 0 10px; }
.tout p { margin: 0 0 18px; }
.tout .link-arrow {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}
.tout .link-arrow::after { content: " \2192"; }
.tout .link-arrow:hover { text-decoration: underline; }

/* ---------- Office image strip ---------- */
.office-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.office-strip img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
@media (max-width: 700px) {
  .office-strip { grid-template-columns: 1fr; }
  .office-strip img { height: 240px; }
}

/* ---------- Locations (two offices, one practice) ---------- */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.location-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.location-card.wide {
  grid-column: 1 / -1;
  background: var(--sage);
  border-color: var(--sage);
}
.location-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.location-card h4 {
  margin: 0 0 8px;
  font-family: 'Young Serif', serif;
  font-weight: 400;
  font-size: 1.2rem;
}
.location-card p { margin: 0; font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--cream-text);
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 { color: var(--cream-text); }
.cta-band p {
  max-width: 560px;
  margin: 14px auto 28px;
  color: var(--cream-text);
  opacity: 0.92;
}

/* ---------- Younger-clients page: age bands, concerns, parent box ---------- */
.age-bands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 760px) { .age-bands { grid-template-columns: 1fr; } }
.age-band {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.age-band-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.age-band h3 { margin: 0 0 10px; }
.age-band p { margin: 0; font-size: 0.92rem; }
.concern-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.concern-list li { line-height: 1.5; }
@media (max-width: 600px) { .concern-list { grid-template-columns: 1fr; } }
.concern-list li { position: relative; padding-left: 20px; }
.concern-list li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--sage);
  font-size: 0.6rem;
}
.parent-box {
  background: var(--navy);
  color: var(--cream-text);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 8px;
}
.parent-box h2, .parent-box h3 { color: var(--cream-text); }
.parent-box p { color: var(--cream-text); opacity: 0.9; }

/* ---------- Component legibility inside navy sections ---------- */
.section-navy .checklist li::before { color: var(--mustard); }
.section-navy .concern-list li::before { color: var(--mustard); }
.section-navy .lead { color: var(--cream-text); }
.section-navy p { color: var(--cream-text); }
.section-navy p a,
.section-navy a.underline { color: var(--mustard); }
.section-navy blockquote.pull { color: var(--cream-text); border-left-color: var(--mustard); }
.section-navy blockquote.pull cite { color: var(--cream-text); opacity: 0.85; }
.section-navy .faq-item { border-bottom-color: rgba(255,255,255,0.28); }
.section-navy .faq-item summary { color: var(--cream-text); }
.section-navy .faq-item p { color: var(--cream-text); opacity: 0.92; }
.section-navy label,
.section-navy .field-sublabel { color: var(--cream-text); }
.section-navy .compare-note { color: var(--cream-text); }
/* Tout cards keep their warm fill; heading/lead above them go cream via .section-navy */

/* Cards with their own light fill keep dark text even inside navy sections */
.section-navy .tout,
.section-navy .tout h3,
.section-navy .tout p,
.section-navy .age-band,
.section-navy .age-band h3,
.section-navy .age-band p,
.section-navy .location-card,
.section-navy .location-card h4,
.section-navy .location-card p { color: var(--ink); }
