/* ============================================
   COMURG SERVICE - Site Institucional v2
   Cores: Verde #006e3a / Laranja #f58634
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #003d20;
  --green-800: #00532C;
  --green-700: #006e3a;
  --green-600: #008548;
  --green-500: #00a85a;
  --green-100: #e6f5ed;
  --green-50: #f0faf5;
  --orange-600: #e07020;
  --orange-500: #f58634;
  --orange-400: #f9a060;
  --orange-100: #fff3e6;
  --orange-50: #fff9f2;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,.1), 0 8px 10px rgba(0,0,0,.04);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.navbar-brand img { height: 42px; width: auto; }
.navbar-brand-text { display: flex; flex-direction: column; }
.navbar-brand-text strong {
  font-size: 1.1rem; font-weight: 800; color: var(--green-700);
  letter-spacing: -.02em;
}
.navbar-brand-text small {
  font-size: .7rem; color: var(--orange-500); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.navbar-menu { display: flex; align-items: center; gap: 8px; }
.navbar-menu a {
  padding: 8px 16px; border-radius: 8px; font-size: .875rem;
  font-weight: 500; color: var(--slate-600); transition: all .2s;
}
.navbar-menu a:hover { color: var(--green-700); background: var(--green-50); }
.navbar-menu a.active { color: var(--green-700); background: var(--green-100); }
.btn-contact {
  padding: 10px 24px !important; border-radius: 10px !important;
  background: linear-gradient(135deg, var(--green-700), var(--green-600)) !important;
  color: var(--white) !important; font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0,110,58,.3);
  transition: transform .2s, box-shadow .2s !important;
}
.btn-contact:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0,110,58,.4) !important;
  background: linear-gradient(135deg, var(--green-800), var(--green-700)) !important;
}
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
  color: var(--slate-700); transition: background .2s;
}
.menu-toggle:hover { background: var(--slate-100); }
.menu-toggle svg { width: 24px; height: 24px; }

/* ============================================
   HERO - com particles e gradient animado
   ============================================ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--green-600) 100%);
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
  overflow: hidden; padding-top: 72px;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,134,52,.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,168,90,.2) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23fff' stroke-width='.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Floating particles */
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: floatParticle linear infinite;
}
.particle.p-green { background: rgba(0, 168, 90, .3); }
.particle.p-orange { background: rgba(245, 134, 52, .25); }
.particle.p-white { background: rgba(255, 255, 255, .1); }
@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* Floating shapes */
.hero-shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.shape {
  position: absolute; border: 2px solid rgba(255,255,255,.06);
  animation: floatShape ease-in-out infinite;
}
.shape-circle { border-radius: 50%; }
.shape-diamond { transform: rotate(45deg); }
.shape-1 { width: 80px; height: 80px; top: 15%; left: 10%; animation-duration: 6s; }
.shape-2 { width: 60px; height: 60px; top: 60%; left: 5%; animation-duration: 8s; animation-delay: -2s; }
.shape-3 { width: 100px; height: 100px; top: 20%; right: 8%; animation-duration: 7s; animation-delay: -1s; }
.shape-4 { width: 50px; height: 50px; top: 70%; right: 15%; animation-duration: 5s; animation-delay: -3s; }
.shape-5 { width: 70px; height: 70px; bottom: 15%; left: 35%; animation-duration: 9s; animation-delay: -4s; }
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}
.shape-diamond { animation-name: floatDiamond; }
@keyframes floatDiamond {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  33% { transform: rotate(50deg) translateY(-15px); }
  66% { transform: rotate(40deg) translateY(10px); }
}

.hero .container { position: relative; z-index: 2; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border-radius: 50px;
  background: rgba(245,134,52,.15); border: 1px solid rgba(245,134,52,.3);
  color: var(--orange-400); font-size: 1.05rem; font-weight: 600;
  margin-top: 32px; margin-bottom: 24px; backdrop-filter: blur(4px);
  animation: slideInLeft .8s ease .2s both;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800;
  color: var(--white); margin-bottom: 20px; letter-spacing: -.03em;
  line-height: 1.1; animation: slideInLeft .8s ease .4s both;
}
.hero h1 span { color: var(--orange-400); }
/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block; width: 3px; height: 1em; background: var(--orange-400);
  margin-left: 4px; animation: blink 1s step-end infinite; vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }
