/*
Theme Name: Aquachem
Author: Aquachem
Description: Custom theme for Aquachem
Version: 1.0
*/
:root {
  --aq-bg: #f3f4f3;
  --aq-intro-blue: #dbe9ef;
  --aq-text: #101010;
  --aq-soft-text: #242424;
  --aq-muted: rgba(16, 16, 16, .58);
  --aq-line: rgba(16, 16, 16, .14);
  --aq-blue: #8fb5c4;
  --aq-blue-dark: #101010;
  --aq-blue-soft: rgba(143, 181, 196, .10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--aq-bg);
  color: var(--aq-text);
  overflow-x: hidden;
}

/* ── REVEAL ANIMATION ── */
.aq-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.aq-reveal.delay-1 { transition-delay: 0.12s; }
.aq-reveal.delay-2 { transition-delay: 0.24s; }
.aq-reveal.delay-3 { transition-delay: 0.36s; }
.aq-reveal.delay-4 { transition-delay: 0.48s; }
.aq-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.aq-hero-spacer {
  width: 100%;
  height: 82vh;
  min-height: 560px;
  pointer-events: none;
}

.aq-hero {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #101010;
  z-index: 20;
  will-change: opacity;
}

.aq-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/1db39f45-98ce-46c1-b56a-5cc2b5f311b7.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.aq-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.14), rgba(0,0,0,.02) 42%, rgba(0,0,0,.22)),
    radial-gradient(circle at center, rgba(0,0,0,.02), rgba(0,0,0,.18));
}

.aq-hero::before {
  display: none !important;
}

.aq-header {
  position: relative;
  z-index: 4;
  height: 80px;
  padding: 0 clamp(18px, 4vw, 52px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  will-change: transform, opacity;
}

.aq-logo-wrap {
  display: flex;
  align-items: center;
  height: 80px;
  width: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.aq-header-logo {
  display: block;
  width: 220px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  opacity: 1;
  transform: none;
}

.aq-header-logo:hover { opacity: .82; }

.aq-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.8vw, 44px);
}

.aq-nav a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(11px, .88vw, 13px);
  font-weight: 500;
  letter-spacing: .085em;
  text-transform: uppercase;
  transition: opacity .25s ease;
}
.aq-nav a:hover { opacity: .65; }

.aq-hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-85px);
  will-change: transform, opacity;
}

.aq-hero-logo {
  width: clamp(300px, 32vw, 520px);
  height: auto;
  display: block;
  will-change: transform, opacity;
}

.aq-scroll-indicator {
  display: none !important;
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.76);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.aq-scroll-line {
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,.55);
  position: relative;
  overflow: hidden;
}

.aq-scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -42px;
  width: 1px; height: 42px;
  background: white;
  animation: aqScrollLine 1.8s ease-in-out infinite;
}

@keyframes aqScrollLine {
  0%   { transform: translateY(0); }
  100% { transform: translateY(84px); }
}

/* ═══════════════════════════
   INTRO TEXT — editorial split
═══════════════════════════ */
.aq-intro-text {
  position: relative;
  z-index: 8;
  background: var(--aq-intro-blue);
  padding: clamp(120px, 12vw, 190px) clamp(28px, 6vw, 100px) clamp(130px, 11vw, 190px);
}

