/* ============================================================
   AQUATEC — Home sections (prod parity 1:1, v2 з FORCE LIGHT)
   Сесія 9, 13.05.2026
   ============================================================ */

@font-face {
  font-family: Bebas;
  src: url(../fonts/BebasNeue_bold.ttf);
  font-display: swap;
}
@font-face {
  font-family: Bebasregular;
  src: url(../fonts/bebasneueregular.ttf);
  font-display: swap;
}

:root {
  --blue-color: #00aeee;
  --orange-color: #f58025;
  --green-color: #01b1b0;
  --grey-color: #76777b;
  --theme_width: 1366px;
}

/* === Home base — tokens-driven (light + dark) === */
body.aquatec-site.home {
  background: var(--aq-bg);
}
body.aquatec-site.home #start_wrapper,
body.aquatec-site.home #start,
body.aquatec-site.home #lenta,
body.aquatec-site.home #counter_wrapper {
  background: var(--aq-bg);
  color: var(--aq-text);
}

/* === START (Slovakia) === */
#start_wrapper { width: 100%; float: left; }

#start {
  width: calc(var(--theme_width) * 0.7);
  max-width: 100%;
  margin: 60px auto 0 auto;
  text-align: center;
  padding: 20px 0;
  box-sizing: border-box;
}

#start h2 {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 20px 0;
  font-family: Bebas;
  font-weight: 500;
  color: var(--aq-text) !important;
  font-size: 48px !important;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15) !important;
  line-height: 60px;
}

/* Span наслідує розмір H2 (на проді обидва 48px) */
#start h2 span {
  color: red;
  font-style: normal;
  display: block;
}

/* === INTRO (Banner з черепахою) === */
#intro {
  padding: 50px 0 0 0;
  float: left;
  width: 100%;
  margin: 0 auto 40px auto;
  background: url(../img/corner_green.svg) no-repeat bottom / cover;
  height: 360px !important;
  position: relative;
}

#intro > div {
  padding-top: 50px;
  margin: 0 auto;
  width: calc(var(--theme_width) * 0.7);
  max-width: 100%;
  box-sizing: border-box;
}

#intro > div p {
  box-sizing: border-box;
  display: block;
  width: 60%;
  float: left;
  font-size: 20px;
  line-height: 30px;
  color: #fff;
  margin: 0;
}

#intro > div img {
  margin-top: -50px;
  float: left;
  display: block;
  width: 40%;
}

/* === LENTA === */
#lenta {
  padding: 50px 0;
  height: auto;
  min-height: 1200px;
  width: 100%;
  float: left;
}

#lenta > div {
  width: var(--theme_width);
  max-width: 100%;
  margin: 0 auto;
}

#lenta figure {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 600px;
  display: flex;
  box-sizing: border-box;
  padding: 20px;
  align-items: center;
  margin: 0;
}

#lenta figure > div {
  width: 60%;
  z-index: 10;
  box-sizing: border-box;
  padding: 20px;
  position: absolute;
}

#lenta figure > div .img_small {
  width: 100%;
  filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
/* === No-wrapper reset для продуктових картинок (1-в-1 з прод) === */
#lenta figure,
#lenta figure > div,
#lenta figure > div > a,
#lenta figure > div img {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  filter: none !important;
}
#lenta figure > div { padding: 0 !important; }

#lenta figure figcaption {
  position: absolute;
  z-index: 9;
  width: 40%;
  box-sizing: border-box;
  text-align: left;
  padding: 20px 20px 20px 60px;
  color: #525252 !important;
  font-size: 20px;
  line-height: 30px;
  font-family: Manrope, sans-serif;
}

#lenta figure figcaption span {
  text-align: left;
  font-weight: 700;
  display: block;
  width: 100%;
  font-size: 36px;
  line-height: 40px;
  margin: 15px 0;
  color: var(--aq-text) !important;
  font-family: Manrope, sans-serif;
}

#lenta figure:nth-child(odd) > div { left: 0; }
#lenta figure:nth-child(odd) figcaption { right: 0; }
#lenta figure:nth-child(even) > div { right: 0; }
#lenta figure:nth-child(even) figcaption { left: 0; }