.hero p {
  font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 540px;
  margin-bottom: 36px; line-height: 1.7;
  animation: slideInLeft .8s ease .6s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: slideInLeft .8s ease .8s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(245,134,52,.4);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  background: rgba(255,255,255,.2); border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .5s, height .5s;
}
.btn-primary:hover::after { width: 300px; height: 300px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,134,52,.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: .95rem; font-weight: 600;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.25); cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 380px;
}
.stat-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px;
  padding: 24px; text-align: center;
  transition: transform .3s, background .3s, border-color .3s;
  animation: scaleIn .6s ease both;
}
.stat-card:nth-child(1) { animation-delay: .6s; }
.stat-card:nth-child(2) { animation-delay: .7s; }
.stat-card:nth-child(3) { animation-delay: .8s; }
.stat-card:nth-child(4) { animation-delay: .9s; }
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.8); }
  to { opacity: 1; transform: scale(1); }
}
.stat-card:hover {
  transform: translateY(-4px); background: rgba(255,255,255,.12);
  border-color: rgba(245,134,52,.3);
}
.stat-card .number {
  font-size: 2.2rem; font-weight: 800; color: var(--orange-400);
  line-height: 1; margin-bottom: 4px;
}
.stat-card .label { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 500; }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: .75rem; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   MARQUEE / PARTNERS TICKER
   ============================================ */
.ticker-section {
  background: var(--white); padding: 24px 0; border-bottom: 1px solid var(--slate-100);
  overflow: hidden;
}
.ticker-label {
  text-align: center; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .15em; color: var(--slate-400); margin-bottom: 16px;
}
.ticker-track {
  display: flex; animation: ticker 30s linear infinite; width: max-content;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 32px;
  font-size: .85rem; font-weight: 600; color: var(--slate-400);
  white-space: nowrap;
}
.ticker-item .t-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--orange-500));
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SECTION COMMON
   ============================================ */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px; font-size: .75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.tag-green { background: var(--green-100); color: var(--green-700); }
.tag-orange { background: var(--orange-100); color: var(--orange-500); }
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800;
  color: var(--slate-900); margin-bottom: 16px; letter-spacing: -.02em;
}
.section-header p { font-size: 1.05rem; color: var(--slate-500); line-height: 1.7; }

/* ============================================
   ABOUT
   ============================================ */
#sobre { background: var(--slate-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h3 { font-size: 1.6rem; font-weight: 700; color: var(--slate-900); margin-bottom: 20px; }
.about-content p { color: var(--slate-600); margin-bottom: 16px; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 12px; background: var(--white);
  border: 1px solid var(--slate-200); transition: all .3s;
}
.highlight-item:hover { border-color: var(--green-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  color: var(--green-700);
}
.highlight-item h4 { font-size: .875rem; font-weight: 700; color: var(--slate-800); margin-bottom: 2px; }
.highlight-item p { font-size: .8rem; color: var(--slate-500); line-height: 1.5; margin: 0; }

.about-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.about-card {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border-radius: 24px; padding: 48px 36px; color: var(--white);
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
  max-width: 420px; width: 100%;
  transition: transform .4s;
}
.about-card:hover { transform: translateY(-8px) rotate(1deg); }
.about-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(245,134,52,.15);
}
.about-card::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(0,168,90,.1);
}
.about-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; position: relative; }
.about-card p { color: rgba(255,255,255,.75); line-height: 1.7; position: relative; margin-bottom: 24px; }
.about-card-stats { display: flex; gap: 24px; position: relative; }
.about-card-stat { text-align: center; }
.about-card-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--orange-400); }
.about-card-stat .lbl { font-size: .75rem; color: rgba(255,255,255,.5); }