.aq-intro-grid {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.aq-intro-stat {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: clamp(60px, 8vh, 120px);
}

.aq-intro-stat-number {
  font-size: clamp(100px, 13vw, 200px);
  line-height: .85;
  font-weight: 400;
  letter-spacing: -.07em;
  color: #101010;
}

.aq-intro-stat-label {
  margin-top: 18px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(6,16,16,.58);
}

.aq-intro-body {
  padding-top: clamp(10px, 2vw, 28px);
}

.aq-intro-body p {
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.055em;
  color: #101010;
  margin: 0;
}

.aq-intro-body p + p {
  margin-top: 1.2em;
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1.55;
  letter-spacing: -.025em;
  color: rgba(16,16,16,.58);
}

@media (max-width: 860px) {
  .aq-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .aq-intro-stat {
    position: static;
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px 32px;
  }
  .aq-intro-stat-number { font-size: clamp(80px, 22vw, 140px); }
  .aq-intro-stat-label { margin-top: 0; align-self: flex-end; padding-bottom: 10px; }
  .aq-intro-stat-sub { margin-top: 0; padding-top: 0; border-top: none; max-width: none; }
}

/* ═══════════════════════════
   GALLERY
═══════════════════════════ */
.aq-gallery-section {
  background: var(--aq-bg);
  overflow: hidden;
}

.aq-gallery {
  padding: clamp(8px, 1.6vw, 24px) clamp(80px, 16vw, 260px) clamp(50px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aq-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aq-gallery-col:last-child { margin-top: 28px; }

.aq-gallery-item {
  position: relative;
  overflow: hidden;
  background: #ddd;
  isolation: isolate;
  border-radius: 4px;
}
.aq-gallery-item.tall  { aspect-ratio: 3 / 3.6; }
.aq-gallery-item.wide  { aspect-ratio: 4 / 2.8; }

.aq-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .9s cubic-bezier(.22,1,.36,1), filter .6s ease;
}
.aq-gallery-item:hover img { transform: scale(1.065); filter: saturate(1.08) contrast(1.03); }

.aq-gallery-item::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.12) 52%, rgba(0,0,0,.02));
  opacity: 0;
  transition: opacity .45s ease;
}
.aq-gallery-item:hover::after { opacity: 1; }

.aq-gallery-caption {
  position: absolute;
  left: 24px; right: 24px; bottom: 22px;
  z-index: 2;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.aq-gallery-item:hover .aq-gallery-caption { opacity: 1; transform: translateY(0); }

.aq-gallery-caption strong {
  display: block;
  font-size: clamp(20px, 2vw, 32px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.045em;
}
.aq-gallery-caption span {
  display: block;
  margin-top: 6px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .86;
}

.aq-gallery-cta {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(60px, 7vw, 100px);
}



/* ═══════════════════════════
   SMOOTH GALLERY REVEAL — TWO BY TWO
═══════════════════════════ */
.aq-gallery-item {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1.35s cubic-bezier(.16, 1, .3, 1),
    transform 1.35s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}

.aq-gallery-item.is-pair-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .aq-gallery-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ═══════════════════════════
   SHARED BUTTON
═══════════════════════════ */
.aq-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  background: transparent;
  color: #101010;
  text-decoration: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  border: 1px solid rgba(16,16,16,.30);
  border-radius: 999px;
  cursor: pointer;
  transition: background .28s ease, border-color .28s ease, color .28s ease, gap .28s ease;
}
.aq-btn::after {
  content: "→";
  font-size: 13px;
  letter-spacing: 0;
  transition: transform .28s ease;
}
.aq-btn:hover {
  background: #101010;
  border-color: #101010;
  color: #fff;
  gap: 14px;
}

/* ═══════════════════════════
   SERVICES
═══════════════════════════ */
.aq-services-v1 {
  background: var(--aq-bg);
  margin-top: clamp(-140px, -10vh, -82px);
  padding: clamp(16px, 2vw, 32px) clamp(20px, 6vw, 90px) clamp(64px, 6.8vw, 102px);
  position: relative;
  z-index: 9;
}

.aq-services-v1-inner { max-width: 1100px; margin: 0 auto; }

.aq-services-v1 h2 {
  margin: 0 0 42px;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.065em;
}

.aq-service-line {
  border-top: 1px solid rgba(16,16,16,.18);
  cursor: pointer;
  overflow: hidden;
  outline: none;
}
.aq-service-line:last-child { border-bottom: 1px solid rgba(16,16,16,.18); }

.aq-service-head {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.aq-service-number {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(16,16,16,.45);
}

.aq-service-title {
  font-size: clamp(24px, 2.65vw, 38px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.045em;
}

.aq-service-plus {
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  transition: transform .35s ease;
}

.aq-service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s ease, padding-bottom .45s ease;
  padding-left: 108px;
}

.aq-service-body p {
  max-width: 660px;
  padding-bottom: 24px;
  color: rgba(16,16,16,.62);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.aq-service-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 0 22px;
  min-height: 42px;
  background: transparent;
  color: #101010;
  text-decoration: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  border: 1px solid rgba(16,16,16,.28);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.aq-service-download:hover {
  background: #101010;
  color: #fff;
  border-color: #101010;
}

.aq-service-line.is-open .aq-service-body { max-height: 280px; }
.aq-service-line.is-open .aq-service-plus { transform: rotate(45deg); }
.aq-service-line:hover .aq-service-plus { transform: rotate(45deg); }

/* ═══════════════════════════
   PROJECTS CAROUSEL
═══════════════════════════ */
.aq-archive-carousel-v3 {
  background: var(--aq-bg);
  padding: clamp(54px, 6.4vw, 92px) 0;
  overflow: hidden;
}

.aq-archive-v3-head {
  max-width: 1260px;
  margin: 0 auto 42px;
  padding: 0 clamp(20px, 6vw, 90px);
}

.aq-archive-v3-head h2 {
  font-size: clamp(36px, 4.7vw, 68px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.065em;
}

.aq-archive-v3-marquee { width: 100%; overflow: hidden; }

.aq-archive-v3-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: aqArchiveMove 42s linear infinite;
}
.aq-archive-v3-marquee:hover .aq-archive-v3-track { animation-play-state: paused; }

.aq-archive-v3-card {
  position: relative;
  width: clamp(260px, 22vw, 370px);
  aspect-ratio: 4 / 3.25;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ddd;
}
.aq-archive-v3-card.tall { aspect-ratio: 3 / 4.15; }

.aq-archive-v3-card::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .7s ease, filter .45s ease;
}
.aq-archive-v3-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.04));
}
.aq-archive-v3-card:hover::before { transform: scale(1.055); filter: saturate(1.1); }

