/* ===========================
   AQUAPURIX GLOBAL STYLES
   =========================== */

@import url("variables.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

.font-display {
  font-family: var(--font-display);
}

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-dark-grey);
  line-height: 1.7;
}

/* ===========================
   LAYOUT
   =========================== */

.container-aq {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section-pad {
  padding-block: var(--section-padding);
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(0.5rem, 5vw, 4rem);
}

/* ===========================
   NAVIGATION
   =========================== */

.nav-aq {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.35s var(--ease-premium),
    backdrop-filter 0.35s,
    box-shadow 0.35s;
}

.nav-aq.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark-grey);
  transition: color 0.25s;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--gradient-brand);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.3s, transform 0.3s;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(4, 95, 139, 0.15);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s;
}

.btn-outline:hover {
  border-color: var(--color-primary-light);
  background: var(--color-white);
}

.btn-quote {
  width: 100%;
  margin-top: 1.25rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-off-white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video,
.hero-media-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-fallback {
  position: absolute;
  inset: 0;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.72) 42%,
    rgba(247, 247, 247, 0.58) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 7rem 4rem;
  width: 100%;
  justify-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 8rem 5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
  margin-top: -18px;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: center;
  }
}

.hero-logo-wrap {
  margin-bottom: 2rem;
  display: inline-block;
  background: transparent;
  transform: translateY(-6vh);
}

.hero-logo-wrap img {
  width: min(100%, 620px);
  height: auto;
  margin-inline: auto;
  margin-top: 0;
  object-fit: contain;
  background: transparent;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .hero-logo-wrap img {
    margin-inline: auto;
  }
}

.hero-headline {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-dark-grey);
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  margin-bottom: 25px;
  
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-sub {
    margin-inline: 0;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .hero-cta {
    justify-content: center;
  }
}

/* hero-visual removed per revision instructions */

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -15%;
  background: radial-gradient(circle, rgba(11, 139, 203, 0.12) 0%, transparent 70%);
}

.hero-orb--2 {
  width: 350px;
  height: 350px;
  bottom: 5%;
  left: -8%;
  background: radial-gradient(circle, rgba(4, 95, 139, 0.1) 0%, transparent 70%);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark-grey);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
  margin-bottom: -46px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--color-primary-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===========================
   BRAND STORY
   =========================== */

.brand-story {
  background: var(--color-white);
}

.story-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.story-word {
  font-family: var(--font-display);
  font-size: clamp(2.48rem, 9vw, 5.85rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--color-light-grey);
  transition: color 0.45s var(--ease-premium);
}

.story-copy {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.story-word.is-highlight {
  color: var(--color-primary);
}

.story-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-elevated);
  height: 672px;
  margin-bottom: -116px;
}

.story-image-wrap img {
  width: 100%;
  height: 115%;
  object-fit: contain;

}

.story-stat-float {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.story-stat-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary);
}

/* ===========================
   PURIFICATION TIMELINE
   =========================== */

.timeline-section {
  background: var(--color-off-white);
}

.journey-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .journey-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.journey-sticky {
  position: relative;
}

@media (min-width: 1024px) {
  .journey-sticky {
    position: sticky;
    top: 7rem;
  }
}

.journey-feature-img {
  margin-top: 2rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-elevated);
}

.journey-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-track {
  position: relative;
  padding-left: 2rem;
}

.timeline-track::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary-light), var(--color-light-grey));
}

.timeline-step {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-light-grey);
}

.timeline-step.is-active .timeline-dot {
  border-color: var(--color-primary-light);
  background: var(--color-primary-light);
}

/* ===========================
   GLASS / IMAGE CARDS
   =========================== */

.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
}

.glass-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.glass-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}

.glass-card:hover .glass-card-img img {
  transform: scale(1.06);
}

.glass-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.glass-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(4, 95, 139, 0.08);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ===========================
   PRODUCT CARDS — PREMIUM
   =========================== */

.products-section {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-off-white) 100%);
}

.product-grid {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0.25rem;
}

