/* ============================================================
   CAPACITA SST — style.css
   Para mudar o tema: edite as variáveis em :root
   ============================================================ */

:root {
  --green:       #2ECC5A;
  --green-dark:  #1fa844;
  --green-light: #e8fdf0;
  --navy:        #0D1B2A;
  --navy-mid:    #1B3A52;
  --gray-light:  #F4F7FA;
  --gray-mid:    #8898AA;
  --white:       #FFFFFF;
  --text:        #1a2332;
  --radius:      14px;
  --shadow:      0 8px 40px rgba(0,0,0,0.10);
  --font-h:      'Sora', sans-serif;
  --font-b:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-b); color: var(--text); background: var(--white); overflow-x: hidden; }
h1,h2,h3,h4 { font-family: var(--font-h); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; }
section { padding: 96px 5vw; }

/* ── COMPONENTES ── */
.section-tag {
  display: inline-block;
  font-family: var(--font-h); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); background: var(--green-light);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 16px;
}
.section-sub  { color: var(--gray-mid); font-size: 1.05rem; line-height: 1.7; max-width: 560px; }
.section-header { margin-bottom: 56px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 16px 32px; border-radius: 10px;
  font-family: var(--font-h); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; transition: all .25s;
  box-shadow: 0 4px 24px rgba(46,204,90,0.35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(46,204,90,0.45); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.25); color: #fff;
  padding: 15px 28px; border-radius: 10px;
  font-family: var(--font-h); font-weight: 600; font-size: 0.95rem; transition: all .25s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); background: rgba(46,204,90,0.06); }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   NAVBAR
   Logo à esquerda | Links + CTA à direita
═══════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 40px; height: 72px;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46,204,90,0.15);
  transition: height .3s, background .3s, box-shadow .3s;
}
#navbar.scrolled {
  height: 62px; background: #0D1B2A;
  box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}

/* Logo — lado ESQUERDO, fixo */
.nav-logo { flex: 0 0 auto; line-height: 0; }
.nav-logo img { height: 46px; width: auto; display: block; }

/* Grupo da direita: links + botão CTA */
.nav-right {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-right li a {
  display: block;
  color: rgba(255,255,255,0.80);
  font-family: var(--font-h); font-size: 0.80rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-right li a:hover { color: var(--green); background: rgba(46,204,90,0.08); }

/* Botão CTA verde */
.nav-right li.nav-cta-item a {
  background: var(--green); color: #fff;
  border-radius: 10px; padding: 9px 20px;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(46,204,90,0.40);
}
.nav-right li.nav-cta-item a:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 20px rgba(46,204,90,0.55);
  transform: translateY(-1px);
}

/* Hamburguer (mobile) */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B3A52 60%, #0f2a1e 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 120px 5vw 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 50%, rgba(46,204,90,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(21,101,192,0.10) 0%, transparent 50%),
              radial-gradient(circle at 60% 80%, rgba(46,204,90,0.05) 0%, transparent 40%); }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(46,204,90,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(46,204,90,0.04) 1px, transparent 1px);
  background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,204,90,0.12); border: 1px solid rgba(46,204,90,0.30);
  color: var(--green); border-radius: 999px; padding: 6px 16px;
  font-family: var(--font-h); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%; animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 24px; }
.hero-title .accent { color: var(--green); }
.hero-sub  { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.70); line-height: 1.7; max-width: 560px; margin-bottom: 40px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-family: var(--font-h); font-size: 2rem; font-weight: 800; color: var(--green); }
.hero-stat .lbl { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

.hero-floating {
  position: absolute; right: 5vw; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; z-index: 2;
}
.float-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px); border-radius: 14px; padding: 18px 22px;
  display: flex; align-items: center; gap: 14px;
  min-width: 220px; max-width: 260px;
  animation: floatY 3s ease-in-out infinite;
}
.float-card:nth-child(2) { animation-delay: 1s; }
.float-card:nth-child(3) { animation-delay: 2s; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.float-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.float-icon.g { background: rgba(46,204,90,0.2); }
.float-icon.b { background: rgba(21,101,192,0.25); }
.float-icon.t { background: rgba(0,188,212,0.2); }
.float-text .t1 { font-family: var(--font-h); font-weight: 700; color: #fff; font-size: 0.88rem; }
.float-text .t2 { color: rgba(255,255,255,0.55); font-size: 0.75rem; margin-top: 2px; }

/* ── SOBRE ── */
#sobre { background: var(--gray-light); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sobre-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 20px; padding: 48px 40px; position: relative; overflow: hidden;
}
.sobre-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,204,90,0.15), transparent 70%);
}
.sobre-card .quote { font-family: var(--font-h); font-size: 3rem; color: var(--green); line-height: 1; margin-bottom: 16px; }
.sobre-card p { color: rgba(255,255,255,0.80); font-size: 1.05rem; line-height: 1.75; font-weight: 300; }
.sobre-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.sobre-mini-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 16px; text-align: center; }
.sobre-mini-card .num { font-family: var(--font-h); font-size: 1.6rem; font-weight: 800; color: var(--green); }
.sobre-mini-card .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 4px; }
.sobre-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 28px 0 32px; }
.sobre-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: #3d4f60; line-height: 1.6; }
.sobre-list li::before {
  content: '✓'; display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 800;
  flex-shrink: 0; margin-top: 2px;
}

