﻿/* ===== NON-CRITICAL CSS - DEFER LOADING ===== */

/* ===== UTILITY CLASSES (Non-critical) ===== */
.text-center {
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== IMAGE UTILITIES ===== */
.img-thumb{
    max-width:3rem;
    height:auto;
    display:block;
}
.img-lg{
    max-width:5rem;
    height:auto;
    display:block;
}

/* ===== BUTTON VARIATIONS ===== */
.secondary-btn {
    background: var(--secondary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.secondary-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.outline-btn {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.outline-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 65, 28, 0.2);
}

.center-cta {
    text-align: center;
    margin-top: 2rem;
}

.center-cta .cta-btn {
    display: inline-block;
    margin: 0 auto;
}

/* Moss Button */
.moss-btn {
    background: var(--gradient-forest);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.moss-btn:hover {
    background: linear-gradient(135deg, #013A14 0%, #01411C 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(1, 65, 28, 0.2);
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.logo-icon {
    color: var(--accent);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a.active {
    color: var(--secondary);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--accent);
}

/* Style for active dropdown triggers */
.dropdown-trigger.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
    background: rgba(var(--primary-rgb), 0.1) !important;
}

.dropdown-trigger.active:hover {
    background: rgba(var(--primary-rgb), 0.2) !important;
}

/* ===== DROPDOWNS ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 20px);
    left: 0px;
    background: var(--card-bg);
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.12);
    border-radius: 12px;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border-top: 4px solid var(--secondary);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:hover {
    background: rgba(0, 168, 107, 0.1);
    color: var(--secondary);
    padding-left: 1.8rem;
}

/* ===== HERO ENHANCEMENTS ===== */
.hero-img-wrapper:hover img {
    transform: scale(1.05);
}

/* ===== GRID LAYOUTS ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
    justify-content: center;
    max-width: 100%;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: left;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.05);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-forest);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: transparent;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    background: rgba(0, 168, 107, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.learn-more {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.learn-more:hover {
    color: var(--primary);
    border-bottom-color: var(--accent);
    gap: 12px;
}

.learn-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.learn-more:hover::after {
    transform: translateX(5px);
}

/* ===== FORMS ===== */
.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 15px;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.1);
}

/* Custom Inputs */
.input-group {
    margin-top: 0.5rem;
}

.input-custom {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.label-custom {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-box, .radio-circle {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    background: white;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.checkbox-box {
    border-radius: 6px;
}

.radio-circle {
    border-radius: 50%;
}

/* Checked States */
.input-custom:checked + .label-custom .checkbox-box {
    background: var(--secondary);
    border-color: var(--secondary);
}

.input-custom:checked + .label-custom .checkbox-box::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.input-custom:checked + .label-custom .radio-circle {
    border-color: var(--secondary);
}

.input-custom:checked + .label-custom .radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.input-custom:focus + .label-custom .checkbox-box,
.input-custom:focus + .label-custom .radio-circle {
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.2);
    border-color: var(--secondary);
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230066CC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.form-input:disabled {
    background-color: #f8f9fa;
    color: #a0aec0;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-forest);
}

/* FIVE COLUMN FOOTER LAYOUT */
.footer-grid {
    display: grid;
    grid-template-columns: 3fr repeat(4, 2fr);
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

/* First column - larger width */
.footer-column:first-child {
    padding-right: 2rem;
}

/* Footer headings */
.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--warning);
}

/* Footer links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--warning);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* ADD THESE STYLES FOR BETTER VISUAL APPEARANCE */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.footer-logo-icon {
    color: var(--warning);
    font-size: 2rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: center;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--warning);
    transform: translateY(-3px);
}

/* ===== MOBILE MENU SCROLL LOCK ===== */
html.menu-open,
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== RESPONSIVE DESIGN (Non-critical) ===== */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-column:first-child {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    /* Mobile Grid Layouts */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .nav-links a.active {
        background: rgba(0, 168, 107, 0.1);
        border-left: 4px solid var(--secondary);
    }
    
    /* Mobile Menu Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(3px);
        z-index: 999;
    }
    
    #menu-toggle:checked ~ .nav-overlay {
        display: block;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* FOOTER MOBILE */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "first"
            "row1"
            "row2";
        gap: 0;
    }
    
    .footer-column:first-child {
        grid-area: first;
        width: 100%;
        padding: 0 0 2rem 0;
        margin-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
    }
    
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) {
        display: inline-block;
        width: 50%;
        float: left;
        box-sizing: border-box;
        padding: 1rem;
        text-align: center;
        clear: none;
    }
    
    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        display: inline-block;
        width: 50%;
        float: left;
        box-sizing: border-box;
        padding: 1rem;
        text-align: center;
        clear: none;
    }
    
    .footer-grid::after {
        content: '';
        display: table;
        clear: both;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-logo {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 15px;
    }
    
    .hero-contents h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.8rem;
        width: 100%;
        text-align: center;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-column:first-child {
        padding: 0 0 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .footer-column:nth-child(2),
    .footer-column:nth-child(3),
    .footer-column:nth-child(4),
    .footer-column:nth-child(5) {
        width: 100%;
        float: none;
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Service Card Image Container */
.service-img-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(0, 168, 107, 0.1);
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-container img {
    transform: scale(1.08);
}

/* Card Variations */
.service-card.featured {
    border: 2px solid var(--accent);
    background: white;
}

.service-card.featured::before {
    height: 8px;
    background: var(--gradient-accent);
}

/* Stats Counter */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--primary);
    font-weight: 600;
}

/* Forest Badge */
.forest-badge {
    display: inline-block;
    background: var(--gradient-forest);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

/* Accent elements for contrast */
.accent-border {
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 168, 107, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(0, 168, 107, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

/* ===== TRUST BADGE - MULTIPLE CARDS IN ROW ===== */
.trust-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    border: 2px solid #0066CC;
    border-left: 6px solid #00A86B;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.trust-badge-icon {
    width: 50px;
    height: 50px;
    background: #0066CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.trust-badge-content {
    flex: 1;
}

.trust-badge-content h4 {
    color: #01411C;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}

.trust-badge-content p {
    color: #333333;
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Trust Badge Variations */
.trust-badge-medical {
    border-color: #0066CC;
    border-left-color: #0066CC;
}

.trust-badge-medical .trust-badge-icon {
    background: #0066CC;
}

.trust-badge-trusted {
    border-color: #00A86B;
    border-left-color: #00A86B;
}

.trust-badge-trusted .trust-badge-icon {
    background: #00A86B;
}

.trust-badge-certified {
    border-color: #01411C;
    border-left-color: #01411C;
}

.trust-badge-certified .trust-badge-icon {
    background: #01411C;
}

/* Responsive Layout for Trust Badges */
@media (max-width: 992px) {
    .trust-badge {
        min-width: 250px;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .trust-badge-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .trust-badge {
        max-width: 100%;
        width: 100%;
        padding: 12px 15px;
    }
    
    .trust-badge-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .trust-badge-content h4 {
        font-size: 16px;
    }
    
    .trust-badge-content p {
        font-size: 13px;
    }
}

/* For exactly 2 badges side by side */
.trust-badge-duo {
    justify-content: space-between;
}

.trust-badge-duo .trust-badge {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

/* For exactly 3 badges in a row */
.trust-badge-trio {
    justify-content: space-between;
}

.trust-badge-trio .trust-badge {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
}

/* For exactly 4 badges in a row */
.trust-badge-quad {
    justify-content: space-between;
}

.trust-badge-quad .trust-badge {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}