/* ==========================================================================
   JHONATA PAULINO · CORRETOR DE IMÓVEIS · CRECI-SP 307407-F
   Paleta Oficial: Preto e Amarelo (Contraste Nobre & Visual de Luz)
   Responsividade Cirúrgica 100% (Varredura 320px a 1920px + Paisagem)
   ========================================================================== */

:root {
  /* Tons Oficiais: Preto Neutro & Amarelo Vibrante (Zero Marrom) */
  --bg-noir: #0a0a0a;             /* Preto neutro profundo (R=G=B=10, 0% saturação) */
  --surface-warm: #121212;        /* Superfície neutra primária (R=G=B=18) */
  --surface-elevated: #1a1a1a;    /* Superfície neutra elevada / cartões (R=G=B=26) */
  --border-subtle: #262626;       /* Fio sutil neutro (R=G=B=38) */
  --border-light: rgba(255, 208, 0, 0.22); /* Fio amarelo sutil */
  
  --accent-gold: #ffd000;         /* Amarelo vibrante (H=49°, S=100%, L=50%) */
  --accent-gold-hover: #ffe033;   /* Amarelo hover iluminado (H=51°, S=100%, L=60%) */
  --accent-glow: rgba(255, 208, 0, 0.28); /* Brilho de luz amarela */
  
  --text-pure: #ffffff;           /* Branco puro de alto contraste */
  --text-muted: #e0e0e0;          /* Cinza claro neutro */
  --text-dim: #999999;            /* Cinza médio neutro para apoios */
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-noir);
  color: var(--text-pure);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background-color: var(--bg-noir);
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 208, 0, 0.07) 0%, transparent 60%);
  color: var(--text-pure);
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
}

/* Background 3D Canvas */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.8s ease;
}

/* Layout Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 24px);
  box-sizing: border-box;
  min-width: 0;
}

/* Quebra Universal de Linha para Prevenção de Estouro por Palavras Longas */
.hero-title,
.hero-subtitle,
.section-headline,
.section-lead,
.pillar-title,
.pillar-text,
.contact-content h2,
.contact-content p,
.channel-title,
.channel-val,
.footer-name,
.footer-tagline,
.footer-nav-link,
.footer-bottom {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ==========================================================================
   HEADER RESPONSIVO (Área Segura & Encolhimento Fluido)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  min-height: var(--header-height);
  height: auto;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(12px, 3.5vw, 24px);
  padding-block: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-pure);
  min-width: 0;
  flex-shrink: 1;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  white-space: nowrap;
}

.creci-badge-top {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 48px;
  min-width: 48px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  color: #000000;
  background: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 0.25s var(--transition-smooth), background-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header span {
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

/* ==========================================================================
   SHINY SWEEP EFFECT (Animação via Transform, Zero Layout Thrashing)
   ========================================================================== */
.btn-shiny {
  position: relative;
  overflow: hidden;
}

.btn-shiny::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: translateX(-150%) skewX(-22deg);
  will-change: transform;
  animation: shinySweep 4.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

@keyframes shinySweep {
  0% {
    transform: translateX(-150%) skewX(-22deg);
  }
  30% {
    transform: translateX(180%) skewX(-22deg);
  }
  100% {
    transform: translateX(180%) skewX(-22deg);
  }
}

/* ==========================================================================
   BUTTONS (Acessibilidade: Mínimo 48x48px)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  min-height: 52px;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  color: #000000;
  background: var(--accent-gold);
  box-shadow: 0 10px 28px var(--accent-glow);
  transition: transform 0.3s var(--transition-smooth), background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 34px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  min-height: 52px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-pure);
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border-light);
  transition: transform 0.3s var(--transition-smooth), border-color 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-secondary:hover {
  background: rgba(38, 38, 38, 0.9);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION (Primeira Dobra Completa & Sem Esperar JS)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 0 70px;
  overflow: visible;
  min-width: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  min-width: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.hero-creci-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.08);
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
  max-width: 100%;
  box-sizing: border-box;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  flex-shrink: 0;
}

.pill-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin-bottom: 22px;
}

.hero-title .text-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 35px var(--accent-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  width: 100%;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(38, 38, 38, 0.6);
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  min-width: 0;
}

.trust-icon {
  width: 20px;
  height: 20px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

/* Moldura e Retrato de Jhonata (Glow Confinado) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 32px;
  padding: 10px;
}

.visual-ambient-glow {
  position: absolute;
  width: min(440px, 90vw);
  height: min(440px, 90vw);
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(460px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface-warm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 208, 0, 0.12);
  box-sizing: border-box;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  z-index: 3;
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02);
}

/* Informação de Localização Flutuante */
.floating-geo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 4;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
}

.geo-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

.geo-info-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-pure);
}

.geo-info-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÕES DA PÁGINA (Superfície Contínua, Sem Pilha de Retângulos)
   ========================================================================== */
.section-wrapper {
  position: relative;
  padding: 90px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
  min-width: 0;
}

.section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max-width));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-intro {
  margin-bottom: 48px;
  max-width: 680px;
  min-width: 0;
}

