/* Health2035 — styled after roche.com (Roche component library tokens) */

:root {
  --blue: #0b41cd;          /* Roche interactive primary */
  --blue-dark: #052066;     /* hover / footer divider */
  --blue-active: #5c80de;
  --blue-soft: #d7e0f7;     /* secondary hover */
  --blue-light: #bde3ff;    /* gradient effect */
  --border: #aec0ee;
  --grey-700: #544f4f;
  --grey-500: #c2bab5;
  --text: #000;
  --gradient-tl: linear-gradient(140.87deg, var(--blue-light) -68.64%, #fff 52.89%);
  --gutter: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.8125rem;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
strong, b { font-weight: 500; }

h1, h2, h3, h4 { font-weight: 300; margin: 0; letter-spacing: -0.01em; }

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

/* ---------- Header (two rows, like roche.com) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Same gradient as the hero, pinned to the viewport so header and hero
     blend seamlessly and the header keeps this colour while scrolling. */
  background: var(--gradient-tl) fixed;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
}

/* Bridge mark + wordmark */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--blue); }
.logo-icon { width: 44px; height: 32px; display: block; flex: none; }
.logo-text { font-size: 1.5rem; line-height: 1; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.logo-text span { font-weight: 300; color: var(--blue); }

.utility-nav { display: flex; align-items: center; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 1.25rem 0 0.75rem;
  color: var(--grey-700);
  font-size: 1.125rem;
  font-weight: 400;
  border-bottom: 4px solid transparent;
  transition: border-color 0.1s ease-in, color 0.1s ease-in;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--blue);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* ---------- Typography helpers ---------- */
.headline-1 {
  font-size: 2.5rem;
  line-height: 3rem;
}
.headline-2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.headline-3 {
  font-size: 1.5rem;
  line-height: 2rem;
}
.lead {
  font-size: 1.25rem;
  line-height: 2rem;
}
.overline {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--grey-700);
  margin-bottom: 1rem;
}

/* ---------- Buttons & links (Roche: square, 56px tall) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3125rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: var(--blue-dark); box-shadow: 0 0.75rem 1.5rem #2121213d; }
.button--primary:active { background: var(--blue-active); }
.button--secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding-block: 0.9375rem;
}
.button--secondary:hover { border-color: var(--blue-dark); color: var(--blue-dark); background: var(--blue-soft); }
.button-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 400;
}
.text-link::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}
.text-link:hover { color: var(--blue-dark); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; position: relative; }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 600px) {
  .section-head { flex-direction: row; align-items: flex-end; gap: 1.5rem; }
}
.section-head p { margin: 1rem 0 0; max-width: 42rem; }

/* ---------- Hero (Roche hero-teaser: text left, image right) ---------- */
.hero { background: var(--gradient-tl) fixed; padding: 3rem 0 4.5rem; }
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }
.hero h1 { font-size: 2.5rem; line-height: 3rem; }
.hero p { margin: 0; font-size: 1.25rem; line-height: 2rem; }
.hero-body { margin-top: 1.5rem; }
.hero .hero-body p { font-size: 1.125rem; line-height: 1.75rem; color: var(--grey-700); }
.hero .hero-body p + p { margin-top: 1rem; }
.hero-image { aspect-ratio: 4 / 3; }

.page-hero { padding: 4rem 0; }
.page-hero h1 { font-size: 2.5rem; line-height: 3rem; max-width: 42rem; }
.page-hero p { margin: 1.5rem 0 0; max-width: 42rem; font-size: 1.25rem; line-height: 2rem; }

.breadcrumbs { font-size: 1rem; color: var(--grey-700); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--grey-700); }
.breadcrumbs a:hover { color: var(--blue); }

