/* ==========================================================
   Radha Madhav Aqua – visual sections (less text, more motion)
   About orbit + counters · Product fill-up · Pipeline · Why icons
   ========================================================== */

/* ---------- About ---------- */
.about h2 em, .contact h2 em { font-style: italic; font-weight: 500; color: var(--royal); }
.about__lead { font-size: 1.15rem; color: var(--muted); max-width: 30rem; }

.about__media { overflow: visible; animation: floatCard 7s ease-in-out infinite; }
@keyframes floatCard { 50% { transform: translateY(-10px); } }
.about__media.reveal:not(.is-visible) { animation: none; }

.about__orbit { position: absolute; inset: 0; pointer-events: none; }
.about__orbit span {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--aqua) 70%);
  box-shadow: 0 6px 14px -4px rgba(56,182,255,.7);
  --r: 58%;
  animation: orbit 12s linear infinite;
}
.about__orbit span:nth-child(2) { width: 12px; height: 12px; margin: -6px; animation-duration: 9s; animation-delay: -3s; --r: 64%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--peacock) 70%); }
.about__orbit span:nth-child(3) { width: 9px; height: 9px; margin: -4.5px; animation-duration: 15s; animation-delay: -7s; animation-direction: reverse; --r: 70%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold) 70%); }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(min(220px, 30vw)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(min(220px, 30vw)) rotate(-360deg); }
}

.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.counter {
  background: var(--white); border-radius: 18px; padding: 1.3rem 1rem; text-align: center;
  box-shadow: 0 12px 30px -20px rgba(15,42,99,.45); border: 1px solid #e3ecf6;
  transition: transform .3s;
}
.counter:hover { transform: translateY(-4px); }
.counter strong {
  display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1;
  background: linear-gradient(135deg, var(--aqua), var(--royal)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.counter span { display: block; margin-top: .5rem; font-size: .82rem; font-weight: 600; color: var(--muted); }

/* ---------- Products: water fills up when card appears ---------- */
.product { padding-bottom: 1.6rem; }
.product h3 { margin-bottom: .6rem; }
@keyframes fillUp { from { inset: 100% 0 0; } }
@keyframes fillJar { from { top: 100%; } }
.product.is-visible .mini-bottle::before {
  animation:
    fillUp 1.4s cubic-bezier(.3,.9,.4,1) calc(var(--d, 0s) + .35s) backwards,
    slosh 3.5s ease-in-out 2s infinite;
}
.mini-jar i {
  position: absolute; left: 4px; right: 4px; top: 26%; bottom: 4px; border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(16px 6px at 30% 0, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, rgba(92,207,242,.6), rgba(27,127,209,.8));
  transition: top .7s cubic-bezier(.3,1.4,.5,1);
}
.product.is-visible .mini-jar i { animation: fillJar 1.6s cubic-bezier(.3,.9,.4,1) calc(var(--d, 0s) + .35s) backwards; }
.product:hover .mini-jar i { top: 10%; }

/* ---------- Pipeline (purification) ---------- */
.pipeline { position: relative; --icon: 78px; --cycle: 7.5s; }
.pipeline__pipe {
  position: absolute; top: calc(var(--icon) / 2 - 3px); height: 6px;
  left: calc(100% / 12); right: calc(100% / 12);
  border-radius: 6px; background: rgba(255,255,255,.1); overflow: visible;
}
.pipeline__flow {
  position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(90deg, rgba(56,182,255,.9) 0 14px, transparent 14px 28px);
  opacity: .55; animation: flowX 1.2s linear infinite;
}
@keyframes flowX { to { background-position: 28px 0; } }
.pipeline__drop {
  position: absolute; top: 50%; left: 0; width: 22px; height: 28px; margin: -16px 0 0 -11px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--aqua) 55%, var(--royal));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 18px 4px rgba(56,182,255,.75);
  animation: dropX var(--cycle) cubic-bezier(.45,0,.55,1) infinite;
  z-index: 2;
}
@keyframes dropX {
  0% { left: 0; opacity: 0; transform: scale(.4); }
  5% { opacity: 1; transform: scale(1); }
  80% { left: 100%; opacity: 1; transform: scale(1); }
  88%, 100% { left: 100%; opacity: 0; transform: scale(1.6); }
}

