/* ========================================
   QUICK HELP SOLUTIONS - RESPONSIVE CSS
   Design: Bege Perolado + Verde da Logo
   ======================================== */

/* ==================== TABLET (< 1024px) ==================== */
@media (max-width: 1024px) {
  /* Typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  
  /* Hero */
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.3rem;
  }
  
  .hero-content .description {
    font-size: 1.1rem;
  }
  
  /* Sobre */
  .sobre-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sobre-image {
    order: -1;
  }
  
  /* Contacto */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* ==================== MOBILE LARGE (< 768px) ==================== */
@media (max-width: 768px) {
  /* Typography */
  html {
    font-size: 14px;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }
  
  /* Navigation */
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(245, 241, 232, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem;
    gap: 0;
    transition: left 0.3s ease;
    box-shadow: var(--sombra-forte);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  /* Hero */
  #hero {
    min-height: 80vh;
    padding: 7rem 1.5rem 3rem;
    background-attachment: scroll;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-content .subtitle {
    font-size: 1.1rem;
  }
  
  .hero-content .description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Sections */
  section {
    padding: 3rem 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Sobre */
  .sobre-features {
    grid-template-columns: 1fr;
  }
  
  .sobre-image img {
    width: 100%;
    height: 200px;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon i {
    font-size: 1.5rem;
  }
  
  /* Gallery */
  .gallery-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .comparison-slider {
    height: 250px;
  }
  
  /* Reviews */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .review-card {
    padding: 1.5rem;
  }
  
  .review-form {
    padding: 2rem;
  }
  
  /* Contact */
  .contact-info,
  .contact-form {
    padding: 2rem;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* WhatsApp Float */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    bottom: 20px;
    right: 20px;
  }
  
  /* Back to Top */
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 85px;
    right: 20px;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    padding: 2rem 1.5rem;
    max-height: 85vh;
  }
  
  .modal-header h3 {
    font-size: 1.5rem;
  }
  
  /* Notification */
  .notification {
    top: 80px;
    right: 15px;
    left: 15px;
    max-width: none;
    padding: 1rem 1.5rem;
  }
  
  /* Forms */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
  
  /* Rating Stars */
  .rating-input label {
    font-size: 1.8rem;
  }
}

/* ==================== MOBILE SMALL (< 480px) ==================== */
@media (max-width: 480px) {
  /* Typography */
  html {
    font-size: 13px;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  
  /* Navigation */
  .nav-container {
    padding: 0.8rem 1rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo img {
    height: 35px;
  }
  
  .hamburger span {
    width: 24px;
  }
  
  /* Hero */
  #hero {
    min-height: 70vh;
    padding: 6rem 1rem 2rem;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .hero-content .subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .hero-content .description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  
  /* Sections */
  section {
    padding: 2.5rem 1rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }
  
  .section-header p {
    font-size: 0.95rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Sobre */
  .sobre-text h3 {
    font-size: 1.5rem;
  }
  
  .sobre-text p {
    font-size: 1rem;
  }
  
  .feature-item {
    padding: 0.8rem;
  }
  
  .feature-item i {
    font-size: 1.2rem;
  }
  
  .feature-item h4 {
    font-size: 1rem;
  }
  
  .feature-item p {
    font-size: 0.9rem;
  }
  
  /* Services */
  .service-card {
    padding: 1.2rem;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
  }
  
  .service-card p {
    font-size: 0.95rem;
  }
  
  .service-badge {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
  }
  
  .service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 1rem;
  }
  
  .service-icon i {
    font-size: 1.3rem;
  }
  
  .service-features li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  
  /* Gallery */
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .comparison-slider {
    height: 220px;
  }
  
  .gallery-caption {
    padding: 1.2rem;
  }
  
  .gallery-caption h4 {
    font-size: 1.1rem;
  }
  
  .gallery-caption p {
    font-size: 0.9rem;
  }
  
  /* Reviews */
  .review-card {
    padding: 1.2rem;
  }
  
  .review-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .review-info h4 {
    font-size: 1rem;
  }
  
  .review-rating {
    font-size: 0.9rem;
  }
  
  .review-text {
    font-size: 0.95rem;
  }
  
  .review-form {
    padding: 1.5rem;
  }
  
  /* Contact */
  .contact-info,
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-item {
    padding: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-item i {
    font-size: 1.2rem;
  }
  
  .contact-item-content h4 {
    font-size: 1rem;
  }
  
  .contact-item-content p {
    font-size: 0.9rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-content {
    gap: 1.5rem;
  }
  
  .footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .footer-section p,
  .footer-section a {
    font-size: 0.9rem;
  }
  
  .footer-logo img {
    height: 40px;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  /* WhatsApp Float */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 15px;
    right: 15px;
  }
  
  /* Back to Top */
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 75px;
    right: 15px;
  }
  
  /* Modal */
  .modal-content {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }
  
  .modal-header {
    margin-bottom: 1.5rem;
  }
  
  .modal-header h3 {
    font-size: 1.3rem;
  }
  
  .modal-close {
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
  
  /* Notification */
  .notification {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .notification i {
    font-size: 1.2rem;
  }
  
  /* Forms */
  .form-group {
    margin-bottom: 1.2rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .form-group textarea {
    min-height: 100px;
  }
  
  /* Rating Stars */
  .rating-input label {
    font-size: 1.6rem;
  }
}

/* ==================== MOBILE VERY SMALL (< 375px) ==================== */
@media (max-width: 375px) {
  html {
    font-size: 12px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .service-card,
  .review-card,
  .contact-info,
  .contact-form,
  .review-form {
    padding: 1rem;
  }
  
  .whatsapp-float,
  .back-to-top {
    bottom: 10px;
    right: 10px;
  }
  
  .back-to-top {
    bottom: 65px;
  }
}

/* ==================== LANDSCAPE MODE ==================== */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 100vh;
    padding: 5rem 1rem 2rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content .subtitle {
    font-size: 1rem;
  }
  
  .hero-content .description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: row;
  }
  
  .nav-menu {
    flex-direction: row;
    height: auto;
    padding: 1rem;
    flex-wrap: wrap;
  }
  
  .nav-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ==================== HIGH RESOLUTION (> 1920px) ==================== */
@media (min-width: 1920px) {
  .container {
    max-width: 1600px;
  }
  
  .nav-container {
    max-width: 1600px;
  }
  
  .footer-content,
  .footer-bottom {
    max-width: 1600px;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content .subtitle {
    font-size: 1.8rem;
  }
  
  .hero-content .description {
    font-size: 1.4rem;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  nav,
  .whatsapp-float,
  .back-to-top,
  .hamburger,
  .modal,
  .notification {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  #hero {
    background: white;
    color: black;
    min-height: auto;
    padding: 2rem;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem;
  }
  
  .btn {
    border: 1px solid black;
    color: black;
    background: white;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@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;
  }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
  /* Opcional: adicionar suporte para dark mode no futuro */
  /* Por enquanto mantemos o design bege perolado claro */
}

/* ==================== TOUCH DEVICES ==================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects em dispositivos touch */
  .service-card:hover,
  .review-card:hover,
  .gallery-item:hover,
  .feature-item:hover {
    transform: none;
  }
  
  /* Aumenta área de toque em botões */
  .btn {
    min-height: 48px;
  }
  
  .nav-menu a {
    min-height: 48px;
  }
  
  .filter-btn {
    min-height: 44px;
  }
  
  /* WhatsApp e Back to Top maiores em touch */
  .whatsapp-float {
    width: 60px;
    height: 60px;
  }
  
  .back-to-top {
    width: 50px;
    height: 50px;
  }
}

/* ==================== UTILITIES RESPONSIVOS ==================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}

/* ==================== GRID ADJUSTMENTS ==================== */
@media (max-width: 1200px) {
  .services-grid,
  .gallery-grid,
  .reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 900px) {
  .services-grid,
  .gallery-grid,
  .reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* ==================== SAFE AREAS (iOS) ==================== */
@supports (padding: max(0px)) {
  .nav-container {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
  
  section {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
  
  .whatsapp-float {
    right: max(30px, env(safe-area-inset-right));
    bottom: max(30px, env(safe-area-inset-bottom));
  }
  
  .back-to-top {
    right: max(30px, env(safe-area-inset-right));
    bottom: max(100px, calc(env(safe-area-inset-bottom) + 70px));
  }
}