/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

html { scroll-behavior: smooth; }

:root {
  --background: #ffffff;
  --foreground: #172636;
  --primary: #2094f3;
  --primary-dark: #1477cc;
  --primary-foreground: #ffffff;
  --secondary: #e2f1fd;
  --secondary-foreground: #064679;
  --muted: #f1f5f9;
  --muted-foreground: #6c8093;
  --accent: #0da2e7;
  --border: #dbe7f0;

  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-hero: linear-gradient(135deg, #3aa3f6 0%, #22b0ea 50%, #1a86e6 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #eef7fd 100%);

  --shadow-sm: 0 2px 8px rgba(32, 148, 243, 0.08);
  --shadow-md: 0 4px 16px rgba(32, 148, 243, 0.12);
  --shadow-lg: 0 8px 32px rgba(32, 148, 243, 0.16);
  --shadow-glow: 0 0 40px rgba(32, 148, 243, 0.2);

  --radius: 0.75rem;
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba5a;

  --header-height: 88px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
}

section { scroll-margin-top: var(--header-height); }

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-primary);
  margin: 14px auto 0;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img { height: 72px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--foreground);
  transition: color 0.15s ease;
}

.nav-desktop a:hover { color: var(--primary); }

.nav-desktop a:not(.btn) { position: relative; }

.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-desktop a:not(.btn):hover::after { transform: scaleX(1); }

.nav-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--foreground);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }

.nav-mobile a, .nav-mobile button {
  padding: 12px 4px;
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

.nav-mobile .btn { margin-top: 12px; width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background-image: url('assets/hero-purifier.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(226,241,253,0.84) 45%, rgba(178,219,250,0.62) 100%);
}

.hero .container { position: relative; z-index: 1; text-align: center; }

.hero-content { max-width: 720px; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  color: var(--primary-dark);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== About ===== */
.about {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background-color: #eef7fd;
  background-image: url('assets/bg-about.jpg');
  background-size: cover;
  background-position: center;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.84) 100%);
}

.about .container { position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.card:hover { box-shadow: var(--shadow-glow); transform: translateY(-4px); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-icon,
.vitrine-feature:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted-foreground); }

.values-list { display: flex; flex-direction: column; gap: 8px; }
.values-list li { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); }
.values-list .icon { color: var(--primary); width: 16px; height: 16px; }

/* ===== Services ===== */
.services { padding: 96px 0; background: linear-gradient(180deg, #ffffff 0%, #f2f9ff 100%); }

.service-body h3 { color: var(--primary-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover { box-shadow: var(--shadow-glow); transform: translateY(-4px); }

.service-image { position: relative; height: 220px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.service-card:hover .service-image img { transform: scale(1.05); }

.service-icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-body { padding: 24px; }
.service-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-body p { color: var(--muted-foreground); font-size: 0.95rem; }

.services-cta { text-align: center; }

/* ===== Vitrine CTA ===== */
.vitrine-cta {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background-color: #eef7fd;
  background-image: url('assets/bg-vitrine.jpg');
  background-size: cover;
  background-position: center;
}

.vitrine-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,95,166,0.94) 0%, rgba(32,148,243,0.9) 55%, rgba(13,162,231,0.88) 100%);
}

.vitrine-cta .container { position: relative; z-index: 1; }

.vitrine-cta .section-header { margin-bottom: 40px; }

.vitrine-cta .section-header h2 { color: #ffffff; }
.vitrine-cta .section-header h2::after { background: rgba(255,255,255,0.85); }
.vitrine-cta .section-header p { color: rgba(255,255,255,0.85); }

.vitrine-cta .badge { background: rgba(255,255,255,0.16); color: #ffffff; }

.vitrine-cta .card-icon { background: rgba(255,255,255,0.16); }
.vitrine-cta .vitrine-feature h3 { color: #ffffff; }
.vitrine-cta .vitrine-feature p { color: rgba(255,255,255,0.8); }

.vitrine-cta .btn-primary { background: #ffffff; color: var(--primary-dark); }
.vitrine-cta .btn-primary:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.vitrine-cta .vitrine-cta-actions p { color: rgba(255,255,255,0.75); }

.vitrine-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.vitrine-feature {
  text-align: center;
  padding: 24px;
}

.vitrine-feature .card-icon { margin: 0 auto 16px; }
.vitrine-feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.vitrine-feature p { color: var(--muted-foreground); font-size: 0.92rem; }

.vitrine-cta-actions { text-align: center; }
.vitrine-cta-actions p { margin-top: 16px; color: var(--muted-foreground); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url('assets/bg-contact.jpg');
  background-size: cover;
  background-position: center;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.82) 100%);
}

.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--muted-foreground); font-size: 0.95rem; }
.contact-item a:hover { color: var(--primary); }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.social-links a:hover { background: var(--primary); color: #fff; }

.contact-cta {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.contact-cta p { opacity: 0.92; margin-bottom: 28px; }
.contact-cta .btn { background: #ffffff; color: var(--primary-dark); width: 100%; }
.contact-cta .btn:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== Footer ===== */
.site-footer { background: linear-gradient(180deg, #0b2a4a 0%, #081f38 100%); color: #cbd5e1; padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo img { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; opacity: 0.75; max-width: 280px; }

.site-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.9rem; opacity: 0.85; }
.site-footer ul li a:hover { color: var(--accent); opacity: 1; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--primary); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-bottom p { margin-bottom: 4px; }

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.whatsapp-float:hover { background: var(--whatsapp-hover); transform: scale(1.05); }
.whatsapp-float .icon { width: 28px; height: 28px; }

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ===== Vitrine page ===== */
body.vitrine-page { overflow: hidden; }
.vitrine-frame-wrap { padding-top: var(--header-height); height: 100vh; overflow: hidden; }
.vitrine-frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== Efeitos ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero .badge, .hero h1, .hero h2, .hero-badges, .hero-actions {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero h1 { animation-delay: 0.1s; }
.hero h2 { animation-delay: 0.2s; }
.hero-badges { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.visible { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .about, .vitrine-cta, .contact { background-attachment: fixed; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .badge, .hero h1, .hero h2, .hero-badges, .hero-actions { animation: none; }
  .whatsapp-float::before { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .services-grid, .vitrine-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .logo img { height: 56px; }
  :root { --header-height: 76px; }
  .about-grid, .services-grid, .vitrine-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-social { justify-content: center; }
  .hero-actions .btn, .hero-badges .hero-badge { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