.pipeline__stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; z-index: 1; }
.stage { text-align: center; color: #fff; }
.stage__icon {
  width: var(--icon); height: var(--icon); margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--navy); border: 2px solid rgba(56,182,255,.45);
  box-shadow: 0 0 0 8px rgba(15,42,99,.9);
  animation: stageLit var(--cycle) ease-out infinite;
  animation-delay: calc(var(--s) * var(--cycle) * .8 / 5);
}
.stage__icon svg {
  width: 34px; height: 34px; fill: none; stroke: var(--aqua); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  animation: stageSvg var(--cycle) ease-out infinite; animation-delay: inherit;
}
@keyframes stageLit {
  0%, 18%, 100% { background: var(--navy); transform: scale(1); }
  4% { background: linear-gradient(135deg, var(--aqua), var(--royal)); transform: scale(1.14); box-shadow: 0 0 0 8px rgba(15,42,99,.9), 0 0 30px 6px rgba(56,182,255,.6); }
  10% { background: linear-gradient(135deg, var(--aqua), var(--royal)); transform: scale(1.04); }
}
@keyframes stageSvg { 0%, 18%, 100% { stroke: var(--aqua); } 4%, 10% { stroke: #fff; } }
.stage h3 { color: #fff; font-size: 1.02rem; margin: 0 0 .25rem; }
.stage small { color: rgba(255,255,255,.65); font-size: .82rem; }

/* ---------- Why: living icons ---------- */
.why-card { padding: 2.2rem 1.4rem 1.8rem; }
.why-card h3 { margin: 0; }
.why-card__icon { width: 84px; height: 84px; border-radius: 26px; position: relative; overflow: visible; }
.why-card__icon svg { width: 38px; height: 38px; }

.a-bob svg { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) scale(1.05); } }

.a-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--peacock);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }

.a-drive { overflow: hidden !important; }
.a-drive svg { animation: drive 2.2s ease-in-out infinite; }
@keyframes drive { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(5px) translateY(-1px); } }
.a-drive .speed {
  position: absolute; left: 12px; top: 38%; width: 16px; height: 2px; border-radius: 2px; background: var(--royal);
  box-shadow: -4px 8px 0 var(--royal), 2px 16px 0 var(--royal);
  opacity: .5; animation: speed .9s linear infinite;
}
@keyframes speed { from { transform: translateX(10px); opacity: 0; } 40% { opacity: .6; } to { transform: translateX(-14px); opacity: 0; } }

.a-swing svg { transform-origin: 20% 20%; animation: swing 3s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }

/* ---------- Responsive for these sections ---------- */
@media (max-width: 900px) {
  .pipeline { --icon: 64px; }
  .stage__icon svg { width: 28px; height: 28px; }
  .stage h3 { font-size: .9rem; }
  .stage small { display: none; }
}

/* Phones: pipeline turns vertical */
@media (max-width: 700px) {
  .pipeline { --icon: 60px; max-width: 420px; margin: 0 auto; }
  .pipeline__pipe {
    top: calc(var(--icon) / 2); bottom: calc(var(--icon) / 2);
    left: calc(var(--icon) / 2 - 3px); right: auto; width: 6px; height: auto;
  }
  .pipeline__flow {
    background: repeating-linear-gradient(180deg, rgba(56,182,255,.9) 0 14px, transparent 14px 28px);
    animation-name: flowY;
  }
  @keyframes flowY { to { background-position: 0 28px; } }
  .pipeline__drop { top: 0; left: 50%; margin: -14px 0 0 -11px; animation-name: dropY; }
  @keyframes dropY {
    0% { top: 0; opacity: 0; transform: scale(.4); }
    5% { opacity: 1; transform: scale(1); }
    80% { top: 100%; opacity: 1; transform: scale(1); }
    88%, 100% { top: 100%; opacity: 0; transform: scale(1.6); }
  }
  .pipeline__stages { grid-template-columns: 1fr; gap: 1.4rem; }
  .stage { display: grid; grid-template-columns: var(--icon) 1fr; column-gap: 1.1rem; align-items: center; text-align: left; }
  .stage__icon { grid-row: span 2; margin: 0; }
  .stage h3 { font-size: 1.05rem; margin: 0; align-self: end; }
  .stage small { display: block; align-self: start; }

  .counters { gap: .6rem; }
  .counter { padding: 1rem .5rem; }
  .counter span { font-size: .72rem; }
  @keyframes orbit {
    from { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__media, .about__orbit span { animation: none; }
  .about__orbit { display: none; }
  .pipeline__drop { animation-duration: 12s; }
}

/* ==========================================================
   Mission & Vision
   ========================================================== */
.mv {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(56,182,255,.14), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(31,168,90,.10), transparent 70%),
    linear-gradient(180deg, var(--bg), #e9f4fc);
}
.mv::before { /* faint watermark drop */
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 400px;
  background: rgba(27,74,168,.05);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(-18deg);
  pointer-events: none;
}
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: stretch; position: relative; }

.mv-card {
  position: relative; border-radius: 24px; padding: 2.4rem 2.2rem;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, opacity .8s ease;
}
.mv-card:hover { transform: translateY(-6px); }
.mv-card h3 { font-size: 1.6rem; margin: 1.2rem 0 .8rem; }

.mv-card--vision {
  color: #fff;
  background:
    radial-gradient(400px 220px at 110% -10%, rgba(56,182,255,.45), transparent 70%),
    linear-gradient(150deg, var(--navy-deep), var(--navy) 55%, var(--royal));
}
.mv-card--vision h3 { color: #fff; }
.mv-card__lead { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; margin: 0; color: rgba(255,255,255,.92); }
.mv-card--vision::after { /* animated shimmer line along the bottom */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--aqua), var(--peacock), transparent);
  background-size: 200% 100%; animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.mv-card--mission { background: var(--white); border: 1px solid #e3ecf6; }
.mv-card--mission::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--aqua), var(--peacock));
}

