/* NDAC homepage foundation. Brand colors inherit from the shared palette. */
.ndac-home { --home-surface: #eaf1f8; --home-gutter: clamp(24px, 7vw, 112px); font-size: 16px; }
.ndac-home .container { max-width: 1600px; padding-inline: var(--home-gutter); }
.ndac-home h2 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; }
.ndac-home .reveal, .ndac-home .reveal-right { opacity: 1; transform: none; }
.ndac-home a, .ndac-home button { -webkit-tap-highlight-color: transparent; }
.ndac-home :focus-visible { outline: 3px solid #c57500; outline-offset: 5px; }
.ndac-home button { font: inherit; cursor: pointer; }
.ndac-home [hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 20px; background: white; z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.ndac-home .header-inner { min-height: 104px; gap: 28px; padding-inline: 4vw; }
.ndac-home .brand img { height: 57.6px; width: auto; }
.ndac-home .main-nav { gap: clamp(18px, 2vw, 36px); }
.ndac-home .main-nav a, .company-toggle { font-size: 14px; }
.company-toggle { border: 0; background: none; color: var(--color-navy); padding: 16px 0; }
.company-toggle span { margin-left: 12px; }
.ndac-home .dropdown-menu { min-width: 260px; border-radius: 0; }
.ndac-home .has-dropdown:hover .dropdown-menu, .ndac-home .has-dropdown:focus-within .dropdown-menu { opacity: 0; visibility: hidden; pointer-events: none; }
.ndac-home .has-dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.ndac-home .nav-cta, .ndac-home .btn { border-radius: 0; }
.ndac-home .nav-cta { padding: 14px 22px; }
.menu-toggle { margin-left: auto; border: 0; background: none; color: var(--color-navy); min-height: 44px; }
.ndac-home .hero { position: relative; min-height: 650px; height: min(790px, calc(100svh - 104px)); padding: 90px 0 120px; display: flex; align-items: center; text-align: left; background: var(--color-navy) url('../images/hero-doctor-hands.jpg') center/cover; }
.ndac-home .hero-video { width: 100%; height: 100%; object-fit: contain; background: #050f17; }
.ndac-home .hero-overlay { background: linear-gradient(90deg, rgba(5,22,45,.85), rgba(5,22,45,.55) 65%, rgba(5,22,45,.3)); }
.ndac-home .hero-content { width: 100%; opacity: 1; position: relative; z-index: 2; }
.ndac-home .hero .eyebrow { color: white; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.4; text-transform: none; letter-spacing: .01em; margin-bottom: 30px; }
.ndac-home .hero h1 { font-size: clamp(52px, 6.65vw, 106px); line-height: 1; letter-spacing: -.055em; font-weight: 500; max-width: 1050px; margin: 0 0 30px; }
.hero-description { color: white; max-width: 580px; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.5; margin-bottom: 32px; }
.ndac-home .hero .btn { background: white; color: var(--color-navy); padding: 17px 26px; font-size: 16px; }
.ndac-home .hero .btn span { margin-left: 30px; }
.video-toggle { position: absolute; z-index: 3; bottom: 55px; right: 4vw; color: white; background: rgba(5,22,45,.8); border: 1px solid #fff8; padding: 10px 14px; font-size: 13px !important; }
.home-pathways { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: -34px 0 0 18%; position: relative; z-index: 3; }
.home-pathways a { position: relative; display: block; background: var(--color-navy); color: white; text-decoration: none; padding: 32px 52px 35px 30px; font-family: var(--font-heading); font-size: 25px; line-height: 1.2; }
.home-pathways a:nth-child(2) { background: var(--color-blue); }
.home-pathways a:nth-child(3) { background: #b8d8f5; color: var(--color-navy); }
.home-pathways span { display: block; font: 13px var(--font-body); margin-bottom: 18px; }
.home-pathways b { position: absolute; right: 22px; bottom: 30px; font-weight: 400; }
.home-pathways a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-mission { background: var(--color-blue); color: white; border-top: clamp(32px, 5vw, 72px) solid white; padding: clamp(40px, 5vw, 72px) 0; }
.home-mission-layout { display: grid; grid-template-columns: clamp(220px, 24vw, 320px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.home-mission-team { margin: 0; }
.home-mission-team img { display: block; width: 100%; height: auto; }
.home-mission-team figcaption { color: white; font-size: 15px; font-weight: 600; margin-top: 14px; }
.home-mission-copy { min-width: 0; }
.ndac-home .home-mission p { color: white; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.75; margin: 0 0 24px; }
body.ndac-home .home-mission .home-mission-copy p { text-align: justify; text-align-last: left; hyphens: none; }
.ndac-home .home-mission p:last-child { margin-bottom: 0; }
@media(max-width:800px) { .home-mission-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .home-mission-team { width: min(280px, 100%); } }
.ndac-home .about-video { background: var(--home-surface); padding: 100px 0; }
.ndac-home .about-video-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; align-items: center; }
.ndac-home .about-video-text h2 { margin-bottom: 30px; }
.ndac-home .section-sub { font-size: 18px; line-height: 1.8; color: var(--color-navy); }
.ndac-home .about-video-media { background: transparent; padding: 0; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.ndac-home .about-video-el { display: block; width: 100%; height: auto; border: 0; border-radius: 0; object-fit: contain; }
.ndac-home .about-medallion-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .ndac-home .about-medallion-image { animation: home-medallion-arrive 900ms ease-out both; }
}
@keyframes home-medallion-arrive {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.ndac-home .card-link { font-size: 16px; text-underline-offset: 6px; }
.ndac-home .stats-banner { padding: 0; margin: 0; }
.ndac-home .stats-banner img { display: block; width: 100%; }
.ndac-home .testimonials-home { padding: 100px 0; background: white; }
.ndac-home .testimonial-grid { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ndac-home .testimonial-card { border: 0; border-top: 1px solid #bccbdb; border-radius: 0; box-shadow: none; background: none; padding: 36px 40px 36px 0; }
.ndac-home .testimonial-card p { font-size: 18px; line-height: 1.7; }
.ndac-home .testimonial-card .attribution { font-size: 14px; color: var(--color-navy); margin-top: 24px; }
.testimonial-controls { display: flex; justify-content: flex-end; gap: 10px; margin: 28px 0 24px; }
.testimonial-controls button { min-width: 44px; min-height: 44px; border: 1px solid #bccbdb; background: white; color: var(--color-navy); padding: 8px 14px; }
.testimonial-controls button:hover { background: var(--home-surface); }
.testimonial-controls .testimonial-rotation { margin-right: auto; font-size: 14px; }
.testimonials-home.is-carousel .testimonial-viewport { overflow: hidden; }
.ndac-home .testimonials-home.is-carousel .testimonial-grid { display: flex; gap: 0; margin-top: 0; }
.ndac-home .testimonials-home.is-carousel .testimonial-card { flex: 0 0 50%; min-width: 0; box-sizing: border-box; transform: none; transition: none; padding: 32px 32px 24px 0; }
.testimonial-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media(max-width:750px) { .ndac-home .testimonials-home.is-carousel .testimonial-card { flex-basis: 100%; padding-right: 0; } }
.ndac-home .services { padding: 100px 0; background: var(--home-surface); }
.ndac-home .services h2 { max-width: 700px; }
.ndac-home .services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin-top: 50px; }
.ndac-home .service-card { border: 0; border-top: 2px solid var(--color-navy); border-radius: 0; box-shadow: none; padding: 26px 0; background: none; }
.ndac-home .service-card h3 { font-size: 26px; line-height: 1.2; font-weight: 500; }
.ndac-home .service-card p { font-size: 16px; text-align: left; hyphens: none; }
.ndac-home .site-footer { padding: 70px 0 30px; }
.ndac-home .footer-inner { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.ndac-home .footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; align-items: start; }
.ndac-home .footer-brand img { width: 220px; max-width: 100%; margin-bottom: 24px; }
.ndac-home .footer-office-title { color: white; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.footer-address { font-style: normal; line-height: 1.7; font-size: 15px; margin-bottom: 12px; }
.footer-phone, .footer-email-area { display: block; margin-bottom: 12px; }
.footer-brand a { color: #cdd7e5; font-size: 15px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-brand a:hover { color: white; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; }
.ndac-home .footer-nav a { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
@media (min-width: 751px) and (max-width: 1100px) {
  .ndac-home .footer-inner { grid-template-columns: minmax(230px, 1fr) minmax(0, 1.5fr); gap: 32px; }
  .ndac-home .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ndac-home .footer-copy { grid-column: 1/-1; border-top: 1px solid #ffffff45; padding-top: 24px; }
@media(max-width: 1300px) {
  .ndac-home .header-inner { min-height: 80px; flex-wrap: wrap; }
  .ndac-home .main-nav { display: none; width: 100%; align-items: stretch; padding: 0 0 24px; }
  .ndac-home .main-nav.is-open { display: flex; flex-direction: column; gap: 8px; }
  .ndac-home .main-nav a, .company-toggle { font-size: 18px; display: block; padding: 12px 0; text-align: left; }
  .ndac-home .nav-cta { padding: 12px 20px !important; }
  .ndac-home .dropdown-menu { display: none; position: static; box-shadow: none; border: 0; padding-left: 20px; }
  .ndac-home .has-dropdown.is-open .dropdown-menu { display: block; }
  .ndac-home .dropdown-menu a { white-space: normal; }
  .ndac-home .hero { height: auto; min-height: 650px; }
  .home-pathways { margin-left: 7%; }
  .home-pathways a { font-size: 22px; padding-left: 22px; }
  .ndac-home .services-grid { grid-template-columns: 1fr 1fr; }
}
@media(min-width: 1301px) { .ndac-home .menu-toggle { display: none; } }
@media(max-width: 850px) {
  .home-pathways { grid-template-columns: 1fr; margin: 0; }
  .home-pathways a { padding: 24px 52px 24px 24px; font-size: 24px; }
  .home-pathways span { margin-bottom: 12px; }
}
@media(max-width: 650px) {
  .ndac-home .header-inner { min-height: 74px; padding: 12px 24px; gap: 16px; }
  .ndac-home .brand img { height: 45.6px; }
  .ndac-home .hero { min-height: 650px; padding: 70px 0 110px; }
  .ndac-home .hero h1 { font-size: clamp(44px, 12vw, 64px); line-height: 1.05; letter-spacing: -.045em; }
  .ndac-home .hero .eyebrow { font-size: 18px; max-width: 340px; }
  .video-toggle { bottom: 35px; right: 24px; }
  .ndac-home .about-video, .ndac-home .testimonials-home, .ndac-home .services { padding: 64px 0; }
  .ndac-home .about-video-grid, .ndac-home .testimonial-grid, .ndac-home .services-grid, .ndac-home .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .ndac-home .testimonial-card { padding: 28px 0 0; }
  .ndac-home .footer-nav { grid-template-columns: 1fr; }
  .ndac-home .section-sub { font-size: 16px; }
}
@media(prefers-reduced-motion: reduce) { .ndac-home *, .ndac-home *::before, .ndac-home *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.home-process { padding: 100px 0; background: var(--color-navy); color: white; }
.home-process h2, .home-process h3, .home-process .eyebrow, .home-process a { color: white; }
.home-steps { list-style: none; padding: 0; margin: 52px 0 36px; display: grid; grid-template-columns: repeat(5,1fr); gap: 30px; }
.home-steps li { border-top: 1px solid #ffffff66; padding-top: 20px; }
.home-steps span { font-family: var(--font-heading); font-size: 48px; opacity: .7; }
.home-steps h3 { font-size: 26px; margin-top: 18px; font-weight: 500; }
.home-steps p { font-size: 16px; text-align: left; hyphens: none; }
.step-video, .step-image { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 0; border-radius: 0; background: transparent; margin: 18px 0; }
@media(max-width:1100px) { .home-steps { grid-template-columns: repeat(3,1fr); } }
@media(max-width:650px) { .home-process { padding: 64px 0; } .home-steps { grid-template-columns: 1fr; gap: 28px; } .home-steps li { display: grid; grid-template-columns: 44px minmax(0,1fr); column-gap: 16px; } .home-steps span { grid-row: span 3; font-size: 38px; } .home-steps h3 { margin: 0 0 10px; } .step-video, .step-image, .home-steps p { grid-column: 2; } .step-video, .step-image { margin: 4px 0 16px; } }
.ndac-home #main-content { scroll-margin-top: 104px; }
@media(max-width:1300px) { .ndac-home .main-nav.is-open { max-height: calc(100svh - 80px); overflow-y: auto; } .ndac-home #main-content { scroll-margin-top: 80px; } }

.ndac-home .hero-tagline { color: white; font-size: calc(28px + 13pt); line-height: 1.4; max-width: none; margin: 20px 0 0; }
.ndac-home .hero-description { font-size: 17px; }

/* Accommodate the client-selected long headline without crowding the hero. */
.ndac-home .hero h1 { font-size: calc(82px - 2pt); max-width: 1120px; line-height: 1.04; letter-spacing: 0; }
@media(max-width:1300px) {
  .ndac-home .hero h1 { font-size: calc(64px - 2pt); }
  .ndac-home .hero-tagline { font-size: calc(24px + 13pt); }
}
@media(max-width:950px) {
  .ndac-home .hero h1 { font-size: calc(48px - 2pt); }
  .ndac-home .hero-tagline { font-size: calc(20px + 13pt); }
}
@media(max-width:650px) { .ndac-home .hero { padding-top: 48px; min-height: 760px; } }
@media(max-width:400px) { .ndac-home .hero h1 { font-size: calc(38px - 2pt); } }

/* Alternate the hero footage with the complete, uncropped surveys map. */
.ndac-home .hero-map-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #030b18; z-index: 0; opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.ndac-home .hero.is-showing-map .hero-map-video { opacity: 1; }
.ndac-home .video-toggle { z-index: 3; }
.ndac-home .video-control { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; color: white; background: rgba(5,22,45,.9); cursor: pointer; }
.video-control::before { content: ''; display: block; width: 16px; height: 16px; background: currentColor; }
.video-control[data-state="stopped"]::before { width: 18px; height: 20px; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.video-control::after { content: attr(aria-label); position: absolute; bottom: calc(100% + 8px); right: 0; padding: 7px 10px; border-radius: 4px; color: white; background: #0c294f; font: 13px/1.4 var(--font-body); white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; }
.video-control:hover::after, .video-control:focus-visible::after { opacity: 1; visibility: visible; }
.ndac-home .video-control:focus-visible { outline: 3px solid #f4ad24; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ndac-home .hero-map-video { display: none; }
}

/* Hospital certification entry point. */
.home-hospital { padding: clamp(48px, 6vw, 90px) 0; background: #fff; }
.home-hospital-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.home-hospital-image img { display: block; width: 100%; height: auto; }
.ndac-home .home-hospital h2 { font-size: clamp(30px, 2.7vw, 44px); margin: 16px 0 24px; }
.home-hospital-copy p { line-height: 1.75; }
.home-hospital-copy .card-link { display: inline-block; margin-top: 14px; }
@media(max-width: 850px) { .home-hospital-layout { grid-template-columns: 1fr; } }

/* Shared contact pre-footer for the homepage and internal pages. */
.next-chapter { padding: 64px var(--interior-gutter, clamp(24px,7vw,112px)); background: #eaf1f8; display: flex; justify-content: space-between; align-items: center; gap: 40px; border-top: 1px solid #d6e0eb; }
.next-chapter > div { max-width: 740px; }
.next-chapter .eyebrow { font-size: 12px; }
.next-chapter h2 { font: 500 clamp(30px,3vw,46px)/1.15 var(--font-heading); letter-spacing: -.03em; margin-bottom: 18px; }
.next-chapter p:last-child { color: #394b60; margin-bottom: 0; }
.next-chapter .editorial-button { display: inline-flex; gap: 28px; align-items: center; justify-content: center; padding: 16px 23px; min-height: 50px; background: var(--color-navy); color: #fff; text-decoration: none; font: 500 15px/1.4 var(--font-body); border: 1px solid var(--color-navy); cursor: pointer; border-radius: 0; flex-shrink: 0; }
.next-chapter .editorial-button:hover { background: #17487b; }
.next-chapter .editorial-button:focus-visible { outline: 3px solid #1870c4; outline-offset: 5px; }
@media(max-width:1000px) { .next-chapter { flex-direction: column; align-items: flex-start; } }
@media(max-width:650px) { .next-chapter { padding: 45px 24px; } .next-chapter .editorial-button { width: 100%; } }

/* Accreditation inquiries */
.process-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.process-contact-links { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.process-call-area { display: grid; grid-template-columns: 3fr 10fr; width: min(440px, 100%); padding-top: 32px; }
.process-call { grid-column: 2; display: block; padding: 14px 18px; border: 2px solid #fff; border-radius: 8px; color: #fff; background: transparent; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; transition: transform 400ms ease; }
.footer-call-area { grid-column: 1 / -1; }
.process-call:hover { color: #fff; text-decoration: none; }
.process-call:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
/* Reserve the travel area and keep the hover target stationary to prevent flicker. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .process-call-area:hover .process-call,
  .home-process .process-form-area:hover .process-form-button { transform: translate(-15%, -15%); }
}
.process-form-button { flex: 1 1 240px; max-width: 370px; padding: 16px 22px; border: 2px solid #0c294f; border-radius: 24px; background: #c6e4ef; color: #0c294f; font: inherit; line-height: 1.4; cursor: pointer; }
.home-process .process-form-area { flex: 1 1 240px; display: grid; grid-template-columns: 3fr 10fr; max-width: 440px; padding-top: 32px; }
.home-process .process-form-button { grid-column: 2; min-width: 0; width: 100%; max-width: none; border-color: #fff; border-radius: 8px; background: transparent; color: #fff; font-weight: 600; transition: transform 400ms ease; }
.home-process .process-form-button:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.process-dialog { box-sizing: border-box; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 20px; background: #c6e4ef; color: #0c294f; overflow-y: auto; }
.process-dialog::backdrop { background: rgb(4 19 40 / 70%); }
.process-dialog .dialog-brand { font-weight: 600; padding-right: 28px; margin: 0 0 20px; }
.ndac-home .process-dialog h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 24px; }
.dialog-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: #0c294f; font-size: 30px; cursor: pointer; }
.process-dialog label { display: block; font-weight: 600; margin-bottom: 6px; }
.process-dialog input, .process-dialog select { box-sizing: border-box; display: block; width: 100%; padding: 12px; margin-bottom: 18px; border: 1px solid #52677e; border-radius: 6px; background: #fff; color: #0c294f; font: inherit; }
.process-submit { border: 0; border-radius: 6px; padding: 12px 28px; background: #0c294f; color: #fff; font: inherit; cursor: pointer; }
.process-submit:disabled { opacity: .65; cursor: wait; }
.process-dialog .form-help, .process-form-status { font-size: 14px; line-height: 1.6; }
.process-form-status:empty { margin: 0; }
.process-dialog :focus-visible, .process-form-button:focus-visible { outline: 3px solid #0757af; outline-offset: 3px; }
@media(max-width: 600px) { .process-form-button { max-width: none; flex-basis: 100%; } }
@media(max-width: 600px) { .home-process .process-form-area { max-width: none; flex-basis: 100%; } }
@media(max-width: 600px) {
  .stats-banner .interior-video-toggle { top: 100%; bottom: auto; right: 8px; }
}
