/* =============================================================================
   EMPOWER PARTNERS - MOBILE RESPONSIVE STYLES
   This file contains all mobile-specific styles for the Empower Partners website
   Apply to all pages for consistent mobile experience
============================================================================= */

/* =============================================================================
   GLOBAL MOBILE STYLES - Apply to all screen sizes below desktop
============================================================================= */

/* Base responsive settings */
img {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   LARGE TABLETS & SMALL DESKTOPS (992px - 1200px)
============================================================================= */
@media (max-width: 1200px) {
    /* Grid Layouts */
    .expertise-grid, 
    .services-grid, 
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Advisory Board Section */
    #advisory-board .leadership-grid {
        gap: 1.5rem;
    }
    
    /* Container width adjustments */
    .container {
        max-width: 95%;
    }
}

/* =============================================================================
   TABLETS & LARGE MOBILE (768px - 992px)
============================================================================= */
@media (max-width: 992px) {
    /* Typography */
    .section-title {
        font-size: 2rem;
    }
    
    /* Content area adjustments */
    .content-card {
        padding: 2rem;
    }
    
    /* Services/Expertise pages */
    .service-hero-content h1,
    .expertise-hero-content h1 {
        font-size: 2.2rem;
    }
    
    /* Profile pages */
    .profile-header h1 {
        font-size: 2.2rem;
    }
    
    /* Container width */
    .container {
        max-width: 95%;
        padding: 0 1rem;
    }
}

/* =============================================================================
   MOBILE DEVICES (Up to 768px)
============================================================================= */
@media (max-width: 768px) {
    /* =========== HEADER & NAVIGATION =========== */
    /* Fixed header */
    .header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .header-container {
        padding: 0.5rem 1rem;
        position: relative;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    /* Mobile hamburger menu */
    .nav-trigger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        z-index: 1000;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #002B49;
        z-index: 999;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 0 0 0;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 2rem;
    }
    
    .nav-list li {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav-link {
        display: block;
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* =========== TYPOGRAPHY & SPACING =========== */
    /* Headings */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* =========== GRID LAYOUTS =========== */
    /* Main content grids */
    .expertise-grid, 
    .services-grid, 
    .sectors-grid,
    .contact-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Footer grid */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Leadership grid */
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    /* =========== CARDS & CONTENT BLOCKS =========== */
    /* Cards height */
    .expertise-card,
    .service-card,
    .sector-card {
        height: auto;
        min-height: 450px;
    }
    
    /* Team cards */
    .team-card {
        max-width: 350px;
        margin: 0 auto 2rem auto;
    }
    
    /* Card backgrounds */
    .expertise-card-bg,
    .service-card-bg,
    .sector-card-bg {
        object-position: center center;
    }
    
    /* Card content */
    .expertise-card h3,
    .service-card h3,
    .sector-card h3 {
        font-size: 1.4rem;
    }
    
    .expertise-card p,
    .service-card p,
    .sector-card p {
        font-size: 0.95rem;
    }
    
    /* =========== FOOTER =========== */
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* =========== BUTTONS & INTERACTIVE ELEMENTS =========== */
    /* Touch-friendly buttons */
    .btn, 
    .btn-primary,
    .expertise-card-link,
    .service-link,
    .sector-card-link,
    .card-actions a {
        padding: 0.8rem 1.5rem;
        min-height: 44px; /* Min touch target size */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Social links */
    .social-links a {
        padding: 10px;
        margin: 0 5px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Team member photos */
    .team-image {
        width: 140px;
        height: 140px;
        margin: 0 auto 1rem auto;
    }
    
    /* =========== FORMS =========== */
    /* Form elements */
    input, 
    textarea, 
    select, 
    button {
        font-size: 16px; /* Prevents iOS zoom on focus */
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    button[type="submit"] {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* =========== SPECIFIC SECTIONS =========== */
    /* Advisory Board Section */
    #advisory-board .leadership-grid {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    #advisory-board .team-card {
        flex: 0 0 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Diaspora Section */
    .diaspora-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature i {
        margin-bottom: 1rem;
    }
    
    /* Cursor Animation - Disable on Mobile */
    .cursor-dot,
    .cursor-dot-outline {
        display: none;
    }
}

/* =============================================================================
   SMALL MOBILE DEVICES (Up to 480px)
============================================================================= */
@media (max-width: 480px) {
    /* Typography */
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Buttons */
    .btn, 
    .btn-primary, 
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Card heights */
    .expertise-card,
    .service-card,
    .sector-card {
        min-height: 400px;
    }
    
    /* Footer */
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-links li a {
        font-size: 0.9rem;
    }
    
    /* Contact Info */
    .contact-info .info-item {
        font-size: 0.9rem;
    }
}

/* =============================================================================
   TOUCH DEVICE OPTIMIZATIONS
============================================================================= */
@media (hover: none) {
    /* Disable hover effects on touch devices */
    .expertise-card:hover,
    .service-card:hover,
    .sector-card:hover,
    .team-card:hover {
        transform: none;
    }
    
    .btn:hover,
    .expertise-card-link:hover,
    .service-link:hover,
    .sector-card-link:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* =============================================================================
   LANDSCAPE MODE OPTIMIZATIONS
============================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
    /* Hero section */
    .hero {
        min-height: auto;
        padding: 3rem 0;
    }
    
    /* Card heights */
    .expertise-card,
    .service-card,
    .sector-card {
        min-height: 300px;
    }
    
    /* Navigation menu */
    .nav {
        padding-top: 60px;
    }
    
    .nav-list {
        padding-bottom: 100px;
    }
} 