/* ============================================================
   ECOVETSERVICE — Hero & Homepage Sections  v2
   ============================================================ */

/* ════════════════════════════════════════════
   HERO — dark navy with strong real photo
   ════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.35;
  filter: saturate(0.5) contrast(1.1);
}

.hero__bg-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,33,55,0.95) 38%, rgba(13,33,55,0.5) 100%),
    linear-gradient(to bottom, rgba(13,33,55,0.2) 0%, rgba(13,33,55,0.75) 100%);
}

/* Subtle teal glow right side */
.hero__bg-glow {
  position: absolute;
  right: -100px; top: 30%;
  width: 480px; height: 480px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(10,122,106,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__bg-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to top, var(--hero-bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 1;
  padding-top: calc(var(--header-h) + clamp(var(--sp-12), 5vw, var(--sp-20)));
  padding-bottom: clamp(var(--sp-16), 8vw, var(--sp-24));
}

/* Eyebrow badge */
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(10,122,106,0.15);
  border: 1px solid rgba(10,122,106,0.35);
  border-radius: var(--radius-full);
  padding: 6px var(--sp-4);
  margin-bottom: var(--sp-7);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-teal-light);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}
.hero__badge-dot {
  width: 5px; height: 5px; border-radius: var(--radius-full);
  background: var(--color-teal-light);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Main headline — company name as H1 */
.hero__company {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--sp-3);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.35s forwards;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(var(--fs-sm), 1.2vw, var(--fs-base));
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-8);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.45s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.55s forwards;
}
.hero__title .hl-teal {
  color: var(--color-teal-light);
}
.hero__title .hl-underline {
  position: relative; display: inline-block;
}
.hero__title .hl-underline::after {
  content: '';
  position: absolute; bottom: 2px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  opacity: 0.5;
}

.hero__subtitle {
  font-size: clamp(var(--fs-base), 1.6vw, var(--fs-md));
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
  max-width: 580px;
  margin-bottom: var(--sp-10);
  font-weight: var(--fw-light);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.65s forwards;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-16);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.75s forwards;
}

.hero__stats {
  display: flex; flex-wrap: wrap; gap: var(--sp-10);
  padding-top: var(--sp-10);
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: fadeSlideUp 0.9s var(--ease-out) 0.9s forwards;
}
.hero-stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1; letter-spacing: var(--ls-tight);
}
.hero-stat__value em { font-style: normal; color: var(--color-gold); }
.hero-stat__label {
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: var(--sp-1);
}

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

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: var(--sp-8); left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  z-index: 1;
  opacity: 0; animation: fadeSlideUp 1s var(--ease-out) 1.3s forwards;
}
.hero__scroll-text {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.hero__scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, rgba(200,151,46,0.5), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5) translateY(8px); opacity: 0.3; }
}

/* ════════════════════════════════════════════
   SERVICES STRIP — light bg
   ════════════════════════════════════════════ */
.services-strip {
  background: var(--color-white);
  border-bottom: var(--border-thin);
  box-shadow: 0 4px 20px rgba(13,33,55,0.04);
}
.services-strip__inner { display: flex; }
.service-pill {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-6);
  border-right: var(--border-thin);
  flex: 1; min-width: 0;
  transition: background var(--dur-fast);
}
.service-pill:hover { background: var(--color-grey-50); }
.service-pill:last-child { border-right: none; }
.service-pill__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(10,122,106,0.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-pill__icon svg { width: 18px; height: 18px; color: var(--color-teal); }
.service-pill__text {
  font-size: var(--fs-sm); font-weight: var(--fw-semi);
  color: var(--color-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 768px) {
  .services-strip__inner { flex-wrap: wrap; }
  .service-pill { flex: 1 1 calc(50% - 1px); border-right: var(--border-thin); border-bottom: var(--border-thin); }
  .service-pill:nth-child(even) { border-right: none; }
}

/* ════════════════════════════════════════════
   ABOUT PREVIEW — light section
   ════════════════════════════════════════════ */
.about-preview {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-10), 6vw, var(--sp-20));
  align-items: center;
}
.about-preview__visual { position: relative; }
.about-preview__img-wrap {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}
.about-preview__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s linear;
}
.about-preview__img-wrap:hover .about-preview__img { transform: scale(1.04); }
.about-preview__badge {
  position: absolute; bottom: var(--sp-6); left: var(--sp-6);
  background: rgba(13,33,55,0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid rgba(255,255,255,0.1);
  min-width: 150px;
}
.about-preview__badge-val {
  font-family: var(--font-display);
  font-size: var(--fs-2xl); font-weight: var(--fw-bold);
  color: var(--color-gold); line-height: 1;
}
.about-preview__badge-lbl {
  font-size: var(--fs-xs); letter-spacing: var(--ls-wider);
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: var(--sp-1);
}
.about-preview__content { max-width: 520px; }
.about-preview__text {
  color: var(--color-text-muted); margin-bottom: var(--sp-6); font-size: var(--fs-base);
}
.about-preview__list { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.about-preview__item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.about-preview__item-dot {
  width: 20px; height: 20px; border-radius: var(--radius-full);
  background: rgba(10,122,106,0.08);
  border: 1.5px solid rgba(10,122,106,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.about-preview__item-dot::after {
  content: ''; width: 6px; height: 6px;
  border-radius: var(--radius-full); background: var(--color-teal);
}
.about-preview__item-text { font-size: var(--fs-sm); color: var(--color-text); line-height: var(--lh-normal); }
@media (max-width: 900px) {
  .about-preview { grid-template-columns: 1fr; gap: var(--sp-10); }
  .about-preview__content { max-width: 100%; }
}

/* ════════════════════════════════════════════
   PRODUCTS GRID
   ════════════════════════════════════════════ */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--color-white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  cursor: pointer;
  transition: all var(--dur-mid) var(--ease-out);
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
  transform: scaleX(0); transition: transform var(--dur-mid) var(--ease-out);
  transform-origin: left;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-grey-200); transform: translateY(-3px); }
.product-card:hover::before { transform: scaleX(1); }
.product-card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: rgba(10,122,106,0.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  transition: background var(--dur-fast);
}
.product-card:hover .product-card__icon { background: rgba(10,122,106,0.12); }
.product-card__icon svg { width: 22px; height: 22px; color: var(--color-teal); }
.product-card__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--fw-semi); color: var(--color-navy); margin-bottom: var(--sp-2); }
.product-card__desc { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-relaxed); }

