/* ==========================================================================
   Tranquility Sleep Specialists, PLC — static recreation
   Design tokens lifted from the original Divi build:
     navy #124884 · cyan #17b1e7 · teal #54ced4 · orange #ff9e21 · body #3b4964
     Ubuntu (headings) · Nunito (body) · Mulish (buttons) · Open Sans (nav)
   ========================================================================== */

:root {
  --navy: #124884;
  --cyan: #17b1e7;
  --teal: #54ced4;
  --orange: #ff9e21;
  /* text-safe ink variants — use for text/borders/fills that must carry a
     WCAG 1.4.3 contrast ratio; keep --cyan/--orange/--teal for decorative,
     non-text use only (icons, dividers, large fills behind white text) */
  --cyan-ink: #0f779b;
  --orange-ink: #a45c00;
  --teal-ink: #20797e;
  --text: #3b4964;
  --grey: #f9f9f9;
  --grey-alt: #f6f7fb;
  --rule: #e5e5e5;
  --max: 1200px;
  --radius: 15px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  line-height: 1.7em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: 0; display: block; }

a { color: var(--cyan-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 1.4.1 Use of Color: --cyan-ink sits only 1.78:1 from body copy, so a link
   surrounded by text cannot be identified by colour alone -- it needs an
   underline. Standalone links (nav, buttons, cards, tiles) are exempt: they are
   not inside a block of text, so their shape already distinguishes them. */
p a, li a, dd a, address a, .icontext__body a { text-decoration: underline; }
.btn, .card, .nav a, .nav__sub a { text-decoration: none; }

/* ---------- accessibility helpers --------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 101;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* one two-tone ring that passes ≥3:1 on both the navy masthead/footer and
   white sections (white ring on navy, navy ring on white) */
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--navy);
}

/* `overflow: hidden` ancestors clip the box-shadow ring above — fall back
   to an inset-only outline that still passes against the local background */
.banner :focus-visible,
.shadow-image :focus-visible,
.embed :focus-visible,
.card:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -3px;
  box-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2em;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 22px; }
h6 { font-size: 19px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

/* ---------- layout primitives ------------------------------------------- */

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

.section { padding: 60px 0; }
.section--grey { background: var(--grey); }
.section--grey-alt { background: var(--grey-alt); }
.section--flush-top { padding-top: 0; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  align-items: flex-start;
}
.row--center { align-items: center; }
.row--tight { gap: 30px; }
.row--gutterless { gap: 0; }

.col { flex: 1 1 0; min-width: 0; }
.col--half { flex: 0 0 calc(50% - 30px); }
.col--third { flex: 0 0 calc(33.333% - 40px); }
.col--two-thirds { flex: 0 0 calc(66.666% - 20px); }

.eyebrow {
  font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--orange-ink);
  margin-bottom: 10px;
}
.eyebrow--center { text-align: center; }

/* ---------- buttons ----------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: 'Mulish', 'Muli', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7em;
  color: #fff;
  background: var(--cyan-ink);
  border: 2px solid var(--cyan-ink);
  border-radius: 5px;
  padding: 10px 25px;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  text-decoration: none;
}

.btn--orange { background: var(--orange-ink); border-color: var(--orange-ink); }
.btn--orange:hover { background: var(--navy); border-color: var(--navy); }

.btn--block { display: block; width: 100%; text-align: center; }

.btn--ghost {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: var(--orange-ink);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0;
}
.btn--ghost:hover { background: transparent; color: var(--navy); text-decoration: underline; }

/* ---------- utility bar (desktop only) ---------------------------------- */

.utilitybar { background: #fff; }
.utilitybar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 30px;
}
.utilitybar__welcome {
  flex: 1 1 auto;
  padding-left: 2vw;
  font-size: 16px;
  margin: 0;
}
.utilitybar__social {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: #3b5998;
  color: #fff;
  border-radius: 3px;
}
.utilitybar__social:hover { opacity: .85; }
.utilitybar__social svg { width: 16px; height: 16px; fill: currentColor; }

.utilitybar__cta {
  border-width: 7px;
  border-radius: 0;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  min-width: 300px;
}
.utilitybar__cta:hover { background: var(--cyan-ink); border-color: var(--cyan-ink); }

.utilitybar__offer { text-align: center; }
.utilitybar__offer p { font-size: 14px; margin: 0 0 5px; font-weight: 700; }
.utilitybar__offer img { width: 180px; margin: 0 auto; }

