@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue: #1D4ED8;
  --blue-dark: #1E3A8A;
  --black: #0F172A;
  --wa-green: #25D366;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #0F172A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageFadeIn 0.35s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, .font-playfair { font-family: 'Playfair Display', serif; }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right { opacity: 0; transform: translateX(40px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translate(0); }

.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* ─── Typography ─── */
.text-gradient {
  background: linear-gradient(135deg, #1E40AF, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1D4ED8;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: #1D4ED8;
  flex-shrink: 0;
}

/* ─── Hero gradient ─── */
.hero-gradient {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 50%, #F0F9FF 100%);
}

/* ─── Stats bar ─── */
.stats-bar { background: linear-gradient(135deg, #1E3A8A, #1D4ED8 60%, #2563EB); }

/* ─── Cards ─── */
.product-card {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(29,78,216,0.14);
}

.blog-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }

/* ─── FAQ Accordion ─── */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.faq-answer.open { max-height: 600px; }

/* ─── Timeline ─── */
.timeline-line { position: relative; }
.timeline-line::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #1D4ED8, #BFDBFE);
}

/* ─── Floating WhatsApp ─── */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.2s ease;
  animation: pulseWa 2.5s infinite;
}
.float-wa:hover { transform: scale(1.1); }
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  60% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}

/* ─── Image placeholder ─── */
.img-placeholder {
  background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
  border: 2px dashed #93C5FD;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  gap: 0.5rem;
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #1D4ED8; border-radius: 3px; }

/* ─── Form focus ─── */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #1D4ED8 !important;
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

/* ─── Divider ornament ─── */
.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #CBD5E1;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