/* ════════════════════════════════════════════
   MARKET SECTION — dark navy
   ════════════════════════════════════════════ */
.market-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--sp-10), 6vw, var(--sp-20)); align-items: start;
}
.market-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.market-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md); padding: var(--sp-6);
  transition: background var(--dur-fast);
}
.market-stat:hover { background: rgba(255,255,255,0.08); }
.market-stat__val {
  font-family: var(--font-display); font-size: var(--fs-3xl);
  font-weight: var(--fw-bold); color: var(--color-gold); line-height: 1;
}
.market-stat__lbl {
  font-size: var(--fs-xs); letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: var(--sp-2);
}
.market-features { display: flex; flex-direction: column; gap: var(--sp-6); }
.market-feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.market-feature__num {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider); color: var(--color-gold);
  flex-shrink: 0; margin-top: 3px; width: 24px;
}
.market-feature__content h4 {
  font-family: var(--font-body); font-size: var(--fs-base);
  font-weight: var(--fw-semi); color: var(--color-white); margin-bottom: var(--sp-1);
}
.market-feature__content p { font-size: var(--fs-sm); color: rgba(255,255,255,0.5); line-height: var(--lh-relaxed); }
@media (max-width: 900px) { .market-grid { grid-template-columns: 1fr; gap: var(--sp-10); } }

/* ════════════════════════════════════════════
   PROCESS STEPS
   ════════════════════════════════════════════ */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6); counter-reset: step;
}
@media (max-width: 768px) { .process-steps { grid-template-columns: 1fr; } }
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 20px;
  left: calc(100% + var(--sp-3));
  width: calc(var(--sp-6) - var(--sp-3));
  height: 1px; border-top: 2px dashed var(--color-grey-200);
}
@media (max-width: 768px) { .process-step:not(:last-child)::after { display: none; } }
.process-step__num {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest); color: var(--color-teal); margin-bottom: var(--sp-3);
}
.process-step__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: var(--fw-semi); color: var(--color-navy); margin-bottom: var(--sp-2); }
.process-step__text { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-relaxed); }

/* ════════════════════════════════════════════
   CTA BAND
   ════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-mid) 60%, #0f2d48 100%);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(10,122,106,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-8); flex-wrap: wrap;
}
.cta-band__text h2 {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-bold); color: var(--color-white); margin-bottom: var(--sp-2);
}
.cta-band__text p { color: rgba(255,255,255,0.5); max-width: 480px; }
.cta-band__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; flex-shrink: 0; }

/* ════════════════════════════════════════════
   SWIPER / PARTNERS
   ════════════════════════════════════════════ */
.partners-swiper { padding-bottom: var(--sp-10) !important; }
.partner-slide {
  background: var(--color-white); border: var(--border-thin);
  border-radius: var(--radius-md); padding: var(--sp-8);
  height: auto; display: flex; flex-direction: column; gap: var(--sp-4);
}
.swiper-pagination-bullet { background: var(--color-navy) !important; opacity: 0.15 !important; }
.swiper-pagination-bullet-active { background: var(--color-teal) !important; opacity: 1 !important; }

/* ── Homepage 6-card responsive fix ── */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 540px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── header--light never flips dark ── */
.header--light.header--scrolled {
  background: rgba(255,255,255,0.97) !important;
}
.header--light.header--scrolled .header__logo-name { color: var(--color-navy) !important; }
.header--light.header--scrolled .nav-link { color: var(--color-grey-600) !important; }
.header--light.header--scrolled .hamburger span { background: var(--color-navy) !important; }

/* ════════════════════════════════════════════
   GLOBAL ADAPTIVE FIXES
   ════════════════════════════════════════════ */

/* ── Inline 2-column grids → 1 column on tablets/mobile ── */
@media (max-width: 768px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Hero actions: stack buttons on mobile ── */
@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    gap: var(--sp-3);
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Hero: smaller title and tighter stats on very small screens ── */
@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  .hero__stats {
    gap: var(--sp-6);
  }
  .hero-stat__value {
    font-size: var(--fs-2xl);
  }
}

/* ── Services strip: 1 column on very small screens ── */
@media (max-width: 480px) {
  .service-pill {
    flex: 1 1 100%;
    border-right: none;
  }
  .service-pill:last-child {
    border-bottom: none;
  }
  .service-pill__text {
    white-space: normal;
  }
}

/* ── CTA band: stack on mobile ── */
@media (max-width: 640px) {
  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-band__actions {
    width: 100%;
    justify-content: center;
  }
}

/* ── About preview: max-height for image on very small screens ── */
@media (max-width: 480px) {
  .about-preview__img-wrap {
    max-height: 260px;
  }
}
