*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 16px; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.18rem; font-weight: 700; }
.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: rgba(0,0,0,0.7); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.eyebrow-light { color: var(--accent); }
.badge {
  display: inline-block; background: rgba(255,255,255,0.18); color: #fff;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  padding: 6px 14px; font-size: 0.82rem; font-weight: 600; margin-bottom: 24px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 0.96rem;
  cursor: pointer; transition: all .25s ease; border: none; font-family: inherit;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -8px var(--primary); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px -8px var(--primary); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-light { background: #fff; color: var(--secondary); }
.btn-light:hover { transform: translateY(-3px); }

/* Topbar — logo centered above nav */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid #f3f4f6;
  transition: padding .25s ease;
}
.topbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
.topbar-stack {
  padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.logo {
  font-weight: 800; font-size: 1.4rem; color: var(--text);
  letter-spacing: -0.02em; display: inline-flex; align-items: center;
}
.logo::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-left: 8px;
}
.nav { display: flex; gap: 32px; }
.nav a { color: var(--text); font-weight: 500; opacity: 0.85; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); opacity: 1; }
.hamburger { display: none; position: absolute; right: 24px; top: 18px; background: none; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Hero */
.hero {
  position: relative; padding: 120px 0 140px;
  color: #fff; overflow: hidden; isolation: isolate;
  min-height: 80vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.2)),
    linear-gradient(135deg, var(--primary), var(--secondary));
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 50%);
}
.hero-content { max-width: 800px; position: relative; }
.hero-title { color: #fff; }
.hero-sub { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgba(255,255,255,0.92); margin-bottom: 36px; max-width: 640px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: #fafafa; }
.section-dark { background: #1a1a1a; color: #fff; }
.section-dark .eyebrow { color: var(--primary); }
.section-dark .lead { color: rgba(255,255,255,0.7); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }

/* Intro */
.section-intro { text-align: center; padding: 80px 0; }
.intro-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  max-width: 800px; margin: 0 auto 48px; font-weight: 600;
  color: rgba(0,0,0,0.85); letter-spacing: -0.01em;
}
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 720px; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-item strong {
  display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800;
  color: var(--primary); letter-spacing: -0.02em; margin-bottom: 4px;
}
.stat-item span { color: rgba(0,0,0,0.65); font-size: 0.92rem; font-weight: 500; }

/* Services — colored top border */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #fff; padding: 32px;
  border-radius: 16px; border: 1px solid #f3f4f6;
  position: relative; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -16px rgba(0,0,0,0.15); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card p { color: rgba(0,0,0,0.65); margin: 0; }

/* Products — dramatic hover */
.product-card {
  background: #2a2a2a; border-radius: 16px; overflow: hidden;
  transition: transform .4s ease;
}
.section-dark .product-card { background: #2a2a2a; }
.product-card:hover { transform: translateY(-8px) scale(1.02); }
.product-img {
  height: 240px; background-size: cover; background-position: center; position: relative;
}
.product-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}
.product-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; z-index: 1;
}
.product-body { padding: 24px; color: #fff; }
.product-body h3 { color: #fff; }
.product-body p { color: rgba(255,255,255,0.65); margin: 0 0 12px; font-size: 0.92rem; }
.product-price { color: var(--primary); font-weight: 700; }

/* Features tile */
.feature-tile {
  text-align: center; padding: 28px 20px;
  border-radius: 14px;
  transition: background .25s ease;
}
.feature-tile:hover { background: #fafafa; }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature-tile h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-tile p { color: rgba(0,0,0,0.6); font-size: 0.9rem; margin: 0; }

/* Testimonials slider */
.testimonials-track {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-slide {
  flex: 0 0 100%;
  background: #fff; padding: 40px;
  border-radius: 16px;
  scroll-snap-align: center;
  text-align: center;
  border: 1px solid #f3f4f6;
}
.testimonial-slide .stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 18px; font-size: 1.1rem; }
.t-text { font-size: 1.15rem; font-style: italic; color: rgba(0,0,0,0.85); margin-bottom: 20px; max-width: 640px; margin-left: auto; margin-right: auto; }
.t-author strong { display: block; font-weight: 700; }
.t-author span { color: rgba(0,0,0,0.55); font-size: 0.88rem; }
.testimonials-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.t-prev, .t-next {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #d1d5db; background: #fff; color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: all .2s ease;
}
.t-prev:hover, .t-next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.t-dots { display: flex; gap: 8px; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: #d1d5db; border: 0; cursor: pointer; transition: all .2s; padding: 0; }
.t-dot.active { background: var(--primary); width: 24px; border-radius: 999px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--secondary)));
  color: #fff; padding: 80px 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); margin: 0 auto 28px; max-width: 560px; font-size: 1.1rem; }

/* Contact */
.contact-form { background: #fafafa; padding: 36px; border-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea {
  padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 0.92rem; min-height: 1.2em; }
.form-status.success { color: #059669; }
.form-status.error { color: #dc2626; }
.contact-info { text-align: center; margin-top: 32px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: rgba(0,0,0,0.7); }
.contact-info a { color: var(--text); }
.contact-info a:hover { color: var(--primary); }

/* Footer */
.site-footer { background: #0a0a0a; color: #d1d5db; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid p { color: #9ca3af; font-size: 0.92rem; margin-top: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #9ca3af; }
.footer-grid a:hover { color: var(--primary); }
.footer-logo { color: #fff; }
.social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icons a {
  width: 40px; height: 40px; display: inline-flex;
  align-items: center; justify-content: center;
  background: #1a1a1a; color: #fff; border-radius: 50%;
  font-size: 0.78rem; font-weight: 700;
  transition: background .2s;
}
.social-icons a:hover { background: var(--primary); color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #1a1a1a; color: #6b7280; font-size: 0.86rem; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 60px; height: 60px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.4);
  animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* Reveal */
.reveal { transform: translateY(28px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.active { transform: translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-stack { flex-direction: row; justify-content: space-between; align-items: center; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .hamburger { display: block; }
  .nav.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 24px;
    border-bottom: 1px solid #e5e7eb;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 80px 0 100px; min-height: 70vh; }
  .section { padding: 64px 0; }
}

/* Footer brand color fix — use CSS var instead of hardcoded color */
.site-footer .logo,
.footer-logo,
.footer-brand,
.site-footer .brand-name,
.site-footer h3.logo {
  color: var(--color-primary) !important;
}
