/* ============================================
   COOPER IA — Design System
   Cooperativa de Tecnologia da Informação
   Estética: institucional, moderna, humana
   Paleta: verde · azul-petróleo · azul-navy · branco
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Backgrounds */
  --bg-deep: #ffffff;
  --bg-primary: #fafbfc;
  --bg-secondary: #f4f8f6;
  --bg-elevated: #eaf3ef;
  --bg-soft-teal: #ecfaff;
  --bg-soft-green: #ecfdf5;
  --bg-card: rgba(255, 255, 255, 0.96);

  /* Texto */
  --text-primary: #0c2340;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Cores institucionais */
  --green: #16a34a;
  --green-light: #22c55e;
  --green-dim: rgba(22, 163, 74, 0.08);
  --green-glow: rgba(22, 163, 74, 0.18);

  --teal: #0e7490;
  --teal-light: #0ea5b7;
  --teal-dim: rgba(14, 116, 144, 0.08);
  --teal-glow: rgba(14, 116, 144, 0.18);

  --navy: #0c2340;
  --navy-light: #163a64;

  /* Accent principal — verde institucional */
  --accent: var(--green);
  --accent-light: var(--green-light);
  --accent-dim: var(--green-dim);
  --accent-glow: var(--green-glow);

  /* Border */
  --border: rgba(12, 35, 64, 0.08);
  --border-hover: rgba(12, 35, 64, 0.16);

  /* Tipografia */
  --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Espaçamentos */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Raio */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transição */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;

  /* Layout */
  --container: min(1200px, calc(100% - 3rem));
  --nav-height: 92px;
  --section-padding: 5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 14px rgba(12, 35, 64, 0.06);
}

.nav-inner {
  width: var(--container);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0 0.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
}

.logo-img {
  height: 78px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration);
  letter-spacing: 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--green);
  font-weight: 600;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 2px;
}

.btn.btn-nav {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  margin-left: var(--space-sm);
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.18);
  font-weight: 600;
  letter-spacing: 0;
  transition: background var(--duration), transform var(--duration), box-shadow var(--duration);
}

.btn.btn-nav:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.28);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--duration), opacity var(--duration);
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== MENU LATERAL MOBILE ========== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.35);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  pointer-events: none;
}

.nav-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--border);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  box-shadow: -10px 0 36px rgba(12, 35, 64, 0.12);
}

.nav-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.nav-sidebar-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.nav-sidebar-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--duration), background var(--duration);
}

.nav-sidebar-close:hover {
  border-color: var(--green);
  background: var(--green-dim);
}

.nav-sidebar-links {
  list-style: none;
  padding: var(--space-md) var(--space-lg);
}

.nav-sidebar-links li {
  border-bottom: 1px solid var(--border);
}

.nav-sidebar-links li:last-child {
  border-bottom: none;
}

