@import url("./base.css");
@import url("./layout.css");
@import url("./components.css");
@import url("./brand.css");

:root {
  --home-bg: #f7f8f4;
  --home-ink: #171512;
  --home-muted: rgb(23 21 18 / 0.68);
  --home-card: #ffffff;
  --home-mist: #dceff5;
  --home-leaf: #dcead7;
  --home-sun: #fff0bd;
}

body {
  background: var(--home-bg);
}

.home-main {
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--home-bg) 46%, #ffffff 100%);
}

.home-header {
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.home-header .site-header__row {
  min-height: 68px;
}

.home-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--color-heading);
  border-radius: var(--radius-pill);
  color: var(--color-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-action:hover {
  background: var(--color-heading);
  color: var(--color-on-primary);
  transform: translateY(-1px);
}

.home-hero {
  min-height: min(650px, calc(88dvh - 68px));
  display: grid;
  align-items: center;
  padding-block: clamp(48px, 7vw, 92px);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.home-hero__copy {
  max-width: 590px;
}

.home-eyebrow {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.3rem, 6.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.home-hero__lead {
  max-width: 35rem;
  margin: 24px 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-heading);
  border-radius: var(--radius-pill);
  background: var(--color-heading);
  color: var(--color-on-primary);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-button:hover {
  transform: translateY(-1px);
  background: var(--color-primary-hover);
}

.home-button--secondary {
  background: transparent;
  color: var(--color-heading);
}

.home-button--secondary:hover {
  background: var(--color-heading);
  color: var(--color-on-primary);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: end;
}

.hero-gallery__panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--home-card);
  border: 1px solid var(--color-line-soft);
  box-shadow: 0 20px 60px rgb(23 21 18 / 0.08);
}

.hero-gallery__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gallery__panel--crate {
  aspect-ratio: 0.82;
  grid-row: span 2;
  padding: 7%;
}

.hero-gallery__panel--crate img {
  object-fit: contain;
}

.hero-gallery__panel--ride {
  aspect-ratio: 1;
  padding: 8%;
  background: var(--home-mist);
}

.hero-gallery__panel--ride img {
  object-fit: contain;
}

.hero-gallery__panel--room {
  aspect-ratio: 1.12;
}

.home-section {
  padding-block: clamp(64px, 9vw, 120px);
}

#products {
  padding-top: clamp(28px, 4vw, 54px);
}

.home-section__head {
  max-width: 690px;
  margin-bottom: 36px;
}

.home-section__head h2 {
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.home-section__head p {
  margin: 18px 0 0;
  max-width: 48rem;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.product-duo {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.product-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid var(--color-line-soft);
  border-radius: 18px;
  background: var(--home-card);
}

.product-panel__media {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 54px);
}

.product-panel__media--crate {
  background: linear-gradient(145deg, #fff8ea, #f3f7ef);
}

.product-panel__media--ride {
  background: linear-gradient(145deg, #e3f3f8, #f4f7fb);
}

.product-panel__media img {
  width: min(88%, 560px);
  max-height: 420px;
  object-fit: contain;
}

.product-panel__body {
  display: grid;
  align-content: end;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
}

.product-panel__body h3 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.product-panel__body p {
  max-width: 35rem;
  color: var(--home-muted);
  line-height: 1.7;
}

.home-link {
  width: max-content;
  color: var(--color-heading);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.fit-card {
  min-height: 280px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--color-line-soft);
  border-radius: 18px;
  background: var(--home-card);
}

.fit-card h3 {
  font-size: 1.35rem;
}

.fit-card p {
  margin: 14px 0 0;
  color: var(--home-muted);
  line-height: 1.7;
}

.fit-card--image {
  grid-column: span 2;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
}

.fit-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fit-card--accent {
  background: var(--home-leaf);
}

.fit-card--sun {
  background: var(--home-sun);
}

.care-band {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.46fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 22px;
  background: var(--color-heading);
  color: var(--color-on-primary);
}

.care-band h2 {
  max-width: 13ch;
  color: inherit;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1;
}

.care-band p {
  margin: 20px 0 0;
  max-width: 42rem;
  color: rgb(255 255 255 / 0.78);
  line-height: 1.7;
}

.care-band .home-button {
  background: #ffffff;
  color: var(--color-heading);
  border-color: #ffffff;
}

.home-footer {
  background: #ffffff;
}

.home-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.home-footer__links a {
  color: var(--color-foreground-muted);
  font-weight: 700;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__copy,
  .hero-gallery,
  .home-section__head,
  .product-panel,
  .fit-card,
  .care-band {
    animation: home-rise 0.7s ease both;
  }

  .hero-gallery { animation-delay: 0.12s; }
  .product-panel:nth-child(2) { animation-delay: 0.08s; }
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 980px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__grid,
  .product-duo,
  .care-band {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    max-width: 12ch;
  }

  .fit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fit-card--image {
    grid-column: span 2;
  }
}

@media screen and (max-width: 749px) {
  .home-action {
    display: none;
  }

  .home-hero {
    padding-block: 34px 28px;
  }

  .home-hero__grid {
    gap: 28px;
  }

  .home-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 14vw, 4.2rem);
  }

  .home-hero__lead {
    font-size: 1rem;
  }

  .home-hero__actions {
    margin-top: 24px;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-gallery__panel--crate {
    aspect-ratio: 1;
    grid-row: auto;
  }

  .hero-gallery__panel--room {
    display: none;
  }

  .product-panel {
    min-height: auto;
  }

  .product-panel__media {
    min-height: 290px;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .fit-card--image {
    grid-column: auto;
    min-height: 310px;
  }

  .care-band {
    border-radius: 18px;
  }
}
