/* ============================================
   Responsive Styles - Mobile First Approach
   ============================================ */

/* Hide Top Bar on Mobile and Tablet */
@media (max-width: 991.98px) {
    .top-bar {
        display: none !important;
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 767.98px) {
    /* Typography adjustments */
    .hero-title,
    .section-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Navbar adjustments */
    .navbar-modern {
        border-radius: 0;
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-slogan {
        font-size: 0.85rem;
    }
    
    /* Navbar collapse menu styling */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-modern .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 10px;
    }
    
    /* Dropdown menu on mobile */
    .dropdown-menu {
        margin-top: 0.25rem;
        margin-left: 1rem;
        border: none;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Cards and sections */
    .challenge-card,
    .core-value-card-modern,
    .value-card,
    .service-card,
    .product-card {
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem !important;
    }
    
    /* Challenge and Core Value icons */
    .challenge-icon,
    .core-value-icon-modern {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: 80px 0 60px !important;
    }
    
    /* Page headers */
    .page-header {
        padding: 80px 0 50px !important;
    }
    
    .page-header h1 {
        font-size: 2rem !important;
    }
    
    .page-header p {
        font-size: 1rem !important;
    }
    
    /* Team member cards */
    .team-member-card,
    .management-team-card {
        margin-bottom: 2rem;
    }
    
    .team-member-photo,
    .management-team-photo {
        height: 220px !important;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 2rem !important;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Product cards */
    .product-item {
        margin-bottom: 2rem;
    }
    
    /* Testimonials */
    .testimonials-carousel-wrapper {
        padding: 0 20px;
    }
    
    .carousel-arrows-testimonials {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* SDG Cards */
    .sdg-card {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem !important;
    }
    
    /* About photos */
    .about-photo-card {
        margin-bottom: 2rem;
    }
    
    /* Stats section */
    .stats-section {
        padding: 60px 0 !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    /* Spacing adjustments */
    section {
        padding: 60px 0 !important;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Small Mobile (max-width: 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .hero-title,
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* Navbar */
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-slogan {
        font-size: 0.8rem;
    }
    
    /* Cards padding */
    .challenge-card,
    .core-value-card-modern,
    .value-card,
    .service-card,
    .product-card,
    .sdg-card {
        padding: 1.5rem 1rem !important;
    }
    
    /* Icons */
    .challenge-icon,
    .core-value-icon-modern {
        font-size: 2rem !important;
    }
    
    /* Team photos */
    .team-member-photo,
    .management-team-photo {
        height: 200px !important;
    }
    
    /* Page headers */
    .page-header {
        padding: 60px 0 40px !important;
    }
    
    .page-header h1 {
        font-size: 1.75rem !important;
    }
    
    /* Sections */
    section {
        padding: 50px 0 !important;
    }
    
    /* Footer text */
    .footer p,
    .footer a {
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Grid adjustments */
    .row.g-4 {
        --bs-gutter-y: 1.5rem;
    }
}

/* Tablet Styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2.25rem !important;
    }
    
    /* Cards */
    .challenge-card,
    .core-value-card-modern {
        padding: 2.5rem 2rem !important;
    }
    
    /* Team cards */
    .team-member-card,
    .management-team-card {
        margin-bottom: 2rem;
    }
}

/* Ensure hamburger menu is always visible on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important;
        border: 2px solid var(--primary-green);
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(42, 183, 55, 0.25);
        outline: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(42, 183, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.5em;
        height: 1.5em;
    }
    
    /* Navbar collapse animation */
    .navbar-collapse {
        transition: all 0.3s ease;
    }
    
    /* Ensure navbar items are stacked properly */
    .navbar-nav {
        text-align: left;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .hero-title,
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .challenge-icon,
    .core-value-icon-modern {
        font-size: 1.75rem !important;
    }
}

/* Large screens - ensure proper spacing */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print styles */
@media print {
    .top-bar,
    .navbar,
    .footer {
        display: none !important;
    }
}
