/* =========================================================
   AR ASSESSORIA — MENU HAMBÚRGUER + RESPONSIVE MOBILE
========================================================= */

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Hamburger button ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(216, 165, 74, 0.35);
  border-radius: 4px;
  cursor: pointer;
  z-index: 1002;
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}

.hamburger:hover {
  border-color: #d8a54a;
  background: rgba(216, 165, 74, 0.08);
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #d8a54a;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Overlay ---------- */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.menu-overlay.is-open {
  display: block;
  opacity: 1;
}

/* ---------- Desktop: menu normal ---------- */
@media (min-width: 993px) {
  .hamburger {
    display: none !important;
  }

  .menu-overlay {
    display: none !important;
  }
}

/* ---------- Mobile: menu drawer ---------- */
@media (max-width: 992px) {
  header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0 !important;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .menu {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 82vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0 !important;
    padding: 90px 28px 40px;
    background: #0a0a0a;
    border-left: 1px solid rgba(216, 165, 74, 0.15);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    flex-wrap: nowrap !important;
  }

  .menu.is-open {
    transform: translateX(0);
  }

  .menu a {
    display: block;
    padding: 16px 0;
    font-size: 13px !important;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu a:last-child,
  .menu .btn {
    margin-top: 20px;
    text-align: center;
    border: 1px solid #d8a54a !important;
    border-radius: 2px;
    padding: 16px 20px !important;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Compensar header fixo */
  .hero,
  .hero-section,
  section.hero {
    padding-top: 90px !important;
  }
}

/* =========================================================
   CORREÇÕES GLOBAIS MOBILE
========================================================= */

html,
body {
  overflow-x: hidden !important;
  word-break: normal !important;
  overflow-wrap: normal;
}

h1, h2, h3, h4, h5, h6,
p, a, span, li, div {
  word-break: normal !important;
  hyphens: none !important;
}

img,
video,
iframe {
  max-width: 100% !important;
  height: auto;
}

@media (max-width: 992px) {
  .container {
    width: 92% !important;
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  section {
    padding: 56px 0 !important;
  }

  /* Tipografia */
  h1,
  .hero-left h1,
  .hero h1,
  .section-title,
  .problem-title,
  .cta-title,
  .contact-title,
  .form-title,
  .final-title {
    font-size: clamp(28px, 7.5vw, 42px) !important;
    line-height: 1.15 !important;
    letter-spacing: -1px !important;
    overflow-wrap: normal !important;
  }

  h2,
  .about-content h2 {
    font-size: clamp(24px, 6.5vw, 36px) !important;
    line-height: 1.2 !important;
  }

  p,
  li,
  .section-description,
  .hero-left p,
  .hero p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    margin-bottom: 16px;
  }

  .mini-title {
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 14px !important;
  }

  /* Grids */
  .hero-grid,
  .grid,
  .about-grid,
  .about-section,
  .contact-grid,
  .services-grid,
  .stats-grid,
  .method-grid,
  .cases-grid,
  .testimonials-grid,
  .articles-grid,
  .footer-grid,
  .problem-grid,
  .cta-grid,
  .story-grid,
  .ceo-grid,
  .office-grid,
  .values-grid,
  .mission-grid,
  .blog-grid,
  .simple-services {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .cta-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* Hero */
  .hero,
  .hero-section {
    min-height: auto !important;
    padding-bottom: 110px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .hero::before {
    background-position: center center !important;
    background-size: cover !important;
  }

  .hero-left {
    max-width: 100% !important;
  }

  .hero-grid {
    padding-top: 20px !important;
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    padding-top: 20px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .hero-left h1,
  .hero h1 {
    line-height: 1.2 !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  .hero-left h1 .headline-word {
    white-space: nowrap;
    display: inline-block;
  }

  .hero-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 32px !important;
    width: 100%;
  }

  .primary-btn,
  .secondary-btn,
  .cta-button,
  .nav-btn,
  .hero-buttons a {
    width: 100% !important;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-right,
  .meeting-image {
    display: none !important;
  }

  /* Logo slider / trusted — carrossel no rodapé do hero */
  .trusted {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    z-index: 3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .logo-item {
    width: 130px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
  }

  .logo-item img {
    max-width: 100% !important;
    width: 120px !important;
    height: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
  }

  .logo-slider {
    gap: 40px !important;
    display: flex !important;
    animation: logoScroll 30s linear infinite !important;
  }

  /* Imagens de seção — mostrar conteúdo completo */
  .about-image,
  .problem-image {
    min-height: unset !important;
    height: 280px !important;
    width: 100% !important;
  }

  .story-image,
  .ceo-image,
  .office-image {
    min-height: 420px !important;
    height: auto !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .story-image::before,
  .ceo-image::before,
  .office-image::before {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    transform: none !important;
  }

  .story-image:hover::before,
  .ceo-image:hover::before,
  .office-image:hover::before {
    transform: none !important;
  }

  .article-image {
    height: 200px !important;
  }

  /* Cards */
  .stat-card,
  .method-card,
  .service-card,
  .testimonial-card,
  .case-card,
  .article-card,
  .contact-card,
  .contact-form {
    padding: 28px 22px !important;
    min-height: unset !important;
  }

  .about-content {
    padding: 32px 24px !important;
  }

  .stat-number,
  .case-result {
    font-size: clamp(36px, 10vw, 48px) !important;
  }

  .service-title,
  .method-title {
    font-size: clamp(22px, 5.5vw, 28px) !important;
  }

  .service-card {
    min-height: unset !important;
  }

  .problem-chart {
    width: calc(100% - 40px) !important;
    left: 20px !important;
    bottom: 20px !important;
  }

  /* CTA */
  .cta {
    padding: 50px 0 !important;
  }

  .cta-title {
    max-width: 100% !important;
  }

  .cta-right p {
    max-width: 100% !important;
  }

  /* Footer */
  footer {
    padding: 50px 0 24px !important;
  }

  .footer-grid {
    gap: 32px !important;
    margin-bottom: 32px !important;
  }

  .footer-description {
    max-width: 100% !important;
  }

  .copyright {
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center;
    font-size: 12px !important;
  }

  /* Blog */
  .article-hero {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }

  .article-hero h1 {
    font-size: clamp(26px, 7vw, 38px) !important;
    line-height: 1.15 !important;
    overflow-wrap: normal !important;
  }

  .article-hero p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .article-cover img {
    height: 220px !important;
    object-fit: cover;
  }

  .article-content {
    padding: 32px 0 60px !important;
  }

  .article-content h2 {
    font-size: clamp(22px, 5.5vw, 28px) !important;
    margin-top: 40px !important;
    margin-bottom: 16px !important;
  }

  .article-content p,
  .article-content li {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }

  .article-title,
  .blog-card h3 {
    font-size: clamp(20px, 5vw, 26px) !important;
  }

  .blog-grid {
    gap: 20px !important;
  }

  .blog-image {
    height: 200px !important;
  }

  /* Contato */
  .contact-grid {
    gap: 24px !important;
  }

  .hero h1,
  .contact-title,
  .form-title {
    font-size: clamp(28px, 7vw, 42px) !important;
    line-height: 1.2 !important;
    letter-spacing: -1px !important;
    overflow: visible !important;
    word-break: normal !important;
  }

  .hero-content,
  .contact-card,
  .contact-form,
  .contact-description {
    max-width: 100% !important;
    overflow: visible !important;
  }

  .contact-card,
  .contact-form {
    padding: 32px 22px !important;
  }

  /* Evitar overflow horizontal */
  .wrapper,
  .about-section,
  .problem-section {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hero {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
}

@media (max-width: 480px) {
  .logo-mark {
    font-size: 32px !important;
  }

  .logo-text {
    font-size: 10px !important;
    letter-spacing: 1px !important;
  }

  .meeting-image,
  .about-image,
  .problem-image {
    height: 220px !important;
  }

  .story-image,
  .ceo-image,
  .office-image {
    min-height: 360px !important;
    height: auto !important;
  }

  .stat-card,
  .method-card,
  .service-card {
    padding: 22px 18px !important;
  }
}