/* Кнопка "Подробнее" — Manrope, нейоморф білий, force light */
#lenta figure figcaption a {
  margin-top: 40px;
  display: inline-block;
  font-family: Manrope, sans-serif !important;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--blue-color) !important;
  background: #fff !important;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 8px 8px 20px rgba(120, 137, 182, 0.4),
              -6px -6px 16px rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  text-transform: uppercase;
}

#lenta figure figcaption a:hover {
  box-shadow: 12px 12px 28px rgba(120, 137, 182, 0.55),
              -8px -8px 20px rgba(255, 255, 255, 1);
  transform: translateY(-3px);
}

/* === COUNTER WRAPPER (з drop-icon + заголовком) === */
#counter_wrapper {
  width: 100%;
  padding: 80px 0 100px 0;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  float: left;
}

/* Заголовок "ФАКТЫ про бренд" зверху */
.counter-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
}

.counter-heading img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

#counter_wrapper #counter {
  width: calc(var(--theme_width) * 0.8);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 1%;
}

#counter_wrapper #counter_liters,
#counter_wrapper #counter_countries,
#counter_wrapper #counter_years {
  width: 33%;
  padding: 20px 10px;
  box-sizing: border-box;
}

#counter_wrapper #counter_countries {
  border-right: 1px solid #cdcdcd;
  border-left: 1px solid #cdcdcd;
}

#counter_wrapper .digit {
  text-align: center;
  font-weight: bold;
  font-size: 72px;
  font-family: Bebasregular;
  color: var(--orange-color) !important;
  line-height: 1;
  text-shadow: 0 4px 8px rgba(245, 128, 37, 0.2);
}

#counter_wrapper .units {
  margin-top: 20px;
  line-height: 1.2;
  font-size: 22px;
  text-transform: capitalize;
  text-align: center;
  font-weight: bold;
  color: var(--aq-text) !important;
  font-family: Manrope, sans-serif;
}

#counter_wrapper .desc {
  margin-top: 26px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--grey-color) !important;
  font-family: Manrope, sans-serif;
}

/* === NEWS (інверсний banner) === */
#news {
  position: relative;
  width: 100%;
  padding: 80px 0 100px 0;
  display: block;
  clear: both;
  isolation: isolate;
  background: #fff !important;
}

#news::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../img/corner_green.svg) no-repeat bottom / cover;
  transform: scale(-1, -1);
}
.home-shadow {
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom,
    rgba(155, 155, 160, 0.85) 0%,
    rgba(185, 185, 190, 0.50) 35%,
    rgba(215, 215, 218, 0.18) 70%,
    transparent 100%);
  pointer-events: none;
  margin-bottom: 50px;
}

#news h2 {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 40px 0;
  font-family: Bebas;
  font-weight: 500;
  color: #fff !important;
  font-size: 48px !important;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15) !important;
  line-height: 60px;
  text-transform: uppercase;
}

