/* Pediatric Associates of Brockton — soft sky, deep navy, sunshine yellow.
   Fredoka display + DM Sans body. Motif: scalloped wave dividers + arch portraits. */
:root {
  --ink: #14134a;
  --ink-2: #23227a;
  --blue: #2457c5;
  --sky: #e3f2fc;
  --sky-2: #c4e2f7;
  --sun: #ffbf1f;
  --sun-d: #e5a400;
  --sun-l: #fff3cc;
  --cream: #fffaf0;
  --white: #fff;
  --text: #26264f;
  --mute: #5a5c86;
  --c1: #ffe39a;
  --c2: #bfe1f7;
  --c3: #cdeed8;
  --c4: #ffd3dc;
  --c5: #ddd4ff;
  --radius: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--text); background: var(--white); font-size: 1.04rem; line-height: 1.65; }
h1, h2, h3, h4 { font-family: 'Fredoka', 'DM Sans', sans-serif; color: var(--ink); font-weight: 600; line-height: 1.15; }
a { color: var(--blue); }
section[id], header[id] { scroll-margin-top: 80px; }
.text-white-75 { color: rgba(255, 255, 255, .85); }
.narrow { max-width: 640px; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 700; padding: .6rem 1.35rem; }
.btn-lg { padding: .8rem 1.7rem; font-size: 1.05rem; }
.btn-sun { background: var(--sun); color: var(--ink); border: 2px solid var(--sun); }
.btn-sun:hover { background: var(--sun-d); border-color: var(--sun-d); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn-outline-ink { color: var(--ink); border: 2px solid var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: #fff; border: 2px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn:focus-visible, a:focus-visible, .nav-link:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Utility bar + nav */
.utility-bar { background: var(--ink); color: #fff; font-size: .88rem; padding: .4rem 0; }
.util-link { color: #fff; text-decoration: none; font-weight: 700; }
.util-link:hover { color: var(--sun); }
.site-nav { background: rgba(255, 255, 255, .97); box-shadow: 0 2px 14px rgba(20, 19, 74, .1); padding: .5rem 0; }
.brand-logo { border-radius: 50%; object-fit: cover; height: 48px; width: 48px; }
.brand-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.1rem; line-height: 1.1; color: var(--ink); }
@media (min-width: 1200px) { .brand-name { white-space: nowrap; } .site-nav .btn-sun { padding: .5rem 1.1rem; white-space: nowrap; } }
.site-nav .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .55rem; font-size: .95rem; white-space: nowrap; }
.site-nav .nav-link:hover { color: var(--blue); }
.navbar-toggler { border-color: var(--ink); }

/* Hero — compact, curved bottom, centered text */
.hero {
  position: relative;
  min-height: min(82vh, 780px);
  display: flex; align-items: center;
  background: url('img/hero.webp') center 35%/cover no-repeat;
  clip-path: ellipse(110% 100% at 50% 0%);
  padding: 4rem 0 7.5rem;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%),
    rgba(36, 87, 197, .16);
}
.hero-content-wrap { position: relative; z-index: 1; }
.hero-content {
  max-width: 820px; margin: 0 auto; text-align: center; color: #fff;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border-radius: 28px; padding: 2.4rem 1.8rem;
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.1rem); font-weight: 700; margin-bottom: 1rem; text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8); }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; margin: 0; text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85); }
.hero-tagline { margin: 1.6rem 0 0; font-weight: 700; font-size: .95rem; letter-spacing: .04em; text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.9); }

/* Quick action cards overlap hero */
.quick { position: relative; z-index: 2; margin-top: -4.5rem; padding-bottom: 1rem; }
.quick-card {
  display: flex; flex-direction: column; gap: .15rem; height: 100%;
  background: #fff; border-radius: var(--radius); padding: 1.25rem 1.3rem;
  text-decoration: none; color: var(--text);
  box-shadow: 0 10px 30px rgba(20, 19, 74, .14); border-bottom: 5px solid var(--sun);
  transition: transform .2s;
}
.quick-card:hover { transform: translateY(-4px); color: var(--text); }
.quick-card i { font-size: 1.7rem; color: var(--blue); line-height: 1; }
.quick-card strong { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; color: var(--ink); }
.quick-card span { font-size: .95rem; color: var(--mute); }

/* Sections */
.section { position: relative; padding: 6rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 700; font-size: .82rem; color: var(--blue); margin-bottom: .6rem; }
.eyebrow-light { color: var(--sun); }
.display-title { font-size: clamp(1.9rem, 3.8vw, 3rem); margin-bottom: 1.1rem; }
.lead-copy { font-size: 1.2rem; color: var(--ink); }

