/*
Theme Name: Zero27 Ads
Theme URI: https://zero27ads.com.br
Author: Zero27 Ads
Description: Tema one-page profissional para a Zero27 Ads — tráfego pago, automação com IA, landing pages e marketing digital. Design corporativo moderno, responsivo e otimizado para conversão.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zero27ads
*/

:root {
  --navy-900: #081427;
  --navy-800: #0b1f3a;
  --navy-700: #122c4f;
  --blue-600: #1d6fe0;
  --blue-500: #2f80ed;
  --blue-100: #e3eefc;
  --cyan-400: #38bdf8;
  --ink: #15243b;
  --gray-600: #51607a;
  --gray-300: #c7d2e2;
  --bg-light: #f4f8fd;
  --white: #ffffff;
  --green-wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 20, 39, 0.10);
  --shadow-lg: 0 18px 50px rgba(8, 20, 39, 0.18);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: 'Sora', 'Inter', sans-serif;
  line-height: 1.2;
  color: var(--navy-800);
  font-weight: 700;
}

.section { padding: 96px 0; }
.section--light { background: var(--bg-light); }
.section--navy { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-head p { color: var(--gray-600); font-size: 1.08rem; }
.section--navy .section-head p { color: var(--gray-300); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section--navy .eyebrow { background: rgba(56, 189, 248, 0.12); color: var(--cyan-400); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(29, 111, 224, 0.35);
}
.btn--primary:hover { box-shadow: 0 12px 32px rgba(29, 111, 224, 0.45); color: var(--white); }
.btn--whatsapp {
  background: var(--green-wa);
  color: #06301a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.30);
}
.btn--whatsapp:hover { color: #06301a; }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8, 20, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.brand span { color: var(--cyan-400); }
.brand:hover { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta {
  background: var(--blue-600);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--blue-500); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(47, 128, 237, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(56, 189, 248, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding: 180px 0 110px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  color: var(--gray-300);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 36px;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-300);
  font-size: 0.92rem;
}
.hero-trust svg { width: 18px; height: 18px; color: var(--cyan-400); flex-shrink: 0; }

/* ---------- Pilares ---------- */
.pillars { padding: 64px 0; background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.06); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar { text-align: left; padding: 8px 4px; }
.pillar h3 { color: var(--white); font-size: 1.02rem; margin: 12px 0 6px; }
.pillar p { color: var(--gray-300); font-size: 0.9rem; line-height: 1.5; }
.pillar .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar .icon svg { width: 22px; height: 22px; color: var(--cyan-400); }

/* ---------- Serviços ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid #e4ebf5;
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}
.service-card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-100), #d3e6fb);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-card .icon svg { width: 28px; height: 28px; color: var(--blue-600); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card > p { color: var(--gray-600); font-size: 0.97rem; margin-bottom: 18px; }
.service-card ul { margin-top: auto; }
.service-card ul li {
  position: relative;
  padding-left: 24px;
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--blue-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Processo ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.process-step .num {
  font-family: 'Sora', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--gray-300); font-size: 0.92rem; }

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 20px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; font-size: 1.02rem; }
.about-points { margin-top: 28px; display: grid; gap: 14px; }
.about-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 16px 18px;
}
.about-points svg { width: 22px; height: 22px; color: var(--blue-600); flex-shrink: 0; margin-top: 2px; }
.about-points strong { display: block; color: var(--navy-800); font-size: 0.98rem; }
.about-points span { color: var(--gray-600); font-size: 0.9rem; }

.about-visual {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: 24px;
  padding: 44px 38px;
  box-shadow: var(--shadow-lg);
}
.about-visual .big {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.about-visual .big span { color: var(--cyan-400); }
.about-visual p { color: var(--gray-300); font-size: 0.98rem; margin-bottom: 26px; }
.about-visual .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.about-visual .chips li {
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--cyan-400);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 50% 80% at 85% 50%, rgba(56, 189, 248, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.cta-banner p { color: var(--gray-300); max-width: 480px; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-channels { display: grid; gap: 18px; }
.contact-channel {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid #e4ebf5;
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.contact-channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-channel .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--blue-100);
}
.contact-channel .icon svg { width: 24px; height: 24px; color: var(--blue-600); }
.contact-channel.is-whatsapp .icon { background: #e8fbef; }
.contact-channel.is-whatsapp .icon svg { color: #1faa55; }
.contact-channel strong { display: block; color: var(--navy-800); font-size: 0.95rem; }
.contact-channel span { color: var(--gray-600); font-size: 0.92rem; }

.contact-form {
  background: var(--white);
  border: 1px solid #e4ebf5;
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg-light);
  border: 1.5px solid #dbe5f1;
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-msg--ok { background: #e8f8ee; color: #166534; border: 1px solid #b6e7c8; }
.form-msg--err { background: #fdecec; color: #991b1b; border: 1px solid #f5c2c2; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  padding: 56px 0 28px;
  color: var(--gray-300);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid p { max-width: 360px; font-size: 0.92rem; margin-top: 12px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--gray-300); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: rgba(56, 189, 248, 0.18); }
.footer-social svg { width: 20px; height: 20px; color: var(--gray-300); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #7e8ba3;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-wa);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.wa-float .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green-wa);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 28px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    padding: 12px 24px 24px;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: none; }
}

@media (max-width: 480px) {
  .pillars-grid, .process-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
