/* Little Harbor Pediatrics
   COLOR THEORY
   Harmony: triadic. Blue (#2457C5), yellow (#FFD44D) and coral red-orange (#E4572E / #C9441F for text), three hues evenly
   spaced on the wheel, taken straight from the clinic's painted wall in the photo shoot. Blue carries trust and does the
   serious work (text panels, primary buttons); yellow is play and warmth; coral is kept for the one urgent lane, "sick today".
   Parents get calm blue first, kids get the shapes.
   60% white/sky    #FFFFFF / #EEF3FF   backgrounds
   30% navy/blue    #14213D text, #2457C5 panels and buttons
   10% yellow/coral #FFD44D shapes and the age timeline, #C9441F the sick lane
   Contrast (WCAG): navy #14213D on white 15.97 (AAA), on #EEF3FF 14.38, on #FFF3C4 14.35, on yellow #FFD44D 11.24 (AAA);
                    gray #4A5670 on white 7.35 (AAA); blue #2457C5 on white 6.47 (AA); white on blue 6.47 (AA);
                    white on coral #C9441F 4.85 (AA, all text on the sick lane is white); navy on light coral #E4572E 4.34 (large text only). */
:root {
  --paper: #FFFFFF;
  --sky: #EEF3FF;
  --butter: #FFF3C4;
  --navy: #14213D;
  --blue: #2457C5;
  --blue-deep: #1A3F8F;
  --yellow: #FFD44D;
  --coral: #E4572E;
  --coral-deep: #C9441F;
  --gray: #4A5670;
  --line: #DCE3F2;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 1.0625rem/1.55 var(--body); font-feature-settings: "kern" 1; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 60; }
.skip:focus { left: .5rem; }
.hp { position: absolute; left: -9999px; }
section { scroll-margin-top: 78px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .85rem 1.6rem; border-radius: 999px; font: 600 1.02rem var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--coral { background: var(--coral-deep); color: #fff; }
.btn--coral:hover { background: #A8361A; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--butter); }
.btn--wide { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; padding: 0 var(--pad); background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 600 1.35rem/1 var(--display); text-decoration: none; }
.brand__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); box-shadow: -6px 6px 0 -2px var(--blue); }
.brand__sub { font: 500 .85rem var(--body); color: var(--gray); }
.menu { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; font-size: .98rem; }
.menu a { text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--yellow); }
.menu__cta { background: var(--navy); color: #fff; padding: .6rem 1.1rem !important; border-radius: 999px; border: 0 !important; }
.menu__cta:hover { background: var(--blue); }
.burger { display: none; background: none; border: 2px solid var(--navy); border-radius: 999px; padding: .5rem .9rem; font: 600 .95rem var(--body); color: var(--navy); cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(2rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.8rem); max-width: 12ch; }
.hero__lead { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--gray); max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__art { position: relative; padding: 6% 8% 8% 4%; }
.hero__photo { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; background: var(--sky); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.shape { position: absolute; display: block; }
.shape--sun { width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); right: 0; top: 0; }
.shape--pill { width: 30%; height: 12%; border-radius: 999px; background: var(--blue); left: -2%; bottom: 3%; z-index: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .7s var(--ease) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .08s; }
  .hero__copy > *:nth-child(3) { animation-delay: .16s; }
  .hero__photo { animation: blob 1s var(--ease) both; }
  .shape--sun { animation: pop .8s .3s var(--ease) both; }
  .shape--pill { animation: pop .8s .45s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes blob { from { opacity: 0; transform: scale(.96) rotate(-2deg); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
}

/* Sick lanes */
.sick { padding: clamp(3rem, 6vw, 5rem) var(--pad); background: var(--coral-deep); color: #fff; }
.sick__head { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: end; }
.sick__head p { max-width: 52ch; color: #fff; font-size: 1.1rem; }
.lanes { list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lane { background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); border-radius: var(--r); padding: 1.6rem; display: grid; gap: .8rem; align-content: start; }
.lane h3 { font-size: 1.5rem; }
.lane p { color: #fff; }
.lane .btn { justify-self: start; margin-top: .4rem; }
.fine { margin-top: 1.6rem; font-size: .92rem; color: #fff; max-width: 72ch; }
.fine--dark { color: var(--gray); }

/* Ages */
.ages { padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--sky); }
.ages__head { max-width: 62ch; }
.ages__head p { margin-top: .9rem; color: var(--gray); font-size: 1.1rem; }
.ageline { display: flex; gap: .45rem; margin-top: 2rem; overflow-x: auto; padding: .4rem .2rem .8rem; scrollbar-width: thin; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.age { flex: none; scroll-snap-align: start; font: 600 1rem var(--display); color: var(--navy); background: #fff; border: 2px solid transparent; border-radius: 999px; padding: .7rem 1.1rem; cursor: pointer; transition: .2s; min-height: 48px; }
.age:hover { border-color: var(--yellow); }
.age.is-active { background: var(--yellow); border-color: var(--yellow); }
.due { margin-top: 1rem; background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.5rem); display: grid; gap: 1.6rem; position: relative; overflow: hidden; }
.due::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); right: -70px; top: -90px; opacity: .9; }
.due > * { position: relative; z-index: 1; }
.due__age { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.due__big { font: 600 clamp(2.4rem, 5vw, 4rem)/1 var(--display); }
.due__kind { font-size: 1.05rem; color: #C9D6FF; font-weight: 500; }
.due__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.due__col h3 { font-size: 1.05rem; color: var(--yellow); }
.due__col ul { list-style: none; padding: 0; margin-top: .6rem; display: grid; gap: .45rem; }
.due__col li { padding-left: 1.2rem; position: relative; color: #E6ECFF; font-size: .98rem; }
.due__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.due__actions .btn--blue { background: var(--yellow); color: var(--navy); }
.due__actions .btn--blue:hover { background: #fff; }
.due.is-switching .due__col, .due.is-switching .due__age { animation: soft .45s var(--ease) both; }
.due.is-switching .due__col:nth-child(2) { animation-delay: .05s; }
.due.is-switching .due__col:nth-child(3) { animation-delay: .1s; }
@keyframes soft { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Team */
.team { padding: clamp(3rem, 7vw, 6rem) var(--pad); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 4vw, 4rem); align-items: start; }
.team__intro { grid-column: 1 / -1; max-width: 60ch; }
.team__intro p { margin-top: .9rem; color: var(--gray); font-size: 1.1rem; }
.people { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.person { padding: 1.4rem 1.4rem 1.5rem; border-radius: 22px; display: grid; gap: .2rem; }
.person--blue { background: var(--sky); }
.person--yellow { background: var(--butter); }
.person--coral { background: #F9D9CF; }
.person--sky { background: var(--sky); }
.person h3 { font-size: 1.3rem; }
.person__role { font-weight: 600; font-size: .92rem; color: var(--blue); }
.person--coral .person__role { color: var(--coral-deep); }
.person p + p { margin-top: .5rem; color: var(--gray); font-size: .96rem; }
.team__photo { overflow: hidden; border-radius: var(--r) var(--r) var(--r) 120px; aspect-ratio: 4 / 3.6; background: var(--sky); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }

/* Bring */
.bring { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--butter); align-items: center; }
.bring__copy p { margin-top: .8rem; color: var(--gray); font-size: 1.1rem; }
.bringlist { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .5rem; counter-reset: bring; }
.bringlist li { counter-increment: bring; display: grid; grid-template-columns: 38px 1fr; gap: .8rem; align-items: center; background: #fff; border-radius: 999px; padding: .55rem .9rem .55rem .55rem; }
.bringlist li::before { content: counter(bring); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); font: 600 1.05rem var(--display); }
.bring__photo { overflow: hidden; border-radius: 120px var(--r) var(--r) var(--r); aspect-ratio: 1; background: #fff; }
.bring__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

/* Book */
.book { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.book__intro p { margin-top: .9rem; color: var(--gray); max-width: 40ch; }
.where { margin-top: 1.8rem; display: grid; gap: 1rem; }
.where div { display: grid; gap: .15rem; }
.where dt { font: 600 1rem var(--display); color: var(--blue); }
.where dd { margin: 0; }
.form { display: grid; gap: 1.1rem; background: var(--sky); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.4rem); }
.form__row { display: grid; gap: .4rem; }
.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form__row--2 > div { display: grid; gap: .4rem; }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: .75rem 1rem; min-height: 50px; }
input::placeholder, textarea::placeholder { color: #6B7891; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--blue); }
textarea { resize: vertical; }
.form__privacy { font-size: .9rem; color: var(--gray); }
.form__done { background: var(--sky); border-radius: var(--r); padding: 1.6rem; }
.form__done p { margin-top: .6rem; }

.foot { padding: 2.5rem var(--pad) 3rem; display: grid; gap: .4rem; font-size: .9rem; color: var(--gray); border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .due__cols { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .team__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 820px) {
  .menu { position: fixed; inset: 74px 0 auto 0; display: grid; padding: .6rem var(--pad) 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .menu a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu__cta { margin-top: .6rem; text-align: center; }
  .burger { display: inline-block; }
  .hero { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero h1 { max-width: none; }
  .sick__head { grid-template-columns: 1fr; }
  .lanes { grid-template-columns: 1fr; }
  .bring, .book { grid-template-columns: 1fr; }
  .bring__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .people { grid-template-columns: 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .due::after { width: 140px; height: 140px; right: -50px; top: -60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