/* ── SERVIÇOS ── */
#servicos { background: var(--white); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid #dde4ec;
  background: transparent; cursor: pointer;
  font-family: var(--font-h); font-size: 0.82rem; font-weight: 600;
  color: var(--gray-mid); transition: all .2s;
}
.tab-btn:hover, .tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.svc-card {
  background: var(--gray-light); border-radius: var(--radius);
  padding: 28px 24px; border: 1px solid transparent;
  transition: all .3s; position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.svc-card:hover { background: #fff; border-color: #dde4ec; box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--navy-mid)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 18px; }
.svc-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.svc-card p  { font-size: 0.88rem; color: var(--gray-mid); line-height: 1.65; }

/* ── DIFERENCIAIS ── */
#diferenciais {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2a1e 100%);
  position: relative; overflow: hidden;
}
#diferenciais::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 50%, rgba(46,204,90,0.10) 0%, transparent 50%),
              radial-gradient(circle at 85% 30%, rgba(21,101,192,0.12) 0%, transparent 50%);
}
#diferenciais .section-tag   { background: rgba(46,204,90,0.15); }
#diferenciais .section-title { color: #fff; }
#diferenciais .section-sub   { color: rgba(255,255,255,0.6); }
.dif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; position: relative; z-index: 2; }
.dif-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius); padding: 28px 24px; backdrop-filter: blur(8px); transition: all .3s; }
.dif-card:hover { background: rgba(46,204,90,0.10); border-color: rgba(46,204,90,0.25); transform: translateY(-4px); }
.dif-card .icon { font-size: 2rem; margin-bottom: 16px; }
.dif-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dif-card p  { font-size: 0.86rem; color: rgba(255,255,255,0.60); line-height: 1.65; }

/* ── SEGMENTOS ── */
#segmentos { background: var(--gray-light); }
.seg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.seg-item {
  background: #fff; border: 1px solid #e4eaf2; border-radius: 12px;
  padding: 18px 14px; text-align: center;
  font-family: var(--font-h); font-size: 0.82rem; font-weight: 600; color: var(--navy);
  transition: all .25s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.seg-item .icon { font-size: 1.6rem; }
.seg-item:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,27,42,0.18); }

/* ── CONTRATAÇÃO ── */
#contratacao { background: var(--white); }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contract-card { border-radius: 18px; padding: 36px 28px; border: 1px solid #e4eaf2; transition: all .3s; }
.contract-card.highlight { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-color: transparent; }
.contract-card:not(.highlight) { background: var(--gray-light); }
.contract-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.contract-card .badge { display: inline-block; font-family: var(--font-h); font-size: 0.70rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.contract-card:not(.highlight) .badge { background: var(--green-light); color: var(--green-dark); }
.contract-card.highlight .badge       { background: rgba(46,204,90,0.2); color: var(--green); }
.contract-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.contract-card:not(.highlight) h3 { color: var(--navy); }
.contract-card.highlight h3       { color: #fff; }
.contract-card p { font-size: 0.92rem; line-height: 1.7; }
.contract-card:not(.highlight) p  { color: var(--gray-mid); }
.contract-card.highlight p        { color: rgba(255,255,255,0.75); }
.contract-card .cicon { font-size: 2.2rem; margin-bottom: 20px; }

/* ── CONTATO ── */
#contato { background: var(--gray-light); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contato-info p { color: var(--gray-mid); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.c-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.c-text .l1 { font-family: var(--font-h); font-size: 0.78rem; font-weight: 600; color: var(--gray-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.c-text .l2 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-top: 2px; }
.c-text a   { color: inherit; transition: color .2s; }
.c-text a:hover { color: var(--green); }

.contato-form { background: #fff; border-radius: 20px; padding: 40px; box-shadow: 0 4px 40px rgba(0,0,0,0.07); }
.contato-form h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-family: var(--font-h); font-size: 0.78rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 16px; border: 1.5px solid #dde4ec; border-radius: 10px;
  font-family: var(--font-b); font-size: 0.95rem; color: var(--text);
  background: var(--gray-light); transition: border-color .2s; outline: none; resize: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); background: #fff; }
.form-group textarea { height: 110px; }
.btn-form {
  width: 100%; padding: 16px; background: var(--green); color: #fff; border: none;
  border-radius: 10px; font-family: var(--font-h); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all .25s; box-shadow: 0 4px 20px rgba(46,204,90,0.30);
}
.btn-form:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 48px 5vw 28px; border-top: 1px solid rgba(46,204,90,0.15); }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; gap: 24px; }
.footer-logo-wrap img { height: 52px; width: auto; display: block; }
.footer-tag { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.85rem; transition: color .2s; }
.footer-links a:hover { color: var(--green); }
.footer-bottom { padding-top: 24px; text-align: center; color: rgba(255,255,255,0.30); font-size: 0.80rem; }

/* ── WHATSAPP ── */
.wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.50); transition: transform .25s, box-shadow .25s;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.60); }
.wa-btn svg { width: 30px; height: 30px; fill: #fff; }

/* ── RESPONSIVO ── */
@media (max-width: 1100px) { .hero-floating { display: none; } }

@media (max-width: 900px) {
  #navbar { padding: 0 24px; }

  .nav-right {
    display: none;
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--navy);
    padding: 16px 24px 28px; gap: 2px;
    border-top: 1px solid rgba(46,204,90,0.15);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-right.open { display: flex; }
  .nav-right li { width: 100%; }
  .nav-right li a { padding: 10px 8px; border-radius: 8px; width: 100%; display: block; }
  .nav-right li.nav-cta-item { margin-top: 8px; }
  .nav-right li.nav-cta-item a { text-align: center; }

  .hamburger { display: flex; }

  .sobre-grid    { grid-template-columns: 1fr; gap: 40px; }
  .sobre-visual  { order: -1; }
  .contract-grid { grid-template-columns: 1fr; }
  .contato-grid  { grid-template-columns: 1fr; gap: 40px; }
  .form-row      { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #hero   { padding: 100px 6vw 60px; }
  .hero-stats { gap: 24px; }
  section { padding: 64px 6vw; }
}
