/* ============================================================
   JOPEC Assessoria Contábil — style.css
   Fontes, tokens, reset, layout, componentes, animações
   ============================================================ */

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

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --red:        #CC0000;
  --red-dark:   #991500;
  --red-deep:   #901316;
  --red-hero:   #c50819;
  --dark:       #111111;
  --mid:        #444444;
  --light:      #666666;
  --border:     #e5e7eb;
  --bg-light:   #F8F8F8;
  --white:      #ffffff;
  --font-body:  'Inter', sans-serif;
  --font-head:  'Poppins', sans-serif;
  --radius-sm:  0.75rem;   /* 12px */
  --radius-md:  1rem;      /* 16px */
  --radius-lg:  1.5rem;    /* 24px */
  --radius-xl:  2rem;      /* 32px */
  --radius-full:9999px;
  --max-w:      1280px;
  --transition: 0.25s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--red); color: #fff; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ── Typography ───────────────────────────────────────────── */
.label-red {
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
}
.section-body {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: center;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-md { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }

.btn-red {
  background: var(--red);
  color: #fff;
  border: 2px solid transparent;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  background: #fff;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover { background: var(--dark); color: #fff; }

/* Neon spinning border wrapper */
@property --neon-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes neon-spin { to { --neon-angle: 360deg; } }

.neon-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 2px;
  background: conic-gradient(
    from var(--neon-angle),
    #5a0000 0deg, #CC0000 60deg, #FF4D4D 100deg,
    #fff 115deg, #FF4D4D 130deg, #CC0000 170deg,
    #5a0000 220deg, #5a0000 360deg
  );
  animation: neon-spin 2s linear infinite;
  box-shadow: 0 0 8px rgba(204,0,0,.6), 0 0 20px rgba(204,0,0,.35), 0 8px 30px rgba(204,0,0,.25);
}
.neon-wrap .btn-red { border-radius: var(--radius-full); }

/* ── Icon helpers ──────────────────────────────────────────── */
.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.icon-xl { width: 2rem; height: 2rem; }
svg.icon, svg.icon-sm, svg.icon-lg, svg.icon-xl { display: inline-block; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-logo img { height: 2.5rem; width: auto; object-fit: contain; }

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--light);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  line-height: 1;
}
.nav-link:hover, .nav-link.active { color: var(--red); }

/* Segmentos dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex; align-items: center; gap: 0.25rem; }
.nav-dropdown-toggle .chevron {
  width: 0.875rem; height: 0.875rem;
  transition: transform 0.2s;
}
.nav-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  min-width: 230px;
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-accent { height: 4px; background: linear-gradient(90deg, var(--red), #FF4D4D); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-body);
  text-decoration: none;
}
.dropdown-item:hover { background: #fff5f5; color: var(--red); }
.dropdown-item svg { color: var(--red); flex-shrink: 0; }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: flex; } }

/* Hamburger */
.hamburger {
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
}
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 90;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 0.5rem 0; font-size: 1rem; display: block; width: 100%; text-align: left; }
.mobile-menu .mobile-seg-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.25rem 0.375rem;
  display: block;
}
.mobile-menu .mobile-seg-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  cursor: pointer;
  text-decoration: none;
}
.mobile-menu .mobile-seg-item svg { color: var(--red); }
.mobile-menu .mobile-seg-item:hover { color: var(--red); }
.mobile-menu-sep { border-top: 1px solid #f3f4f6; margin: 0.25rem 0; }
.mobile-menu .btn-red { margin-top: 0.75rem; width: 100%; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #fff 0%, #fff0f0 100%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 10rem 0 7rem; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff0f0;
  border: 1px solid #fecaca;
  color: var(--red);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-badge-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.hero-title .highlight { color: var(--red); }

.hero-desc { color: var(--light); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.75; margin-bottom: 1.5rem; max-width: 38rem; }

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; align-items: center; } }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.hero-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}
.hero-check svg { color: var(--red); }

