/* ═══════════ PERFORMANCE OPTIMIZATIONS (injected) ═══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg, iframe { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  [class*="blur-"], [style*="blur("] { filter: blur(40px) !important; }
  .hero-blob, .hero-blobs > * { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
#hero h1, .hero h1, header h1 {
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}
@media (max-width: 1023px) {
  #hero h1, .hero h1, header h1 {
    font-size: clamp(2rem, 11vw, 4.5rem) !important;
  }
}
/* ═══════════════════════════════════════════════════════════ */

/* ============================================================
   INTEGRA3D — Landing Page (v2)
   ============================================================ */

:root {
  --primary: #229E9E;
  --primary-light: #19D1CC;
  --primary-dark: #1B7E7E;
  --dark-bg: #28282A;
  --dark-bg-2: #1f1f21;
  --text-dark: #131313;
  --text-gray: #727272;
  --text-mute: #9aa0a6;
  --white: #FFFFFF;
  --border-light: #e6e6e6;
  --dot-color: #d8d8d8;
  --wpp: #25D366;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 28px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* ---------- Focus visível (acessibilidade) ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Barra lateral teal fixa ---------- */
.side-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: 4px;
  height: 100vh;
  background: var(--primary);
  z-index: 999;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 4px;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: 998;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.95);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 18px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.logo-mark.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
.logo-accent { color: var(--primary); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color 0.2s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.btn-cta-sm {
  min-width: auto;
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 20px 24px 28px;
  gap: 14px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav a {
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav .btn-cta { margin-top: 12px; min-width: auto; width: 100%; }

/* ============================================================
   COMPONENTES REUTILIZÁVEIS
   ============================================================ */

/* Pill / Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  padding: 4px 18px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  background: transparent;
}
.section-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,158,158,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,158,158,0); }
}
.section-badge.dark { background: var(--dark-bg); }
.section-badge.light { background: var(--white); }

/* Botão CTA gradiente */
.btn-cta {
  display: inline-block;
  background: linear-gradient(90deg, #229E9E -8.33%, #19D1CC 46.94%, #229E9E 102.22%);
  background-size: 200% 100%;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 13px;
  font-weight: 600;
  padding: 17px 36px;
  border-radius: 4px;
  text-decoration: none;
  min-width: 250px;
  text-align: center;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34,158,158,0.25);
}
.btn-cta:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(34,158,158,0.35);
}
.btn-cta:active { transform: translateY(0); }

.btn-secondary {
  display: inline-block;
  padding: 17px 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
  border-radius: 4px;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: var(--text-dark);
  color: #fff;
}

/* Card teal */
.card-teal {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 32px 30px;
  color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card-teal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), #fff);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-teal:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(34, 158, 158, 0.35);
}
.card-teal:hover::before { opacity: 1; }
.card-teal h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-teal p { font-size: 15.5px; line-height: 1.65; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.card-icon svg { width: 24px; height: 24px; }

/* Headings padrão */
.section-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-title.light { color: var(--white); }
.section-title.dark { color: var(--text-dark); }

.section-sub {
  font-size: 16.5px;
  color: var(--text-gray);
  max-width: 720px;
  margin: 8px auto 0;
  line-height: 1.65;
}
.section-sub.left { margin: 8px 0 0; text-align: left; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 0 100px;
  overflow: hidden;
  background-color: var(--white);
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-content { max-width: 580px; }

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image picture { display: block; width: 100%; }
.hero-image img {
  width: 100%;
  height: auto;
  max-width: 540px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.15));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-badge { margin-bottom: 28px; }

.hero-title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 22px;
  letter-spacing: -0.8px;
}

.hero-text {
  font-size: 16.5px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Scroll down button */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-decoration: none;
  animation: bounceDown 2.4s infinite;
  transition: background 0.3s ease;
}
.scroll-down:hover { background: var(--primary); }
.scroll-down:hover svg { stroke: #fff; }
.scroll-down svg { transition: stroke 0.3s ease; }
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, 8px); }
  60% { transform: translate(-50%, 4px); }
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-num {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-left: 2px;
  vertical-align: top;
}
.stat-label {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-gray);
  max-width: 180px;
  line-height: 1.4;
}