/* ============================================
   SERVICES - com glow hover
   ============================================ */
#servicos { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 36px 28px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--slate-200);
  transition: all .4s; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green-700), var(--orange-500));
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(0,110,58,.04) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.service-card:hover {
  border-color: var(--green-500); transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,110,58,.1);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
  position: relative; z-index: 1;
  transition: transform .3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.icon-green { background: var(--green-100); color: var(--green-700); }
.icon-orange { background: var(--orange-100); color: var(--orange-500); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { font-size: .9rem; color: var(--slate-500); line-height: 1.7; position: relative; z-index: 1; }

/* ============================================
   DIFERENCIAIS - com glow cards
   ============================================ */
#diferenciais {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: var(--white); position: relative; overflow: hidden;
}
#diferenciais::before {
  content: ''; position: absolute; width: 500px; height: 500px;
  border-radius: 50%; top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(245,134,52,.08) 0%, transparent 70%);
  animation: floatBg 10s ease-in-out infinite;
}
#diferenciais::after {
  content: ''; position: absolute; width: 400px; height: 400px;
  border-radius: 50%; bottom: -150px; left: -150px;
  background: radial-gradient(circle, rgba(0,168,90,.08) 0%, transparent 70%);
  animation: floatBg 12s ease-in-out infinite reverse;
}
@keyframes floatBg {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
#diferenciais .section-header h2 { color: var(--white); }
#diferenciais .section-header p { color: rgba(255,255,255,.6); }
#diferenciais .section-tag { background: rgba(245,134,52,.15); color: var(--orange-400); }
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.diff-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 32px 24px; text-align: center;
  backdrop-filter: blur(8px); transition: all .4s;
}
.diff-card:hover {
  background: rgba(255,255,255,.12); transform: translateY(-6px);
  border-color: rgba(245,134,52,.3);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.diff-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(245,134,52,.2), rgba(245,134,52,.05));
  font-size: 1.6rem; transition: transform .4s;
}
.diff-card:hover .diff-icon { transform: scale(1.1) rotate(5deg); }
.diff-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.diff-card p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.6; }

/* ============================================
   AREA DE ATUACAO
   ============================================ */
#atuacao { background: var(--slate-50); }
.coverage-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.coverage-list { display: flex; flex-direction: column; gap: 16px; }
.coverage-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--slate-200); transition: all .3s;
}
.coverage-item:hover {
  border-color: var(--green-500); box-shadow: var(--shadow-md);
  transform: translateX(8px);
}
.coverage-item-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: transform .3s;
}
.coverage-item:hover .coverage-item-icon { transform: scale(1.15); }
.coverage-item h4 { font-size: .95rem; font-weight: 700; color: var(--slate-800); margin-bottom: 2px; }
.coverage-item p { font-size: .8rem; color: var(--slate-500); margin: 0; }