.news-carousel-container {
  position: relative;
  max-width: var(--theme_width);
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

.news-carousel__viewport {
  overflow: hidden;
  width: 100%;
  padding: 20px 0 80px 0 !important;
  margin: -20px 0 -80px 0 !important;
}

.news-carousel__track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-stub__card {
  flex: 0 0 calc((100% - 40px) / 3);
  box-sizing: border-box;
  background: var(--aq-card-bg, #ffffff) !important;
  border: 1px solid var(--aq-card-border, #eef2f5) !important;
  border-radius: 20px !important;
  padding: 20px !important;
  min-height: 350px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.news-stub__card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), 0 8px 18px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--aq-blue, #00aeee) !important;
}

.news-stub__title {
  font-family: var(--font-base, "Manrope"), sans-serif !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: var(--aq-text, #1b2935) !important;
  text-shadow: none !important;
  margin: 0 0 16px 0 !important;
  text-align: center !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 48px !important;
}

.news-stub__image-wrap {
  width: 100% !important;
  height: 230px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  position: relative !important;
}

.news-stub__image-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.news-stub__card:hover .news-stub__image-wrap img {
  transform: scale(1.03) !important;
}

.news-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
}

.news-carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.news-carousel__arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.news-carousel__arrow--prev {
  left: 8px;
}

.news-carousel__arrow--next {
  right: 8px;
}

.news-stub__all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 40px;
  border: 2px solid #fff;
  border-radius: 999px;
  transition: all 0.3s;
  margin: 40px auto 0;
}

.news-stub__all-link:hover {
  background: #fff;
  color: var(--green-color);
}

/* === MOBILE === */
@media (max-width: 602px) {
  #start { padding: 10px 2% 5px; margin-top: 40px !important; }
  #start h2 { font-size: 32px !important; line-height: 36px; margin-bottom: 5px; }
  #intro { width: 100%; padding: 20px 2% 60px 2%; box-sizing: border-box; height: auto !important; }
  #intro > div { padding: 0 !important; width: 100%; }
  #intro > div img { width: 50%; margin: 0 auto; float: none; }
  #intro > div p { width: 100%; font-size: 18px; }
  #lenta { min-height: auto; }
  #lenta > div { width: 100%; }
  #lenta figure { display: block; padding: 0 4%; min-height: auto; margin-bottom: 30px; }
  #lenta figure > div { padding: 0; width: 100%; position: relative !important; }
  #lenta figure figcaption { padding: 20px 0; position: relative !important; width: 100%; }
  #lenta figure figcaption span { font-size: 26px; line-height: 32px; }
  #counter_wrapper { padding: 40px 0; }
  #counter_wrapper #counter { flex-direction: column; gap: 0; }
  #counter_wrapper #counter_liters,
  #counter_wrapper #counter_countries,
  #counter_wrapper #counter_years { width: 100%; padding: 20px 0; }
  #counter_wrapper #counter_countries {
    border-top: 1px solid #cdcdcd;
    border-bottom: 1px solid #cdcdcd;
    border-right: none;
    border-left: none;
  }
  #counter_wrapper .digit { font-size: 56px; }
  .counter-heading img { width: 180px; }
  #news h2 { font-size: 32px !important; line-height: 38px; }
  .news-carousel-container {
    padding: 0 40px;
  }
  .news-carousel__track {
    gap: 0px;
  }
  .news-stub__card {
    flex: 0 0 100%;
    min-height: 180px !important;
  }
  .news-carousel__arrow {
    width: 36px;
    height: 36px;
  }
  .news-carousel__arrow svg {
    width: 14px;
    height: 14px;
  }
  .news-carousel__arrow--prev {
    left: 0px;
  }
  .news-carousel__arrow--next {
    right: 0px;
  }
}

@media (min-width: 603px) and (max-width: 1199px) {
  #start h2 { font-size: 36px !important; line-height: 48px; }
}

/* === Hero: overlay прибрано за запитом === */
.hero__overlay { background: transparent !important; }


/* ============================================================
   === DARK THEME — home page targeted overrides ===
   Iter 16a (16 May 2026)
   Strategy: invert ONLY pure-white sections.
   Preserved white (intentional): #intro (turtle banner),
   #news (inverted banner), #lenta CTA pill (neumorph — dark shadow below).
   ============================================================ */

/* Token uplift to AKA canon (master #0d1419 was too black per Vasyl pick) */
html[data-theme="dark"] body.aquatec-site.home {
  --aq-bg: #262e3a;
  --aq-card-bg: #2d3748;
  --aq-text-muted: #a3b2c2;
  background-color: var(--aq-bg) !important;
}

/* Slovakia */
html[data-theme="dark"] body.aquatec-site.home #start_wrapper,
html[data-theme="dark"] body.aquatec-site.home #start {
  background: var(--aq-bg) !important;
}

/* Lenta (product strip) */
html[data-theme="dark"] body.aquatec-site.home #lenta {
  background: var(--aq-bg) !important;
}
html[data-theme="dark"] body.aquatec-site.home #lenta figure figcaption {
  color: var(--aq-text-muted) !important;
}
html[data-theme="dark"] body.aquatec-site.home #lenta figure figcaption span {
  color: var(--aq-text) !important;
}

/* Lenta CTA pill — dark neumorph shadow variant */
html[data-theme="dark"] body.aquatec-site.home #lenta figure figcaption a {
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.55),
    -4px -4px 12px rgba(255, 255, 255, 0.04) !important;
}
html[data-theme="dark"] body.aquatec-site.home #lenta figure figcaption a:hover {
  box-shadow:
    12px 12px 28px rgba(0, 0, 0, 0.70),
    -6px -6px 16px rgba(255, 255, 255, 0.06) !important;
}

