/* Global CSS for Webfront Pages */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #191819;
    overflow-x: hidden;
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hide absolute positioned elements on mobile */
    [style*="position: absolute"] {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 10px 0 !important;
    }
    
    /* Mobile navigation */
    .about-parent {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 10px !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    /* Mobile text sizing */
    [style*="font-size: 89.27px"], 
    [style*="font-size: 67.86px"],
    [style*="font-size: 67.23px"] {
        font-size: 32px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    [style*="font-size: 36.41px"],
    [style*="font-size: 32px"] {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    [style*="font-size: 26.55px"],
    [style*="font-size: 22px"] {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    /* Mobile images */
    img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10px auto !important;
    }
    
    /* Mobile buttons */
    [style*="background: #218225"],
    [style*="background-color: #218225"] {
        width: 100% !important;
        max-width: 300px !important;
        margin: 10px auto !important;
        display: block !important;
        text-align: center !important;
        padding: 15px 20px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet styles */
    [style*="font-size: 89.27px"], 
    [style*="font-size: 67.86px"],
    [style*="font-size: 67.23px"] {
        font-size: 48px !important;
    }
    
    [style*="font-size: 36.41px"],
    [style*="font-size: 32px"] {
        font-size: 28px !important;
    }
}

/* Navigation Styles */
.nav-item {
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    color: #191819;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-item:hover {
    color: #2ACC32;
    background-color: rgba(42, 204, 50, 0.1);
}

.nav-item.active {
    color: #2ACC32;
    font-weight: 700;
}

/* Contact Button Styles */
.contact-us-wrapper,
.contact-us-container {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-us-wrapper:hover,
.contact-us-container:hover {
    background-color: #2ACC32 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 204, 50, 0.3);
}

/* Button Hover Effects */
[style*="background: #218225"],
[style*="background-color: #218225"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

[style*="background: #218225"]:hover,
[style*="background-color: #218225"]:hover {
    background-color: #2ACC32 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 204, 50, 0.3);
}

/* Form Styles */
input, textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2ACC32;
    box-shadow: 0 0 0 3px rgba(42, 204, 50, 0.1);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .contact-us-wrapper,
    .nav-item,
    button,
    [style*="background: #218225"] {
        display: none !important;
    }
}
