/* ===== CogoCRM — Design System ===== */
:root {
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --radius: 1rem;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--navy-900); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: 0.5rem; z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 2rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }

.btn-primary {
  background: var(--cyan-400); color: var(--navy-900); border-color: var(--cyan-400);
}
.btn-primary:hover { background: var(--cyan-500); box-shadow: var(--shadow-md); }

.btn-outline {
  background: var(--white); color: var(--navy-900); border-color: var(--navy-900);
}
.btn-outline:hover { background: var(--gray-50); }

.btn-outline-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }

.btn-dark {
  background: var(--navy-900); color: var(--white); border-color: var(--navy-900);
  border-radius: 0.75rem;
}
.btn-dark:hover { background: var(--navy-800); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 5rem;
}

.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan-400); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--navy-900); }
.logo-text span { color: var(--cyan-600); }

.main-nav { display: none; align-items: center; gap: 2.25rem; }
.main-nav a {
  text-decoration: none; color: var(--gray-700); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 0.25rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--cyan-500); transition: width .2s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a:hover { color: var(--navy-900); }

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.6rem; border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer;
}
.nav-toggle:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 1.25rem; height: 2px; background: var(--navy-900); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--gray-200);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  text-decoration: none; color: var(--gray-700); font-weight: 500; padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav .btn { margin-top: 0.75rem; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; padding: 7rem 0 6rem;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: var(--white);
}
.hero-glow { position: absolute; border-radius: 999px; filter: blur(90px); pointer-events: none; }
.hero-glow--a { width: 24rem; height: 24rem; top: -6rem; left: -6rem; background: rgba(34,211,238,0.15); }
.hero-glow--b { width: 24rem; height: 24rem; bottom: -6rem; right: -6rem; background: rgba(34,197,94,0.12); }

.hero-inner { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; color: var(--cyan-400); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 700; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--cyan-400); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--gray-400); margin-bottom: 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.hero-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 4rem; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 2rem; font-weight: 700; color: var(--cyan-400); }
.hero-stat span { color: var(--gray-400); font-size: 0.85rem; }

/* ===== Section basics ===== */
section { padding: 5.5rem 0; }
.section-head { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head .eyebrow { color: var(--cyan-600); }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--gray-600); font-size: 1.1rem; }