/* Wave divider (uses the section's own background) */
.wave::before {
  content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 30px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V15Q30 -5 60 15T120 15V30Z'/%3E%3C/svg%3E") bottom/120px 30px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V15Q30 -5 60 15T120 15V30Z'/%3E%3C/svg%3E") bottom/120px 30px repeat-x;
}

/* About */
.about { background: var(--white); padding-top: 5rem; }
.art-panel { background: var(--sky); border-radius: 36px; padding: 2rem; }
.heart-art { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 1.5rem; }
.stat { background: #fff; border-radius: 18px; padding: 1.1rem 1rem; text-align: center; height: 100%; }
.stat-num { display: block; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--blue); }
.stat-label { font-size: .9rem; color: var(--mute); }

/* Vaccine band */
.band { position: relative; background: var(--ink); color: #fff; padding: 5.5rem 0 5rem; }
.band-quote { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(2.8rem, 9vw, 6.5rem); line-height: 1; color: #fff; margin: 0 0 1.2rem; padding: 0; border: 0; }
.band-copy { max-width: 760px; font-size: 1.12rem; color: rgba(255,255,255,.88); }
.band-copy a { color: var(--sun); font-weight: 700; }
.band-sub { color: #fff; font-size: 1.3rem; margin: 2.5rem 0 1rem; }
.chip { display: block; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .5rem .4rem; font-weight: 700; font-size: .95rem; }
.band-note { margin: 1.2rem 0 1.4rem; color: rgba(255,255,255,.85); max-width: 760px; }

/* Services */
.services { background: var(--sky); }
.sticky-side { position: sticky; top: 110px; }
.service-index { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.service-index li { display: flex; align-items: baseline; gap: 1.2rem; padding: 1rem 0; border-bottom: 2px solid rgba(20, 19, 74, .14); }
.service-index li:first-child { border-top: 2px solid rgba(20, 19, 74, .14); }
.service-index .num { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 2.1rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); min-width: 3.2rem; }
.service-index .svc { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.65rem); color: var(--ink); }
.service-index small { font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--mute); }
.service-index li:hover .num { color: var(--sun); -webkit-text-stroke-color: var(--ink); }

/* Offices */
.offices { background: var(--cream); }
.office-tabs { gap: .5rem; }
.office-tabs .nav-link { border-radius: 999px; color: var(--ink); background: #fff; border: 2px solid var(--ink); font-weight: 700; }
.office-tabs .nav-link.active { background: var(--ink); color: #fff; }
.office-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 8px 26px rgba(20, 19, 74, .08); }
.office-card h3 { font-size: 1.7rem; }
.office-card address { font-style: normal; font-weight: 500; font-size: 1.1rem; margin-bottom: .6rem; }
.office-card address i { color: var(--blue); }
.office-note { color: var(--mute); margin-bottom: .8rem; }
.hours { margin: 1rem 0 1.5rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed rgba(20, 19, 74, .25); }
.hours dt { font-weight: 700; color: var(--ink); }
.hours dd { margin: 0; text-align: right; }
.office-map { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius); display: block; }
.office-map-short { height: 260px; min-height: 0; }
.office-photo { width: 100%; height: auto; border-radius: var(--radius); display: block; margin-bottom: 1rem; }

/* Team */
.team { background: var(--white); }
.team-group { font-size: 1.5rem; padding-bottom: .6rem; margin-bottom: 1.6rem; border-bottom: 3px solid var(--sun); display: inline-block; }
.person { margin: 0; text-align: center; --c: var(--c1); }
.person.c1 { --c: var(--c1); } .person.c2 { --c: var(--c2); } .person.c3 { --c: var(--c3); } .person.c4 { --c: var(--c4); } .person.c5 { --c: var(--c5); }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: var(--c); box-shadow: 8px 8px 0 var(--c); border: 3px solid var(--ink); margin: 0 8px 1rem 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.person figcaption strong { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.person figcaption span { display: block; font-size: .9rem; color: var(--mute); margin-top: .15rem; }
.person-filler { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .6rem; height: 100%; min-height: 240px; background: var(--sun); color: var(--ink); text-decoration: none; border-radius: var(--radius); padding: 1.5rem; border: 3px solid var(--ink); }
.person-filler i { font-size: 2rem; }
.person-filler strong { font-family: 'Fredoka', sans-serif; font-size: 1.25rem; line-height: 1.25; }
.person-filler span { font-weight: 700; }

/* New patients */
.new-patients { background: var(--ink); color: #fff; }
.steps { list-style: none; padding: 0; margin: 1.8rem 0 2rem; }
.steps li { display: flex; gap: 1rem; margin-bottom: 1.1rem; color: rgba(255,255,255,.92); }
.steps strong { color: #fff; }
.step-n { flex: 0 0 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: 'Fredoka', sans-serif; font-weight: 700; display: grid; place-items: center; font-size: 1.2rem; }
.np-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 1.4rem; height: 100%; }
.np-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.np-card h3 i { color: var(--blue); }
.np-card ul { padding-left: 1.1rem; margin: 0; font-size: .95rem; }
.np-card p { margin: 0; font-size: .95rem; }

/* Forms */
.forms { background: var(--sky); }
.forms-photo { width: 100%; height: auto; border-radius: 36px 36px 120px 36px; box-shadow: 12px 12px 0 var(--sun); display: block; }
.doc-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.doc-list a { display: flex; gap: .6rem; align-items: center; height: 100%; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .7rem .9rem; border-radius: 14px; border: 2px solid transparent; }
.doc-list a:hover { border-color: var(--blue); }
.doc-list i { color: var(--blue); font-size: 1.25rem; }

/* Behavioral health */
.bh { background: var(--sun-l); }
.bh-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--text); border: 3px solid var(--ink); transition: transform .2s, box-shadow .2s; }
.bh-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); color: var(--text); }
.bh-card i { font-size: 1.8rem; color: var(--blue); }
.bh-card strong { font-family: 'Fredoka', sans-serif; font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.bh-card span { font-size: .95rem; color: var(--mute); }

/* MyChart */
.mychart { background: var(--blue); color: #fff; }
.mc-card { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 16px; padding: 1rem; height: 100%; font-weight: 600; line-height: 1.3; }
.mc-card i { font-size: 1.5rem; color: var(--sun); flex: 0 0 auto; }

/* FAQs / resources accordions */
.faqs { background: var(--white); }
.resources { background: var(--sky); }
.accordion { --bs-accordion-border-color: transparent; --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--sun); --bs-accordion-active-bg: var(--sun-l); --bs-accordion-active-color: var(--ink); }
.accordion-item { border: 2px solid var(--ink) !important; border-radius: 16px !important; margin-bottom: .8rem; overflow: hidden; background: #fff; }
.accordion-button { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 1.15rem; color: var(--ink); }
.accordion-button:not(.collapsed) { box-shadow: none; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .35rem 0; }
.two-col { columns: 2 260px; column-gap: 2rem; }
.two-col li { break-inside: avoid; }

/* News */
.news { background: var(--cream); }
.news-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; height: 100%; border-top: 6px solid var(--sun); box-shadow: 0 8px 26px rgba(20, 19, 74, .08); }
.news-date { font-weight: 700; color: var(--blue); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem; }
.news-card h3 { font-size: 1.3rem; }

/* Contact */
.contact { background: var(--white); }
.contact-card { background: var(--sky); border-radius: var(--radius); padding: 1.8rem; height: 100%; }
.contact-card > i { font-size: 2rem; color: var(--blue); }
.contact-card h3 { font-size: 1.4rem; margin: .4rem 0 .7rem; }
.contact-card a { overflow-wrap: anywhere; }

/* Affiliations */
.affiliations { background: var(--sky); padding: 3rem 0; }
.partner-logo { max-width: 100%; height: auto; }
.affiliations a { display: inline-block; background: #fff; border-radius: 16px; padding: 1rem 1.4rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 4rem 0 1.5rem; }
.footer-name { font-family: 'Fredoka', sans-serif; font-size: 1.6rem; color: #fff; margin: 0 0 .3rem; }
.footer-tag { margin-bottom: 1rem; }
.site-footer h4 { color: var(--sun); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.footer-list li { padding: .2rem 0; }
.site-footer a { color: #fff; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 1.2rem; text-decoration: none; }
.social a:hover { background: var(--sun); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.powered { text-decoration: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .45rem 1rem; color: #fff; }
.powered strong { color: var(--sun); }
.powered:hover { background: rgba(255,255,255,.2); }

/* Responsive */
@media (max-width: 991.98px) {
  .section { padding: 4.5rem 0; }
  .sticky-side { position: static; }
  .site-nav .navbar-nav { padding: .8rem 0 .4rem; }
  .hero { padding: 3rem 0 7rem; }
}
@media (max-width: 575.98px) {
  .hero-content { padding: 1.6rem 1rem; border-radius: 20px; }
  .brand-name { font-size: 1.02rem; }
  .quick { margin-top: -3.5rem; }
  .service-index .num { font-size: 1.6rem; min-width: 2.4rem; }
  .art-panel { padding: 1.2rem; }
  .arch { box-shadow: 5px 5px 0 var(--c); margin-right: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quick-card, .bh-card { transition: none; }
}
