/* ==========================================================
   Pediatric Therapy of South Jersey — shared styles
   Brand colors come from the sun logo.
   ========================================================== */
:root {
  --navy: #1e5592;
  --navy-dark: #143e6d;
  --orange: #d4712a;
  --orange-dark: #b85c1c;
  --sun: #f3b15e;
  --sun-soft: #fdecd3;
  --teal: #75a5ab;
  --teal-soft: #e3f0f1;
  --blush: #f4a088;
  --blush-soft: #fde7df;
  --brown: #7b3b22;
  --cream: #fff9f1;
  --white: #ffffff;
  --ink: #2c2f3a;
  --muted: #5d6270;
  --line: #eadfce;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(30, 85, 146, 0.08);
  --max: 1160px;
  --head: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-white { background: var(--white); }
.section-tint { background: var(--teal-soft); }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lede { margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--sun); }

.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand img { height: 54px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .nav-drop > button {
  font: inherit; font-weight: 700; font-size: 0.97rem;
  color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: 10px;
  background: none; border: 0; cursor: pointer;
}
.site-nav > a:hover, .nav-drop > button:hover { color: var(--orange); }
.site-nav a.active, .nav-drop.active > button { color: var(--navy); box-shadow: inset 0 -3px 0 var(--sun); }
.site-nav .btn { margin-left: 8px; padding: 11px 20px; }
.site-nav .btn.active { box-shadow: none; }

.nav-drop { position: relative; }
.nav-drop > button::after { content: "▾"; margin-left: 6px; font-size: 0.8em; }
.drop-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 250px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  padding: 8px;
  display: none;
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu, .nav-drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; }
.drop-menu a:hover { background: var(--sun-soft); color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white);
    padding: 12px 20px 24px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
  }
  .site-nav.open { display: flex; }
  .drop-menu { position: static; box-shadow: none; display: block; padding: 0 0 0 16px; }
  .nav-drop > button { width: 100%; text-align: left; }
  .nav-drop > button::after { content: ""; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
  .brand img { height: 44px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: url("images/foam-pit.jpg") center 30% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,249,241,0.1) 0%, rgba(255,249,241,0.55) 45%, rgba(255,249,241,0.96) 62%);
}
.hero .container { position: relative; display: flex; justify-content: flex-end; }
.hero-card { max-width: 520px; padding: 20px 0; }
.hero-card h1 { margin-bottom: 0.4em; }
.hero-card p { font-size: 1.2rem; font-weight: 600; color: var(--navy-dark); }
@media (max-width: 800px) {
  .hero { min-height: 0; align-items: flex-end; padding-top: 260px; background-position: 30% top; background-size: auto 380px; background-color: var(--cream); }
  .hero::before { background: linear-gradient(180deg, rgba(255,249,241,0) 180px, var(--cream) 340px); }
  .hero-card { max-width: none; padding-bottom: 40px; }
}

/* Page banner (inner pages) */
.page-banner {
  background: var(--sun-soft);
  padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -40px; bottom: -30px;
  width: 260px; height: 130px;
  background: url("images/sun.png") center / contain no-repeat;
  opacity: 0.35;
}
.page-banner h1 { margin-bottom: 0.25em; }
.page-banner p { font-size: 1.15rem; color: var(--navy-dark); max-width: 640px; margin: 0; }
.crumbs { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; color: var(--muted); }
.crumbs a { text-decoration: none; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--sun);
}
.card:nth-child(4n+2) { border-top-color: var(--teal); }
.card:nth-child(4n+3) { border-top-color: var(--blush); }
.card:nth-child(4n+4) { border-top-color: var(--orange); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sun-soft); font-size: 1.6rem; margin-bottom: 14px;
}

/* Big link cards (services -> sub pages) */
.path-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30,85,146,0.14); color: var(--ink); }
.path-card .path-img { aspect-ratio: 4 / 3; background: var(--teal-soft); }
.path-card .path-img img { width: 100%; height: 100%; object-fit: cover; }
.path-card .path-body { padding: 26px 28px 30px; }
.path-card .ages { font-weight: 800; color: var(--orange); font-size: 0.9rem; letter-spacing: .05em; text-transform: uppercase; }
.path-card .more { font-weight: 800; color: var(--navy); }

/* Infant illustration panel (no photo yet) */
.art-panel {
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, var(--blush-soft), var(--sun-soft));
  display: grid; place-items: center;
}
.art-panel img { width: 55%; height: auto; object-fit: contain; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  font-weight: 800; font-size: 0.8rem;
  display: grid; place-items: center;
}
.checks.two-col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .checks.two-col { grid-template-columns: 1fr; } }

/* Pill tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--white); border: 2px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 700; color: var(--navy); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-family: var(--head); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 14px;
}

/* Form cards (Get Started) */
.form-card {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  border: 3px solid transparent;
}
.form-card.featured { border-color: var(--sun); }
.form-card .btn { align-self: flex-start; margin-top: auto; }
.form-card p { color: var(--muted); }

