/* =====================================================
   HAMMER BENIN - RESPONSIVE STYLESHEET
   Media Queries for All Devices
   ===================================================== */

/* ===== LARGE DESKTOP (1440px+) ===== */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
}

/* ===== TABLET & SMALL DESKTOP (1024px - 768px) ===== */
@media (max-width: 1024px) {
    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* Navigation */
    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Grids */
    .services-grid,
    .partners-grid,
    .diff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Group Content */
    .group-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Process Timeline */
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    /* Pillars Grid */
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Service Detail */
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-content.reverse {
        direction: ltr;
    }

    /* BU Manager */
    .bu-manager-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact Wrapper */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ===== TABLET (768px) ===== */
@media (max-width: 768px) {
    /* Sections Padding */
    section {
        padding: 60px 0;
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
    }

    /* Navigation - Mobile Menu */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .btn-nav-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Hero */
    .hero-modern {
        min-height: 80vh;
        padding-top: 80px;
    }

    .title-main {
        font-size: 3.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Grids */
    .services-grid,
    .stories-grid,
    .projects-grid,
    .team-grid,
    .events-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .figures-grid,
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mission Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Commitments */
    .commitments-grid {
        grid-template-columns: 1fr;
    }

    /* Actions Grid */
    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Charts Grid */
    .charts-grid {
        grid-template-columns: 1fr;
    }

    /* Certifications */
    .cert-grid,
    .qehs-cert-grid {
        grid-template-columns: 1fr;
    }

    /* Process Timeline */
    .process-timeline {
        grid-template-columns: 1fr;
    }

    /* Pillars */
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary-large,
    .btn-outline-light {
        width: 100%;
        justify-content: center;
    }

    /* Hide/Show */
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        display: none;
    }
}

/* ===== MOBILE (480px) ===== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .logo {
        width: 45px;
        height: 45px;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .company-subtitle {
        font-size: 0.65rem;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    /* Hero */
    .hero-modern {
        min-height: 70vh;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Typography */
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Figures */
    .figures-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .figure-number,
    .impact-number {
        font-size: 2.5rem;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Diff Cards */
    .diff-card,
    .service-card-modern,
    .value-card {
        padding: 2rem 1.5rem;
    }

    /* Story Cards */
    .story-content,
    .project-info,
    .event-content {
        padding: 1.5rem;
    }

    /* Forms */
    .form-container,
    .contact-form,
    .incident-form-container {
        padding: 2rem 1.5rem;
    }

    /* BU Manager */
    .manager-info h2 {
        font-size: 2rem;
    }

    .manager-title {
        font-size: 1.1rem;
    }

    /* Team Cards */
    .team-photo,
    .member-photo {
        width: 120px;
        height: 120px;
    }

    /* Opening Cards */
    .opening-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .opening-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Modal */
    .modal {
        padding: 1rem;
    }

    .modal-content {
        max-width: 100%;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.8rem;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    /* Filter Buttons */
    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Page Hero */
    .page-hero {
        min-height: 50vh;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.1rem;
    }

    /* Contact Item */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Map */
    .map-container {
        height: 300px;
    }

    /* Table */
    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 1rem 0.8rem;
    }
}

/* ===== VERY SMALL MOBILE (360px) ===== */
@media (max-width: 360px) {
    .title-main {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .diff-icon,
    .service-icon,
    .value-icon {
        width: 60px;
        height: 60px;
    }

    .diff-icon i,
    .service-icon i,
    .value-icon i {
        font-size: 1.5rem;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-modern {
        min-height: 100vh;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .menu-toggle,
    .scroll-indicator,
    .back-to-top,
    .cta-section,
    .footer-social,
    .member-social,
    .filter-buttons,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .hero-modern {
        min-height: auto;
        padding: 40px 0;
        background: #fff !important;
        color: #000 !important;
    }

    .hero-content * {
        color: #000 !important;
    }

    .section-title,
    .section-subtitle {
        color: #000 !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0a1f5c;
        --gold: #d4a017;
    }

    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border-width: 3px;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* ===== UTILITY RESPONSIVE CLASSES ===== */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-center {
        text-align: center !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}