:root {
  --ns-black: #000;
  --ns-text: #606060;
  --ns-blue: #0c408c;
  --ns-navy: #082a99;
  --ns-pink: #ffeeee;
  --ns-grey: #f7f7f7;
  --ns-white: #fff;
  --ns-font: "Noto Sans", sans-serif;
  --ns-display: "Playfair Display", serif;
}

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

body {
  margin: 0;
  color: var(--ns-text);
  background: var(--ns-white);
  font-family: var(--ns-font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
}

h1,
h2,
.reasons-title,
.poem h1,
.split h1,
.split h2,
.appoint h2 {
  font-family: var(--ns-display);
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--ns-blue);
  line-height: 1.15;
}

h1,
.split h1,
.poem h1 {
  font-size: clamp(38px, 5vw, 52px);
  margin: 0 0 0.6em;
}

h2,
.split h2,
.appoint h2,
.reasons-title {
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ns-white);
  color: var(--ns-black);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 15px 25px;
  border: 1px solid var(--ns-blue);
  border-radius: 27px;
  background: var(--ns-blue);
  color: var(--ns-pink);
  font-family: var(--ns-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ns-white);
  color: var(--ns-blue);
}

.btn-text {
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ns-blue);
}

.btn-text:hover,
.btn-text:focus-visible {
  background: transparent;
  color: var(--ns-black);
}

.site-header {
  position: relative;
  z-index: 20;
  padding: 0 20px;
}

.has-hero-overlay .site-header {
  position: absolute;
  inset: 38px 84px auto;
  padding: 0;
}

.header-card {
  background: var(--ns-white);
  border-radius: 4px;
  box-shadow: 10px 5px 37px rgba(20, 48, 139, 0.06);
}

.topbar,
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 44px;
}

.topbar {
  min-height: 45px;
  font-size: 14px;
  font-weight: 100;
  color: var(--ns-black);
}

.topbar-places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar-places li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.place-name {
  color: var(--ns-blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.topbar-phone {
  margin: 0;
  margin-left: auto;
  white-space: nowrap;
}

.topbar a {
  text-decoration: none;
}

.header-main {
  min-height: 85px;
}

.logo img {
  width: 175px;
  height: auto;
}

.logo-footer img {
  width: 126px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ns-text);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--ns-black);
}

.nav-places,
.nav-phone {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-box,
.nav-toggle-box::before,
.nav-toggle-box::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ns-blue);
  position: relative;
}

.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-box::before {
  top: -7px;
}

.nav-toggle-box::after {
  top: 7px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--ns-pink);
}

.hero-copy {
  display: flex;
  align-items: flex-end;
  padding: 18vh 16% 12vh;
  background: var(--ns-blue);
  color: var(--ns-white);
}

.hero-copy p {
  max-width: 347px;
  margin: 0;
  font-family: var(--ns-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 1px;
}

.hero-roll {
  animation: ns-roll 9s ease-in-out infinite;
}

@keyframes ns-roll {
  0% {
    transform: translateY(70%);
    opacity: 0;
  }
  14% {
    transform: none;
    opacity: 1;
  }
  78% {
    transform: none;
    opacity: 1;
  }
  100% {
    transform: translateY(-40%);
    opacity: 0;
  }
}

.hero-slides,
.voices-photos,
.split-photo,
.appoint-photo,
.post-hero-photo,
.poem-art,
.kids-art,
.split-art {
  position: relative;
  min-height: 420px;
  height: 100%;
  background: var(--ns-grey);
}

.hero-slides img,
.voices-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poem,
.kids,
.split,
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 64vh;
}

.poem,
.kids {
  min-height: 100vh;
}

.foundational {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
}

.foundational-photo {
  position: relative;
  min-height: 100%;
  background: var(--ns-grey);
}

.foundational-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.foundational-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 6% 40px;
}

.foundational-copy > p {
  margin-bottom: 28px;
}

.foundational-icons {
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  margin: 0;
}

.foundational-icons .icon-box img {
  width: 48px;
  height: 48px;
}

.foundational-icons h3 {
  margin: 8px 0 4px;
  font-family: var(--ns-font);
  font-size: 18px;
  font-weight: 400;
  text-transform: capitalize;
  color: var(--ns-black);
  letter-spacing: 0;
}

.foundational-icons p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.poem-copy,
.kids-copy,
.split-copy,
.contact-intro,
.contact-form-wrap {
  padding: 8% 10%;
}

.poem-copy {
  background: var(--ns-white);
}

.poem-art,
.kids-art,
.split-art {
  min-height: 360px;
}

.poem-art img,
.kids-art img,
.split-art img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
}

.split-photo img,
.appoint-photo img,
.post-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--ns-grey);
}

.services,
.reasons,
.team,
.archive-list,
.related,
.page-plain,
.post-body {
  padding: 72px 8%;
}

.icon-grid,
.team-grid,
.post-grid {
  display: grid;
  gap: 32px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 48px;
}

.icon-grid-3,
.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.reasons .icon-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.icon-box h2,
.icon-box h3 {
  margin: 12px 0 8px;
  font-family: var(--ns-font);
  font-size: 24px;
  font-weight: 400;
  text-transform: capitalize;
  color: var(--ns-black);
  letter-spacing: 0;
}

.icon-box img {
  width: 66px;
  height: 66px;
  position: static;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .hero-roll {
    animation: none;
  }
}

.reasons {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  align-items: start;
}

.voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: end;
  padding: 8% 8% 10%;
}

.voices-photos,
.voices-side {
  display: grid;
  gap: 28px;
  min-height: 0;
  height: auto;
  background: transparent;
}