.aq-archive-v3-card[data-img="1"]::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/Zaton-Holiday-Resort-3-scaled.webp"); }
.aq-archive-v3-card[data-img="2"]::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/dji_fly_20250719_075638_0247_1754373589011_photo-scaled.webp"); }
.aq-archive-v3-card[data-img="3"]::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/Camping-Santa-Marina-pool-I.jpg"); }
.aq-archive-v3-card[data-img="4"]::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/Gradski-bazeni-Slavonski-Brod-8-scaled.webp"); }
.aq-archive-v3-card[data-img="5"]::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/493272665_1006290551595926_3586007298528664690_n-1.jpg"); }
.aq-archive-v3-card[data-img="6"]::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/IMG_0979-1-scaled.jpg"); }

.aq-archive-v3-year {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: clamp(24px, 2.5vw, 42px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.055em;
}

.aq-projects-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 4vw, 54px);
}

@keyframes aqArchiveMove {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 11px)); }
}

/* ── HQ ROW ── */
.aq-hq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid rgba(16,16,16,.12);
}

.aq-hq-item { display: flex; flex-direction: column; gap: 10px; }

.aq-hq-badge {
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: #101010;
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .aq-hq-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════
   DISTRIBUTORS
═══════════════════════════ */
.aq-distributors-section {
  --aq-map-height: clamp(620px, 78vh, 880px);
  background: var(--aq-bg);
  padding: clamp(54px, 6.2vw, 88px) clamp(18px, 3vw, 56px);
  overflow: hidden;
}

.aq-distributors-inner {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
}

.aq-distributors-layout {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr);
  gap: clamp(34px, 4.8vw, 78px);
  align-items: stretch;
}