.bg-alt { background: var(--gray-50); }
.bg-dark { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: var(--white); }
.bg-dark .section-head h2 { color: var(--white); }
.bg-dark .section-head p { color: var(--gray-400); }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Cards grid — Soluções ===== */
.grid-3 { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.grid-2 { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 780px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.solution-card {
  padding: 2.25rem; border-radius: var(--radius); border: 1px solid var(--gray-200);
}
.solution-card .icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.solution-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.solution-card p { color: var(--gray-600); }
.solution-card--1 { background: linear-gradient(160deg, #eff6ff, #eef2ff); }
.solution-card--2 { background: linear-gradient(160deg, #faf5ff, #fdf2f8); }
.solution-card--3 { background: linear-gradient(160deg, #fefce8, #fff7ed); }

.section-cta { text-align: center; margin-top: 3rem; }

/* ===== Como funciona ===== */
.process-visual {
  margin-bottom: 3.5rem; border-radius: var(--radius); min-height: 16rem;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem;
}
.process-visual .emoji { font-size: 3.5rem; margin-bottom: 0.75rem; }
.process-visual p { color: var(--gray-600); font-weight: 500; }

.step { text-align: center; }
.step .num {
  font-size: 3rem; font-weight: 700; color: var(--cyan-500); margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.step p { color: var(--gray-600); }

/* ===== Sobre ===== */
.about-grid { display: grid; gap: 3.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; } }
.about-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
.about-copy p { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 1.25rem; }
.about-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.stat-chip {
  flex: 1; min-width: 8rem; text-align: center; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 0.9rem; padding: 1.1rem; box-shadow: var(--shadow-sm);
}
.stat-chip strong { display: block; font-size: 1.6rem; color: var(--cyan-600); }
.stat-chip span { font-size: 0.85rem; color: var(--gray-600); }

.value-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.value-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: 1.25rem;
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.value-card .icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.value-card--1 .icon { background: #cffafe; }
.value-card--2 .icon { background: #ede9fe; }
.value-card--3 .icon { background: #dcfce7; }
.value-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.value-card p { color: var(--gray-600); font-size: 0.95rem; }

/* ===== Vantagens ===== */
.benefit-card {
  padding: 2rem; border-radius: var(--radius); border: 1px solid var(--gray-200);
}
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.benefit-card p { color: var(--gray-600); font-size: 0.95rem; }
.benefit-card--0 { background: linear-gradient(160deg, #eff6ff, #dbeafe); }
.benefit-card--1 { background: linear-gradient(160deg, #faf5ff, #ede9fe); }
.benefit-card--2 { background: linear-gradient(160deg, #fdf2f8, #fce7f3); }
.benefit-card--3 { background: linear-gradient(160deg, #fefce8, #fef9c3); }
.benefit-card--4 { background: linear-gradient(160deg, #f0fdf4, #dcfce7); }
.benefit-card--5 { background: linear-gradient(160deg, #fff7ed, #ffedd5); }

/* ===== Contato ===== */
.contact-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: block; text-decoration: none; text-align: center; border-radius: 1.25rem;
  padding: 2.25rem 1.5rem; transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--gray-200);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .icon {
  width: 4rem; height: 4rem; border-radius: 1.1rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1.1rem; color: var(--white); font-size: 1.5rem; font-weight: 700;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.contact-card .hint { color: var(--gray-500); font-size: 0.85rem; margin-bottom: 0.75rem; }
.contact-card .value { font-weight: 700; font-size: 0.95rem; word-break: break-word; }
.contact-card--whatsapp { background: #f0fdf4; border-color: #bbf7d0; }
.contact-card--whatsapp .icon { background: var(--green-500); }
.contact-card--whatsapp .value { color: var(--green-600); }
.contact-card--email { background: #ecfeff; border-color: #a5f3fc; }
.contact-card--email .icon { background: var(--cyan-500); }
.contact-card--email .value { color: var(--cyan-600); }
.contact-card--phone { background: var(--gray-50); border-color: var(--gray-200); }
.contact-card--phone .icon { background: var(--navy-700); }
.contact-card--phone .value { color: var(--navy-700); }

/* ===== CTA final ===== */
.cta-final { text-align: center; max-width: 40rem; margin: 0 auto; }
.cta-final h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.1rem; }
.cta-final p { color: var(--gray-400); font-size: 1.15rem; margin-bottom: 2.25rem; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.footer-brand p { color: var(--gray-400); font-size: 0.9rem; }
.footer-col h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--white); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul + h4 { margin-top: 1.5rem; }
.footer-col a { color: var(--gray-400); text-decoration: none; font-size: 0.9rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-bottom {
  border-top: 1px solid var(--navy-700); padding-top: 1.75rem; display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: space-between; align-items: center;
}
.footer-bottom p, .footer-bottom a { color: var(--gray-400); font-size: 0.85rem; text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan-400); }

/* ===== WhatsApp floating button ===== */
.whatsapp-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 3.5rem; height: 3.5rem;
  border-radius: 999px; background: var(--green-500); color: var(--white); display: flex;
  align-items: center; justify-content: center; box-shadow: var(--shadow-lg); text-decoration: none;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; }

/* ===== Back-to-top ===== */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 90; width: 2.75rem; height: 2.75rem;
  border-radius: 999px; background: var(--white); border: 1px solid var(--gray-200); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .15s ease; cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

@media (max-width: 480px) {
  .whatsapp-float { width: 3.1rem; height: 3.1rem; right: 1rem; bottom: 1rem; }
  .back-to-top { width: 2.5rem; height: 2.5rem; right: 1rem; bottom: 4.75rem; }
}
