@font-face {
  font-family: "Wubby Blockx";
  src: url("assets/fonts/Wubby%20Blockx.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #2e6eb5;
  --blue-deep: #214e91;
  --pink: #ec1680;
  --cream: #fff0ed;
  --ink: #202024;
  --green: #b5cd12;
  --page-width: 1920px;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  transform: translateY(-150%);
  border-radius: 6px;
  color: #fff;
  background: var(--blue-deep);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 3px 14px rgb(21 49 88 / 12%);
}

.header-inner {
  display: flex;
  width: min(100% - 64px, 1720px);
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.brand-pqs {
  width: 92px;
  max-height: 54px;
  object-fit: contain;
}

.brand-hospital {
  width: 62px;
  max-height: 48px;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 34px;
  background: rgb(255 255 255 / 36%);
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 42px);
}

.site-navigation a {
  padding-block: 11px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  opacity: 0.8;
  transform: translateY(-1px);
}

.site-navigation a.is-active {
  padding-inline: 18px;
  border-radius: 999px;
  background: var(--pink);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  height: clamp(780px, 73vw, 1400px);
  overflow: hidden;
  background-color: var(--cream);
  background-image: url("assets/img/PQS%202026_9%20-%20Home.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin-inline: auto;
}

.countdown {
  position: absolute;
  top: 63.5%;
  left: 50%;
  width: min(71.875vw, 1380px);
  aspect-ratio: 1380 / 512;
  margin: 0;
  transform: translateX(-50%);
}

.countdown-art {
  width: 100%;
  height: auto;
}

.countdown-values {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.countdown-value {
  position: absolute;
  top: 56.5%;
  display: block;
  color: #fff;
  font-family: "Wubby Blockx", Arial, sans-serif;
  font-size: clamp(26px, 7.3vw, 140px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
  text-shadow: 0 2px 4px rgb(23 29 78 / 13%);
  transform: translate(-50%, -50%);
}

.countdown-value:nth-child(1) {
  left: 12.9%;
}

.countdown-value:nth-child(2) {
  left: 38.4%;
}

.countdown-value:nth-child(3) {
  left: 63.4%;
}

.countdown-value:nth-child(4) {
  left: 88.3%;
}

.art-section {
  width: 100%;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.campaign-art {
  width: 100%;
  height: auto;
}

.campaign-section,
.materials-section,
.symptoms-section,
.appointment-section {
  background: var(--cream);
}

.campaign-section {
  position: relative;
}

.date-art {
  position: absolute;
  top: 56%;
  right: 0;
  width: min(63.3%, 1215px);
  height: auto;
  pointer-events: none;
}

.shirts-section {
  background: #a8cced;
}

.site-footer {
  width: 100%;
  flex: 0 0 auto;
  background: #fff;
}

.footer-inner {
  display: flex;
  width: 100%;
  min-height: 240px;
  align-items: center;
  justify-content: space-around;
  gap: clamp(24px, 5vw, 80px);
  padding: 28px;
  background: #fff;
}

.footer-brands,
.footer-socials {
  display: flex;
  align-items: center;
}

.footer-brands {
  gap: clamp(20px, 4vw, 64px);
}

.footer-brands img {
  width: clamp(100px, 14vw, 180px);
  max-height: 190px;
  object-fit: contain;
}

.footer-socials {
  gap: clamp(12px, 2.5vw, 32px);
}

.footer-socials a {
  display: block;
  border-radius: 4px;
}

.footer-socials a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.footer-socials img {
  width: clamp(28px, 3.2vw, 44px);
  height: auto;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 40px, 1720px);
    min-height: 72px;
  }

  .brand {
    gap: 12px;
  }

  .brand-pqs {
    width: 82px;
  }

  .brand-hospital {
    width: 54px;
  }

  .site-navigation {
    gap: 14px;
  }

  .site-navigation a {
    font-size: 11px;
  }

  .site-navigation a.is-active {
    padding-inline: 13px;
  }

}

@media (max-width: 640px) {
  :root {
    scroll-padding-top: 68px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-pqs {
    width: 74px;
    max-height: 46px;
  }

  .brand-hospital {
    width: 48px;
    max-height: 40px;
  }

  .brand-divider {
    height: 28px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 8px;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    background: var(--blue);
    box-shadow: 0 12px 18px rgb(21 49 88 / 17%);
  }

  .site-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .site-navigation a {
    padding: 14px 10px;
    font-size: 13px;
  }

  .site-navigation a.is-active {
    align-self: flex-start;
    margin-block: 4px;
    padding: 11px 16px;
  }

  .hero {
    height: max(88vw, 330px);
    min-height: 0;
    background-size: 100% auto;
    background-position: center top;
    background-color: var(--cream);
  }

  .hero-inner {
    min-height: 100%;
  }

  .footer-inner {
    min-height: 200px;
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px;
  }

  .footer-brands {
    gap: 32px;
  }

  .footer-brands img {
    width: clamp(88px, 28vw, 112px);
    max-height: 72px;
  }

  .footer-socials {
    gap: 24px;
  }

  .footer-socials img {
    width: 28px;
  }

  .countdown {
    top: 54.5%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