/* Counter */
html[data-theme="dark"] body.aquatec-site.home #counter_wrapper {
  background: var(--aq-bg) !important;
}
html[data-theme="dark"] body.aquatec-site.home #counter_wrapper .units {
  color: var(--aq-text) !important;
}
html[data-theme="dark"] body.aquatec-site.home #counter_wrapper .desc {
  color: var(--aq-text-muted) !important;
}
html[data-theme="dark"] body.aquatec-site.home #counter_wrapper #counter_countries {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ============================================================
   === DARK THEME -- fix1 ===
   Iter 16a-fix1 (16 May 2026)
   Two issues addressed:
   1. Lenta product JPG images have white fill baked in.
      mix-blend-mode: multiply neutralizes white pixels against
      dark bg (white * dark = dark = effectively transparent),
      while colored product bodies remain visible.
   2. .home-shadow gradient is designed for light bg; on dark
      it looks like a white strip. Invert to dark gradient.
   ============================================================ */

/* [1] Lenta product images: kill baked-in white JPG fill (REMOVED Sess 28)
   Replaced JPGs з baked-in white fill на PNGs з alpha channel.
   mix-blend-mode hack більше не потрібен; залишено для історії.

html[data-theme="dark"] body.aquatec-site.home #lenta figure .img_small {
  mix-blend-mode: multiply;
}
*/

/* [2] home-shadow: invert gradient for dark bg */
html[data-theme="dark"] body.aquatec-site.home .home-shadow {
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.30) 35%,
    rgba(0, 0, 0, 0.10) 70%,
    transparent 100%) !important;
}


/* ============================================================
   === DARK THEME -- fix2 ===
   Iter 16a-fix2 (16 May 2026)
   Issue: #news has background:#fff !important (line ~308) to create
   "inverted banner" effect — teal teal trapezoid is ::before SVG with
   transparent zones; #fff bg shows through. On dark this creates a
   white strip above the teal banner.
   Fix: invert #news bg to var(--aq-bg) on dark. .home-shadow gradient
   becomes pointless against dark bg → hide.
   ============================================================ */

html[data-theme="dark"] body.aquatec-site.home #news {
  background: var(--aq-bg) !important;
}

html[data-theme="dark"] body.aquatec-site.home .home-shadow {
  display: none !important;
}


/* ============================================================
   [POLISH-lenta-shadow] Sess 28 (STRONG variant)
   Two-layer drop-shadow під PNG продуктів (#lenta).
   • opacity ×2 від попередньої версії, y-offset +75%, blur +50%
   • drop-shadow слідує alpha PNG → silhouette не bounding-box
   ============================================================ */
body.aquatec-site.home #lenta figure > div .img_small {
  filter:
    drop-shadow(0 35px 40px rgba(0, 0, 0, 0.35))
    drop-shadow(0 15px 18px rgba(0, 0, 0, 0.28)) !important;
  transition: filter 0.35s ease;
}
body.aquatec-site.home #lenta figure > div:hover .img_small {
  filter:
    drop-shadow(0 45px 50px rgba(0, 0, 0, 0.45))
    drop-shadow(0 20px 22px rgba(0, 0, 0, 0.35)) !important;
}

/* Dark theme: ще сильніше — на темному фоні треба більше contrast */
html[data-theme="dark"] body.aquatec-site.home #lenta figure > div .img_small {
  filter:
    drop-shadow(0 35px 40px rgba(0, 0, 0, 0.65))
    drop-shadow(0 15px 18px rgba(0, 0, 0, 0.50)) !important;
}
html[data-theme="dark"] body.aquatec-site.home #lenta figure > div:hover .img_small {
  filter:
    drop-shadow(0 45px 50px rgba(0, 0, 0, 0.80))
    drop-shadow(0 20px 22px rgba(0, 0, 0, 0.65)) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.aquatec-site.home #lenta figure > div .img_small,
  body.aquatec-site.home #lenta figure > div:hover .img_small {
    transition: none !important;
  }
}
/* /[POLISH-lenta-shadow] */

/* Dark theme overrides for news carousel card */
html[data-theme="dark"] .news-stub__card {
  background: var(--aq-card-bg, #1a2530) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 5px 15px rgba(0, 0, 0, 0.20) !important;
}
html[data-theme="dark"] .news-stub__card:hover {
  border-color: var(--aq-blue, #00aeee) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 10px 22px rgba(0, 0, 0, 0.30) !important;
}
html[data-theme="dark"] .news-stub__title {
  color: #ffffff !important;
}
