/**
 * Fremont homepage styles.
 */

:root {
  --home-surface: #ffffff;
  --home-on-surface: #1e1b15;
  --home-on-surface-variant: #5b403b;
  --home-secondary: #635e55;
  --home-primary: #a50500;
  --home-primary-container: #c92818;
  --home-on-primary: #ffffff;
  --home-surface-container-low: #ffffff;
  --home-surface-white: #ffffff;
  --home-surface-container: #f5f5f5;
  --home-surface-variant: #e8e8e8;
  --home-surface-muted: #f4f6f8;
  --home-surface-alt: #f7f8fa;
  --home-surface-beige: #f0f2f5;
  --home-max: 1280px;
  --home-margin-mobile: 20px;
  --home-margin-desktop: 64px;
  --home-section-gap: 120px;
  --home-gutter: 32px;
  --home-card-pad: 40px;
  --home-radius: 24px;
  --home-shadow: 0 4px 24px rgba(30, 30, 30, 0.04);
  --home-shadow-hover: 0 12px 32px rgba(30, 30, 30, 0.08);
  --home-font-head: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --home-font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home {
  overflow-x: hidden;
}

body.home #content.home-content {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
  font-family: var(--home-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--home-on-surface);
  background: var(--home-surface);
}

body.home #content.home-content .home-main,
body.home #content.home-content .home-main * {
  box-sizing: border-box;
}

body.home #content.home-content .home-main h1,
body.home #content.home-content .home-main h2,
body.home #content.home-content .home-main h3,
body.home #content.home-content .home-main p {
  margin-top: 0;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  font-weight: inherit;
}

.home-main {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.home-main .material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.home-wrap {
  width: 100%;
  max-width: var(--home-max);
  margin: 0 auto;
  padding-left: var(--home-margin-mobile);
  padding-right: var(--home-margin-mobile);
}

@media (min-width: 768px) {
  .home-wrap {
    padding-left: var(--home-margin-desktop);
    padding-right: var(--home-margin-desktop);
  }
}

/* Buttons */
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: var(--home-font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-btn:hover,
.home-btn:focus,
.home-btn:visited {
  text-decoration: none;
}

body.home #content.home-content .home-main a.home-btn--primary,
body.home #content.home-content .home-main a.home-btn--primary:hover,
body.home #content.home-content .home-main a.home-btn--primary:focus,
body.home #content.home-content .home-main a.home-btn--primary:visited,
body.home #content.home-content .home-main a.home-btn--primary:active {
  background: var(--home-primary-container);
  border-color: var(--home-primary-container);
  color: #ffffff;
}

body.home #content.home-content .home-main a.home-btn--primary:hover,
body.home #content.home-content .home-main a.home-btn--primary:focus,
body.home #content.home-content .home-main a.home-btn--primary:active {
  background: var(--home-primary);
  border-color: var(--home-primary);
  color: #ffffff;
}

body.home #content.home-content .home-main a.home-btn--ghost,
body.home #content.home-content .home-main a.home-btn--ghost:hover,
body.home #content.home-content .home-main a.home-btn--ghost:focus,
body.home #content.home-content .home-main a.home-btn--ghost:visited,
body.home #content.home-content .home-main a.home-btn--ghost:active {
  color: var(--home-on-surface-variant);
}

.home-btn--primary {
  background: var(--home-primary-container);
  color: #ffffff;
  border: 1px solid var(--home-primary-container);
  box-shadow: var(--home-shadow);
}

.home-btn--primary:hover,
.home-btn--primary:focus {
  background: var(--home-primary);
  border-color: var(--home-primary);
  color: #ffffff;
}

.home-btn--ghost {
  background: transparent;
  color: var(--home-on-surface-variant);
  border: 1px solid var(--home-on-surface-variant);
}

.home-btn--ghost:hover,
.home-btn--ghost:focus {
  background: var(--home-surface-variant);
  color: var(--home-on-surface-variant);
}

/* ========== HERO ========== */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh;
  padding: 3rem 0 var(--home-section-gap);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 40%, rgba(201, 40, 24, 0.07), transparent 70%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(19, 77, 138, 0.05), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  transition: padding-top 0.3s ease;
}

body.home.is-scrolled .home-hero {
  padding-top: 3rem;
}

.home-hero__shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.home-hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero__blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}

.home-hero__blob--left {
  top: 18%;
  left: -2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(201, 40, 24, 0.12);
  animation: home-float 6s ease-in-out infinite;
}

.home-hero__blob--right {
  right: 0;
  bottom: 18%;
  width: 22rem;
  height: 22rem;
  background: rgba(19, 77, 138, 0.08);
  animation: home-float 8s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes home-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.home-hero__inner {
  position: relative;
  z-index: 1;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gutter);
  align-items: center;
}

@media (min-width: 768px) {
  .home-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-hero__copy {
  max-width: 36rem;
}

.home-hero__title {
  margin: 0 0 2rem;
  font-family: var(--home-font-head);
  font-size: clamp(2.85rem, 6.5vw, 5.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--home-on-surface);
}

.home-hero__lead {
  margin: 0 0 2rem;
  font-family: var(--home-font-body);
  font-size: 18px;
  line-height: 28px;
  color: var(--home-on-surface-variant);
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.home-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  height: min(640px, 72vh);
}

.home-hero__glow {
  display: none;
}

.home-hero__product-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero__bottle {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.5s ease;
}

.home-hero__visual:hover .home-hero__bottle {
  transform: scale(1.02);
}

/* ========== CAPABILITIES ========== */
.home-caps {
  padding: var(--home-section-gap) 0;
  background: var(--home-on-surface);
  color: rgba(255, 255, 255, 0.92);
}

.home-caps__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .home-caps__layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
    gap: 4rem;
  }
}

