:root {
  --blue: #4b7a9f;
  --deep-blue: #315d7c;
  --light-blue: #90bcca;
  --red: #bb3330;
  --ink: #25343f;
  --paper: #f7fafb;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  padding: clamp(28px, 4vw, 60px) clamp(28px, 5.5vw, 88px) 26px;
}

.hero__photo,
.hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__photo {
  z-index: -3;
  background-image: url("medical-procedure-blurred.jpg");
  background-size: cover;
  background-position: center 50%;
}

/* A short, top-only wash for contrast. Most of the medical image remains visible. */
.hero__fade {
  z-index: -2;
  background: linear-gradient(
    180deg,
    rgba(248, 251, 252, .99) 0%,
    rgba(248, 251, 252, .95) 8%,
    rgba(246, 250, 251, .72) 15%,
    rgba(241, 247, 249, .30) 23%,
    rgba(225, 238, 242, 0) 31%
  );
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 31%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(17, 43, 59, .16), rgba(17, 43, 59, 0));
}

.hero__brand,
.hero__message { align-self: start; }

/* Primary visual: large, high, but strictly contained left of the divider. */
.hero__brand {
  grid-column: 1;
  padding-right: clamp(28px, 3.2vw, 52px);
  padding-top: clamp(14px, 2.5vh, 28px);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
}

.logo {
  display: block;
  width: min(100%, 760px);
  max-width: 100%;
  height: auto;
  margin: 0;
  image-rendering: auto;
  transform: translateZ(0);
  filter: drop-shadow(0 3px 14px rgba(35, 73, 96, .05));
}

/* Secondary visual: intentionally smaller and quieter than the logo. */
.hero__message {
  grid-column: 2;
  position: relative;
  padding-left: clamp(30px, 3.5vw, 60px);
  padding-top: clamp(18px, 3vh, 36px);
  border-left: 1px solid rgba(75, 122, 159, .28);
  min-width: 0;
}

h1 {
  margin: 0;
  max-width: 600px;
  color: var(--deep-blue);
  font-family: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(30px, 3.15vw, 50px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.accent {
  width: 64px;
  height: 3px;
  margin: 26px 0 24px;
  background: var(--red);
}

.hero__message p {
  margin: 0;
  max-width: 570px;
  color: #33434e;
  font-size: clamp(15px, 1.18vw, 19px);
  line-height: 1.54;
  letter-spacing: -.005em;
}

.contact {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  margin-bottom: clamp(30px, 4vh, 50px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: white;
  text-shadow: 0 1px 8px rgba(17, 42, 58, .45);
  font-size: 15px;
  letter-spacing: .01em;
}

.contact__label { font-weight: 700; }
.contact__email {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 0;
  color: white;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  cursor: pointer;
  text-shadow: inherit;
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.contact__email:hover,
.contact__email:focus-visible { border-bottom-color: white; }
.contact__email.is-copied {
  letter-spacing: .12em;
  text-transform: uppercase;
}
.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(17, 42, 58, .55);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    padding: 24px 24px 22px;
  }
  .hero__fade {
    background: linear-gradient(
      180deg,
      rgba(248,251,252,.99) 0%,
      rgba(248,251,252,.95) 10%,
      rgba(245,249,251,.70) 19%,
      rgba(236,245,248,.25) 27%,
      rgba(228,240,244,0) 35%
    );
  }
  .hero__photo { background-position: 58% center; }
  .hero__brand,
  .hero__message { margin-top: 0; padding-top: 0; }
  .hero__brand {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }
  .logo { width: min(94vw, 690px); }
  .hero__message {
    grid-column: 1;
    grid-row: 2;
    margin-top: 24px;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(75,122,159,.25);
  }
  h1 { font-size: clamp(34px, 8vw, 50px); }
  .accent { margin: 22px 0 20px; width: 56px; }
  .hero__message p { font-size: clamp(16px, 4vw, 19px); }
  .contact {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    margin-bottom: 30px;
  }
  .footer {
    grid-column: 1;
    grid-row: 5;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .hero { padding-inline: 18px; }
  .logo { width: 100%; }
  .contact { gap: 9px 12px; font-size: 14px; }
}