.nav-sidebar-links a {
  display: block;
  padding: var(--space-md) var(--space-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration), background var(--duration);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-sidebar-links a:hover,
.nav-sidebar-links a.active {
  color: var(--green);
  background: var(--green-dim);
  border-left-color: var(--green);
}

.nav-sidebar-cta {
  margin: var(--space-md) var(--space-lg) var(--space-xl);
  display: block;
  text-align: center;
}

@media (min-width: 901px) {
  .nav-overlay,
  .nav-sidebar {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .nav-overlay,
  .nav-sidebar {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open .nav-sidebar {
    transform: translateX(0);
  }
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-spacious {
  padding: var(--section-padding) 0;
}

@media (min-width: 1024px) {
  .section-spacious {
    padding: 6rem 0;
  }
}

.section-soft {
  background: var(--bg-secondary);
}

.section-soft-teal {
  background: linear-gradient(180deg, var(--bg-soft-teal) 0%, #fff 100%);
}

.section-soft-green {
  background: linear-gradient(180deg, var(--bg-soft-green) 0%, #fff 100%);
}

.section-navy {
  background: linear-gradient(135deg, var(--navy) 0%, #0e2a4a 60%, var(--teal) 130%);
  color: #fff;
}

.section-navy .section-title,
.section-navy .section-subtitle {
  color: #fff;
}

.section-navy .section-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.section-inner {
  width: var(--container);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
  text-wrap: balance;
  margin-bottom: 1rem;
  color: var(--navy);
  padding-bottom: 0.08em;
  overflow: visible;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ========== HERO ========== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  position: relative;
  background:
    linear-gradient(135deg, #f8fcfb 0%, #f4fbf8 46%, #f7fbff 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(34, 197, 94, 0.16) 0%, rgba(34, 197, 94, 0.09) 24%, transparent 48%),
    radial-gradient(circle at 12% 78%, rgba(14, 165, 183, 0.14) 0%, rgba(14, 165, 183, 0.08) 28%, transparent 56%),
    radial-gradient(circle at 52% 8%, rgba(12, 35, 64, 0.055) 0%, transparent 42%);
}

.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(248, 252, 251, 0) 0%, rgba(255, 255, 255, 0.88) 100%);
}

body.home .hero::before {
  background:
    radial-gradient(circle at 84% 22%, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.1) 25%, transparent 50%),
    radial-gradient(circle at 9% 82%, rgba(14, 165, 183, 0.14) 0%, rgba(14, 165, 183, 0.075) 30%, transparent 58%),
    radial-gradient(circle at 62% 46%, rgba(12, 35, 64, 0.05) 0%, transparent 46%);
}

.hero-inner {
  width: var(--container);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-inner.hero-simple {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.hero-inner.hero-simple .hero-content { max-width: 760px; }

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0;
  text-wrap: balance;
  margin-bottom: 1.25rem;
  color: var(--navy);
  padding-bottom: 0.08em;
  overflow: visible;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title .accent-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
  padding-bottom: 0.08em;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-subtitle-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

body.home .hero-inner:not(.hero-simple) .hero-subtitle,
.hero-inner:not(.hero-simple) .hero-actions {
  display: none;
}

body.home .hero-inner:not(.hero-simple) .hero-title {
  margin-bottom: 0;
}

.hero-highlight {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 540px;
  box-shadow: 0 6px 24px rgba(12, 35, 64, 0.04);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-inner:not(.hero-simple) .hero-visual {
  transform: translateY(2rem);
}

.hero-visual img {
  width: 100%;
  max-width: 540px;
  height: auto;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.hero-visual-bordered {
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.hero-visual-bordered img {
  border-radius: 22px;
  display: block;
}

@media (max-width: 768px) {
  .hero-visual-bordered {
    border-radius: 22px;
    padding: 8px;
  }

  .hero-visual-bordered img {
    border-radius: 18px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  letter-spacing: 0;
  transition: all var(--duration) ease;
  text-align: center;
  line-height: 1.45;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.22);
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.32);
}

.btn-hero {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-left: 2px;
  transition: transform var(--duration);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ========== SPLIT SECTIONS ========== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-content {
  max-width: 540px;
}

.split-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.split-text:last-of-type {
  margin-bottom: 0;
}

.split-visual {
  position: relative;
}

.split-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(12, 35, 64, 0.10);
}

.split-img-wrap img,
.split-img-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.split-list {
  max-width: 520px;
}

.split-list-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: 1.5rem;
}

.split-list-item:last-child {
  margin-bottom: 0;
}

.split-list-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  color: var(--green);
}

.split-list-icon svg {
  width: 22px;
  height: 22px;
}

.split-list-icon.teal {
  background: var(--teal-dim);
  color: var(--teal);
}

.split-list-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: var(--space-xs);
  color: var(--navy);
  padding-bottom: 0.04em;
  overflow: visible;
}

.split-list-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split-content { max-width: 100%; }
  .split-list { max-width: 100%; }
  .section-inner,
  .hero-inner { padding: 0 1.25rem; }
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 35, 64, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  color: var(--green);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-icon.teal {
  background: var(--teal-dim);
  color: var(--teal);
}

.card-icon.navy {
  background: rgba(12, 35, 64, 0.08);
  color: var(--navy);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--navy);
  line-height: 1.48;
  padding-bottom: 0.04em;
  overflow: visible;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-secondary);
  margin-bottom: var(--space-lg);
}

.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .card-media {
    aspect-ratio: 16 / 11;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .card-media {
    aspect-ratio: 4 / 3;
  }
}

.card-list {
  list-style: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* Card variants */
.card-feature {
  text-align: left;
}

/* Compact card */
.card-mini {
  padding: var(--space-lg);
}

.card-mini .card-title { font-size: 1.0625rem; }
.card-mini .card-text { font-size: 0.9rem; }

/* Card numerado / destaque */
.card-numbered {
  position: relative;
  padding-top: 2rem;
}

.card-numbered .card-num {
  position: absolute;
  top: -16px;
  left: var(--space-xl);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

/* ========== SELOS / DESTAQUES ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration), border-color var(--duration);
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.4;
}

/* ========== SERVIÇO DETALHADO (página serviços) ========== */
.service-block {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-block.reverse .service-block-content { order: 2; }
.service-block.reverse .service-block-visual { order: 1; }

.service-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: var(--space-md);
  color: var(--navy);
  line-height: 1.45;
  text-wrap: balance;
  padding-bottom: 0.06em;
  overflow: visible;
}

.service-block-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.service-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.25rem;
  margin-top: var(--space-md);
}

.service-benefits li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.service-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--green);
}

.service-block-visual {
  position: relative;
  background: linear-gradient(135deg, var(--bg-soft-green) 0%, var(--bg-soft-teal) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

.service-block-icon {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  box-shadow: 0 18px 48px rgba(12, 35, 64, 0.10);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.service-block-icon svg {
  width: 64px;
  height: 64px;
}

.service-block-image {
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px rgba(12, 35, 64, 0.12);
  border: none;
  position: relative;
  z-index: 2;
}

.service-block-image-wide {
  width: min(100%, 520px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}

.service-block-visual::before,
.service-block-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.service-block-visual::before {
  width: 220px;
  height: 220px;
  border: 2px dashed rgba(14, 116, 144, 0.18);
  top: 10%;
  left: -30%;
  animation: rotate 28s linear infinite;
}

.service-block-visual::after {
  width: 280px;
  height: 280px;
  border: 2px dashed rgba(22, 163, 74, 0.18);
  bottom: -20%;
  right: -20%;
  animation: rotate 38s linear infinite reverse;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .service-block-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-block.reverse .service-block-content,
  .service-block.reverse .service-block-visual { order: unset; }
  .service-benefits { grid-template-columns: 1fr; }
  .service-block-visual { min-height: 240px; padding: var(--space-lg); }
  .service-block-icon { width: 110px; height: 110px; }
  .service-block-icon svg { width: 52px; height: 52px; }
  .service-block-image { width: min(100%, 320px); }
  .service-block-image-wide { width: min(100%, 360px); }
}

/* ========== COOPERATIVISMO PAGE ========== */
.coop-quote {
  margin: var(--space-2xl) auto 0;
  max-width: 760px;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--bg-soft-green) 0%, var(--bg-soft-teal) 100%);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.65;
  text-align: center;
  font-style: italic;
}

/* ========== ESPECIALISTAS PAGE ========== */
#areas {
  background: linear-gradient(180deg, #f4fbf8 0%, var(--bg-soft-green) 22%, #ffffff 100%);
}

#areas .cards-grid {
  margin-top: 0;
}

.expert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.expert-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(12, 35, 64, 0.08);
}

.expert-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.expert-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.22);
}

.expert-card-icon svg {
  width: 28px;
  height: 28px;
}

.expert-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.expert-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.48;
  padding-bottom: 0.04em;
  overflow: visible;
}