.home-caps__intro {
  text-align: center;
}

@media (min-width: 992px) {
  .home-caps__intro {
    text-align: left;
  }
}

.home-caps__title {
  margin: 0 0 1.25rem;
  font-family: var(--home-font-head);
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.home-caps__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.home-caps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .home-caps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.home-cap-card {
  text-align: center;
}

.home-cap-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.home-cap-card__link:hover,
.home-cap-card__link:focus {
  text-decoration: none;
  transform: translateY(-4px);
}

.home-cap-card__media {
  width: min(100%, 200px);
  aspect-ratio: 1;
  margin: 0 auto 1.5rem;
  border: 6px solid #ffffff;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.home-cap-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cap-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--home-font-head);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.home-cap-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* ========== BLOCK SLIDER (Ballena-style) ========== */
.home-slider-section.block-slider {
  padding: var(--home-section-gap) 0;
  background: var(--home-surface-alt);
  overflow: hidden;
}

.home-slider-section__header {
  margin-bottom: 2.5rem;
}

.home-slider-section__title {
  margin: 0 0 0.5rem;
  font-family: var(--home-font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.167;
  letter-spacing: -0.01em;
  color: var(--home-on-surface);
}

.home-slider-section__sub {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--home-secondary);
}

.block-slider__container {
  padding: 0 var(--home-margin-mobile);
}

@media (min-width: 768px) {
  .block-slider__container {
    padding: 0 var(--home-margin-desktop);
  }
}

.block-slider__swiper {
  overflow: hidden;
}

.block-slider__slide {
  width: auto;
  height: auto;
}

.block-slider__card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 540px;
  border: 1px solid rgba(30, 27, 21, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--home-shadow);
}

.block-slider__title {
  margin: 0;
  padding: 1.5rem 1.35rem 1rem;
  font-family: var(--home-font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--home-on-surface);
}

.block-slider__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.75rem 1.25rem;
  min-height: 280px;
}

.block-slider__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  min-height: 240px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
}

.block-slider__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 1.25rem 1.5rem;
}

.block-slider__description {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--home-secondary);
}

.block-slider__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto;
  font-family: var(--home-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1e1b15;
  transition: color 0.2s ease;
}

.block-slider__link:hover,
.block-slider__link:focus {
  color: var(--home-primary-container);
  text-decoration: none;
}

.block-slider__link:visited {
  color: #1e1b15;
  text-decoration: none;
}

.block-slider__link:visited:hover,
.block-slider__link:visited:focus {
  color: var(--home-primary-container);
}

.block-slider__link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.block-slider__link svg circle {
  fill: #1e1b15;
  transition: fill 0.2s ease;
}

.block-slider__link svg path {
  fill: #ffffff;
}

.block-slider__link:hover svg circle,
.block-slider__link:focus svg circle,
.block-slider__link:visited:hover svg circle,
.block-slider__link:visited:focus svg circle {
  fill: var(--home-primary-container);
}

.block-slider__navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 15rem;
  margin: 2.5rem auto 0;
  border: 1px solid rgba(30, 27, 21, 0.12);
  border-radius: 100px;
}

.block-slider__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-on-surface);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.block-slider__nav-btn:hover {
  opacity: 0.6;
}

.block-slider__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.block-slider__nav-btn svg {
  width: 1.25rem;
  height: auto;
}

.block-slider__progress {
  position: relative;
  width: 6rem;
  height: 1px;
  overflow: hidden;
  background-color: rgba(30, 27, 21, 0.2);
}

.block-slider__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--home-on-surface);
  transition: width 0.2s ease;
}

@media (max-width: 767px) {
  .home-slider-section.block-slider {
    padding: 4rem 0;
  }

  .block-slider__navigation {
    margin-top: 2rem;
    gap: 1rem;
  }

  .block-slider__progress {
    width: 4rem;
  }
}

/* Theme heading overrides */
body.home #content.home-content .home-main .home-hero__title,
body.home #content.home-content .home-main .home-slider-section__title,
body.home #content.home-content .home-main .block-slider__title {
  color: #1758a2!important;
}

body.home #content.home-content .home-main .home-caps__title,
body.home #content.home-content .home-main .home-cap-card__title {
  color: #ffffff;
}

body.home #content.home-content .home-main a.home-cap-card__link,
body.home #content.home-content .home-main a.home-cap-card__link:hover,
body.home #content.home-content .home-main a.home-cap-card__link:focus,
body.home #content.home-content .home-main a.home-cap-card__link:visited {
  color: inherit;
  text-decoration: none;
}

body.home #content.home-content .home-main a.block-slider__link,
body.home #content.home-content .home-main a.block-slider__link:visited {
  color: #1e1b15;
  text-decoration: none;
}

body.home #content.home-content .home-main a.block-slider__link:hover,
body.home #content.home-content .home-main a.block-slider__link:focus,
body.home #content.home-content .home-main a.block-slider__link:visited:hover,
body.home #content.home-content .home-main a.block-slider__link:visited:focus {
  color: var(--home-primary-container);
  text-decoration: none;
}

@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .home-caps {
    padding: 4rem 0;
  }
}

@media (max-width: 767px) {
  .home-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__blob--left,
  .home-hero__blob--right,
  .home-hero__bottle,
  .home-cap-card {
    animation: none;
    transition: none;
  }
}