/* Details table (preschool) */
.details { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.details dl { margin: 0; display: grid; gap: 16px; }
.details dt { font-weight: 800; color: var(--orange); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; }
.details dd { margin: 2px 0 0; font-weight: 700; color: var(--navy-dark); font-size: 1.05rem; }
.price { display: flex; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.price div { flex: 1; min-width: 130px; background: var(--sun-soft); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.price strong { display: block; font-family: var(--head); font-size: 1.9rem; color: var(--navy); }
.price span { font-size: 0.9rem; color: var(--muted); font-weight: 700; }

/* Team */
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.team-photo {
  aspect-ratio: 1; background: var(--teal-soft);
  display: grid; place-items: center;
  font-family: var(--head); font-size: 4rem; color: var(--teal);
}
.team-card:nth-child(3n+2) .team-photo { background: var(--sun-soft); color: var(--orange); }
.team-card:nth-child(3n+3) .team-photo { background: var(--blush-soft); color: var(--blush); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { padding: 22px 22px 26px; }
.team-body h3 { margin-bottom: 2px; }
.team-role { font-weight: 800; color: var(--orange); font-size: 0.9rem; margin-bottom: 10px; }
.team-body p { font-size: 0.97rem; color: var(--muted); margin: 0; }

/* Locations */
.loc-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.loc-card iframe { width: 100%; height: 280px; border: 0; display: block; }
.loc-body { padding: 26px 28px 30px; }
.loc-body address { font-style: normal; font-weight: 700; margin-bottom: 14px; }

/* Testimonial */
.quote {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow); max-width: 800px; margin: 0 auto; text-align: center;
}
.quote p { font-family: var(--head); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--navy-dark); line-height: 1.45; }
.quote cite { font-style: normal; font-weight: 800; color: var(--orange); }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dbe6f3; max-width: 620px; margin-inline: auto; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); }

.note { background: var(--sun-soft); border-left: 5px solid var(--sun); padding: 16px 20px; border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #d6e1ee; padding: 56px 0 28px; margin-top: 0; font-size: 0.97rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--sun); font-size: 1.05rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-logo { background: var(--white); border-radius: 14px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 46px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; font-size: 0.88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 640px) {
  .topbar .container { justify-content: center; }
  .topbar .container > span:first-child, .topbar .hide-sm { display: none; }
}
.site-nav > a.btn-primary { background: var(--orange); color: var(--white); padding: 11px 20px; border-radius: 999px; }
.site-nav > a.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.option { background: var(--sun-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.option > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.option strong { font-family: var(--head); color: var(--navy); font-size: 1.1rem; }
.option span { font-size: 0.9rem; font-weight: 700; color: var(--orange); }
.option ul { margin: 8px 0 0; padding-left: 18px; font-size: 0.95rem; }
.option li { margin-bottom: 4px; }
.team-photo { font-size: 3rem; }
.team-body h3 { font-size: 1.2rem; }
.team-cred { font-weight: 800; color: var(--navy); font-size: 0.92rem; margin-bottom: 4px; }
.team-role { margin-bottom: 10px; }
.team-loc { display: inline-block; background: var(--teal-soft); color: var(--navy-dark); font-weight: 700; font-size: 0.82rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon svg .dot { fill: var(--orange); stroke: none; }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps.steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps.steps-4 { grid-template-columns: 1fr; } }

/* Event announcement ribbon + flyer */
.announce { display: block; text-align: center; background: var(--orange); color: var(--white); text-decoration: none; padding: 12px 20px; font-size: 0.98rem; }
.announce:hover { background: var(--orange-dark); color: var(--white); }
.announce span { font-weight: 800; margin-left: 8px; text-decoration: underline; }
.flyer { display: block; }

/* Keep desktop menu on one line */
.site-nav > a, .nav-drop > button { white-space: nowrap; padding: 10px 9px; font-size: 0.95rem; }
.site-nav > a.btn-primary { white-space: nowrap; }
@media (min-width: 1181px) { .brand img { height: 50px; } }

/* Social */
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.social-grid a { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.social-grid a:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
.social-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-btn svg .dot { fill: currentColor; stroke: none; }

/* Team continuing education */
.team-ce { text-align: left; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.team-ce h4 { font-family: var(--body); font-size: 0.75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin: 0 0 6px; }
.team-ce ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.team-ce li { margin-bottom: 4px; }
.team-ce li::marker { color: var(--teal); }
.team-body > p { margin-top: 12px; }

/* Office team: centered row */
.office-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px; }
.office-grid .team-card { width: calc(25% - 18px); }
@media (max-width: 960px) { .office-grid .team-card { width: calc(50% - 12px); } }
@media (max-width: 640px) { .office-grid .team-card { width: 100%; } }
