/* ==========================================================================
   Union Fiber Industrial Company — Homepage-only styles
   Modern layered hero, glass stat cards, SVG icon system, refined motion.
   Loaded in addition to css/style.css (does not replace it).
   ========================================================================== */

/* Scroll animations are now handled by the AOS library (data-aos attributes),
   loaded globally via header.php / footer.php. */

/* ---------- Hero Slider ---------- */
.hero-slider {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  background: #001839;
  isolation: isolate;
}
.hero-slider__slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.hero-slide.is-active .hero-slide__bg { transform: scale(1); }

.hero-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,17,40,.82) 0%, rgba(0,30,60,.52) 45%, rgba(0,43,100,.15) 100%);
}

.hero-slide__inner {
  position: relative; z-index: 2;
  color: #fff;
  max-width: 720px;
}
.hero-slide__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffd9dc;
  margin-bottom: 22px;
}
.hero-slide__eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 4px rgba(255,0,19,.28);
  flex-shrink: 0;
}
.hero-slide h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.hero-slide h1 .accent { color: #ed1b23; }
.hero-slide__lead { font-size: 1.1rem; color: #c3d1ea; max-width: 560px; margin-bottom: 30px; }
.hero-slide__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.color-red{color: #ed1b23};

/* Trust bar pinned above bottom nav */
.hero-slider__trust {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: rgba(0,10,26,.55);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-slider__trust-inner { display: flex; gap: 28px; flex-wrap: wrap; padding: 16px 24px; }
.hero-slider__trust-item { display: flex; align-items: center; gap: 10px; color: #cfdcf3; font-size: .85rem; font-weight: 500; }
.hero-slider__trust-item svg { width: 18px; height: 18px; color: #4ee0a1; flex-shrink: 0; }

/* Arrows */
.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.hero-slider__arrow:hover { background: var(--color-red); border-color: var(--color-red); }
.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }

/* Numbered slide navigation */
.hero-slider__nav {
  position: absolute; z-index: 4;
  right: 28px; bottom: 76px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-slider__nav-item {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
  font-size: .72rem; font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.hero-slider__nav-item:hover { border-color: #fff; color: #fff; }
.hero-slider__nav-item.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

@media (max-width: 768px) {
  .hero-slider { height: auto; min-height: 100vh; }
  .hero-slide { position: relative; padding: 140px 0 220px; }
  .hero-slide:not(.is-active) { display: none; }
  .hero-slider__nav { right: 16px; bottom: 92px; }
  .hero-slider__arrow { display: none; }
  .hero-slider__trust-inner { padding: 14px 20px; gap: 16px; }
}

/* ---------- Stat strip (glass cards overlapping hero) ---------- */
.home-stats {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}
.home-stats .container {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 48px -18px rgba(0,43,100,.25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  overflow: hidden;
}
.home-stat {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid var(--color-border);
  position: relative;
}
.home-stat:last-child { border-right: none; }
.home-stat strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: 6px;
}
.home-stat strong .unit { color: var(--color-red); }
.home-stat span { font-size: .82rem; color: var(--color-text-muted); font-weight: 500; }

/* ---------- Section framing ---------- */
.home-section { padding: 96px 0; }
.home-section--tint { background: linear-gradient(180deg, #f7f9fc 0%, #eef0f3 100%); }
.home-section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.home-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-red); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 14px;
}
.home-eyebrow::before, .home-eyebrow::after { content: ''; width: 22px; height: 2px; background: var(--color-red); border-radius: 2px; }
.home-section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.home-section-head p { color: var(--color-text-muted); font-size: 1.08rem; }

/* ---------- Product cards (redesigned) ---------- */
.home-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.home-products-grid--full { grid-template-columns: repeat(3, 1fr); }

/* Product tile — image top, white body, pink pill tag, red "best for" line */
.product-tile {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(0,43,100,.16);
  transition: transform .3s cubic-bezier(.22,.9,.32,1), box-shadow .3s ease;
}
.product-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -14px rgba(0,43,100,.28); }
.product-tile__media { aspect-ratio: 3/2; overflow: hidden; }
.product-tile__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22,.9,.32,1);
}
.product-tile:hover .product-tile__media img { transform: scale(1.06); }
.product-tile__body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-tile__tag {
  display: inline-block;
  align-self: flex-start;
  background: #ffeceb;
  color: var(--color-red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.product-tile__body h3 { color: var(--color-navy); font-size: 1.15rem; margin-bottom: 8px; line-height: 1.3; }
.product-tile__best-for { color: var(--color-red); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.product-tile__body > p:not(.product-tile__best-for) { color: var(--color-text-muted); font-size: .92rem; line-height: 1.6; margin-bottom: 18px; flex: 1; }
.product-tile__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--color-red);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.product-tile__link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.product-tile:hover .product-tile__link svg { transform: translateX(4px); }

.home-view-all { text-align: center; margin-top: 44px; }

/* ---------- Certification cards (accent-border redesign) ---------- */
.home-certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.home-cert-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px 24px;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-red);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.home-cert-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -12px rgba(0,43,100,.18); }
.home-cert-card .icon-badge {
  width: 54px; height: 54px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.home-cert-card .icon-badge svg { width: 26px; height: 26px; }
.home-cert-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--color-red); }
.home-cert-card p { color: var(--color-text-muted); font-size: .9rem; margin-bottom: 0; }

/* ---------- Industries (split rows) ---------- */
.home-industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.home-industry-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  padding: 28px 22px;
  text-align: left;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.home-industry-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -12px rgba(0,43,100,.15); border-color: transparent; }
.home-industry-card .icon-badge {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--color-grey); color: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background .3s ease, color .3s ease;
}
.home-industry-card .icon-badge svg { width: 24px; height: 24px; }
.home-industry-card:hover .icon-badge { background: var(--color-red); color: #fff; }
.home-industry-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.home-industry-card p { color: var(--color-text-muted); font-size: .88rem; margin-bottom: 0; }

/* ---------- Clients strip (redesigned) ---------- */
.home-clients { padding: 64px 0; background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.home-clients-head { text-align: center; margin-bottom: 36px; }
.home-clients-head span { color: var(--color-text-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.home-clients-grid { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.home-clients-grid img { height: 60px; width: auto; object-fit: contain; filter: grayscale(45%) opacity(.75); transition: filter .3s ease, transform .3s ease; }
.home-clients-grid img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.06); }

/* ---------- Final CTA (redesigned: full-bleed layered photo + gradient) ---------- */
.home-section--flush { padding: 0; }
.home-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 88px max(56px, calc((100% - var(--max-width)) / 2 + 56px));
  color: #fff;
}
.home-cta__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.home-cta__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(0,17,40,.94) 0%, rgba(0,43,100,.90) 45%, rgba(255,0,19,.62) 100%);
}
.home-cta__grid-overlay {
  position: absolute; inset: 0; z-index: 1; opacity: .07;
  background-image:
    linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 100% at 30% 30%, black, transparent 75%);
}
.home-cta__content { position: relative; z-index: 2; max-width: 620px; }
.home-cta__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em;
  color: #ffd9dc;
  margin-bottom: 20px;
}
.home-cta__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ee0a1;
  box-shadow: 0 0 0 4px rgba(78,224,161,.28);
  flex-shrink: 0;
}
.home-cta h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; line-height: 1.2; }
.home-cta p { color: #d7e0f2; margin-bottom: 24px; font-size: 1.05rem; max-width: 540px; }
.home-cta__checks { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; }
.home-cta__checks li { display: flex; align-items: center; gap: 10px; color: #e7ecf7; font-size: .92rem; font-weight: 500; }
.home-cta__checks li svg { width: 18px; height: 18px; color: #4ee0a1; flex-shrink: 0; }
.home-cta__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.home-cta__phone {
  display: flex; align-items: center; gap: 12px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  transition: var(--transition);
}
.home-cta__phone:hover { background: rgba(255,255,255,.16); color: #fff; }
.home-cta__phone .icon-badge { width: 38px; height: 38px; border-radius: 50%; background: var(--color-red); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.home-cta__phone .icon-badge svg { width: 18px; height: 18px; }
.home-cta__phone span:last-child { font-size: .82rem; line-height: 1.35; color: #d7e0f2; }
.home-cta__phone strong { display: block; font-size: .78rem; font-weight: 600; color: #cfe0ff; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .home-stats .container { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .home-stat:nth-child(2) { border-right: none; }
  .home-stat { border-bottom: 1px solid var(--color-border); }
  .home-products-grid, .home-certs-grid, .home-industries-grid, .home-products-grid--full { grid-template-columns: repeat(2, 1fr); }
  .home-cta { padding: 48px 32px; }
  .home-cta__content { max-width: 100%; }
  .home-cta__actions { justify-content: center; }
}

@media (max-width: 640px) {
  .home-products-grid, .home-certs-grid, .home-industries-grid, .home-products-grid--full { grid-template-columns: 1fr; }
  .home-stats .container { grid-template-columns: 1fr 1fr; }
  .home-clients-grid { gap: 28px; }
  .home-section { padding: 64px 0; }
}
