/* AuraCore Tech — padronização responsiva compartilhada pelas três páginas */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 95px; }
body { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
.logo-img { width: auto; max-width: 100%; height: 45px; object-fit: contain; }
.section-container, .content, .dash-showcase, .dash-content, .form-wizard,
.service-card, .project-card, .kpi-card, .login-box { min-width: 0; }
.section-header h2, .hero h1, .panel-title, .service-card h3, .project-card h3,
.wizard-step h2, .content h1, .content h2, .footer-col h4 { overflow-wrap: anywhere; }
.footer-col a, .footer-col p, .content p, .content li { overflow-wrap: anywhere; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
.mobile-menu-button { display: none; }
@media (max-width: 1024px) {
  header { padding-inline: 24px; }
  header nav { gap: 12px; }
  .section-container { padding-inline: 24px; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-menu { width: 210px; }
  .dash-content { padding: 22px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Página inicial: menu recolhível, sem linhas quebradas no cabeçalho */
  body:has(.mobile-menu-button) > header {
    position: sticky; top: 0; z-index: 1000; padding: 12px 20px;
    display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 0; min-height: 70px;
  }
  body:has(.mobile-menu-button) > header .logo-img { height: 38px; }
  .mobile-menu-button {
    display: inline-flex; justify-content: center; align-items: center;
    width: 44px; height: 44px; border-radius: 8px;
    border: 1px solid rgba(0,240,255,.4); background: rgba(0,240,255,.07);
    color: var(--neon-cyan); font-size: 21px; cursor: pointer;
  }
  body:has(.mobile-menu-button) > header nav {
    display: none; flex: 0 0 100%; width: 100%; flex-direction: column;
    flex-wrap: nowrap; align-items: stretch; gap: 4px;
    padding: 15px 0 8px; margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  body:has(.mobile-menu-button) > header nav.is-open { display: flex; }
  body:has(.mobile-menu-button) > header nav > a,
  body:has(.mobile-menu-button) > header nav > button { display: flex; justify-content: center; align-items: center; min-height: 44px; text-align: center; }
  body:has(.mobile-menu-button) > header nav .lang-switch { justify-content: center; border-left: 0; padding: 7px 0 0; }
  body:has(.mobile-menu-button) > header nav .lang-btn { min-width: 44px; min-height: 44px; }
  .hero { padding-top: 72px; }
  .dash-showcase { flex-direction: column; }
  .dash-menu { width: 100%; flex-direction: row; overflow-x: auto; scrollbar-width: thin; padding-bottom: 8px; }
  .dash-tab { flex: 0 0 auto; white-space: nowrap; }
  /* Páginas institucionais: a mesma régua de cabeçalho */
  body:not(:has(.mobile-menu-button)) > header {
    position: relative; width: 100%; padding: 14px 20px;
    flex-direction: row; flex-wrap: nowrap; gap: 12px; min-height: 70px;
  }
  body:not(:has(.mobile-menu-button)) > header .logo-container {
    position: static; transform: none; margin: 0; flex: 1 1 auto;
    min-width: 0; max-width: none; justify-content: center;
  }
  body:not(:has(.mobile-menu-button)) > header .logo-img { height: 36px; }
  body:not(:has(.mobile-menu-button)) > header .back-btn { flex: 0 0 auto; margin: 0; }
  body:not(:has(.mobile-menu-button)) > header .lang-switch { flex: 0 0 auto; }
  body:not(:has(.mobile-menu-button)) > header .lang-btn { min-width: 35px; min-height: 44px; }
  .content { width: 100%; max-width: 850px; margin: 0 auto 40px; padding: 40px 24px 20px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 80px; }
  .section-container { padding: 62px 18px 24px; }
  .section-header { margin-bottom: 30px; }
  .section-header h2 { font-size: clamp(1.35rem, 5.6vw, 1.9rem); line-height: 1.4; }
  .section-header p { font-size: 1rem; }
  .hero { padding: 55px 20px 38px; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2.3rem); line-height: 1.35; }
  .hero h1 br { display: none; }
  .hero p { font-size: 1rem; margin-bottom: 25px; }
  .hero .btn-primary { max-width: 100%; font-size: .85rem !important; padding: 14px 20px !important; line-height: 1.5; }
  .dash-showcase { padding: 12px; gap: 14px; }
  .dash-content { padding: 18px 14px; min-height: 0; }
  .panel-title { font-size: 1.05rem; line-height: 1.5; }
  .panel-desc { margin-bottom: 20px; }
  .kpi-grid, .services-grid, .projects-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .kpi-card { padding: 16px; }
  .kpi-card .value { font-size: clamp(1rem, 5vw, 1.4rem); }
  .service-card, .project-card { padding: 24px 20px; }
  .service-card h3, .project-card h3 { font-size: 1rem; line-height: 1.5; }
  .form-wizard { padding: 55px 16px 24px; min-height: 0; }
  .wizard-step h2 { font-size: clamp(1.15rem, 5.2vw, 1.65rem); line-height: 1.45; }
  .option-card { padding: 16px; }
  .option-card:hover { transform: none; }
  .option-card h3 { font-size: .95rem; }
  .option-text { font-size: 1rem; }
  .form-input, .form-select, .form-textarea { font-size: 16px; max-width: 100%; }
  .submit-btn { font-size: .87rem; line-height: 1.5; }
  .site-footer { padding: 44px 20px 24px; margin-top: 36px; }
  .footer-grid { gap: 26px; margin-bottom: 28px; }
  .footer-col { min-width: 0; }
  .footer-col h4 { margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .social-icons { flex-wrap: wrap; }
  .content { padding: 34px 20px 15px; }
  .content h1 { font-size: clamp(1.55rem, 6.5vw, 2rem); line-height: 1.4; }
  .content h2 { font-size: clamp(1rem, 4.6vw, 1.2rem); line-height: 1.55; padding-left: 12px; }
  .content p, .content li { line-height: 1.7; }
  .doc-footer { margin-top: 38px; padding-top: 28px; }
  .doc-footer h3 { font-size: 1.15rem; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group > a { display: flex; justify-content: center; align-items: center; text-align: center; min-height: 46px; }
  .login-overlay { padding: 16px; }
  .login-box { width: min(100%, 400px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px 20px 25px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; }
}
@media (max-width: 390px) {
  body:not(:has(.mobile-menu-button)) > header { padding: 10px 12px; gap: 6px; }
  body:not(:has(.mobile-menu-button)) > header .back-btn { padding: 9px 10px; font-size: .68rem; }
  body:not(:has(.mobile-menu-button)) > header .logo-img { height: 28px; }
  body:not(:has(.mobile-menu-button)) > header .lang-switch { gap: 0; }
  body:not(:has(.mobile-menu-button)) > header .lang-btn { min-width: 30px; font-size: 9px; padding: 4px; }
  .content { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
