/* ==========================================================
   VARDAN SANITARY — DESIGN TOKENS
   Palette: stone ivory + brushed brass + deep ink-green
   Type: Fraunces (display) + General Sans / Inter (body)
   Signature: the "mirror seam" — a beveled brass hairline
   used on dividers, hero and section transitions.
   ========================================================== */

:root {
  --ivory:      #F7F4EE;
  --ivory-2:    #EFEAE0;
  --ink:        #1C1A17;
  --ink-soft:   #4A463F;
  --brass:      #A9793A;
  --brass-light:#D9B673;
  --brass-dark: #7C5A28;
  --deep:       #16211E;
  --deep-2:     #1F2E2A;
  --line:       #D8D0C0;
  --cream-card: #FFFDF9;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'General Sans', 'Inter', ui-sans-serif, sans-serif;

  --radius: 2px;
  --shadow-soft: 0 20px 60px -20px rgba(28,26,23,0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 600;
}

.eyebrow.on-dark { color: var(--brass-light); }

/* ---------- Mirror-seam signature divider ---------- */
.mirror-seam {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  overflow: visible;
}
.mirror-seam::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brass-light), var(--brass), transparent);
  animation: seam-sweep 6s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes seam-sweep {
  0%   { left: -10%; }
  50%  { left: 95%; }
  100% { left: -10%; }
}
@media (prefers-reduced-motion: reduce) {
  .mirror-seam::after { animation: none; left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-brass {
  background: var(--brass);
  color: var(--ivory);
  border: 1px solid var(--brass);
}
.btn-brass:hover { background: var(--brass-dark); border-color: var(--brass-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-outline-light {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(247,244,238,0.5);
}
.btn-outline-light:hover { background: var(--ivory); color: var(--deep); }

.btn-whatsapp {
  background: #1E7A54;
  color: #fff;
  border: 1px solid #1E7A54;
}
.btn-whatsapp:hover { background: #175c40; }

/* ---------- Glass nav ---------- */
.glass-nav {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(247,244,238,0.78);
  border-bottom: 1px solid rgba(216,208,192,0.6);
}

/* ---------- Cards ---------- */
.product-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--brass-light);
}
.product-card img {
  transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.05); }

.chip {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--ivory);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Marble texture overlay for dark sections ---------- */
.deep-section {
  background: var(--deep);
  background-image:
    radial-gradient(1200px 500px at 10% 0%, rgba(169,121,58,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(169,121,58,0.08), transparent 60%);
  color: var(--ivory);
}

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ---------- Utility ---------- */
.text-brass { color: var(--brass); }
.bg-ivory-2 { background: var(--ivory-2); }
.border-line { border-color: var(--line); }

::selection { background: var(--brass-light); color: var(--ink); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Mobile sticky Call + WhatsApp bar ---------- */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  .wa-float { display: none; }

  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 -6px 20px -6px rgba(0,0,0,0.25);
  }
  .mobile-sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
  }
  .mobile-sticky-call { background: var(--ink, #1a1a1a); }
  .mobile-sticky-wa { background: #25D366; }

  body { padding-bottom: 56px; }
}

/* ---------- Skeleton for lazy images ---------- */
img.lazy-img {
  background: linear-gradient(90deg, var(--ivory-2) 25%, #f2ede1 37%, var(--ivory-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
}
img.lazy-img.loaded { animation: none; background: none; }
@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
