/* Nu-Med Plus — portable website. All media and fonts are hosted locally. */
@font-face {
  font-family: "Merriweather";
  src: url("assets/fonts/merriweather-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #1d2828;
  --slate: #374848;
  --mint: #e3f6f1;
  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --content: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 18px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -.045em; }
h1 { font-size: clamp(44px, 5.14vw, 76px); line-height: 1.22; }
h2 { font-size: clamp(34px, 3.68vw, 52px); line-height: 1.29; }
h3, .section-heading { font-size: clamp(27px, 2.47vw, 35px); line-height: 1.35; }
p { margin: 0; }
p + p { margin-top: 1em; }
:focus-visible { outline: 3px solid #dc3038; outline-offset: 6px; }
.container { width: min(80%, var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; left: 20px; top: 16px; padding: 10px 18px; color: var(--ink); background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Hero: original silent, looping video with an image fallback. */
.hero { position: relative; isolation: isolate; min-height: clamp(600px, 58.9vw, 860px); overflow: hidden; background: var(--ink) url("assets/images/hero-poster.jpg") center/cover no-repeat; color: #fff; }
.hero-video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(10 34 36 / .12), transparent 72%); pointer-events: none; }
.site-header { padding: 36px 2%; }
.site-logo { display: inline-block; width: 168px; }
.hero-copy { padding-block: 38px 130px; }
.hero-copy h1 { max-width: 660px; }
.video-toggle { position: absolute; right: 28px; bottom: 25px; min-height: 44px; border: 1px solid rgb(255 255 255 / .55); border-radius: 3px; padding: 9px 15px; color: #fff; background: rgb(20 40 40 / .7); cursor: pointer; font-size: 13px; }
.video-toggle:hover { background: var(--ink); }
.video-toggle[hidden] { display: none; }

/* Original hospital system image includes the white background. */
.introduction { position: relative; isolation: isolate; min-height: 710px; display: flex; align-items: center; overflow: hidden; background: #fff; }
.hospital-image { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.introduction-content { padding-block: 100px; }
.introduction h2 { max-width: 650px; margin-bottom: 30px; }
.introduction p { max-width: 585px; width: 55%; }

.portable { background: var(--slate); color: var(--mint); }
.portable-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: center; min-height: 560px; padding-block: 78px; }
.portable-image { width: 100%; transform: scale(1.25); transform-origin: right center; }
.portable-copy { position: relative; z-index: 1; }
.portable-copy h2 { margin-bottom: 30px; }

.advantages { display: grid; grid-template-columns: 1fr 1fr; }
.advantage { padding: 104px max(48px, calc((100vw - 1080px) / 2)); padding-right: 65px; background: var(--mint); }
.advantage + .advantage { padding-left: 65px; padding-right: max(48px, calc((100vw - 1080px) / 2)); background: var(--ink); color: var(--mint); }
.advantage h2 { margin-bottom: 30px; }

.innovation { overflow: hidden; padding-block: 110px; background: #fff; }
.innovation-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.innovation-copy { background: var(--mint); padding: 45px; }
.innovation h2 { margin-bottom: 30px; }
.engineering-image { width: 100%; }

.team { background: var(--mint); padding: 88px 0 100px; }
.team > .container { width: min(88%, 1200px); }
.team-title { text-align: center; margin-bottom: 58px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }
.team-member { min-width: 0; }
.team-member h3 { font-size: clamp(27px, 2.35vw, 34px); margin-bottom: 18px; }
.team-role { min-height: 82px; margin-bottom: 24px; font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.team-bio { font-size: 17px; line-height: 1.65; }

.site-footer { padding: 86px 0; background: var(--ink); color: var(--mint); }
.footer-layout { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 65px; align-items: center; text-align: center; }
.footer-logo { display: inline-block; width: 210px; }
.footer-address { font-style: normal; font-size: 16px; }
.footer-address strong { display: block; font-weight: 400; }
.stock-symbol { margin-top: 20px; }
.footer-phone { font-size: 16px; }
.footer-phone a { display: inline-block; padding-block: 5px; }

@media (min-width: 1650px) {
  .introduction { min-height: 810px; }
  .hospital-image { object-fit: contain; }
}

@media (max-width: 1100px) {
  .container { width: 86%; }
  body { font-size: 17px; }
  .introduction h2 { max-width: 58%; }
  .introduction p { width: 53%; }
  .advantage, .advantage + .advantage { padding: 72px 48px; }
  .innovation-copy { padding: 34px; }
  .team-grid { gap: 35px; }
  .team-role { min-height: 100px; }
  .footer-layout { gap: 32px; }
}

@media (max-width: 760px) {
  .container, .team > .container { width: calc(100% - 48px); }
  body { font-size: 17px; }
  .hero { min-height: 680px; min-height: min(820px, 92svh); }
  .site-header { padding: 28px 24px; }
  .site-logo { width: 150px; }
  .hero-copy { padding-block: 50px 130px; }
  .hero-copy h1 { max-width: 560px; font-size: clamp(40px, 7.4vw, 58px); }
  .hero-video { object-position: 58% center; }
  .video-toggle { right: 24px; bottom: 24px; }
  .introduction { display: flex; flex-direction: column; min-height: 0; }
  .introduction-content { padding-block: 65px 12px; }
  .introduction h2 { max-width: none; font-size: 34px; }
  .introduction p { width: auto; max-width: none; }
  .hospital-image { position: relative; inset: auto; z-index: 0; order: 2; width: 100%; height: 430px; object-fit: cover; object-position: right center; }
  .portable-layout { grid-template-columns: 1fr; gap: 10px; padding-block: 50px 65px; min-height: 0; }
  .portable-image { width: min(100%, 540px); margin-inline: auto; transform: none; }
  .portable-copy h2 { margin-bottom: 24px; }
  .advantages { grid-template-columns: 1fr; }
  .advantage, .advantage + .advantage { padding: 60px 24px; }
  .advantage > * { max-width: 650px; margin-inline: auto; }
  .innovation { padding-block: 65px; }
  .innovation-layout { grid-template-columns: 1fr; gap: 30px; }
  .innovation-copy { padding: 30px 25px; }
  .engineering-image { width: min(100%, 600px); margin-inline: auto; }
  .team { padding-block: 65px; }
  .team-title { margin-bottom: 40px; }
  .team-grid { grid-template-columns: 1fr; gap: 45px; }
  .team-member + .team-member { border-top: 1px solid rgb(29 40 40 / .18); padding-top: 35px; }
  .team-role { min-height: 0; margin-bottom: 20px; }
  .team-bio { max-width: 70ch; }
  .site-footer { padding-block: 60px; }
  .footer-layout { grid-template-columns: 1fr; gap: 35px; }
  .footer-logo { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