.section-headline {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-pure);
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Pilares de Atuação (Layout Editorial com Linhas Finas) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  min-width: 0;
}

.pillar-item {
  position: relative;
  background: var(--surface-warm);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px 26px;
  transition: border-color 0.3s ease, transform 0.3s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}

.pillar-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-item:hover {
  border-color: rgba(255, 208, 0, 0.45);
  transform: translateY(-4px);
}

.pillar-item:hover::before {
  opacity: 1;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 208, 0, 0.1);
  border: 1px solid rgba(255, 208, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.pillar-svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pillar-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO DE CONTATO (Fluida, Sem Estouro de 377px)
   ========================================================================== */
.contact-section {
  position: relative;
  padding: 90px 0;
  min-width: 0;
}

.contact-card {
  background: linear-gradient(145deg, var(--surface-warm) 0%, var(--bg-noir) 100%);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 56px 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  min-width: 0;
  width: 100%;
}

.contact-content {
  min-width: 0;
  width: 100%;
}

.contact-content h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.contact-content p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.contact-direct-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 18px 22px;
  min-height: 56px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: transform 0.25s var(--transition-smooth), border-color 0.25s ease, background-color 0.25s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.channel-link:hover {
  transform: translateX(4px);
  border-color: var(--accent-gold);
  background: rgba(38, 38, 38, 0.7);
}

.channel-link div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.channel-icon {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

.channel-title {
  font-size: 0.875rem;
  color: var(--text-dim);
  display: block;
}

.channel-val {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-pure);
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

/* ==========================================================================
   FOOTER (CRECI com fonte >= 25% da fonte do nome & Área Segura)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-noir);
  padding-block: 60px max(40px, env(safe-area-inset-bottom, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 24px);
  box-sizing: border-box;
  min-width: 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(38, 38, 38, 0.6);
  min-width: 0;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-name {
  font-size: 1.5rem; /* 24px */
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

.creci-badge-footer {
  font-size: 0.9375rem; /* 15px contra 24px = 62.5% (cumpre plenamente a regra de >= 25%) */
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 440px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.footer-links-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.footer-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav-link:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-dim);
  min-width: 0;
}

.footer-official-url {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-official-url:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   404 ERROR PAGE SPECIFICS
   ========================================================================== */
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-width: 0;
}

.error-container {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.error-code {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent-gold);
  text-shadow: 0 0 50px var(--accent-glow);
  margin-bottom: 12px;
}

.error-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 16px;
}

.error-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* ==========================================================================
   RESPONSIVIDADE RIGOROSA (Varredura Completa 320px a 1920px)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  
  .hero-content {
    align-items: flex-start;
  }
  
  .hero-visual {
    order: -1;
    max-width: 380px;
    margin-inline: auto;
  }
  
  .pillars-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }
  
  .hero-section {
    padding: 32px 0 48px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .contact-card {
    padding: 32px 18px;
    border-radius: 20px;
  }
  
  .channel-link {
    padding: 14px 14px;
    gap: 12px;
  }

  .channel-val {
    font-size: 0.9375rem;
  }
  
  .contact-content .btn-primary {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    padding: 14px 16px;
    font-size: 0.9375rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  
  .footer-top-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  
  .floating-geo-badge {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 14px;
    width: 100%;
  }
}

/* Faixa Celular Estreita (361px a 480px) */
@media (max-width: 480px) {
  .brand-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex-shrink: 1;
  }
  
  .brand-name {
    font-size: 1.0625rem; /* 17px */
    white-space: nowrap;
    line-height: 1.2;
  }
  
  .creci-badge-top {
    font-size: 0.6875rem; /* 11px -> 11/17 = 64.7% >= 25% */
    padding: 2px 7px;
    white-space: nowrap;
    line-height: 1.2;
  }
  
  .header-actions {
    flex-shrink: 0;
    min-width: 0;
  }
  
  .btn-header {
    padding: 8px 12px;
    min-height: 44px;
    font-size: 0.8125rem;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .hero-trust-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .contact-card {
    padding: 24px 14px;
    border-radius: 18px;
  }
  
  .channel-link {
    padding: 12px 12px;
    gap: 10px;
  }

  .channel-val {
    font-size: 0.875rem;
  }

  .contact-content .btn-primary {
    font-size: 0.875rem;
    padding: 14px 12px;
  }
}

/* Telas Extremamente Estreitas (<= 360px e 320px) */
@media (max-width: 360px) {
  .header-container {
    padding-inline: 10px;
    gap: 6px;
  }
  
  .brand-name {
    font-size: 1rem; /* 16px */
  }
  
  .creci-badge-top {
    font-size: 0.6875rem; /* 11px */
    padding: 2px 6px;
  }
  
  .btn-header {
    padding: 7px 10px;
    font-size: 0.78125rem;
    gap: 4px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .contact-card {
    padding: 20px 12px;
  }
}

/* Modo Redução de Movimento (Acessibilidade) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  
  .btn-shiny::after {
    display: none !important;
    animation: none !important;
  }
  
  #ambient-canvas {
    display: none !important;
  }
}
