/*
Theme Name:  Gestão Cloud
Theme URI:   https://gestaocloudfinanciamentos.com.br
Description: Tema custom Crazy Diamond — Gestão Cloud Financiamentos
Author:      Crazy Diamond Soluções Digitais
Author URI:  https://crazydiamond.com.br
Version:     1.0.0
Text Domain: gestao-cloud
*/

/* ============================================================
   DESIGN SYSTEM — GESTÃO CLOUD FINANCIAMENTOS
   Crazy Diamond | Clay v1.0 | 26/06/2026
   ============================================================ */

:root {
  --g900: #0a2410;
  --g800: #133a1c;
  --g700: #1b5e20;
  --g600: #2e7d32;
  --g400: #43a047;
  --g300: #66bb6a;
  --wa:   #25d366;

  --white:     #ffffff;
  --off-white: #f8faf8;
  --gray-100:  #f1f5f1;
  --gray-200:  #e2e8e2;
  --gray-600:  #6b7b6b;
  --text:      #1a2e1a;

  --font-title: 'Sora', sans-serif;
  --font-body:  'Inter', sans-serif;

  --section-pad: clamp(64px, 8vw, 112px);
  --container:   1200px;
  --radius:      8px;
}

/* ============================================================
   RESET E BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(40px, 6vw, 80px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 1.8vw, 24px); }

a { color: var(--g600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g700); }

img { max-width: 100%; height: auto; display: block; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   CONTAINER
   ============================================================ */

.gc-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ============================================================
   BOTÕES
   ============================================================ */

.gc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.gc-btn--primary {
  background: var(--wa);
  color: var(--white);
  border-color: var(--wa);
}
.gc-btn--primary:hover {
  background: #20c05a;
  border-color: #20c05a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.gc-btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.gc-btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

.gc-btn--green {
  background: var(--g700);
  color: var(--white);
  border-color: var(--g700);
}
.gc-btn--green:hover {
  background: var(--g600);
  border-color: var(--g600);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

#gc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 20px 0;
}
#gc-nav.scrolled {
  background: var(--g800);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img,
.nav-logo .custom-logo {
  height: 96px;
  width: auto;
  max-width: 240px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  padding: 10px 22px;
  background: var(--wa);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: #20c05a; color: var(--white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--g800);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-overlay a {
  color: var(--white);
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */

#gc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 180px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/themes/gestao-cloud/assets/fundo.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,36,16,0.88) 0%, rgba(27,94,32,0.72) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  color: var(--white);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g300);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--g300);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  max-width: 720px;
  margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--g300); }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  z-index: 3;
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-top: 3px solid var(--g600);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.stat-number {
  font-family: var(--font-title);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--g700);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  #gc-hero { padding-bottom: 280px; }
}
@media (max-width: 480px) {
  .hero-stats-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px 16px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */

#gc-marquee {
  background: var(--g800);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0 40px;
}
.marquee-item::after {
  content: '◆';
  margin-left: 40px;
  color: var(--g300);
  opacity: 0.6;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVIÇOS
   ============================================================ */

#gc-servicos {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.section-eyebrow {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g600);
  margin-bottom: 12px;
  display: block;
}
.section-sub {
  color: var(--gray-600);
  max-width: 540px;
  margin-bottom: 48px;
}
.servicos-header { margin-bottom: 48px; }
.servicos-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.card-servico {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.card-servico::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--g600);
  transition: height 0.35s ease;
}
.card-servico:hover::before { height: 100%; }
.card-servico:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(27,94,32,0.12);
  border-color: var(--g300);
}
.card-servico--destaque {
  grid-row: span 2;
  background: var(--g700);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}
.card-servico--destaque::before { background: var(--g300); }
.card-servico--destaque .card-icon { color: var(--g300); }
.card-servico--destaque h3 { color: var(--white); margin-bottom: 12px; }
.card-servico--destaque p { color: rgba(255,255,255,0.75); }
.card-servico--destaque .card-link {
  color: var(--g300);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.card-servico h3 { font-size: 20px; margin-bottom: 10px; }
.card-servico p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }
.card-servico--destaque p { color: rgba(255,255,255,0.75); }
.card-servico .card-link {
  color: var(--g600);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 16px;
  display: inline-block;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.card-servico:hover .card-link {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .servicos-grid { grid-template-columns: 1fr; }
  .card-servico--destaque { grid-row: span 1; min-height: 260px; }
}

/* ============================================================
   DIFERENCIAIS
   ============================================================ */

#gc-diferenciais {
  background: var(--g800);
  padding: 56px 0;
}
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.diferencial-item { text-align: center; color: var(--white); }
.diferencial-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  border: 1px solid rgba(102,187,106,0.3);
}
.diferencial-item h4 { color: var(--white); font-size: 16px; margin-bottom: 8px; }
.diferencial-item p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.6; }

@media (max-width: 900px) { .diferenciais-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .diferenciais-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */

#gc-como-funciona {
  padding: var(--section-pad) 0;
  background: var(--off-white);
}
.como-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.como-visual { position: relative; border-radius: 16px; overflow: visible; }
.como-visual img { width: 100%; border-radius: 16px; object-fit: cover; }
.como-steps { list-style: none; padding: 0; margin: 32px 0 0; }
.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--g300);
  opacity: 0.7;
  line-height: 1;
}
.step-item h4 { font-size: 17px; margin-bottom: 4px; }
.step-item p { font-size: 14px; color: var(--gray-600); }

@media (max-width: 900px) {
  .como-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   FAQ
   ============================================================ */

#gc-faq {
  padding: var(--section-pad) 0;
  background: var(--white);
}
.faq-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.faq-sidebar { position: sticky; top: 100px; }
.faq-sidebar h2 { margin-bottom: 16px; }
.faq-sidebar p { color: var(--gray-600); margin-bottom: 28px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--g700); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  flex-shrink: 0;
  color: var(--g700);
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--g700); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p { padding-bottom: 20px; color: var(--gray-600); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

@media (max-width: 900px) {
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-sidebar { position: static; }
}

/* ============================================================
   CTA FINAL
   ============================================================ */

#gc-cta-final {
  background: var(--g800);
  padding: var(--section-pad) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#gc-cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,125,50,0.3) 0%, transparent 70%);
  pointer-events: none;
}
#gc-cta-final .gc-container { position: relative; z-index: 1; }
#gc-cta-final h2 { color: var(--white); max-width: 600px; margin: 0 auto 16px; }
#gc-cta-final p { color: rgba(255,255,255,0.7); max-width: 440px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */

#gc-footer {
  background: var(--g900);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo img,
.footer-logo .custom-logo { height: 96px; width: auto; max-width: 240px; margin-bottom: 16px; display: block; }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--g300); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.footer-contact-icon { color: var(--g300); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--g300); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */

.gc-whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 500;
  width: 58px; height: 58px;
  background: var(--wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gc-whatsapp-float:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}
.gc-whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
