/* Waterleo India — site styles layered on top of the Tailwind CDN build. */

:root {
  --wl-plum: #54253f;        /* logo square */
  --wl-gold: #c9a063;        /* logo mark — decorative fills only */
  --wl-gold-text: #8d6a3a;   /* readable gold for text on light surfaces */
  --wl-line: #ebe1da;
  --wl-muted: #74616d;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Eyebrow label ---------- */
.wl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wl-gold-text);
}
.wl-eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  /* Inherit so the dash always matches the label, including the
     !text-gold-300 override used on plum sections. */
  background: currentColor;
  display: block;
}

/* ---------- Reveal on scroll ---------- */
.wl-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.wl-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Product / category cards ---------- */
.wl-card-media {
  overflow: hidden;
}
.wl-card-media img {
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wl-card:hover .wl-card-media img {
  transform: scale(1.07);
}

/* ---------- Hero slider ---------- */
.wl-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}
.wl-slide.is-active {
  opacity: 1;
  visibility: visible;
}
/* The copy rides in on a transition driven by .is-active, never on a keyframe
   with a backwards fill — a stalled animation must not be able to leave the
   hero headline invisible. Default state is the visible one. */
.wl-slide-copy > * {
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wl-anim .wl-slide:not(.is-active) .wl-slide-copy > * {
  opacity: 0;
  transform: translateY(24px);
}
.wl-anim .wl-slide.is-active .wl-slide-copy > *:nth-child(2) { transition-delay: 0.10s; }
.wl-anim .wl-slide.is-active .wl-slide-copy > *:nth-child(3) { transition-delay: 0.20s; }
.wl-anim .wl-slide.is-active .wl-slide-copy > *:nth-child(4) { transition-delay: 0.30s; }

.wl-anim .wl-slide-media img {
  animation: wlKenBurns 9s ease-out both;
}
@keyframes wlKenBurns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* ---------- Mega menu ---------- */
.wl-has-mega > .wl-mega {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.wl-has-mega:hover > .wl-mega,
.wl-has-mega:focus-within > .wl-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Rich text coming out of the admin editor ---------- */
.wl-prose {
  color: #5c4a56;
  line-height: 1.8;
}
.wl-prose p { margin-bottom: 1rem; }
.wl-prose p:last-child { margin-bottom: 0; }
.wl-prose strong { color: var(--wl-plum); font-weight: 700; }
.wl-prose h2, .wl-prose h3, .wl-prose h4 {
  color: var(--wl-plum);
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  margin: 1.6rem 0 0.7rem;
  line-height: 1.3;
}
.wl-prose h2 { font-size: 1.5rem; }
.wl-prose h3 { font-size: 1.25rem; }
.wl-prose ul, .wl-prose ol {
  margin: 0 0 1rem 0;
  padding: 0;
  list-style: none;
}
.wl-prose ol { counter-reset: wl; }
.wl-prose li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.wl-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--wl-gold);
}
.wl-prose ol > li::before {
  counter-increment: wl;
  content: counter(wl);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wl-gold-text);
}
.wl-prose a { color: var(--wl-gold-text); text-decoration: underline; }

/* Specification tables authored as HTML in the admin */
.wl-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.94rem;
}
.wl-prose table th,
.wl-prose table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--wl-line);
  vertical-align: top;
}
.wl-prose table th {
  width: 40%;
  font-weight: 600;
  color: var(--wl-plum);
  background: var(--wl-sand, #faf6f2);
}
.wl-prose table td { color: #5c4a56; }
.wl-prose table tr:last-child th,
.wl-prose table tr:last-child td { border-bottom: 0; }

/* ---------- Accordion ---------- */
.wl-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.wl-acc.is-open .wl-acc-body { max-height: 420px; }
.wl-acc.is-open .wl-acc-icon { transform: rotate(45deg); }
.wl-acc-icon { transition: transform 0.3s ease; }

/* ---------- Marquee strip ---------- */
.wl-marquee {
  display: flex;
  width: max-content;
  animation: wlMarquee 34s linear infinite;
}
.wl-marquee-wrap:hover .wl-marquee { animation-play-state: paused; }
@keyframes wlMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Utilities ---------- */
.wl-scroll-hide::-webkit-scrollbar { display: none; }
.wl-scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }

.wl-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .wl-reveal { opacity: 1; transform: none; transition: none; }
  .wl-marquee,
  .wl-anim .wl-slide-media img { animation: none; }
  .wl-slide-copy > * { transition: none; }
}