.voices-photos img,
.voices-side > img {
  position: static;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.voices-copy {
  padding: 0;
}

.voices-copy h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 16px;
}

.quotes blockquote {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
}

.quotes footer {
  margin-top: 12px;
  font-weight: 600;
  color: var(--ns-black);
}

.quote-nav {
  display: flex;
  gap: 12px;
}

.quote-nav button,
.post-nav a,
.nav-links a {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ns-blue);
  background: transparent;
  color: var(--ns-blue);
  font: inherit;
  cursor: pointer;
}

.quote-nav button:focus-visible,
.nav-toggle:focus-visible,
.clinic-form input:focus-visible,
.clinic-form textarea:focus-visible,
.clinic-form select:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ns-blue);
  outline-offset: 2px;
}

.team h2,
.related h2 {
  text-align: center;
}

.team-grid {
  margin-top: 32px;
}

.team-grid h3 {
  margin: 12px 0 4px;
  font-family: var(--ns-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ns-black);
}

.team-grid li {
  min-width: 0;
}

.appoint {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.appoint-copy {
  padding: 12% 10%;
  background: var(--ns-grey);
}

.appoint-photo {
  min-height: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px 28px;
  padding: 8%;
}

.footer-hours h2,
.footer-contact h2,
.footer-locations h2 {
  font-family: var(--ns-font);
  font-size: 24px;
  font-weight: 400;
  text-transform: capitalize;
  color: var(--ns-black);
  margin-bottom: 8px;
}

.footer-hours p,
.footer-locations p,
.copyright {
  font-weight: 200;
  line-height: 38px;
  letter-spacing: 0.2px;
}

.footer-contact p {
  margin: 0;
  font-weight: 200;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

.footer-locations p {
  margin: 0 0 16px;
}

.nav-list-stack {
  flex-direction: column;
  gap: 19px;
  margin: 20px 0;
}

.social {
  display: flex;
  gap: 20px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.social a {
  color: var(--ns-text);
}

.social a:hover,
.social a:focus-visible {
  color: var(--ns-blue);
}

.social svg {
  fill: currentColor;
}

.clinic-form .field {
  margin: 0 0 20px;
}

.clinic-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ns-text);
  font-size: 14px;
}

.clinic-form input,
.clinic-form textarea,
.clinic-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ns-black);
  border-radius: 4px;
  background: transparent;
  color: var(--ns-black);
  font: inherit;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-notice-ok {
  color: var(--ns-navy);
}

.form-notice-bad {
  color: var(--ns-navy);
  font-weight: 600;
}

.form-dialog {
  width: min(420px, calc(100% - 32px));
  margin: auto;
  padding: 28px 24px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ns-white);
  color: var(--ns-black);
  box-shadow: 10px 5px 37px rgba(20, 48, 139, 0.16);
}

.form-dialog h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.form-dialog p {
  margin: 0 0 20px;
}

.form-dialog .btn {
  width: 100%;
  justify-content: center;
}

.form-dialog::backdrop {
  background: rgba(12, 64, 140, 0.45);
}

.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--ns-black);
  font-family: var(--ns-display);
  font-size: 22px;
  text-decoration: none;
}

.post-body,
.page-plain {
  max-width: 760px;
  margin: 0 auto;
}

.entry {
  font-weight: 300;
  line-height: 1.7;
}

.post-nav,
.pagination {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .has-hero-overlay .site-header {
    position: relative;
    inset: auto;
    padding: 0;
  }

  .header-card {
    border-radius: 0;
    box-shadow: none;
  }

  .topbar,
  .header-main {
    padding: 8px 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-phone {
    margin-left: 0;
  }

  .logo img {
    width: 124px;
  }

  .hero,
  .poem,
  .kids {
    min-height: 50vh;
  }

  .icon-grid-4,
  .team-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reasons {
    grid-template-columns: 1fr;
  }

  .appoint,
  .footer-grid,
  .voices,
  .poem,
  .kids,
  .split,
  .foundational,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .foundational-photo {
    min-height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .appoint-photo {
    min-height: 405px;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-tools {
    gap: 8px;
  }

  .header-tools .btn {
    padding: 16px 19px;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ns-white);
    padding: 16px 20px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 16px;
  }

  .header-main {
    position: relative;
    min-height: 70px;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-copy p {
    font-size: 26px;
    line-height: 26px;
  }

  .poem-art img,
  .kids-art img,
  .split-art img {
    min-height: 280px;
  }

  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .icon-grid-4,
  .icon-grid-3,
  .reasons .icon-grid-3,
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .icon-box h2,
  .icon-box h3,
  .team-grid h3 {
    font-size: 16px;
    line-height: 1.25;
  }

  .icon-box p,
  .team-grid p {
    font-size: 13px;
    line-height: 1.4;
  }

  .icon-box img {
    width: 44px;
    height: 44px;
  }

  .site-header {
    padding: 0;
  }

  .topbar {
    display: none;
  }

  .header-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
  }

  .header-tools {
    display: contents;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .logo img {
    width: 96px;
  }

  #book-zocdoc {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .nav-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .nav-places {
    display: grid;
    gap: 14px;
    margin: 8px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(12, 64, 140, 0.12);
    list-style: none;
  }

  .nav-places li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .nav-places li span:last-child {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.35;
  }

  .nav-phone {
    display: block;
    margin: 4px 0 0;
  }

  .nav-phone a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ns-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .site-nav {
    z-index: 30;
  }

  .zd-sticky-button,
  .zd-alert-box {
    display: none !important;
  }

  .footer-hours .zocdoc {
    margin-top: 12px;
  }

  .footer-hours .zocdoc a {
    display: inline-block !important;
  }

  .footer-brand,
  .social {
    text-align: left;
  }
}
