@import url("assets/fonts/fonts.css");

:root {
  --red: #cc0000;
  --ink: #222222;
  --soft-ink: #545454;
  --paper: #ffffff;
  --footer: #171717;
  --line: #d8d8d8;
  --logo-gray: #666666;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  background: var(--paper);
}

.header-inner {
  width: min(1160px, calc(100% - 72px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  width: min(260px, 62vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--logo-gray);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.section-nav {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-nav a {
  position: relative;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
}

.section-nav .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.24);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.section-nav a:hover .dot,
.section-nav a:focus-visible .dot,
.section-nav a.is-active .dot {
  background: var(--red);
  border-color: var(--paper);
  transform: scale(1.18);
}

.section-nav .nav-title {
  position: absolute;
  right: 24px;
  top: 50%;
  width: max-content;
  max-width: 260px;
  padding: 5px 9px 6px;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.section-nav a:hover .nav-title,
.section-nav a:focus-visible .nav-title {
  opacity: 1;
  transform: translateY(-50%);
}

.hero,
.title-band {
  position: relative;
  min-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero {
  background: #ffffff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

.hero-device::after {
  background: rgba(0, 0, 0, 0.55);
}

.hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 1180px);
  height: auto;
  max-width: none;
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0);
  will-change: transform;
}

.hero-care .hero-image {
  width: max(100vw, 1240px);
}

.hero-care {
  min-height: 100vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100% - 48px));
}

.hero h1,
.hero h2,
.title-band h2 {
  margin: 0;
  color: var(--paper);
  font-family: "Quicksand", Arial, Helvetica, sans-serif;
  font-size: 2em;
  font-weight: 300;
  line-height: 1.06;
  text-transform: none;
}

.title-band {
  min-height: 24vh;
  padding: 46px 24px;
  background: var(--red);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  color: var(--paper);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-cue:hover span,
.scroll-cue:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 10px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.content-section {
  padding: 78px 0 86px;
  background: var(--paper);
}

.content-inner {
  width: min(1060px, calc(100% - 72px));
  margin: 0 auto;
}

.copy p {
  margin: 0 0 24px;
  color: var(--soft-ink);
}

.copy p:last-child {
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 34%);
  gap: 58px;
  align-items: start;
}

.product-image {
  margin: 0;
}

.product-image img {
  width: 100%;
  max-height: 660px;
  object-fit: contain;
}

.care-section .copy {
  max-width: 940px;
}

.team-section {
  padding-bottom: 74px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 24px;
}

.team-member h3,
.team-member p {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 300;
}

.team-member p {
  margin-top: 4px;
}

hr {
  height: 1px;
  margin: 58px 0 0;
  border: 0;
  background: var(--line);
}

.site-footer {
  color: var(--paper);
  background: var(--footer);
  padding: 34px 0 50px;
}

.footer-inner {
  width: min(1060px, calc(100% - 72px));
  margin: 0 auto;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.top-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(2px);
}

.site-footer img {
  width: min(320px, 78vw);
  margin: 0 auto 26px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  text-align: right;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--paper);
}

@media (max-width: 820px) {
  body {
    font-size: 18px;
  }

  .header-inner {
    width: min(100% - 40px, 1160px);
    min-height: 92px;
  }

  .brand {
    width: min(220px, 64vw);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    z-index: 12;
    display: none;
    padding: 18px 24px 22px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .section-nav {
    display: none;
  }

  .hero,
  .title-band {
    min-height: calc(100vh - 92px);
  }

  .hero-care {
    min-height: 100vh;
  }

  .title-band {
    min-height: 24vh;
  }

  .content-section {
    padding: 56px 0 64px;
  }

  .content-inner {
    width: min(100% - 40px, 1060px);
  }

  .product-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .product-image {
    width: min(330px, 82vw);
    margin: 0 auto;
  }

  .team-member {
    max-width: 520px;
    margin: 0 auto;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .hero h2,
  .title-band h2 {
    font-size: 2em;
  }

  .hero-device .hero-image {
    object-position: 47% 50%;
  }
}