.aq-distributors-left {
  min-width: 0;
  height: var(--aq-map-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  overflow: hidden;
}

.aq-distributors-top {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 26px);
  margin-bottom: clamp(16px, 1.8vw, 24px);
}

.aq-distributors-kicker {
  margin-bottom: 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(16,16,16,.48);
}

.aq-distributors-title {
  font-size: clamp(34px, 4.25vw, 62px);
  line-height: .94;
  font-weight: 400;
  letter-spacing: -.07em;
}

.aq-distributors-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 100%;
}

.aq-distributors-country {
  appearance: none;
  border: 1px solid rgba(16,16,16,.14);
  background: transparent;
  color: rgba(16,16,16,.72);
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: all .25s ease;
}
.aq-distributors-country:hover,
.aq-distributors-country.is-active { background: #101010; color: #fff; border-color: #101010; }

.aq-distributors-results-wrap {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(16,16,16,.16);
  border-bottom: 1px solid rgba(16,16,16,.16);
  overflow: hidden;
}

.aq-distributors-results {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: none;
  scrollbar-width: thin;
}
.aq-distributors-results::-webkit-scrollbar { width: 6px; height: 0; }
.aq-distributors-results::-webkit-scrollbar-track { background: rgba(16,16,16,.06); }
.aq-distributors-results::-webkit-scrollbar-thumb { background: rgba(16,16,16,.24); border-radius: 999px; }

.aq-distributor-item {
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px) 0;
  border-right: 0;
  border-bottom: 1px solid rgba(16,16,16,.12);
  scroll-snap-align: unset;
}
.aq-distributor-item:first-child { padding-top: clamp(18px, 2vw, 26px); }
.aq-distributor-item:last-child { border-bottom: 0; }

.aq-distributor-name {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.15vw, 34px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.055em;
}

.aq-distributor-address {
  margin: 0 0 16px;
  color: rgba(16,16,16,.62);
  font-size: 14px;
  line-height: 1.45;
}

.aq-distributor-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: rgba(16,16,16,.58);
}
.aq-distributor-meta a { color: rgba(16,16,16,.76); text-decoration: none; transition: color .2s ease; }
.aq-distributor-meta a:hover { color: #101010; }

.aq-distributor-empty {
  padding: 28px 0;
  color: rgba(16,16,16,.54);
  font-size: 15px;
}

.aq-distributors-map-frame {
  position: relative;
  width: 100%;
  height: var(--aq-map-height);
  margin: 0;
  overflow: hidden;
  border-radius: 32px;
  background: #dcdcd6;
  border: 1px solid rgba(16,16,16,.12);
  box-shadow: 0 28px 80px rgba(16,16,16,.12);
}

.aq-distributors-map-frame iframe {
  position: absolute;
  left: 0;
  top: -64px;
  width: 100%;
  height: calc(100% + 64px);
  border: 0;
  pointer-events: auto !important;
}


@media (max-width: 1080px) {
  .aq-distributors-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .aq-distributors-left {
  min-width: 0;
  height: var(--aq-map-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  overflow: hidden;
}

  .aq-distributors-countries {
    max-width: none;
  }

  .aq-distributors-map-frame {
    height: clamp(520px, 68vh, 720px);
  }
}

/* ═══════════════════════════
   MAGAZINES
═══════════════════════════ */
.aq-magazines-v1 {
  background: var(--aq-bg);
  padding: clamp(54px, 6.2vw, 90px) clamp(20px, 6vw, 90px);
}

.aq-magazines-v1-inner { max-width: 1260px; margin: 0 auto; }

.aq-magazines-v1-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.aq-magazines-v1 h2 {
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.065em;
}

.aq-magazines-v1-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.aq-mag-card { display: flex; flex-direction: column; gap: 18px; }

.aq-mag-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ddd;
}

.aq-mag-img::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .75s ease;
}
.aq-mag-img::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.10);
  opacity: 0;
  transition: opacity .45s ease;
}
.aq-mag-card:hover .aq-mag-img::before { transform: scale(1.045); }
.aq-mag-card:hover .aq-mag-img::after { opacity: 1; }

