/* ==========================================================================
   A ARTE DO REPARO - RESPONSIVIDADE & DISPOSITIVOS MÓVEIS (720p 9:16 OTIMIZADO)
   ========================================================================== */

/* ==========================================================================
   LAPTOPS COMPACTOS & TELAS MÉDIAS (<= 1220px)
   ========================================================================== */
@media screen and (max-width: 1220px) {
  .nav-link-secondary {
    display: none;
  }
  .nav-desktop {
    gap: 1rem;
  }
}

/* ==========================================================================
   TABLETS & DISPOSITIVOS MÉDIOS (<= 1080px)
   ========================================================================== */
@media screen and (max-width: 1080px) {
  .header-inner {
    height: 72px;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-mobile-drawer {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    z-index: 998;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
  }

  .nav-mobile-drawer.open {
    transform: translateX(0);
  }

  .nav-mobile-drawer .nav-link {
    font-size: 1.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-media {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
  }

  .service-display-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .simulator-grid {
    grid-template-columns: 1fr;
  }

  .simulator-result-side {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .b2b-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .contact-channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* ==========================================================================
   SMARTPHONES & DISPOSITIVOS PEQUENOS (<= 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  /* Evita que botões com texto longo estourem a tela no mobile */
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.35;
  }

  .btn-lg {
    padding: 0.9rem 1.25rem;
    font-size: 0.98rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 6.2vw, 2.25rem);
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .badge-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
  }

  /* Header Mobile */
  .header-inner {
    height: 66px;
    gap: 0.75rem;
  }

  .nav-mobile-drawer {
    top: 66px;
    padding: 1.5rem 1.25rem;
  }

  /* Remove o botão longo no header para evitar empurrar elementos para fora da tela */
  .header-actions .btn {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .mobile-menu-btn {
    width: 44px;
    height: 44px;
    padding: 0.5rem;
  }

  .brand-logo {
    gap: 0.65rem;
    min-width: 0;
  }

  .brand-logo-img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .brand-tagline {
    font-size: 0.65rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(66px + 1.75rem);
    padding-bottom: 3rem;
  }

  .hero-status-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    white-space: normal;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.5rem);
    line-height: 1.18;
    margin-bottom: 1.25rem;
    word-break: break-word;
    hyphens: auto;
  }

  .hero-description {
    font-size: 0.975rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  .hero-trust-badges {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .trust-badge-item {
    gap: 0.75rem;
  }

  .trust-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .trust-badge-text strong {
    font-size: 0.9rem;
  }

  .trust-badge-text span {
    font-size: 0.75rem;
  }

  .hero-floating-card {
    display: none;
  }

  .hero-image-frame {
    aspect-ratio: 16 / 10;
  }

  .hero-slideshow-controls {
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    gap: 4px;
  }

  .hero-slide-nav-btn {
    width: 24px;
    height: 24px;
  }

  .hero-dot {
    width: 6px;
    height: 6px;
  }

  .hero-dot.active {
    width: 18px;
  }

  /* Vitrine de Especialidades & Tabs */
  .services-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.6rem;
    padding: 0.25rem 0.25rem 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
  }

  .services-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
  }

  .service-display-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.15rem;
    gap: 1.5rem;
  }

  .service-info h3 {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
  }

  .service-info p {
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .service-features-list {
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .service-feature-item {
    font-size: 0.875rem;
  }

  .service-media-frame {
    aspect-ratio: 16 / 10;
    max-width: 100%;
  }

  /* Antes & Depois (Casos Reais) */
  .section-cases {
    padding: 3.5rem 0;
  }

  .ba-comparator-block {
    padding: 1.25rem 1rem;
    margin-bottom: 2.75rem;
    border-radius: var(--radius-lg);
  }

  .ba-comparator-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .ba-main-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .ba-instructions {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .ba-slider-container {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .ba-badge-before,
  .ba-badge-after {
    top: 0.65rem;
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
  }

  .ba-badge-before {
    left: 0.65rem;
  }

  .ba-badge-after {
    right: 0.65rem;
  }

  .ba-dot {
    width: 6px;
    height: 6px;
  }

  .ba-handle-btn {
    width: 38px;
    height: 38px;
  }

  .ba-handle-btn svg {
    width: 16px;
    height: 16px;
  }

  .ba-quick-controls {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .ba-quick-btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .ba-caption {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-top: 1rem;
  }

  .cases-grid-title-wrap {
    margin-bottom: 1.75rem;
  }

  .cases-grid-heading {
    font-size: 1.45rem;
  }

  .cases-grid-subheading {
    font-size: 0.925rem;
  }

  .cases-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .case-card-body {
    padding: 1.25rem 1.15rem;
  }

  .case-card-header h4 {
    font-size: 1.15rem;
  }

  .case-card-desc {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .cases-trust-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
    margin-top: 2.75rem;
    border-radius: var(--radius-lg);
  }

  .cases-trust-content h3 {
    font-size: 1.35rem;
  }

  .cases-trust-content p {
    font-size: 0.88rem;
  }

  .cases-trust-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Simulador */
  .simulator-form-side {
    padding: 1.75rem 1.15rem;
  }

  .simulator-form-header h3 {
    font-size: 1.35rem;
  }

  .device-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .device-btn {
    padding: 0.85rem 0.5rem;
  }

  .device-btn span {
    font-size: 0.78rem;
  }

  .urgency-selector-group {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .urgency-card {
    padding: 0.85rem 1rem;
  }

  .simulator-result-side {
    padding: 1.75rem 1.15rem;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .result-card-header h4 {
    font-size: 1.25rem;
  }

  .stat-item {
    gap: 0.75rem;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
  }

  .stat-text strong {
    font-size: 0.88rem;
  }

  .stat-text span {
    font-size: 0.78rem;
  }

  .result-guarantee-pill {
    padding: 0.75rem;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .result-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Lojistas B2B */
  .b2b-highlight-banner {
    padding: 1.75rem 1.15rem;
    border-radius: var(--radius-lg);
  }

  .b2b-content h3 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .b2b-content p {
    font-size: 0.925rem;
    line-height: 1.6;
  }

  .b2b-urgent-card {
    padding: 1.5rem 1rem;
  }

  .b2b-urgent-card div:first-child {
    font-size: 2.5rem !important;
  }

  .b2b-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .b2b-benefit-card {
    padding: 1.35rem 1.15rem;
  }

  /* Diferenciais */
  .differentials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .differentials-grid .card {
    padding: 1.35rem 1.15rem;
  }

  /* Avaliações de Clientes (Google Maps) */
  .reviews-summary-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 0.65rem;
    gap: 0.35rem;
    margin: 1.25rem 0 2rem;
  }

  .summary-score-box,
  .summary-stat-box {
    flex: 1;
  }

  .score-number,
  .stat-number {
    font-size: 1.35rem;
  }

  .stars-gold {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .score-label,
  .stat-label {
    font-size: 0.68rem;
    margin-top: 0.15rem;
  }

  .summary-divider {
    height: 28px;
    width: 1px;
    flex-shrink: 0;
  }

  .reviews-carousel-wrapper {
    padding: 0;
  }

  .reviews-carousel-track {
    gap: 1rem;
    padding: 0.5rem 0 1.25rem;
  }

  .review-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.35rem 1.15rem;
  }

  .reviewer-avatar,
  .reviewer-avatar-fallback {
    width: 40px;
    height: 40px;
  }

  .reviewer-name {
    font-size: 0.925rem;
  }

  .reviewer-date {
    font-size: 0.725rem;
  }

  .review-quote {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .carousel-nav-btn {
    display: none;
  }

  .carousel-dots {
    margin-top: 1rem;
  }

  .google-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  /* Como Enviar */
  .timeline-steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .step-card {
    padding: 1.35rem 1.15rem;
  }

  .address-shipping-card {
    padding: 1.35rem 1rem;
  }

  .address-shipping-card .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.15rem;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
  }

  .address-btn-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .address-btn-row .btn {
    width: 100% !important;
  }

  .address-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .copy-address-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .address-box-content {
    padding: 1rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.7;
    word-break: break-word;
    border-radius: var(--radius-md);
  }

  /* FAQ */
  .faq-question-btn {
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
    gap: 0.75rem;
    justify-content: space-between;
    line-height: 1.35;
  }

  .faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .faq-answer-inner {
    padding: 0 1rem 1.15rem;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  /* Contato */
  .contact-channels-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-card {
    padding: 1.35rem 1.15rem;
  }

  .contact-card .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-location-card {
    padding: 1.35rem 1.15rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .contact-location-card .btn {
    width: 100%;
    justify-content: center;
  }

  .privacy-notice-box {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: left;
    gap: 0.85rem;
  }

  /* Rodapé com margem segura para a barra flutuante */
  .site-footer {
    padding-top: 3.5rem;
    padding-bottom: 7rem !important; /* CRUCIAL: impede que a barra flutuante cubra os links e o copyright */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }

  .footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .footer-bottom-links span {
    display: none; /* Remove pontinhos órfãos no quebramento mobile */
  }

  /* Floating Action Bar */
  .floating-action-bar {
    bottom: 0.85rem;
    right: 0.85rem;
    left: 0.85rem;
  }

  .floating-telegram-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.925rem;
  }
}

/* ==========================================================================
   SMARTPHONES COMPACTOS (<= 480px) - RESOLUÇÃO 720p 9:16
   ========================================================================== */
@media screen and (max-width: 480px) {
  .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .header-inner {
    height: 60px;
  }

  .nav-mobile-drawer {
    top: 60px;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    padding: 0.35rem;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.16;
  }

  .hero-status-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }

  .ba-comparator-block {
    padding: 1rem 0.75rem;
  }

  .ba-slider-container {
    aspect-ratio: 1 / 1;
  }

  .ba-badge-before,
  .ba-badge-after {
    padding: 0.22rem 0.5rem;
    font-size: 0.66rem;
  }

  .ba-handle-btn {
    width: 34px;
    height: 34px;
  }

  .ba-handle-btn svg {
    width: 14px;
    height: 14px;
  }

  .service-display-grid {
    padding: 1.25rem 0.85rem;
  }

  .tab-btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.825rem;
  }

  .reviews-summary-bar {
    padding: 0.75rem 0.4rem;
    gap: 0.25rem;
    border-radius: var(--radius-md);
  }

  .score-number,
  .stat-number {
    font-size: 1.2rem;
  }

  .stars-gold {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  .score-label,
  .stat-label {
    font-size: 0.62rem;
  }

  .review-card {
    padding: 1.25rem 0.95rem;
  }

  .simulator-form-side {
    padding: 1.25rem 0.85rem;
  }

  .simulator-result-side {
    padding: 1.25rem 0.85rem;
  }

  .device-btn {
    padding: 0.75rem 0.35rem;
  }

  .device-btn span {
    font-size: 0.75rem;
  }

  /* ==========================================================================
     OTIMIZAÇÃO DO FINAL DO SITE (720p 9:16 / <= 480px): ENVIO, CONTATO, FAQ E RODAPÉ
     ========================================================================== */
  .btn, .btn-lg {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.925rem;
    white-space: normal;
    text-align: center;
    word-break: break-word;
    justify-content: center;
  }

  .address-shipping-card {
    padding: 1.15rem 0.85rem;
  }

  .address-shipping-card .btn {
    width: 100%;
    padding: 0.85rem 0.75rem;
    font-size: 0.88rem;
  }

  .address-title-group h3 {
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .address-title-group p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .address-box-content {
    padding: 0.85rem 0.65rem;
    font-size: 0.8rem;
    line-height: 1.6;
    word-break: break-word;
  }

  .copy-address-btn {
    font-size: 0.825rem;
    padding: 0.65rem 0.85rem;
    width: 100%;
  }

  .faq-question-btn {
    padding: 0.9rem 0.85rem;
    font-size: 0.9rem;
    gap: 0.5rem;
    line-height: 1.35;
  }

  .faq-answer-inner {
    padding: 0 0.85rem 0.95rem;
    font-size: 0.825rem;
    line-height: 1.55;
  }

  .contact-card {
    padding: 1.15rem 0.85rem;
  }

  .contact-card .btn {
    width: 100%;
  }

  .contact-location-card {
    padding: 1.15rem 0.85rem;
    gap: 1.25rem;
    margin-top: 1.75rem;
  }

  .contact-location-card .btn {
    width: 100%;
  }

  .privacy-notice-box {
    padding: 1rem 0.75rem;
    gap: 0.65rem;
  }

  .privacy-text h5,
  .privacy-text .privacy-title {
    font-size: 0.9rem;
  }

  .privacy-text p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .site-footer {
    padding-top: 3rem;
    padding-bottom: 7.5rem !important; /* Total desobstrução da barra flutuante */
  }

  .footer-brand-info p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .footer-column-title {
    font-size: 1rem;
    margin-bottom: 0.85rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  .footer-contact-item {
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.78rem;
    gap: 0.75rem;
  }

  .footer-bottom-links {
    font-size: 0.78rem;
    gap: 0.5rem 1rem;
  }

  .floating-action-bar {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }

  .floating-telegram-btn {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   SMARTPHONES EXTRA PEQUENOS (<= 360px) - BASE 720p @ 2.0 DPR
   ========================================================================== */
@media screen and (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 0.925rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .reviews-summary-bar {
    padding: 0.65rem 0.25rem;
  }

  .score-number,
  .stat-number {
    font-size: 1.1rem;
  }

  .score-label,
  .stat-label {
    font-size: 0.58rem;
  }

  .review-card {
    padding: 1.15rem 0.75rem;
  }

  .device-selector-grid {
    gap: 0.4rem;
  }

  .device-btn {
    padding: 0.6rem 0.2rem;
  }

  .device-btn span {
    font-size: 0.68rem;
  }

  .btn, .btn-lg {
    padding: 0.75rem 0.65rem;
    font-size: 0.85rem;
  }

  .address-shipping-card {
    padding: 0.95rem 0.65rem;
  }

  .address-box-content {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .copy-address-btn {
    font-size: 0.78rem;
    padding: 0.6rem 0.5rem;
  }

  .site-footer {
    padding-bottom: 7.5rem !important;
  }
}
