/* ==========================================================================
   HL Projetos - Responsive Styles
   Mobile-First Responsive Design
   ========================================================================== */

/* ==========================================================================
   Tablet Landscape (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .services-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .news-card.featured .news-image {
        height: 300px;
    }
    
    .news-card.featured .news-content h3 {
        font-size: 22px;
    }
    
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ==========================================================================
   Tablet Portrait (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero */
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    /* Differentials */
    .differentials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 250px;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: span 1;
    }
    
    .news-card.featured .news-image {
        height: 250px;
    }
    
    .news-card.featured .news-content h3 {
        font-size: 20px;
    }
    
    /* Contact */
    .contact-form {
        padding: 30px 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

/* ==========================================================================
   Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 15px;
    }
    
    /* Navigation */
    .nav-wrapper {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .nav-menu {
        width: 85%;
    }
    
    /* Hero */
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* Section Headers */
    .section-badge {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    /* About */
    .about-text h3 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 15px;
    }
    
    /* Services */
    .service-card {
        padding: 30px 25px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 30px;
    }
    
    /* Differentials */
    .differential-card {
        padding: 30px 20px;
    }
    
    .differential-icon {
        width: 70px;
        height: 70px;
    }
    
    .differential-icon i {
        font-size: 28px;
    }
    
    .differential-card h3 {
        font-size: 18px;
    }
    
    /* Projects */
    .projects-filter,
    .news-filter {
        gap: 10px;
    }
    
    .filter-btn,
    .news-filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-overlay {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 18px;
    }
    
    /* News */
    .news-image {
        height: 200px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 18px;
    }
    
    .news-content p {
        font-size: 14px;
    }
    
    /* Contact */
    .contact-info h3 {
        font-size: 26px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-logo i {
        font-size: 24px;
    }
    
    .footer-logo img {
        width: 56px;
        height: auto;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Buttons */
    .btn {
        padding: 13px 28px;
        font-size: 14px;
    }
    
    /* Modal */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        border-radius: 15px;
        max-height: 85vh;
    }
}

/* ==========================================================================
   Small Mobile (max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .service-card,
    .differential-card {
        padding: 25px 20px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   Landscape Orientation
   ========================================================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-stats {
        margin-top: 40px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .scroll-indicator,
    .back-to-top,
    .modal {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