.aq-mag-card:nth-child(1) .aq-mag-img::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/MAGAZIN-2026-NASLOVNA_page-0001-scaled-1.jpg"); }
.aq-mag-card:nth-child(2) .aq-mag-img::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/NASLOVNA-KATALOG-PROIZVODA-2026_page-0001-scaled-1.jpg"); }
.aq-mag-card:nth-child(3) .aq-mag-img::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/Novosti-2026-pocetna_page-0001-scaled-1.jpg"); }
.aq-mag-card:nth-child(4) .aq-mag-img::before { background-image: url("https://nova.aquachem.hr/wp-content/uploads/2026/05/Passion-Spas_page-0001.jpg"); }

.aq-mag-meta { display: flex; flex-direction: column; gap: 8px; }

.aq-mag-label {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(16,16,16,.48);
}

.aq-mag-title {
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -.045em;
}

.aq-mag-cta { display: flex; justify-content: center; margin-top: 56px; }



/* ═══════════════════════════
   FOOTER — company details
═══════════════════════════ */
.aq-footer {
  background: #101010;
  color: rgba(255,255,255,.72);
  padding: clamp(58px, 6.8vw, 98px) clamp(20px, 6vw, 90px) 34px;
}

.aq-footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(420px, 1.45fr) minmax(260px, .83fr);
  gap: clamp(34px, 5vw, 82px);
  align-items: start;
}

.aq-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aq-footer-logo {
  width: clamp(170px, 17vw, 240px);
  height: auto;
  opacity: .92;
  margin-bottom: 26px;
}

.aq-footer-company-name {
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.045em;
  color: #fff;
}

.aq-footer-company-subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.54);
}

.aq-footer-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(28px, 3vw, 52px);
}

.aq-footer-block h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}

.aq-footer-block p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.68);
}

.aq-footer-block p + p {
  margin-top: 12px;
}

.aq-footer-block a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .22s ease;
}

.aq-footer-block a:hover {
  color: #fff;
}

.aq-footer-certificate-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px;
  padding: 24px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}

.aq-footer-certificate-img {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.aq-footer-certificate-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(255,255,255,.62);
}

.aq-footer-bottom {
  max-width: 1260px;
  margin: clamp(42px, 5vw, 70px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.36);
}