.mv-card__icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
}
.mv-card--mission .mv-card__icon { background: linear-gradient(135deg, rgba(56,182,255,.16), rgba(31,168,90,.14)); border: 0; }
.mv-card__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--aqua-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mv-card--mission .mv-card__icon svg { stroke: var(--royal); }

/* Eye blinks */
.a-blink svg { transform-origin: 50% 50%; animation: blink 4.5s ease-in-out infinite; }
@keyframes blink { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }
/* Arrow hits the target */
.a-target .arrow { animation: hit 3.2s cubic-bezier(.5,0,.3,1.4) infinite; }
@keyframes hit { 0%, 15% { transform: translate(6px, -6px); opacity: 0; } 40%, 85% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }

.mv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.mv-list li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.mv-list li::before {
  content: ""; flex: none; width: 14px; height: 18px; margin-top: .2rem;
  background: linear-gradient(180deg, var(--aqua), var(--royal));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(180deg);
}
/* list items slide in one by one when the card appears */
.mv-list li { opacity: 0; transform: translateX(-14px); transition: opacity .6s ease, transform .6s ease; }
.mv-card.is-visible .mv-list li { opacity: 1; transform: none; }
.mv-card.is-visible .mv-list li:nth-child(1) { transition-delay: .35s; }
.mv-card.is-visible .mv-list li:nth-child(2) { transition-delay: .5s; }
.mv-card.is-visible .mv-list li:nth-child(3) { transition-delay: .65s; }
.mv-card.is-visible .mv-list li:nth-child(4) { transition-delay: .8s; }

.values { list-style: none; padding: 0; margin: 2.4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; position: relative; }
.values li {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65rem 1.3rem; border-radius: 999px; background: var(--white);
  border: 1px solid #dbe8f5; font-weight: 700; color: var(--navy);
  box-shadow: 0 8px 20px -14px rgba(15,42,99,.5);
  animation: bobChip 4s ease-in-out infinite;
}
.values li:nth-child(2) { animation-delay: -1s; }
.values li:nth-child(3) { animation-delay: -2s; }
.values li:nth-child(4) { animation-delay: -3s; }
.values li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(56,182,255,.18); }
@keyframes bobChip { 50% { transform: translateY(-4px); } }

@media (max-width: 900px) {
  .mv__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mv-card { padding: 1.8rem 1.5rem; border-radius: 20px; }
  .mv-card h3 { font-size: 1.35rem; margin-top: 1rem; }
  .mv-card__icon { width: 58px; height: 58px; border-radius: 16px; }
  .mv-card__icon svg { width: 28px; height: 28px; }
  .values { gap: .55rem; margin-top: 1.8rem; }
  .values li { padding: .55rem 1rem; font-size: .92rem; }
  .mv::before { width: 200px; height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  .values li, .a-blink svg { animation: none; }
  .mv-list li { transform: none; }
}

/* Per-item variables (kept out of inline style="" so a strict CSP can block inline styles) */
.product.h55 { --h: .55; }
.product.h70 { --h: .7; }
.product.h85 { --h: .85; }
.product.h100 { --h: 1; }
.stage.s0 { --s: 0; } .stage.s1 { --s: 1; } .stage.s2 { --s: 2; }
.stage.s3 { --s: 3; } .stage.s4 { --s: 4; } .stage.s5 { --s: 5; }

/* Images keep their aspect ratio now that width/height attributes are set */
.about__media img { height: auto; }

/* ---------- Map ---------- */
.map { background: var(--white); }
.map-frame {
  position: relative; height: 380px;
  background: linear-gradient(110deg, #eef4f9 30%, #f8fbfe 50%, #eef4f9 70%);
  background-size: 200% 100%; animation: mapShimmer 1.6s linear infinite;
}
.map-frame.is-loaded { animation: none; background: #eef4f9; }
@keyframes mapShimmer { to { background-position: -200% 0; } }
.map .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-loading {
  position: absolute; inset: 0; display: flex; gap: .6rem; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600; font-size: .95rem;
}
.map-frame.is-loaded .map-loading { display: none; }
.map-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(27,74,168,.2); border-top-color: var(--royal);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.map-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.3rem; border-top: 1px solid #e3ecf6;
}
.map-bar__text { display: grid; }
.map-bar__text strong { color: var(--navy); font-family: var(--font-display); font-size: 1.1rem; }
.map-bar__text span { color: var(--muted); font-size: .9rem; }
.map-bar__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn--light { background: #fff; color: var(--navy); border-color: #d6e2ef; box-shadow: none; }
.btn--light:hover { box-shadow: none; background: var(--bg); }
@media (max-width: 600px) {
  .map-frame { height: 300px; }
  .map-bar { padding: 1rem; }
  .map-bar__actions { width: 100%; }
  .map-bar__actions .btn { flex: 1 1 0; padding: .8em .6em; }
}
@media (prefers-reduced-motion: reduce) { .map-frame, .map-spinner { animation-duration: 3s; } }

/* Floating WhatsApp button hides while the contact section is on screen */
.wa-float { transition: transform .25s ease, opacity .25s ease; }
.wa-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