/* Hero image frame */
.hero-image-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.hero-image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: var(--radius-xl);
  transform: rotate(2deg);
  opacity: 0.9;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border: 4px solid #fff;
  transform: rotate(-1deg);
}
.hero-image-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(to top, rgba(153,0,0,0.6), transparent);
}
.hero-badge-float {
  position: absolute;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: bounce-float 3s ease-in-out infinite;
  z-index: 10;
}
.hero-badge-float.right { top: 2rem; right: -1rem; }
.hero-badge-float.left  { bottom: 3rem; left: -1rem; animation-delay: 1s; }
@keyframes bounce-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.float-icon.green { background: #dcfce7; color: #16a34a; }
.float-icon.red   { background: #fff0f0; color: var(--red); }
.float-label { font-weight: 700; font-size: 0.875rem; color: var(--dark); }
.float-sub   { font-size: 0.75rem; color: var(--light); }

/* ── Stats Strip ──────────────────────────────────────────── */
.stats-strip {
  background: #990000;
  padding: 4rem 0;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
}
.stat-label { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-top: 0.5rem; }
.stats-quote { text-align: center; font-style: italic; color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* ── Section layout helpers ───────────────────────────────── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-center { text-align: center; }
.section-head { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; }
.bg-white  { background: var(--white); }
.bg-light  { background: var(--bg-light); }
.bg-red    { background: var(--red-hero); position: relative; overflow: hidden; color: #fff; }

/* ── Diferenciais Cards ──────────────────────────────────────*/
.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.diferencial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.diferencial-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.diferencial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #FF4D4D);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.diferencial-card:hover::before { transform: scaleX(1); }

.card-icon-wrap {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.card-icon-red { background: #fff0f0; color: var(--red); }
.card-icon-gray { background: #f3f4f6; color: #6b7280; }
.diferencial-card:hover .card-icon-gray { background: var(--red); color: #fff; }

.card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--dark); margin-bottom: 0.75rem; }
.card-desc  { color: var(--light); line-height: 1.75; font-size: 0.9375rem; }

/* last-odd centering for 5-card grid */
@media (min-width: 1024px) {
  .cards-grid-3 .card-last-odd { grid-column: 2; }
}

/* ── Especialidades ───────────────────────────────────────── */
.spec-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: border-color 0.25s;
}
.spec-card:hover { border-color: rgba(204,0,0,0.3); }
.spec-card.featured { box-shadow: 0 0 0 2px var(--red); }

.spec-badge {
  position: absolute;
  top: -0.875rem; right: 1.5rem;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(204,0,0,0.4);
}
.spec-icon-wrap {
  width: 3rem; height: 3rem;
  background: #f3f4f6;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.spec-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.75rem; }
.spec-desc  { color: var(--light); margin-bottom: 1.5rem; font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spec-link  { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--red); font-weight: 700; font-size: 0.9375rem; transition: color var(--transition); }
.spec-link svg { transition: transform 0.2s; }
.spec-link:hover { color: var(--red-dark); }
.spec-link:hover svg { transform: translateX(4px); }

/* ── Serviços (flat 3x2 grid) ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.service-card:hover { background: var(--bg-light); border-color: var(--border); }
.service-card-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  width: 2.5rem; height: 2.5rem;
  background: #fff0f0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.service-card-title { font-family: var(--font-head); font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; font-size: 0.9375rem; }
.service-card-desc  { font-size: 0.875rem; color: var(--light); line-height: 1.65; }

/* ── Como Funciona ────────────────────────────────────────── */
.tab-switcher {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem;
  gap: 0.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-top: 1rem;
}
.tab-btn {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--light);
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn.active { background: var(--red); color: #fff; box-shadow: 0 2px 8px rgba(204,0,0,0.3); }
.tab-btn:hover:not(.active) { color: var(--dark); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.steps-line {
  display: none;
}
@media (min-width: 768px) {
  .steps-line {
    display: block;
    position: absolute;
    top: 2rem; left: 10%; right: 10%;
    height: 2px;
    background: #fecaca;
    pointer-events: none;
  }
}

.step-item { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.step-circle {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(204,0,0,0.2);
}
.step-number { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--red); }
.step-title  { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 0.5rem; }
.step-desc   { font-size: 0.875rem; color: var(--light); line-height: 1.65; padding: 0 0.5rem; }

/* ── Valores (red section) ────────────────────────────────── */
.red-section {
  background: var(--red-hero);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.red-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.red-section-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../images/pattern-jopec.png');
  background-size: 380px;
  background-repeat: repeat;
  opacity: 0.25;
  pointer-events: none;
}
.red-section .container { position: relative; z-index: 1; }

.red-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .red-two-col { grid-template-columns: 1fr 1fr; } }

.animate-float {
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.value-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.value-card {
  background: rgba(122,0,0,0.6);
  border: 1px solid rgba(204,0,0,0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background 0.25s;
  text-align: left;
}
.value-card:hover { background: rgba(122,0,0,0.85); }
.value-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.value-card-desc  { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.65; }

/* ── Google Reviews ───────────────────────────────────────── */
.review-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
@media (min-width: 768px) { .review-cards { grid-template-columns: repeat(3, 1fr); } }

.review-card { background: var(--bg-light); padding: 1.5rem; border-radius: var(--radius-lg); }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; }
.stars svg { fill: #facc15; color: #facc15; }
.review-text { color: var(--dark); font-style: italic; font-weight: 500; margin-bottom: 1.5rem; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.875rem; color: var(--dark); }
.author-role { font-size: 0.75rem; color: var(--light); }

/* Google logo */
.google-logo { margin: 0 auto 1.25rem; display: flex; justify-content: center; }
.google-stars { display: flex; justify-content: center; gap: 0.25rem; margin-bottom: 1rem; }
.google-stars svg { width: 2rem; height: 2rem; fill: #facc15; color: #facc15; }

/* ── Clients Carousel ─────────────────────────────────────── */
.carousel-section {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.carousel-track-wrap {
  position: relative;
  overflow: hidden;
}
.carousel-fade-left {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6rem;
  background: linear-gradient(to right, #fff, transparent);
  z-index: 10;
  pointer-events: none;
}
.carousel-fade-right {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 6rem;
  background: linear-gradient(to left, #fff, transparent);
  z-index: 10;
  pointer-events: none;
}
.carousel-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-item {
  flex-shrink: 0;
  width: 140px;
  margin: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
}
.client-logo {
  width: 5rem; height: 5rem;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s;
}
.client-item:hover .client-logo { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.client-initials { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; color: #fff; }
.client-name { font-size: 0.75rem; font-weight: 600; color: var(--light); text-align: center; line-height: 1.3; }

/* ── Contact Section ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon img { width: 3rem; height: 3rem; object-fit: contain; flex-shrink: 0; }
.contact-info-label { font-weight: 700; font-size: 1.125rem; color: var(--dark); margin-bottom: 0.25rem; }
.contact-info-value { color: var(--light); }
.contact-info-value a { color: var(--light); transition: color var(--transition); }
.contact-info-value a:hover { color: var(--red); }

.contact-form-box {
  background: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}
@media (min-width: 768px) { .contact-form-box { padding: 2.5rem; } }

.form-title { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--dark); margin-bottom: 1.5rem; }
.form-group  { margin-bottom: 1rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--dark); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark);
  outline: none;
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
.form-textarea { resize: none; }
.form-select { color: var(--light); cursor: pointer; }
.form-select option { color: var(--dark); }

.form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 0.75rem;
  display: none;
}
.form-message.success { background: #dcfce7; color: #15803d; display: block; }
.form-message.error   { background: #fef2f2; color: #b91c1c; display: block; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--red-deep);
  color: #fff;
  border-top: 8px solid var(--red);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-logo { margin-bottom: 1.5rem; }
.footer-logo img { height: 3rem; object-fit: contain; }
.footer-tagline { color: rgba(255,255,255,0.8); max-width: 20rem; line-height: 1.75; margin-bottom: 1.5rem; font-size: 0.9375rem; }

.footer-socials { display: flex; gap: 0.75rem; }
.social-btn {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--transition);
}
.social-btn:hover { background: var(--red); }

.footer-col-title { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-links a,
.footer-links button {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.footer-links a:hover, .footer-links button:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; color: rgba(255,255,255,0.8); font-size: 0.9375rem; }
.footer-contact-item img { width: 1.25rem; height: 1.25rem; object-fit: contain; flex-shrink: 0; margin-top: 0.1rem; }
.footer-contact-item a { color: rgba(255,255,255,0.8); transition: color var(--transition); text-decoration: none; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-bottom a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1rem; }

/* ── Sobre: História ──────────────────────────────────────── */
.historia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .historia-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.timeline-card-top { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), #FF4D4D); }
.timeline-year { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 0.25rem; }
.timeline-year-label { color: var(--light); font-weight: 600; margin-bottom: 1.5rem; }
.timeline-items { display: flex; flex-direction: column; gap: 1.25rem; }
.timeline-item { display: flex; gap: 1rem; align-items: flex-start; }
.timeline-dot-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--red); margin-top: 0.3rem; }
.timeline-connector { width: 2px; height: 2rem; background: var(--border); margin-top: 0.25rem; }
.timeline-item-year { font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; color: var(--red); }
.timeline-item-desc { font-size: 0.875rem; color: var(--light); line-height: 1.55; }

/* ── Sobre: Galeria ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: default;
  min-height: 160px;
}
.gallery-item.tall { min-height: 340px; }
@media (min-width: 768px) { .gallery-item.tall { grid-row: span 2; } }

.gallery-bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.5s;
}
.gallery-item:hover .gallery-bg { transform: scale(1.05); }

.gallery-icon-circle {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.gallery-icon-circle:hover { background: rgba(255,255,255,0.2); }
.gallery-photo-tag { display: flex; align-items: center; gap: 0.375rem; color: rgba(255,255,255,0.5); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.gallery-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 1rem;
}
.gallery-label-title { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; line-height: 1.3; }
.gallery-label-sub   { color: rgba(255,255,255,0.7); font-size: 0.75rem; margin-top: 0.125rem; }

/* ── MVV Cards ────────────────────────────────────────────── */
.mvv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}
.mvv-card:hover { box-shadow: 0 16px 50px rgba(0,0,0,0.1); }
.mvv-card-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--border);
  transition: background 0.3s;
}
.mvv-card:hover .mvv-card-bar { background: linear-gradient(90deg, var(--red), #FF4D4D); }
.mvv-card-icon {
  width: 3.5rem; height: 3.5rem;
  background: #f3f4f6;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #6b7280;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.mvv-card:hover .mvv-card-icon { background: var(--red); color: #fff; }
.mvv-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--dark); margin-bottom: 1rem; }
.mvv-card-text  { color: var(--light); line-height: 1.75; flex: 1; }

/* ── Specialty Page ───────────────────────────────────────── */
.challenges-grid, .solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .challenges-grid, .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}

.challenge-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.challenge-icon {
  width: 3rem; height: 3rem;
  background: #fff0f0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  margin-bottom: 1.25rem;
}
.challenge-title { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--dark); margin-bottom: 0.75rem; }
.challenge-desc  { color: var(--light); line-height: 1.7; }

.solution-card {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(204,0,0,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: border-color 0.25s;
}
.solution-card:hover { border-color: var(--red); }
.solution-icon {
  width: 3rem; height: 3rem;
  background: var(--red);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}
.solution-title { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: var(--dark); margin-bottom: 0.75rem; }
.solution-desc  { color: var(--light); line-height: 1.7; }

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 640px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  background: rgba(122,0,0,0.6);
  border: 1px solid rgba(204,0,0,0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background 0.25s;
}
.benefit-card:hover { background: rgba(122,0,0,0.85); }
.benefit-check {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  color: #fff;
}
.benefit-text { color: #fff; font-weight: 600; line-height: 1.5; }

/* ── Blog Section ─────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg-light);
}
.blog-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
}
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 0.75rem; color: var(--red); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.blog-card-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--dark); margin-bottom: 0.75rem; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.875rem; color: var(--light); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.blog-card-link { color: var(--red); font-weight: 700; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.375rem; transition: color var(--transition); }
.blog-card-link:hover { color: var(--red-dark); }
.blog-loading { text-align: center; color: var(--light); padding: 2rem; }
.blog-error   { text-align: center; color: var(--light); padding: 2rem; }

/* ── Page header (sobre/specialty) ───────────────────────── */
.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #fff 0%, #fff0f0 100%);
  position: relative;
  overflow: hidden;
}

/* Retira o espaço duplicado entre o título e a descrição */
.page-hero .hero-title {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 10rem 0 5rem;
  }
}
/* ── Utilities ────────────────────────────────────────────── */
.max-5xl  { max-width: 960px;  margin-left: auto; margin-right: auto; }
.max-6xl  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.flex-center-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.gap-4 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

/* Page-specific top padding (accounts for fixed header) */
.page-top { padding-top: 5rem; }

/* Specialty segment tabs at top of page */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Responsive image fill */
.img-float-pc { width: 100%; max-width: 420px; object-fit: contain; }

/* Corrige os botões do processo no celular */
@media (max-width: 767px) {
  #como-funciona .tab-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  #como-funciona .tab-btn {
    width: 100%;
    min-width: 0;
    padding: 0.875rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
  }
}

/* Tamanho dos botões de ação no celular */
@media (max-width: 767px) {
  .btn.btn-lg {
    font-size: 0.875rem;
    line-height: 1.2;
    padding: 0.875rem 1rem;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Padronização das heros no celular */
@media (max-width: 767px) {

  /* Centraliza selo, título e descrição */
  .hero .hero-badge,
  .page-hero .hero-badge {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero .hero-title,
  .page-hero .hero-title,
  .hero .hero-desc,
  .page-hero .hero-desc {
    width: 100%;
    max-width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Faz o grupo de botões ocupar toda a largura */
  .hero .hero-ctas,
  .page-hero .hero-ctas {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Faz os dois botões preencherem a largura */
  .hero .hero-ctas > .neon-wrap,
  .page-hero .hero-ctas > .neon-wrap,
  .hero .hero-ctas > .btn,
  .page-hero .hero-ctas > .btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Corrige as duas cores no botão vermelho */
  .hero .hero-ctas .neon-wrap > .btn,
  .page-hero .hero-ctas .neon-wrap > .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    background: var(--red) !important;
    box-sizing: border-box;
  }

  /* Centraliza os benefícios abaixo dos botões */
  .hero .hero-checks,
  .page-hero .hero-checks {
    width: 100%;
    justify-content: center;
  }
}

/* Centraliza o selo da home no celular */
@media (max-width: 767px) {
  .hero .hero-badge {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Padroniza títulos e selos de todas as heros no celular */
@media (max-width: 767px) {
  .hero .hero-badge,
  .page-hero .hero-badge {
    display: flex;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
  }

  .hero .hero-title,
  .page-hero .hero-title {
    width: 100%;
    max-width: 23rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.8rem, 7.5vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-align: center;
  }

  /* Mantém “segurança financeira” unida na home */
  .hero .hero-title .highlight {
    display: inline-block;
    white-space: nowrap;
  }
}

/* Botões da seção de serviços no celular */
@media (max-width: 767px) {
  .service-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .service-ctas > .neon-wrap,
  .service-ctas > .btn {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }

  .service-ctas .neon-wrap > .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    background: var(--red) !important;
  }
}

/* Seção O Que Nos Guia no celular */
@media (max-width: 767px) {
  .red-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    overflow: hidden;
  }

  .red-two-col {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Centraliza o cabeçalho da seção */
  .red-two-col > div:last-child > span {
    text-align: center;
  }

  .red-two-col .section-title {
    width: 100%;
    margin-bottom: 2rem !important;
    text-align: center;
    font-size: 2rem;
    line-height: 1.1;
  }

  /* Organiza os cards em uma coluna */
  .red-section .value-cards {
    display: grid;
    grid-template-columns: 1fr !important;
    width: 100%;
    gap: 1rem;
  }

  .red-section .value-card {
    width: 100%;
    min-height: auto;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  .red-section .value-card-title {
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }

  .red-section .value-card-desc {
    line-height: 1.6;
  }
}