@media (max-width: 1080px) {
  .aq-footer-inner {
    grid-template-columns: 1fr 1.4fr;
  }

  .aq-footer-certificate-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    align-items: center;
  }

  .aq-footer-certificate-img {
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .aq-footer {
    padding: 58px 20px 30px;
  }

  .aq-footer-inner,
  .aq-footer-info,
  .aq-footer-certificate-card {
    grid-template-columns: 1fr;
  }

  .aq-footer-certificate-card {
    gap: 18px;
  }

  .aq-footer-certificate-img {
    width: 132px;
  }
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media (max-width: 980px) {
  .aq-distributors-top { grid-template-columns: 1fr; gap: 28px; }
  .aq-distributors-countries { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  .aq-distributor-item {
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px) 0;
  border-right: 0;
  border-bottom: 1px solid rgba(16,16,16,.12);
  scroll-snap-align: unset;
}
  .aq-distributor-item:first-child { padding-top: clamp(18px, 2vw, 26px); }
}

@media (max-width: 900px) {
  .aq-intro-text { margin-top: -14vh; border-radius: 30px 30px 0 0; }
  .aq-magazines-v1-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .aq-gallery { grid-template-columns: 1fr; padding: 0 20px 60px; }
  .aq-gallery-col:last-child { margin-top: 0; }
  .aq-services-v1 {
    margin-top: 0;
    padding-top: 48px;
  }
  .aq-service-head { grid-template-columns: 46px 1fr auto; gap: 16px; padding: 26px 0; }
  .aq-service-body { padding-left: 62px; }
  .aq-distributors-section { padding: 64px 16px; }
  .aq-distributors-map-frame { height: 540px; border-radius: 22px; }
  .aq-intro-text { padding: 90px 20px 110px; border-radius: 26px 26px 0 0; }
  .aq-intro-text p { font-size: clamp(24px, 7vw, 34px); }
}

@media (max-width: 640px) {
  .aq-hero, .aq-hero-spacer { min-height: 82vh; }
  .aq-hero-logo { width: clamp(250px, 76vw, 360px); }
  .aq-hero-content { transform: translateY(-45px); }
  .aq-scroll-indicator {
  display: none !important; display: none; }
  .aq-intro-text { margin-top: -10vh; }
  .aq-magazines-v1-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════
   OFF-WHITE / NEUTRAL THEME TUNING
   Text is black again; blue is kept only as a very subtle water-toned accent.
═══════════════════════════ */
.aq-services-v1 h2,
.aq-archive-v3-head h2,
.aq-distributors-title,
.aq-magazines-v1 h2,
.aq-distributor-name,
.aq-mag-title,
.aq-service-title {
  color: var(--aq-text);
}

.aq-service-line {
  border-top-color: var(--aq-line);
}
.aq-service-line:last-child {
  border-bottom-color: var(--aq-line);
}

.aq-service-number,
.aq-distributors-kicker,
.aq-mag-label {
  color: rgba(16,16,16,.48);
}

.aq-btn,
.aq-service-download {
  color: var(--aq-text);
  border-color: rgba(16,16,16,.30);
  background: transparent;
}
.aq-btn:hover,
.aq-service-download:hover {
  background: var(--aq-text);
  border-color: var(--aq-text);
  color: #fff;
}

.aq-distributors-country {
  border-color: rgba(16,16,16,.16);
  color: rgba(16,16,16,.76);
  background: rgba(255,255,255,.18);
}
.aq-distributors-country:hover,
.aq-distributors-country.is-active {
  background: var(--aq-text);
  border-color: var(--aq-text);
  color: #fff;
}

.aq-distributors-results-wrap {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  border-top: 1px solid rgba(16,16,16,.16);
  border-bottom: 1px solid rgba(16,16,16,.16);
  overflow: hidden;
}

.aq-distributor-item {
  width: 100%;
  min-width: 0;
  padding: clamp(18px, 2vw, 26px) 0;
  border-right: 0;
  border-bottom: 1px solid rgba(16,16,16,.12);
  scroll-snap-align: unset;
}

.aq-distributors-map-frame,
.aq-mag-img,
.aq-archive-v3-card,
.aq-gallery-item {
  box-shadow: 0 20px 60px rgba(34, 54, 63, .05);
}

.aq-footer {
  background: #101010;
}


/* Map interaction + cropped Google header */
.aq-distributors-map-frame {
  cursor: grab;
}
.aq-distributors-map-frame:active {
  cursor: grabbing;
}


/* Updated hero wordmark logo */
.aq-hero-logo {
  width: clamp(420px, 52vw, 900px);
  max-width: min(900px, 82vw);
  height: auto;
  object-fit: contain;
}


/* Force section text below hero to black */
.aq-intro-text,
.aq-intro-text *,
.aq-scroll-text-section,
.aq-scroll-text-section *,
.aq-scroll-text-line {
  color: #101010 !important;
}


/* Extra breathing space between distributors/map and gallery */
.aq-distributors-section {
  padding-bottom: clamp(96px, 10vw, 165px) !important;
}

.aq-distributors-section + .aq-gallery-section {
  padding-top: clamp(42px, 5vw, 86px) !important;
}


/* Minimal grouping only — original services visual style stays the same */
.aq-services-group + .aq-services-group {
  margin-top: clamp(56px, 6vw, 92px);
}

.aq-services-group h2 {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.aq-services-group .aq-service-line:last-child {
  border-bottom: 1px solid rgba(16,16,16,.18);
}

@media (max-width: 760px) {
  .aq-services-group + .aq-services-group {
    margin-top: 54px;
  }
}


/* Subtle Apple-style reveal on existing layout */
.aq-services-group.aq-reveal {
  filter: blur(7px);
  transform: translateY(38px) scale(.992);
  transition:
    opacity 1s cubic-bezier(.16, 1, .3, 1),
    transform 1s cubic-bezier(.16, 1, .3, 1),
    filter 1s cubic-bezier(.16, 1, .3, 1);
}

.aq-services-group.aq-reveal.is-visible {
  filter: blur(0);
  transform: translateY(0) scale(1);
}


/* Seamless project carousel — no empty space after the last image */
.aq-archive-v3-track {
  display: flex !important;
  gap: 0 !important;
  width: max-content;
  animation: aqArchiveMove 58s linear infinite;
  will-change: transform;
}

.aq-archive-v3-set {
  display: flex;
  gap: 22px;
  padding-right: 22px;
  flex: 0 0 auto;
  width: max-content;
}

.aq-archive-v3-marquee {
  width: 100%;
  overflow: hidden;
}

.aq-archive-v3-marquee:hover .aq-archive-v3-track {
  animation-play-state: paused;
}

@keyframes aqArchiveMove {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-25%, 0, 0); }
}


/* Updated Google My Maps embed: cropped black header, clean visible map */
.aq-distributors-map-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aq-distributors-map-frame iframe {
  position: absolute !important;
  left: 0 !important;
  top: -64px !important;
  width: 100% !important;
  height: calc(100% + 64px) !important;
  border: 0 !important;
  pointer-events: auto !important;
}

/* Optional: keeps the map visually fixed inside its frame.
   True max-zoom / pan bounds cannot be enforced inside a Google My Maps iframe. */
.aq-distributors-map-frame::after {
  content: "";
  display: none;
}


/* Google My Maps crop — hides the black top header */
.aq-distributors-map-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.aq-distributors-map-frame iframe {
  position: absolute !important;
  left: 0 !important;
  top: -64px !important;
  width: 100% !important;
  height: calc(100% + 64px) !important;
  border: 0 !important;
  pointer-events: auto !important;
}


/* Distributor empty state for previous layout */
.aq-distributor-empty {
  padding: 28px 0;
  color: rgba(16,16,16,.54);
  font-size: 15px;
}


/* Remove bottom line under distributor list */
.aq-distributors-results-wrap {
  border-bottom: 0 !important;
}

/* ═══════════════════════════
   LAPTOP COMPACT MODE
   Keeps sections from feeling too tall on 13–15 inch screens.
═══════════════════════════ */
@media (max-height: 820px) and (min-width: 900px) {
  .aq-hero-spacer {
    height: 78vh;
    min-height: 520px;
  }

  .aq-hero {
    min-height: 580px;
  }

  .aq-hero-logo {
    width: clamp(280px, 28vw, 460px);
  }

  .aq-scroll-text-section {
    height: 124vh;
    min-height: 660px;
  }

  .aq-scroll-text-sticky {
    height: 100vh;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .aq-scroll-text-line {
    font-size: clamp(31px, 3.55vw, 58px);
    line-height: 1.035;
  }

  .aq-services-v1 {
    margin-top: 0;
    padding-top: 52px;
    padding-bottom: 76px;
  }

  .aq-services-v1 h2,
  .aq-archive-v3-head h2,
  .aq-distributors-title,
  .aq-magazines-v1 h2 {
    line-height: .98;
  }

  .aq-service-head {
    padding: 21px 0;
  }

  .aq-archive-carousel-v3,
  .aq-distributors-section,
  .aq-magazines-v1 {
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .aq-distributors-section {
    --aq-map-height: clamp(560px, 72vh, 780px);
  }

  .aq-distributors-layout {
    grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.18fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .aq-distributors-top {
    gap: 14px;
    margin-bottom: 16px;
  }

  .aq-distributors-country {
    min-height: 31px;
    padding: 0 10px;
    font-size: 8.8px;
    letter-spacing: .065em;
  }

  .aq-distributors-map-frame {
    width: 100%;
    height: var(--aq-map-height);
  }
}

@media (max-width: 760px) {
  .aq-services-v1 {
    margin-top: 0;
    padding-top: 46px;
  }

  .aq-distributors-left {
  min-width: 0;
  height: var(--aq-map-height);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  overflow: hidden;
}

  .aq-distributors-country {
    min-height: 34px;
    padding: 0 12px;
    font-size: 9.2px;
  }

  .aq-distributors-map-frame {
    width: 100%;
    height: 520px;
    border-radius: 22px;
  }
}
/* ═══════════════════════════
   STACKING TABS EFFECT
   Vizual tabova ostaje isti; samo se pri scrollu hvataju jedan ispod drugoga.
═══════════════════════════ */
.aq-services-v1 {
  overflow: visible !important;
}

.aq-services-v1-inner,
.aq-services-group {
  overflow: visible !important;
}

.aq-services-group {
  position: relative;
  padding-bottom: clamp(72px, 8vw, 128px);
}

.aq-services-group + .aq-services-group {
  margin-top: clamp(28px, 5vw, 76px);
}

/* Sticky stacking: svaki sljedeći tab ostaje malo niže, pa se svi i dalje vide */
.aq-services-group .aq-service-line {
  --aq-stack-top: clamp(18px, 2.6vw, 34px);
  --aq-stack-step: clamp(74px, 6.6vw, 92px);

  position: sticky;
  top: calc(var(--aq-stack-top) + (var(--aq-stack-i, 0) * var(--aq-stack-step)));
  z-index: var(--aq-stack-z, 40);
  background: var(--aq-bg);
  transform: translateZ(0);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Mali vizualni signal dok se tabovi preklapaju, bez pretvaranja u card dizajn */
.aq-services-group .aq-service-line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--aq-bg);
  box-shadow: 0 1px 0 rgba(16,16,16,.10);
  opacity: .96;
}

/* Na mobitelu sticky stacking zna biti prenatrpan, pa ostaje normalan accordion */
@media (max-width: 760px) {
  .aq-services-group {
    padding-bottom: 0;
  }

  .aq-services-group + .aq-services-group {
    margin-top: 54px;
  }

  .aq-services-group .aq-service-line {
    position: relative;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .aq-services-group .aq-service-line::before {
    display: none;
  }
}
.aq-scroll-text-section {
  position: relative;
  background: var(--aq-bg);
  height: 132vh;
  min-height: 720px;
  margin: 0;
}

.aq-scroll-text-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4.5vw, 64px) clamp(22px, 6vw, 110px) clamp(26px, 3vw, 46px);
  overflow: hidden;
}

.aq-scroll-text-wrap {
  width: min(1380px, 100%);
  margin: 0 auto;
  text-align: center;
}

.aq-scroll-text-line {
  display: block;
  margin: 0;
  color: #315f73;
  font-size: clamp(34px, 3.9vw, 68px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -.068em;
  opacity: 0;
  transform: translateY(34px);
  filter: blur(4.5px);
  will-change: transform, opacity, filter;
}

@media (max-width: 860px) {
 .aq-scroll-text-section {
    height: 118vh;
    min-height: 620px;
  }

  .aq-scroll-text-sticky {
    height: 100vh;
    padding: 44px 20px 30px;
  }

  .aq-scroll-text-line {
    font-size: clamp(28px, 7.4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.056em;
  }
}
