/* ==========================================================================
   Homepage — bespoke layout for The Aspire Biozymes / Fiber Ingredients
   Brown theme, DIN-style typography. Distinct from the shared component layout.
   ========================================================================== */

.home {
  --home-maxw: 76rem;
  --home-gap: clamp(20px, 3vw, 40px);
  --home-pad: clamp(56px, 7vw, 120px);
  --home-radius: 16px;
  --home-line: rgba(56, 27, 5, 0.1);
}

.home-shell {
  max-width: var(--home-maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.home-section {
  padding-block: var(--home-pad);
}

.home-section--alt {
  background: var(--dlw-color-bg);
}

.home-section--tint {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(108, 61, 28, 0.06) 0%, transparent 55%),
    var(--dlw-color--white);
}

/* Section headings ------------------------------------------------------- */
.home-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dlw-color--secondary);
  margin: 0 0 14px;
}

.home-head {
  max-width: 46rem;
  margin: 0 0 clamp(32px, 4vw, 56px);
}

.home-head--center {
  margin-inline: auto;
  text-align: center;
}

.home-head h2 {
  margin: 0;
  color: var(--dlw-color--primary);
}

.home-head p {
  margin: 16px 0 0;
  color: #3f3a33;
  max-width: 42rem;
}

.home-head--center p {
  margin-inline: auto;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.home-hero {
  position: relative;
  min-height: clamp(560px, 82vh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-hero__media video,
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(42, 20, 4, 0.86) 0%, rgba(56, 27, 5, 0.62) 45%, rgba(108, 61, 28, 0.3) 100%),
    linear-gradient(0deg, rgba(42, 20, 4, 0.55) 0%, transparent 45%);
}

.home-hero__inner {
  max-width: var(--home-maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  padding-block: clamp(120px, 16vh, 200px) clamp(48px, 8vh, 90px);
  width: 100%;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 20px;
}

.home-hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.home-hero h1 {
  --dlw-heading--color: #fff;
  color: #fff;
  max-width: 20ch;
  margin: 0;
}

.home-hero__sub {
  margin: 22px 0 0;
  max-width: 40rem;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Hero buttons — override so the outline reads on dark video */
.home-hero__actions .dlw-button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.home-hero__actions .dlw-button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.home-hero__stat b {
  display: block;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.25rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
}

.home-hero__stat span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* ==========================================================================
   Icon feature cards (Who We Are / Why Choose Us)
   ========================================================================== */
.home-featgrid {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 40rem) {
  .home-featgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .home-featgrid { grid-template-columns: repeat(4, 1fr); }
}

.home-featcard {
  background: var(--dlw-color--white);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-featcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(56, 27, 5, 0.1);
  border-color: transparent;
}

.home-section--alt .home-featcard {
  background: var(--dlw-color--white);
}

.home-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(108, 61, 28, 0.12), rgba(134, 124, 102, 0.12));
  color: var(--dlw-color--primary);
  margin-bottom: 20px;
}

.home-icon svg { width: 26px; height: 26px; }

.home-featcard h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #2a1404;
}

.home-featcard p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #55504a;
}

/* ==========================================================================
   3. Fiber solution product cards
   ========================================================================== */
.home-products {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 40rem) {
  .home-products { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .home-products { grid-template-columns: repeat(4, 1fr); }
  .home-products--2 { grid-template-columns: repeat(2, 1fr); }
  .home-products--3 { grid-template-columns: repeat(3, 1fr); }
}

.home-product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--dlw-color--white);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-product::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--dlw-color--primary), var(--dlw-color--secondary));
}

.home-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(56, 27, 5, 0.12);
}

.home-product__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dlw-color--secondary);
  margin-bottom: 10px;
}

.home-product h3 {
  font-size: 1.375rem;
  margin: 0 0 10px;
  color: #2a1404;
}

.home-product p {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #55504a;
  flex: 1;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dlw-color--primary);
}

.home-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.home-link:hover svg { transform: translateX(4px); }

.home-actions-center {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
}

/* ==========================================================================
   4. Industries — label tiles
   ========================================================================== */
.home-industries {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 48rem) {
  .home-industries { grid-template-columns: repeat(4, 1fr); }
}

.home-industry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--dlw-color--white);
  border: 1px solid var(--home-line);
  color: #2a1404;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-industry:hover {
  background: var(--dlw-color--primary);
  color: #fff;
  transform: translateY(-3px);
}

.home-industry svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--dlw-color--secondary);
  transition: color 0.2s ease;
}

.home-industry:hover svg { color: rgba(255, 255, 255, 0.9); }

/* ==========================================================================
   6. Innovation Center — split feature
   ========================================================================== */
.home-split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 64rem) {
  .home-split { grid-template-columns: 1.05fr 0.95fr; }
}

.home-split__media {
  position: relative;
  border-radius: var(--home-radius);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(135deg, var(--dlw-color--primary), var(--dlw-color--primary-dark--20));
}

.home-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.55;
}

.home-split__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  color: #fff;
}

.home-split__badge b {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
}

.home-split__badge span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.home-split__list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin: 28px 0 32px;
}

.home-split__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: #2a1404;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--dlw-color-bg);
}

.home-split__list svg { width: 18px; height: 18px; color: var(--dlw-color--primary); flex-shrink: 0; }

/* ==========================================================================
   7. Knowledge Hub — article cards
   ========================================================================== */
.home-articles {
  display: grid;
  gap: var(--home-gap);
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 40rem) {
  .home-articles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 64rem) {
  .home-articles { grid-template-columns: repeat(4, 1fr); }
}

.home-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--home-radius);
  background: var(--dlw-color--white);
  border: 1px solid var(--home-line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(56, 27, 5, 0.1);
}

.home-article__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--dlw-color--secondary);
}

.home-article h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0;
  color: #2a1404;
  flex: 1;
}

/* ==========================================================================
   8. CTA band
   ========================================================================== */
.home-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(134, 124, 102, 0.35) 0%, transparent 50%),
    linear-gradient(120deg, var(--dlw-color--primary-dark--20) 0%, var(--dlw-color--primary) 100%);
}

.home-cta__inner {
  max-width: var(--home-maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  padding-block: clamp(56px, 7vw, 100px);
  text-align: center;
}

.home-cta h2 {
  --dlw-heading--color: #fff;
  color: #fff;
  margin: 0 auto;
  max-width: 24ch;
}

.home-cta p {
  margin: 18px auto 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.home-cta__actions .dlw-button-primary {
  background: #fff;
  color: var(--dlw-color--primary);
}

.home-cta__actions .dlw-button-primary:hover {
  background: var(--dlw-color-bg);
  color: var(--dlw-color--primary-dark--20);
}

.home-cta__actions .dlw-button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.home-cta__actions .dlw-button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