/* ---------- info bar (locations strip) ---------------------------------- */

.infobar { background: #fff; }
.infobar__inner {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}
.infobar__cell {
  flex: 1 1 20%;
  padding: 0 20px;
  border-right: 1px solid var(--rule);
}
.infobar__cell:first-child,
.infobar__cell:last-child { border-right: 0; }
.infobar__logo { width: 200px; }
.infobar__badge { width: 125px; margin-left: auto; }

/* icon + text pairs, used in the info bar and the footer contact block */
.icontext {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.icontext:last-child { margin-bottom: 0; }
.icontext__icon { flex: 0 0 30px; color: var(--orange); line-height: 1; }
.icontext__icon svg { width: 26px; height: 26px; fill: currentColor; }
.icontext__body { min-width: 0; }
.icontext__title {
  font-size: 19px;
  margin: 0 0 2px;
  line-height: 1.2em;
}
/* .icontext__title also lands on <p> elements — beat the `p`/`p:last-child`
   rules below (which tie or exceed its specificity) so nothing shifts */
p.icontext__title { margin: 0 0 2px; }
.icontext__body p { margin: 0; font-size: 15px; line-height: 1.6em; }

address { font-style: normal; }

/* ---------- mobile brand bar ------------------------------------------- */

.mobilebar { display: none; background: #fff; padding: 20px; }
.mobilebar__inner { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.mobilebar img { max-width: 240px; }

/* ---------- header / navigation ---------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.nav { font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif; }
.nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: block;
  padding: 30px 11px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}
.nav__list > li > a:hover { text-decoration: none; opacity: .8; }
.nav__list > li.is-current > a { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

/* "Sleep Disorders" trigger is a <button>, styled to be visually
   indistinguishable from its sibling `.nav__list > li > a` links */
.nav__disclosure {
  display: block;
  width: 100%;
  padding: 30px 11px;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}
.nav__disclosure:hover { opacity: .8; }

.nav__item--has-children > a::after,
.nav__item--has-children > .nav__disclosure::after {
  content: '';
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: var(--navy);
  border-top: 3px solid var(--cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav__item--has-children:hover > .nav__sub,
.nav__item--has-children:focus-within > .nav__sub,
.nav__item--has-children.is-open > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__sub a {
  display: block;
  padding: 8px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.nav__sub a:hover { text-decoration: none; background: rgba(255, 255, 255, .08); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: #fff;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  padding: 16px 0;
  cursor: pointer;
}
.nav-toggle__bars { display: inline-block; width: 20px; height: 2px; background: #fff; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- home hero --------------------------------------------------- */

.hero {
  padding: 200px 0;
  /* scrim over the photo so left-aligned copy in the left half clears 4.5:1 */
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .72) 55%, rgba(255, 255, 255, .35) 100%),
                    url('../img/1475.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2em;
  text-shadow: .08em .08em .08em rgba(0, 0, 0, .2);
  margin-bottom: 10px;
}
.hero__title span { color: var(--cyan-ink); }
.hero__lead { font-size: 20px; line-height: 1.7em; margin-bottom: 20px; }

/* ---------- interior page title band ----------------------------------- */

.pagetitle {
  padding: 80px 0;
  background-color: #7ebec5;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}
.pagetitle h1 { color: var(--navy); margin: 0; font-size: 42px; }

/* ---------- media + copy blocks ---------------------------------------- */

.shadow-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .3);
}

.overlap { position: relative; }
.overlap__card {
  background: var(--cyan-ink);
  border-radius: var(--radius);
  padding: 50px;
  line-height: 2em;
  color: #fff;
}
.overlap__card h2 { color: #fff; font-size: 25px; }
.overlap__card a { color: #fff; text-decoration: none; }
.overlap__card a:hover { text-decoration: underline; }

@media (min-width: 981px) {
  .overlap__card {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 360px;
    z-index: 2;
  }
  /* below this width the 260px min-width + 30px padding would clip the
     button inside `.banner`'s `overflow: hidden` at narrow viewports */
  .banner__cta .btn { min-width: 260px; }
}

/* ---------- specialty cards -------------------------------------------- */

.section--specialties {
  background-color: var(--grey);
  background-image: url('../img/section-bg-2.png');
  background-position: 106% 38%;
  background-size: auto;
  background-repeat: no-repeat;
}

.cardgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 295px;
  padding: 50px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2em;
  color: var(--navy);
  transition: box-shadow .4s;
}
.card:hover { box-shadow: 0 2px 18px 0 rgba(0, 0, 0, .15); text-decoration: none; }
.card__icon {
  padding: 20px;
  border: 2px solid var(--cyan);
  border-radius: 50px;
  line-height: 0;
}
.card__icon img { width: 60px; }
.card__label { display: block; }

/* ---------- phone call band -------------------------------------------- */

.callband {
  padding: 50px 0;
  /* navy scrim so the white text clears 4.5:1 over the photo */
  background-image: linear-gradient(0deg, rgba(10, 32, 64, .65), rgba(10, 32, 64, .65)),
                    url('../img/section-background.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.callband__inner { max-width: 1080px; margin: 0 auto; }
.callband img { width: 70px; margin: 0 auto 15px; }
.callband h2 { color: #fff; font-size: 28px; font-weight: 400; line-height: 1.2em; }
.callband__number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4em;
}
.callband__number a { color: #fff; }

/* ---------- team -------------------------------------------------------- */

.teamgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.teamgrid--five { grid-template-columns: repeat(5, 1fr); }

.member { background: #fff; padding: 15px; }
.member__photo {
  min-height: 280px;
  margin-bottom: 15px;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
.member h3 { font-size: 22px; margin-bottom: 4px; }
.member p { font-size: 15px; margin-bottom: 10px; }

/* ---------- physician referrals CTA ------------------------------------ */

.referrals {
  /* the locations banner is pulled up 90px over this section, so the extra
     bottom padding keeps the referral button clear of it */
  padding: 60px 0 180px;
  /* navy scrim so the white text clears 4.5:1 over the photo */
  background-image: linear-gradient(0deg, rgba(10, 32, 64, .65), rgba(10, 32, 64, .65)),
                    url('../img/home-2_section_05.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
}
.referrals h2 { color: #fff; font-size: 36px; line-height: 1.2em; }
.referrals p { font-size: 18px; line-height: 2em; margin-bottom: 25px; }

/* ---------- footer locations block ------------------------------------- */

.locations { background: var(--grey); padding: 0 0 60px; }

.banner {
  display: flex;
  align-items: center;
  margin: -90px auto 90px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 18px 0 rgba(0, 0, 0, .15);
  background: rgba(255, 255, 255, .89) url('../img/home-banner.jpg') center/cover;
  background-blend-mode: overlay;
  position: relative;
  z-index: 1;
}
.banner__copy {
  flex: 0 0 33.333%;
  background: var(--navy);
  padding: 60px 50px;
  color: #fff;
  font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
  font-size: 24px;
  line-height: 1.4em;
}
.banner__copy a { color: #fff; }
/* the navy column is only 33% wide, so this heading stays at body-copy scale */
.banner__copy h2 { color: #fff; font-size: 24px; line-height: 1.4em; }
.banner__cta { flex: 1 1 auto; padding: 30px 50px; text-align: center; }

.locations__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}
.locations__cols h2 { font-size: 25px; margin-bottom: 20px; }
.hours dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  margin: 0;
}
.hours dt,
.hours dd {
  margin: 0;
  line-height: 2em;
}
.hours dd { color: var(--cyan-ink); }
.locations__logo { max-width: 260px; margin-bottom: 20px; }

/* ---------- site footer ------------------------------------------------ */

.sitefooter {
  background: var(--navy);
  color: #fff;
  padding: 15px 0 5px;
  text-align: center;
  font-size: 14px;
}
.sitefooter a { color: #fff; text-decoration: underline; }

/* ---------- back to top ------------------------------------------------ */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 3px;
  background: rgba(18, 72, 132, .85);
  color: #fff;
  cursor: pointer;
}
.to-top.is-visible { display: flex; }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- bio modals -------------------------------------------------- */

dialog.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  margin: 0;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 40px 20px;
  overflow-y: auto;
  background: transparent;
}
dialog.modal::backdrop { background: rgba(11, 11, 11, .8); }
.modal__dialog {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  padding: 40px;
}
.modal__photo { flex: 0 0 33.333%; }
.modal__photo img { border-radius: 6px; }
.modal__body { flex: 1 1 300px; line-height: 2em; }
.modal__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.2em;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- FAQ toggles (Inspire page) --------------------------------- */

.faq { border-bottom: 1px solid var(--rule); }
.faq > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  position: relative;
  font-family: 'Ubuntu', Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 22px;
  color: var(--cyan);
}
.faq[open] > summary::after { content: '\2013'; }
.faq__content { padding: 0 0 18px; }

/* ---------- checklists (Inspire page) ---------------------------------- */

.checklist { list-style: none; margin: 0 0 1em; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  line-height: 1.6em;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- feature blurbs (Inspire page) ------------------------------ */

.feature { text-align: center; }
.feature img { border-radius: var(--radius); margin: 0 auto 20px; }
.feature h3 { margin-bottom: 10px; }

.section--divided { border-top: 1px solid var(--rule); }

/* ---------- video list -------------------------------------------------- */

.videorow { margin-bottom: 60px; }
.videorow:last-child { margin-bottom: 0; }
.embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- maps -------------------------------------------------------- */

.map {
  position: relative;
  padding-top: 66%;
  border-radius: var(--radius);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- contact form ------------------------------------------------ */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field--full { grid-column: 1 / -1; }
.form label,
.form legend {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  padding: 0;
  color: var(--navy);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
.form textarea { min-height: 150px; resize: vertical; }
.form__radios { display: flex; flex-wrap: wrap; gap: 20px; }
.form__radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--text);
  margin: 0;
}
.form__radios input[type="radio"] { width: 24px; height: 24px; }
.form__note { font-size: 14px; }
.form__required { color: #c0392b; }
.form__error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #c0392b;
}
.form__error[hidden] { display: none; }

/* ---------- certification images --------------------------------------- */

/* transcribed licence text, with the original scans below each transcription */
.certs { max-width: 820px; }
.certs h2 { margin-top: 50px; }
.certs > h2:first-child { margin-top: 0; }
.certs dl {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 4px 20px;
  margin: 0 0 1em;
}
.certs dt { font-weight: 700; color: var(--navy); }
.certs dd { margin: 0; }
.certs img { margin: 30px auto 0; box-shadow: 0 2px 18px 0 rgba(0, 0, 0, .12); }

@media (max-width: 480px) {
  .certs dl { grid-template-columns: 1fr; gap: 0; }
  .certs dd { margin-bottom: 10px; }
}

/* ---------- responsive -------------------------------------------------- */

@media (max-width: 1080px) {
  .cardgrid { grid-template-columns: repeat(2, 1fr); }
  .teamgrid, .teamgrid--five { grid-template-columns: repeat(2, 1fr); }
  .locations__cols { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 980px) {
  .utilitybar, .infobar { display: none; }
  .mobilebar { display: block; }

  .masthead__inner { justify-content: flex-start; }
  .nav-toggle { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 10px 20px 20px; }
  .nav__list > li > a,
  .nav__disclosure { padding: 10px 0; }
  .nav__item--has-children > a::after,
  .nav__item--has-children > .nav__disclosure::after { float: right; margin-top: 8px; }
  .nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-top: 0;
    padding: 0 0 0 16px;
    min-width: 0;
  }
  .nav__sub a { padding: 8px 0; }

  .hero { padding: 120px 0; }
  .hero__title { font-size: 42px; }
  .hero__lead { font-size: 18px; }

  .row { gap: 40px; }
  .col--half, .col--third, .col--two-thirds { flex: 0 0 100%; }
  .row--reverse-mobile { flex-direction: column-reverse; }

  .banner { flex-direction: column; margin-top: 0; }
  .banner__copy { flex: 0 0 auto; width: 100%; text-align: center; padding: 40px 30px; }
  .banner__cta { width: 100%; padding: 30px; }

  .referrals h2 { font-size: 30px; }
  .callband__number { font-size: 36px; }

  .form { grid-template-columns: 1fr; }
  .modal__dialog { padding: 30px 20px; }
  .modal__photo { flex: 0 0 100%; }
}

@media (max-width: 640px) {
  .cardgrid { grid-template-columns: 1fr; }
  .teamgrid, .teamgrid--five { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 40px 30px; }
  .overlap__card { padding: 30px; }
  h1, .pagetitle h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .section { padding: 40px 0; }
}

/* ---------- Inspire photo band ------------------------------------------ */

.photoband {
  padding: 150px 0;
  background-image: linear-gradient(90deg, #0a3380 0%, rgba(41, 196, 169, 0) 100%),
                    url('../img/Couple-in-Bed-2.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section--mist { background: #f2f5f7; }
.section--lilac { background: #e9e8f4; }

@media (max-width: 640px) {
  .photoband { padding: 90px 0; }
}

/* ---------- reduced motion ----------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .nav__sub { transition: none; }
}