/* ---------- Image placeholders ---------- */
.img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 90% at 20% 20%, #ffffff 0, transparent 55%),
    linear-gradient(140deg, #e8f3ff 0%, #bde3ff 55%, #9fc3ef 100%);
}
.img--square { aspect-ratio: 1 / 1; }
.img--portrait { aspect-ratio: 4 / 5; }
.img--warm {
  background:
    radial-gradient(120% 90% at 80% 20%, #ffffff 0, transparent 55%),
    linear-gradient(140deg, #f5f5f2 0%, #dbe7fb 60%, #bde3ff 100%);
}

/* ---------- Teasers (image + text, no boxes) ---------- */
.grid { display: grid; gap: 3rem 1.5rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.teaser { display: flex; flex-direction: column; gap: 1rem; color: var(--text); }
.teaser h3 { font-size: 1.5rem; line-height: 2rem; }
.teaser p { margin: 0; }
.teaser .meta { font-size: 1rem; color: var(--grey-700); font-weight: 400; }
a.teaser:hover h3 { color: var(--blue); }
a.teaser:hover .img { filter: brightness(0.97); }
.teaser .button { align-self: flex-start; margin-top: auto; }
.teaser h3 a { color: inherit; }
.teaser h3 a:hover { color: var(--blue); }

/* Roche "mission in action" style: number + title + text */
.pillar { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.pillar .num { display: block; font-size: 3rem; line-height: 1; color: var(--blue); margin-bottom: 1.5rem; }
.pillar h3 { font-size: 1.5rem; line-height: 2rem; margin-bottom: 0.75rem; }
.pillar p { margin: 0; }
.grid--roomy { row-gap: 3.5rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.split h2 { margin-bottom: 1.5rem; }
.split p { margin: 0 0 1.5rem; }
.split--top { align-items: start; }

/* ---------- Bullet list ---------- */
.list { list-style: none; margin: 1rem 0 2.5rem; padding: 0; }
.list:last-child { margin-bottom: 0; }
.list li { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.list li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- Stats (like "Investor information") ---------- */
.stats { display: grid; grid-template-columns: 1fr; gap: 0; }
.stat { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.stat strong { display: block; font-weight: 200; font-size: 3rem; line-height: 3.625rem; color: var(--blue); }
.stat span { display: block; margin-top: 0.5rem; }

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.quote blockquote { margin: 0; font-size: 1.875rem; line-height: 2.5rem; font-weight: 200; }
.quote blockquote::before { content: "“"; display: block; color: var(--blue); font-size: 5rem; line-height: 1; height: 3rem; }
.quote blockquote::after { content: "”"; display: block; color: var(--blue); font-size: 5rem; line-height: 1; height: 3rem; margin-top: 1.5rem; text-align: right; }
.quote cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: 1rem; font-weight: 400; color: var(--grey-700); }

/* ---------- Events list ---------- */
.event {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.event:last-child { border-bottom: 1px solid var(--border); }
.event-date .day { display: block; font-size: 3rem; line-height: 1; font-weight: 200; color: var(--blue); }
.event-date .month { display: block; margin-top: 0.5rem; font-size: 1rem; font-weight: 400; color: var(--grey-700); text-transform: uppercase; letter-spacing: 0.05em; }
.event h3 { font-size: 1.5rem; line-height: 2rem; margin-bottom: 0.5rem; }
.event p { margin: 0; color: var(--grey-700); }
.event .button { grid-column: 2; justify-self: start; }
.event p + p { margin-top: 1rem; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.form label { display: block; font-size: 1rem; font-weight: 400; margin-bottom: 0.5rem; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.875rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--grey-700);
  border-radius: 0;
  background: #fff;
  color: var(--text);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px dashed var(--blue);
  outline-offset: 2px;
}
.form .button { justify-self: start; }
.form-note { margin: 0; color: var(--blue); font-weight: 400; min-height: 1.8rem; }

/* ---------- CTA band ---------- */
.cta { padding: 4.5rem 0; }
.cta-inner { display: flex; flex-direction: column; gap: 2rem; }
.cta h2 { margin-bottom: 1rem; }
.cta p { margin: 0; max-width: 42rem; }
.cta p + p { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding: 4rem 0 2rem; border-top: 1px solid var(--blue-dark); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { margin: 1rem 0 0; max-width: 36rem; font-size: 1rem; line-height: 1.5rem; color: var(--grey-700); }
.footer-nav {
  padding: 2rem 0;
  border-top: 1px solid var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark);
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}
.footer-nav a { color: var(--grey-700); font-size: 1.125rem; font-weight: 400; }
.footer-nav a:hover { color: var(--blue); }
.social { display: flex; gap: 1rem; }
.social a {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 500;
}
.social a:hover { background: var(--blue); color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.875rem;
  color: var(--grey-700);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; padding-bottom: 1rem; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 0.875rem 0; border-bottom: 1px solid var(--blue-soft); border-left: 4px solid transparent; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--blue-soft); border-left-color: var(--blue); padding-left: 0.75rem; }
  .header-top { padding-bottom: 1rem; }
}

/* ---------- Breakpoints (Roche: 2rem / 4rem / 6rem margins) ---------- */
@media (min-width: 600px) {
  :root { --gutter: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
  .event { grid-template-columns: 7rem 1fr auto; align-items: center; }
  .event .button { grid-column: auto; }
}

@media (min-width: 1024px) {
  :root { --gutter: 4rem; }
  body { font-size: 1.25rem; line-height: 2rem; }
  .headline-1, .hero h1, .page-hero h1 { font-size: 3rem; line-height: 3.375rem; }
  .headline-2 { font-size: 2.5rem; line-height: 3rem; }
  .section, .cta { padding: 6rem 0; }
  .hero { padding: 4rem 0 6rem; }
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .hero-text { width: calc(50% - 12px); gap: 2rem; }
  .hero-image { width: 50%; }
  .page-hero { padding: 5rem 0 6rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid--roomy { column-gap: 6rem; row-gap: 4rem; }
  .split, .quote { grid-template-columns: 1fr 1fr; gap: 1.5rem 6rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1440px) {
  :root { --gutter: 6rem; }
  .headline-1, .hero h1, .page-hero h1 { font-size: 3.8125rem; line-height: 4.375rem; }
  .headline-2 { font-size: 3rem; line-height: 3.625rem; }
  .hero-text { width: 41.6667%; gap: 4rem; }
}