.expert-card-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.expert-skills {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: var(--space-md);
}

.expert-skill-chip {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.45;
}

.expert-skill-chip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid var(--green);
}

/* ========== FORM (CONTATO) ========== */
.contato-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contato-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contato-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-dim);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contato-info-icon svg {
  width: 22px;
  height: 22px;
}

.contato-info-icon.teal {
  background: var(--teal-dim);
  color: var(--teal);
}

.contato-info-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 0.2rem;
  padding-bottom: 0.04em;
}

.contato-info-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  word-break: break-word;
}

.contato-info-text a {
  color: var(--text-secondary);
  transition: color var(--duration);
}

.contato-info-text a:hover {
  color: var(--green);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 8px 30px rgba(12, 35, 64, 0.05);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--duration), box-shadow var(--duration), background var(--duration);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px var(--green-dim);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (max-width: 900px) {
  .contato-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .form-row { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: var(--space-3xl) 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(14, 116, 144, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 90%, rgba(22, 163, 74, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.footer-inner {
  width: var(--container);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: var(--space-2xl);
  padding: 0 0.75rem var(--space-2xl);
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  width: fit-content;
  background: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
}

.logo-footer-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: var(--space-xl);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col-links li {
  margin-bottom: 0.65rem;
}

.footer-col-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color var(--duration);
}

.footer-col-links a:hover {
  color: var(--green-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--green-light);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--duration);
  word-break: break-word;
}

.footer-contact-item a:hover {
  color: var(--green-light);
}

.footer-bottom {
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-copy {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: left;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

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

/* ========== WHATSAPP FLUTUANTE ========== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: transform var(--duration), box-shadow var(--duration);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

/* ========== CTA SECTION ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #143058 50%, var(--teal) 130%);
  color: #fff;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(22, 197, 94, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 30% 60% at 90% 50%, rgba(14, 165, 183, 0.20) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner > * {
  position: relative;
  z-index: 2;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: 0;
  line-height: 1.45;
  text-wrap: balance;
  padding-bottom: 0.06em;
  overflow: visible;
}

.cta-banner-text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  animation: fadeUp 0.7s var(--ease-out) forwards;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (min-width: 1400px) {
  .hero { min-height: 80vh; }
}

@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root {
    --section-padding: 3.5rem;
    --nav-height: 76px;
  }

  .logo-img { height: 60px; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 2rem) 0 2.5rem;
  }

  .hero::before {
    background:
      radial-gradient(circle at 82% 12%, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.08) 28%, transparent 56%),
      radial-gradient(circle at 8% 88%, rgba(14, 165, 183, 0.12) 0%, rgba(14, 165, 183, 0.07) 30%, transparent 60%);
  }

  .hero::after {
    height: 28%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-content { max-width: 100%; }
  .hero-visual {
    order: -1;
    justify-content: center;
  }
  .hero-inner:not(.hero-simple) .hero-visual {
    transform: translateY(0.75rem);
  }
  .hero-visual img {
    max-width: 380px;
  }

  .nav-links { display: none; }
  .btn-nav { display: none !important; }
  .nav-toggle { display: flex; }

  .nav.scrolled .nav-toggle span,
  .nav.open .nav-toggle span { background: var(--navy); }

  .cards-grid,
  .cards-grid-2,
  .cards-grid-4 { grid-template-columns: 1fr; }

  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: 1.5rem; }

  .cta-banner { padding: var(--space-xl) var(--space-md); }
  .cta-banner-actions .btn { width: 100%; }

  .stats-row { gap: var(--space-md); }
  .stat-num { font-size: 1.625rem; }
}

@media (max-width: 560px) {
  :root { --container: min(100%, calc(100% - 1.5rem)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .form-actions .btn { flex: 1 1 100%; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.625rem; }
  .section-title { font-size: 1.4rem; }
  .card { padding: var(--space-lg); }
  .form-card { padding: var(--space-lg); }
  .service-block-visual { padding: var(--space-md); }
}
