/**
 * GRASSI PARTNERS - RESPONSIVE STYLESHEET
 * ========================================
 * Design responsivo para mobile, tablet e desktop
 */

/* ===== TABLET (768px e acima) ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar-container {
        flex-wrap: wrap;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        width: 100%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link {
        padding: 1rem;
        display: block;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f8f9fa;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .navbar-cta {
        width: 100%;
        padding: 1rem;
        border-top: 1px solid #e0e0e0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid,
    .services-grid,
    .diferenciais-grid,
    .team-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step::after {
        display: none;
    }
    
    .about-content,
    .service-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .page-header-content p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* ===== MOBILE (480px e abaixo) ===== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar-logo {
        gap: 8px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .service-icon {
        font-size: 2rem;
    }
    
    .diferencial-icon {
        font-size: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2rem;
    }
    
    .process-step h3 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 0.85rem;
    }
    
    .contact-item {
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .contact-details h3 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .footer-column h3 {
        font-size: 1.1rem;
    }
    
    .footer-column p {
        font-size: 0.85rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-bottom-content {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 40px 15px;
    }
    
    .page-header-content h1 {
        font-size: 1.5rem;
    }
    
    .page-header-content p {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 40px 15px;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .about-text h3,
    .service-text h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .values-list li,
    .service-list li,
    .benefits-list li {
        padding: 0.5rem 0;
    }
    
    .team-member h3 {
        font-size: 1rem;
    }
    
    .member-title {
        font-size: 0.85rem;
    }
    
    .member-bio {
        font-size: 0.8rem;
    }
    
    .certification-card h3 {
        font-size: 1rem;
    }
    
    .certification-card p {
        font-size: 0.8rem;
    }
    
    .quote-form-container {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== ORIENTAÇÃO LANDSCAPE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    section {
        padding: 30px 0;
    }
}

/* ===== IMPRESSÃO ===== */
@media print {
    .header,
    .footer,
    .back-to-top,
    .navbar-cta,
    .hero-cta,
    .cta-section,
    .contact-form,
    .quote-form {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ===== ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --light-bg: #1a1a1a;
        --text-color: #e0e0e0;
        --border-color: #333;
    }
    
    body {
        background-color: #0a0a0a;
        color: #e0e0e0;
    }
    
    .stat-card,
    .service-card,
    .diferencial-item,
    .team-member,
    .certification-card,
    .process-step {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #1a1a1a;
        color: #e0e0e0;
        border-color: #333;
    }
}