.coverage-map {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  border-radius: 24px; padding: 48px; text-align: center; color: var(--white);
  box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
  transition: transform .4s;
}
.coverage-map:hover { transform: scale(1.02); }
.coverage-map::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(245,134,52,.1) 0%, transparent 70%);
}
.coverage-map h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; position: relative; }
.coverage-map p { color: rgba(255,255,255,.65); margin-bottom: 32px; position: relative; }
.coverage-map-visual { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.map-pin {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange-400); box-shadow: 0 0 0 4px rgba(245,134,52,.2);
  animation: mapPulse 2s infinite;
}
.map-pin:nth-child(1) { top: 30%; left: 50%; animation-delay: 0s; }
.map-pin:nth-child(2) { top: 50%; left: 25%; animation-delay: .5s; }
.map-pin:nth-child(3) { top: 45%; left: 70%; animation-delay: 1s; }
.map-pin:nth-child(4) { top: 70%; left: 45%; animation-delay: 1.5s; }
.map-pin:nth-child(5) { top: 20%; left: 35%; animation-delay: .8s; }
@keyframes mapPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245,134,52,.2); }
  50% { box-shadow: 0 0 0 12px rgba(245,134,52,.05); }
}
.map-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px dashed rgba(255,255,255,.15);
  animation: ringExpand 4s ease-in-out infinite;
}
.map-ring:nth-child(6) { width: 100px; height: 100px; animation-delay: 0s; }
.map-ring:nth-child(7) { width: 160px; height: 160px; animation-delay: 1s; }
.map-ring:nth-child(8) { width: 220px; height: 220px; animation-delay: 2s; }
@keyframes ringExpand {
  0%, 100% { opacity: .15; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: .3; transform: translate(-50%,-50%) scale(1.05); }
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  background-size: 200% 200%;
  animation: heroGradient 6s ease infinite;
  padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,110,58,.2) 0%, transparent 60%);
}
.cta-section .container { position: relative; }
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,.85); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 12px; font-size: 1rem; font-weight: 700;
  background: var(--white); color: var(--green-700); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn-white::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(0,110,58,.05) 100%);
  opacity: 0; transition: opacity .3s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.btn-white:hover::after { opacity: 1; }

/* ============================================
   CONTATO
   ============================================ */
#contato { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: 16px; background: var(--slate-50);
  border: 1px solid var(--slate-200); transition: all .3s;
}
.contact-item:hover { border-color: var(--green-500); box-shadow: var(--shadow-md); transform: translateX(4px); }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); font-size: 1.2rem;
  transition: transform .3s;
}
.contact-item:hover .contact-icon { transform: scale(1.1); }
.contact-item h4 { font-size: .95rem; font-weight: 700; color: var(--slate-800); margin-bottom: 4px; }
.contact-item p { font-size: .875rem; color: var(--slate-500); line-height: 1.6; margin: 0; }
.contact-item a { color: var(--green-700); font-weight: 600; }
.contact-item a:hover { color: var(--orange-500); }

.contact-form-wrap {
  background: var(--slate-50); border-radius: 20px; padding: 40px;
  border: 1px solid var(--slate-200);
}
.contact-form-wrap h3 { font-size: 1.3rem; font-weight: 700; color: var(--slate-900); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--slate-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border-radius: 10px; border: 1px solid var(--slate-300);
  font-size: .9rem; font-family: inherit; color: var(--slate-800);
  transition: border-color .2s, box-shadow .2s; background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(0,110,58,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; padding: 14px; border-radius: 12px; font-size: .95rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s; margin-top: 8px;
  position: relative; overflow: hidden;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,110,58,.3); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--slate-900); color: rgba(255,255,255,.6); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .8; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 300px; }
.footer h4 { color: var(--white); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: .875rem; color: rgba(255,255,255,.5); transition: all .2s; }
.footer ul li a:hover { color: var(--orange-400); padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 1rem; transition: all .3s;
}
.footer-social a:hover {
  background: var(--green-700); color: var(--white);
  border-color: var(--green-700); transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  font-size: .8rem;
}
.footer-bottom .footer-dev {
  width: 100%; text-align: center; margin-top: 12px;
  font-size: .75rem; opacity: .5;
}
.footer-bottom a { color: var(--orange-400); }
.footer-bottom a:hover { color: var(--orange-500); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: .1s; }
.fade-up.delay-2 { transition-delay: .2s; }
.fade-up.delay-3 { transition-delay: .3s; }
.fade-up.delay-4 { transition-delay: .4s; }
/* New: slide from left/right */
.slide-left { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.slide-right { opacity: 0; transform: translateX(40px); transition: opacity .7s ease, transform .7s ease; }
.slide-left.visible, .slide-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================
   CHATBOT
   ============================================ */
.chat-trigger {
  position: fixed; bottom: 24px; right: 88px; z-index: 1001;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,110,58,.4);
  transition: all .3s;
  animation: chatBounce 3s ease-in-out infinite;
}
.chat-trigger:hover {
  transform: scale(1.1); box-shadow: 0 6px 30px rgba(0,110,58,.5);
  animation: none;
}
.chat-trigger.active {
  animation: none;
  background: linear-gradient(135deg, var(--slate-600), var(--slate-700));
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
@keyframes chatBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-8px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-4px); }
  60% { transform: translateY(0); }
}
.chat-trigger svg { width: 28px; height: 28px; transition: transform .3s; }
.chat-trigger.active svg { transform: rotate(90deg); }