/* ============================================================
   SEÇÕES
   ============================================================ */

.section { padding: 90px 0; position: relative; }
.section-dark { background: var(--dark-bg); }
.section-light { background: var(--white); }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-badge { display: inline-flex; }

/* Grid 3 colunas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   PORTFÓLIO
   ============================================================ */

.card-portfolio {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-portfolio:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-portfolio .card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}
.card-portfolio .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card-portfolio:hover .card-image img { transform: scale(1.06); }
.card-portfolio .card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-portfolio h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.card-portfolio ul { margin-bottom: 24px; flex: 1; }
.card-portfolio ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.55;
  margin-bottom: 10px;
}
.card-portfolio ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}
.card-portfolio .btn-card {
  min-width: auto;
  width: 100%;
  padding: 15px 20px;
  align-self: stretch;
}

/* ============================================================
   SOBRE (Dr. Wilson)
   ============================================================ */
.section-about {
  background: var(--white);
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.about-lead {
  font-size: 18px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 16px;
}
.about-text p {
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 24px;
}
.about-list {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.about-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dark);
  font-size: 15px;
}
.about-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}
.about-list li strong { color: var(--primary); font-weight: 700; }

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-visual picture { display: block; height: 100%; }
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-card-floating {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 16px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.floating-label {
  font-size: 12px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 4px;
}
.floating-value {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 600;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text-dark);
  position: relative;
  padding-right: 40px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 0 22px;
  color: var(--text-gray);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.section-cta {
  background: var(--white);
  background-image: radial-gradient(circle, var(--dot-color) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 100px 0;
  position: relative;
}
.cta-content { max-width: 520px; }
.cta-content .section-title { margin-bottom: 16px; }
.cta-content .section-sub { margin-bottom: 36px; }

/* ============================================================
   CONTATO
   ============================================================ */
.section-contact {
  background: var(--white);
  padding: 90px 0 110px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.contact-card[href]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34,158,158,0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  font-size: 13px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.contact-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  padding: 40px 0;
  color: #c7c7c7;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 500;
}
.footer-brand strong { color: var(--primary-light); }
.footer p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   FAB WhatsApp
   ============================================================ */
.wpp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wpp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  animation: fabPulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.wpp-fab svg { width: 30px; height: 30px; }
.wpp-fab:hover { transform: scale(1.08); }
.wpp-fab-tip {
  position: absolute;
  right: 70px;
  background: var(--text-dark);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.wpp-fab-tip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text-dark);
}
.wpp-fab:hover .wpp-fab-tip { opacity: 1; transform: translateX(0); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

/* ---------- Tablet landscape ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-title { font-size: 40px; }
  .section-title { font-size: 34px; }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .about-grid { gap: 40px; }
  .stat-num { font-size: 42px; }
  .stat-suffix { font-size: 28px; }
}

/* ---------- Tablet portrait → mostra menu hamburger ---------- */
@media (max-width: 860px) {
  .nav, .btn-cta-sm { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.open { display: flex; }

  .hero-container { gap: 40px; }
  .hero-image img { max-width: 420px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }

  /* Esconde a barra teal lateral pra não roubar espaço */
  .side-bar { display: none; }
  .header { right: 0; }

  /* Header mais compacto */
  .header-inner { gap: 12px; }
  .logo { font-size: 16px; }
  .logo-mark { width: 32px; height: 32px; font-size: 12px; }

  /* HERO: imagem no topo, texto embaixo */
  .hero {
    padding: calc(var(--header-h) + 24px) 0 56px;
    min-height: auto;
    display: block;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-image {
    order: -1;
    margin-bottom: 4px;
  }
  .hero-image img {
    max-width: 320px;
    animation: floatY 6s ease-in-out infinite;
  }
  .hero-content { max-width: 100%; }
  .hero-badge { margin-bottom: 20px; font-size: 12px; }
  .hero-title { font-size: 30px; line-height: 1.18; margin-bottom: 18px; }
  .hero-text { font-size: 15px; margin-bottom: 28px; }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-actions > * { width: 100%; text-align: center; }
  .btn-cta { min-width: auto; padding: 16px 24px; width: 100%; }
  .btn-secondary { padding: 15px 24px; width: 100%; }
  .scroll-down { display: none; }

  /* Stats: 2 colunas */
  .stats { padding: 36px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .stat-num { font-size: 36px; }
  .stat-suffix { font-size: 24px; }
  .stat-label { font-size: 13.5px; max-width: 160px; }

  /* Seções gerais */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 26px; line-height: 1.22; }
  .section-sub { font-size: 15px; }

  /* Cards em 1 coluna */
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card-teal { padding: 28px 24px; }
  .card-teal h3 { font-size: 18.5px; }
  .card-teal p { font-size: 15px; }

  /* Portfolio */
  .card-portfolio .card-body { padding: 22px; }
  .card-portfolio h3 { font-size: 18.5px; }
  .card-portfolio .btn-card { padding: 14px 18px; }

  /* Sobre */
  .section-about { padding: 70px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-visual {
    aspect-ratio: 16 / 11;
    order: -1;
  }
  .about-list { grid-template-columns: 1fr; gap: 10px; }
  .about-lead { font-size: 16.5px; }

  /* FAQ */
  .faq-item { padding: 2px 18px; }
  .faq-item summary { font-size: 15.5px; padding: 16px 0; padding-right: 36px; }
  .faq-item summary::after { font-size: 24px; }
  .faq-item p { font-size: 14.5px; padding-bottom: 18px; }

  /* CTA final */
  .section-cta { padding: 70px 0; }
  .cta-content { max-width: 100%; }
  .cta-content .section-sub { margin-bottom: 28px; }

  /* Contato */
  .section-contact { padding: 70px 0 90px; }
  .contact-grid { grid-template-columns: 1fr; gap: 14px; max-width: 100%; }
  .contact-card { padding: 24px 22px; flex-direction: row; align-items: center; gap: 16px; }
  .contact-card .contact-icon { margin-bottom: 0; flex-shrink: 0; }
  .contact-card > div + div { display: flex; flex-direction: column; }
  .contact-card .contact-label { font-size: 12px; }
  .contact-card .contact-value { font-size: 16px; }

  /* Footer */
  .footer { padding: 32px 0; }
  .footer p { font-size: 13px; }

  /* WhatsApp FAB */
  .wpp-fab { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wpp-fab svg { width: 26px; height: 26px; }
  .wpp-fab-tip { display: none; }
}

/* ---------- Mobile pequeno ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero {
    padding: calc(var(--header-h) + 20px) 0 48px;
  }
  .hero-image img { max-width: 260px; }
  .hero-title { font-size: 26px; letter-spacing: -0.5px; }
  .hero-text { font-size: 14.5px; line-height: 1.65; }

  .section-title { font-size: 22px; letter-spacing: -0.3px; }
  .section-sub { font-size: 14.5px; }
  .section-badge { font-size: 11.5px; padding: 4px 12px; letter-spacing: 0.3px; }

  .stats-grid { gap: 24px 12px; }
  .stat-num { font-size: 32px; }
  .stat-suffix { font-size: 22px; }
  .stat-label { font-size: 13px; }

  .card-teal { padding: 24px 20px; }
  .card-teal h3 { font-size: 17.5px; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 16px; }
  .card-icon svg { width: 22px; height: 22px; }

  .card-portfolio .card-body { padding: 20px; }
  .card-portfolio ul li { font-size: 14.5px; }

  .about-visual { aspect-ratio: 4 / 3; }
  .about-card-floating { left: 16px; bottom: 16px; padding: 12px 16px; }
  .floating-value { font-size: 14.5px; }

  .faq-item summary { font-size: 14.5px; }

  .footer p { font-size: 12.5px; }
  .footer-brand { font-size: 14px; }

  .btn-cta { padding: 15px 18px; font-size: 12px; letter-spacing: 1.5px; }
  .btn-secondary { padding: 14px 18px; font-size: 12px; letter-spacing: 1.4px; }
}

/* ---------- Mobile muito pequeno (iPhone SE etc) ---------- */
@media (max-width: 360px) {
  .hero-title { font-size: 23px; }
  .section-title { font-size: 20px; }
  .hero-image img { max-width: 220px; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Acessibilidade: reduzir movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-down { animation: none; }
  .wpp-fab { animation: none; }
  .section-badge .dot { animation: none; }
}
