/* RESPONSIVE DESIGN IMPROVEMENTS */
/* Enhanced responsive design for better mobile, tablet, and desktop experience */

/* Center key cards site-wide using margin-left/right auto */
.contact-info-card,
.contact-form-card,
.why-us-card,
.product-card,
.reference-card {
    margin-left: auto;
    margin-right: auto;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-list a {
        font-size: 0.95rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 0 25px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .why-us-card {
        padding: 20px;
    }
    
    .why-us-card .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .why-us-card .card-icon i {
        font-size: 24px;
    }
    
    .why-us-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .why-us-card p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .hero-ctas .cta {
        text-align: center;
        padding: 12px 20px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        margin-bottom: 15px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .why-us-card {
        padding: 18px;
        text-align: center;
    }
    
    .why-us-card .card-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(47, 158, 75, 0.1);
        border-radius: 50%;
    }
    
    .why-us-card .card-icon i {
        font-size: 20px;
        color: var(--primary);
    }
    
    .why-us-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .why-us-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .nav-inner {
        padding: 0 20px;
    }
    
    .logo img {
        width: 120px;
        height: auto;
    }
    
    .hamburger {
        width: 35px;
        height: 35px;
    }
    
    .hamburger span {
        height: 2px;
    }
    
    /* Mission Vision Cards Mobile */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mission-card {
        padding: 20px;
        text-align: center;
    }
    
    .mission-card .card-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(47, 158, 75, 0.1);
        border-radius: 50%;
    }
    
    .mission-card .card-icon i {
        font-size: 24px;
        color: var(--primary);
    }
    
    .mission-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .mission-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Values Grid Mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .value-item {
        padding: 18px;
        text-align: center;
    }
    
    .value-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(47, 158, 75, 0.1);
        border-radius: 50%;
    }
    
    .value-icon i {
        font-size: 20px;
        color: var(--primary);
    }
    
    .value-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .value-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Footer Mobile Improvements */
    .footer-main {
        padding: 35px 0 20px;
    }
    
    .footer-content {
        text-align: center;
        gap: 25px;
    }
    
    .footer-brand .logo img {
        width: 80px;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
        margin: 10px 0;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .social-links {
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .footer-column a {
        font-size: 0.9rem;
        padding: 5px 0;
    }
    
    .contact-info p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding: 15px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (max 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .why-us-card {
        padding: 15px;
    }
    
    .why-us-card h3 {
        font-size: 0.95rem;
    }
    
    .why-us-card p {
        font-size: 0.8rem;
    }
    
    .logo img {
        width: 100px;
    }
    
    .nav-inner {
        padding: 0 15px;
    }
    
    .mission-card {
        padding: 15px;
    }
    
    .mission-card h3 {
        font-size: 1rem;
    }
    
    .mission-card p {
        font-size: 0.85rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-content-section {
        padding: 40px 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .hero-ctas {
        gap: 10px;
    }
    
    .main-header {
        padding: 8px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .cta, .nav-list a, .social-links a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .why-us-card, .mission-card, .value-item {
        transition: transform 0.2s ease;
    }
    
    .why-us-card:active, .mission-card:active, .value-item:active {
        transform: scale(0.98);
    }
}