/* Notification badge on trigger */
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-500); color: var(--white);
  font-size: .65rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
  animation: badgePulse 2s ease infinite;
}
.chat-trigger.active .chat-badge { display: none; }
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Chat tooltip */
.chat-tooltip {
  position: fixed; bottom: 92px; right: 88px; z-index: 1001;
  background: var(--white); color: var(--slate-800);
  padding: 10px 16px; border-radius: 12px 12px 4px 12px;
  font-size: .8rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  animation: tooltipIn .4s ease .5s both;
  white-space: nowrap; pointer-events: none;
}
.chat-tooltip::after {
  content: ''; position: absolute; bottom: -6px; right: 20px;
  width: 12px; height: 12px; background: var(--white);
  transform: rotate(45deg); box-shadow: 2px 2px 4px rgba(0,0,0,.05);
}
@keyframes tooltipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-tooltip.hidden { display: none; }

/* Chat window */
.chat-window {
  position: fixed; bottom: 96px; right: 24px; z-index: 1002;
  width: 400px; max-height: 580px; border-radius: 20px;
  background: var(--white); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.2), 0 0 0 1px rgba(0,0,0,.05);
  display: flex; flex-direction: column;
  transform: scale(0) translateY(20px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: auto;
}

/* Chat header */
.chat-header {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  padding: 20px 20px 16px; color: var(--white); position: relative;
  overflow: hidden;
}
.chat-header::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(245,134,52,.1);
}
.chat-header-row {
  display: flex; align-items: center; gap: 12px; position: relative;
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 24px; height: 24px; }
.chat-header-info h4 { font-size: .95rem; font-weight: 700; margin-bottom: 2px; }
.chat-header-info p { font-size: .7rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 4px; }
.chat-online-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  animation: pulse 2s infinite;
}
.chat-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.1); border: none; color: var(--white);
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-close:hover { background: rgba(255,255,255,.2); }

/* Chat body */
.chat-body {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 12px;
  background: var(--slate-50);
  max-height: 380px; min-height: 300px;
}
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }

/* Chat messages */
.chat-msg {
  display: flex; gap: 8px; max-width: 90%;
  animation: msgIn .3s ease both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700;
}
.chat-msg.bot .chat-msg-avatar {
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  color: var(--green-700);
}
.chat-msg.user .chat-msg-avatar {
  background: linear-gradient(135deg, var(--orange-100), var(--orange-50));
  color: var(--orange-600);
}
.chat-bubble {
  padding: 12px 16px; border-radius: 16px; font-size: .85rem; line-height: 1.5;
}
.chat-msg.bot .chat-bubble {
  background: var(--white); color: var(--slate-700);
  border: 1px solid var(--slate-200);
  border-top-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white);
  border-top-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex; gap: 4px; padding: 12px 16px;
  background: var(--white); border-radius: 16px; border: 1px solid var(--slate-200);
  border-top-left-radius: 4px; width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--slate-400);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Department buttons */
.chat-options {
  display: flex; flex-direction: column; gap: 6px; margin-top: 8px;
}
.chat-option-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--slate-200);
  background: var(--white); color: var(--slate-700); font-size: .8rem;
  font-weight: 600; cursor: pointer; transition: all .2s;
  font-family: inherit; text-align: left;
}
.chat-option-btn:hover {
  border-color: var(--green-500); background: var(--green-50);
  color: var(--green-700); transform: translateX(4px);
}
.chat-option-btn .opt-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}
.chat-option-btn .opt-icon.og { background: var(--green-100); color: var(--green-700); }
.chat-option-btn .opt-icon.oo { background: var(--orange-100); color: var(--orange-600); }