/* Horizontal rail wrapper
.product-rail {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-inline: 0.25rem;
}

.product-rail::-webkit-scrollbar {
  height: 10px;
}

.product-rail::-webkit-scrollbar-thumb {
  background: rgba(4, 95, 139, 0.18);
  border-radius: 999px;
}

.product-rail::-webkit-scrollbar-track {
  background: rgba(4, 95, 139, 0.06);
  border-radius: 999px;
} */

.product-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(4, 95, 139, 0.08);
  width: min(78vw, 283px);
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 508px;
}

.product-card-visual {
  position: relative;
  background: linear-gradient(165deg, #f0f8fc 0%, #e8f4fa 50%, #dceef8 100%);
  overflow: hidden;
  min-height: 180px;
}

.product-card-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 20px 40px rgba(4, 95, 139, 0.15));
  transition: transform 0.5s var(--ease-premium);
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 100px;
}

.product-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.product-card-qty {
  font-size: 0.875rem;
  color: var(--color-dark-grey);
  margin-bottom: 1.25rem;
}

.product-pricing {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  margin-bottom: 0.5rem;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.product-price-row span:first-child {
  color: var(--color-dark-grey);
}

.product-price-row strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-black);
}

.product-card--featured {
  border: 2px solid rgba(11, 139, 203, 0.25);
  box-shadow: 0 12px 50px rgba(11, 139, 203, 0.12);
}

/* featured card stays compact in horizontal rail */

/* ===========================
   EVENT SUPPLY
   =========================== */

.events-section {
  background: var(--color-black);
  color: var(--color-white);
}

.event-block {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
}

.event-block-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-premium);
}

.event-block:hover .event-block-bg {
  transform: scale(1.06);
}

.event-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 95, 139, 0.92) 0%, rgba(4, 95, 139, 0.35) 55%, transparent 100%);
}

.event-block-content {
  position: relative;
  z-index: 1;
}

/* ===========================
   FEATURE GRID
   =========================== */

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 139, 203, 0.35);
  box-shadow: var(--shadow-glow);
}

.quality-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 3rem;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.quality-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-banner-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 520px;
  color: var(--color-white);
}

.quality-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 95, 139, 0.92) 0%, rgba(4, 95, 139, 0.5) 60%, transparent 100%);
}

/* ===========================
   CERTIFICATIONS
   =========================== */

.cert-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.cert-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(4, 95, 139, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* ===========================
   MAP
   =========================== */

.map-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-elevated);
}

.map-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-overlay-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  max-width: 280px;
}

/* ===========================
   CONTACT
   =========================== */

.contact-section {
  background: var(--color-off-white);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.contact-intro {
  grid-column: 1;
  grid-row: 1;
}

@media (min-width: 1024px) {
  .contact-image {
    grid-column: 1;
    grid-row: 2;
  }

  .contact-side {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1.25rem;
    margin-top: -766px;
  }
}

.contact-panel {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-light-grey);
}

.qr-panel {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-light-grey);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 32px;
}

.qr-panel-inner {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

.qr-left img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 1rem;
  background: var(--color-off-white);
  border: 1px solid rgba(4, 95, 139, 0.08);
  padding: 0.75rem;
}

.qr-divider {
  width: 1px;
  height: 72%;
  background: rgba(4, 95, 139, 0.12);
  justify-self: center;
}

.qr-right {
  display: flex;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-light-grey);
}

.contact-item:last-of-type {
  border-bottom: none;
}

.contact-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-elevated);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   FOOTER
   =========================== */

.footer-aq {
  background: var(--color-off-white);
  color: var(--color-dark-grey);
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--color-light-grey);
}

.footer-aq a:hover {
  color: var(--color-primary);
}

.footer-logo-badge {
  display: inline-block;
  padding: 0.85rem 1.15rem;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-light-grey);
}

.footer-logo-badge img {
  height: 48px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-dark-grey);
}

/* ===========================
   MOBILE MENU
   =========================== */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   RESPONSIVE FIXES
   =========================== */

@media (max-width: 767px) {
  .stat-value.heading-lg {
    font-size: 2rem;
  }
}