/* Chat footer */
.chat-footer {
  padding: 12px 16px; border-top: 1px solid var(--slate-200);
  background: var(--white);
}
.chat-footer-info {
  text-align: center; font-size: .65rem; color: var(--slate-400);
  padding: 4px 0;
}
.chat-input-row {
  display: flex; gap: 8px; align-items: center;
}
.chat-input {
  flex: 1; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--slate-200); font-size: .85rem;
  font-family: inherit; color: var(--slate-800);
  transition: border-color .2s;
}
.chat-input:focus { outline: none; border-color: var(--green-500); }
.chat-input::placeholder { color: var(--slate-400); }
.chat-send {
  width: 40px; height: 40px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.chat-send:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,110,58,.3); }
.chat-send svg { width: 18px; height: 18px; }

/* ============================================
   BACK TO TOP & WHATSAPP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  color: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,110,58,.3);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: all .3s;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,110,58,.4); }

.whatsapp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: all .3s; font-size: 1.6rem;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }

  /* Navbar mobile: logo em cima, texto embaixo centralizado */
  .navbar .container { height: auto; padding-top: 10px; padding-bottom: 10px; }
  .navbar-brand {
    flex-direction: column; align-items: center; gap: 4px;
  }
  .navbar-brand img { height: 36px; }
  .navbar-brand-text {
    align-items: center; text-align: center; width: 100%;
  }
  .navbar-brand-text strong {
    font-size: .95rem; display: block; text-align: center; width: 100%;
  }
  .navbar-brand-text small {
    font-size: .6rem; display: block; text-align: center; width: 100%;
  }
  .navbar-menu {
    display: none; position: fixed; top: 80px; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-lg);
  }
  .navbar-menu.open { display: flex; }
  .menu-toggle { display: flex; }

  /* Hero mobile */
  .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
  .hero-badge { margin-top: 24px; font-size: .95rem; }
  .hero .container { flex-direction: column; text-align: center; gap: 32px; }
  .hero h1 { font-size: 2rem; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-stats { max-width: 100%; gap: 12px; }
  .stat-card { padding: 16px 12px; }
  .stat-card .number { font-size: 1.6rem; }
  .stat-card .label { font-size: .7rem; }
  .scroll-indicator { display: none; }
  .hero-shapes { display: none; }

  /* Sections mobile */
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-content h3 { font-size: 1.3rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .about-card { padding: 32px 24px; }
  .about-card-stats { gap: 16px; justify-content: center; }

  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: .9rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }

  .diff-grid { grid-template-columns: 1fr; }
  .diff-card { padding: 24px 20px; }

  .coverage-content { grid-template-columns: 1fr; gap: 32px; }
  .coverage-map { padding: 32px 20px; }

  .cta-section { padding: 60px 0; }
  .cta-section h2 { font-size: 1.4rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Ticker mobile */
  .ticker-section { padding: 16px 0; }
  .ticker-item { padding: 6px 20px; font-size: .75rem; }

  /* Chat mobile */
  .chat-window { width: calc(100vw - 24px); right: 12px; bottom: 90px; max-height: 70vh; }
  .chat-trigger { right: 16px; bottom: 20px; width: 52px; height: 52px; }
  .chat-tooltip { right: 16px; bottom: 80px; font-size: .7rem; }
  .chat-body { max-height: 280px; min-height: 200px; }

  /* WhatsApp e back-to-top mobile */
  .whatsapp-float { bottom: 20px; left: 16px; width: 48px; height: 48px; }
  .back-to-top { bottom: 20px; right: 16px; width: 42px; height: 42px; }
}

/* Extra small phones */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card .number { font-size: 1.3rem; }
  .navbar-brand img { height: 30px; }
  .navbar-brand-text strong { font-size: .85rem; }
}
