/* 
================================================================
SARCK SYSTEMS | PREMIUM ENTERPRISE STYLES
================================================================
TABLE OF CONTENTS:
1.  ROOT VARIABLES
2.  BASE STYLES & TYPOGRAPHY
3.  NAVIGATION & MEGA MENU
4.  HERO SECTION (Contrast & Layout Fixes)
5.  STATS SECTION (Depth & Shadow)
6.  SERVICE CARDS (Interactions)
7.  SWIPER.JS CUSTOMIZATION
8.  BUTTONS & UI ELEMENTS (Premium Scale)
9.  FOOTER & FORM STYLING
10. ANIMATIONS & UTILITIES
================================================================ 
*/

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- 1. ROOT VARIABLES --- */
:root {
    --navy: #005B73;
    --forest: #1F8F4E;
    --forest-light: #2ECC71; /* Brighter green for contrast on dark backgrounds */
    --orange: #E67E22;
    --white: #FFFFFF;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-300: #CBD5E1;
    --slate-500: #64748B;
    --slate-900: #0F172A;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 20px 50px -10px rgba(0, 91, 115, 0.2);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* --- 2. BASE STYLES & TYPOGRAPHY --- */
body {
    font-family: "Poppins", sans-serif;
    color: var(--slate-900);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;

    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent image dragging/saving */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2; /* Fixed the cramped line-height from screenshot */
    letter-spacing: -0.02em;
}

h1 { letter-spacing: -0.04em; }



/* --- 3. NAVIGATION & MEGA MENU --- */
nav {
    /* transition: var(--transition); */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    font-weight: 650;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
}

/* Underline effect */
/* @media (min-width: 1024px) {
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--forest-light);
        transition: var(--transition);
        transform: translateX(-50%);
    }
    .nav-link:hover::after {
        width: 80%;
    }
} */

/* Dropdown visibility */
.group:hover .absolute {
    display: block !important;
    animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* This class is triggered by the Alpine.js logic above */
.brightness-0.invert {
    filter: brightness(0) invert(1); /* Forces any dark logo to become pure white */
    opacity: 0.9;
}

/* Ensure the navbar links have a text-shadow on landing for extra "pop" against the video/image */
nav:not(.bg-white) .nav-link {
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Refine the dropdown arrows to match the text color */
nav .fa-chevron-down {
    transition: transform 0.3s ease;
}
.group:hover .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Menu Fix: Ensure logo is visible in the white mobile overlay */
[x-show="mobileMenu"] img {
    filter: none !important; /* Force original colors in mobile menu */
}



/* --- 4. HERO SECTION & CINEMATIC EFFECTS --- */
header {
    background-color: var(--navy);
    min-height: 100vh;
}

/* IMPROVED GRADIENT: Ensures text on the left is readable regardless of the background image */
header .hero-overlay {
    background: linear-gradient(90deg, 
        rgba(0, 91, 115, 1) 0%, 
        rgba(0, 91, 115, 0.85) 40%, 
        rgba(0, 91, 115, 0.3) 100%) !important;
}

/* Headline contrast fix */
header h1 span.text-forest {
    color: var(--forest-light) !important; /* Brighter green for navy background */
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

header p {
    color: var(--slate-300);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Hero Badge/Tag */
.hero-tag {
    background: var(--orange);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--forest-light);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* --- 5. STATS SECTION (Floating Card) --- */
.stats-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 30px 70px -20px rgba(0, 91, 115, 0.2);
    padding: 60px 30px;
    position: relative;
    z-index: 40;
}

.stats-container h3 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
}

/* --- 6. SERVICE CARDS --- */
.service-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    border: 0 solid var(--slate-100);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
    border-color: var(--forest);
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: var(--slate-50);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--navy);
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--forest);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

/* --- 7. SWIPER.JS CUSTOMIZATION --- */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--slate-300) !important;
    opacity: 1;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--forest) !important;
    width: 25px;
    border-radius: 10px;
}

/* --- 8. BUTTONS & UI ELEMENTS --- */
.btn-premium {
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-forest {
    background-color: var(--forest);
    color: var(--white);
    border: 2px solid var(--forest);
}

.btn-forest:hover {
    background-color: transparent;
    color: var(--forest);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(31, 143, 78, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

/* --- 9. FOOTER --- */
footer {
    background-color: #020617; /* High-end dark slate */
}

footer h4 {
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
}

footer .footer-link {
    color: var(--slate-300);
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
}

footer .footer-link:hover {
    color: var(--forest-light);
    padding-left: 8px;
}

/* --- 10. ANIMATIONS & UTILITIES --- */
@keyframes slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.animate-slow-zoom {
    animation: slow-zoom 20s infinite alternate ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--forest); }

/* Selection */
::selection { background: var(--forest); color: var(--white); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 { font-size: 3.5rem !important; }
    .stats-container h3 { font-size: 2.5rem; }
    .btn-premium { width: 100%; }
}

/* 
================================================================
ABOUT PAGE - SPECIFIC ENHANCEMENTS
================================================================
*/

/* --- 1. SUB-PAGE HERO (About Hero) --- */
.about-hero {
    background-color: var(--navy);
    position: relative;
    /* Forces the section to be roughly half the screen height */
    height: 55vh; 
    min-height: 400px; /* Ensures it doesn't get too squashed on small screens */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Padding-top accounts for the fixed navbar height */
    padding-top: 80px; 
}

/* Ensure the background container fills exactly the half-height section */
.about-hero .absolute.inset-0 {
    height: 100%;
    width: 100%;
}

.about-hero h1 {
    font-family: 'Montserrat', sans-serif;
    /* Scales size based on screen width */
    font-size: clamp(2.5rem, 6vw, 4.5rem); 
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #F1F5F9;
}

.about-hero p {
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--slate-300);
    line-height: 1.6;
    font-weight: 300;
}

/* --- 2. COMPANY OVERVIEW SECTION --- */
.overview-image-wrapper {
    position: relative;
    transition: var(--transition);
}

/* The 'Who We Are' Badge */
.section-badge {
    color: var(--forest);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.overview-text h2 {
    color: var(--navy);
    /* Ensuring the line height feels premium, not cramped */
    line-height: 1.25;
    margin-bottom: 2rem;
}

/* Body text refinement */
.overview-text p {
    font-size: 1.1rem;
    color: var(--slate-500);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* --- 3. MISSION, VISION, & VALUES CARDS --- */
.mv-card {
    background: var(--white);
    /* Using our premium shadow token */
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    height: 100%; /* Ensures all cards in the grid are same height */
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.mv-card:hover {
    transform: translateY(-10px);
    /* Deepening shadow on hover for a 'lifted' effect */
    box-shadow: 0 30px 60px rgba(0, 91, 115, 0.15);
}

/* Icon boxes in the cards */
.mv-icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.mv-card:hover .mv-icon-box {
    transform: scale(1.1) rotate(-5deg);
}

.mv-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

/* --- 4. STRATEGIC APPROACH SECTION (The Numbered Steps) --- */
.approach-item {
    position: relative;
    padding: 20px;
    transition: var(--transition);
}

/* Styling the big background numbers */
.approach-number {
    font-size: 6rem; /* Large and bold */
    font-weight: 900;
    color: var(--slate-100); /* Very light so it acts as a backdrop */
    line-height: 1;
    margin-bottom: -30px; /* Pulling the text up over the number */
    user-select: none;
    transition: var(--transition);
}

.approach-item:hover .approach-number {
    color: rgba(31, 143, 78, 0.1); /* Subtle forest color on hover */
    transform: scale(1.1);
}

.approach-item h4 {
    position: relative;
    z-index: 2;
    color: var(--navy);
    letter-spacing: 0.1em;
    font-weight: 800;
}

.approach-item p {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    color: var(--slate-500);
    font-weight: 300;
}

/* --- 5. RESPONSIVE REFINEMENTS --- */
@media (max-width: 991px) {
    .about-hero {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }
    
    .approach-item {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 50vh; /* Slightly shorter on mobile to let content below peek up */
        min-height: 350px;
        padding-top: 7rem;
        padding-bottom: 4rem;
    }

    .about-hero h1 {
        font-size: 3rem;
    }

    /* Ensure no horizontal overflow on mobile */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }

    section {
        overflow-x: hidden;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Grid responsive stacking */
    .grid {
        max-width: 100%;
    }

    /* Roadmap grid should stack vertically on mobile */
    @media (max-width: 640px) {
        .lg\:grid-cols-\[1\.3fr_0\.85fr\] {
            grid-template-columns: 1fr !important;
        }

        /* Ensure text doesn't overflow */
        h1, h2, h3, h4 {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        /* Reduce padding on smaller cards */
        .rounded-\[2\.5rem\] {
            padding: 1.5rem !important;
        }

        p {
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
    }
}

/* --- SOLUTIONS PAGE - SPECIFIC STYLES --- */

/* Dropdown Menu Item Refinement */
.dropdown-item-custom {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
    text-decoration: none !important;
}

.dropdown-item-custom i {
    font-size: 1.25rem;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-50);
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item-custom:hover {
    background: var(--slate-50);
}

.dropdown-item-custom:hover i {
    background: var(--forest);
    color: var(--white);
}

.dropdown-item-custom span {
    color: var(--navy);
    font-size: 0.95rem;
}

.dropdown-item-custom small {
    color: var(--slate-400);
    font-size: 0.75rem;
}

/* Solution Grid Cards */
.solution-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    border: 0 solid var(--slate-100);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 91, 115, 0.1);
    border-color: var(--forest);
}

.solution-icon {
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.solution-card:hover .solution-icon {
    transform: scale(1.1);
    color: var(--navy);
}

.solution-card h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.solution-card p {
    color: var(--slate-500);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1; /* Pushes the impact tag to bottom */
}

/* Outcome Tag */
.impact-tag {
    background: var(--slate-50);
    color: var(--forest);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    border: 1px solid var(--forest);
}

.solution-card:hover .impact-tag {
    background: var(--forest);
    color: var(--white);
}

/* --- PRODUCT PAGE STYLES --- */
.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 91, 115, 0.15);
}

.product-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--forest);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 900;
}

.product-content p {
    color: var(--slate-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--forest);
    margin-right: 12px;
    font-size: 0.8rem;
}

.product-btn {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.product-btn i {
    margin-left: 10px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.product-card:hover .product-btn {
    color: var(--forest);
}

.product-card:hover .product-btn i {
    transform: translateX(5px);
}

/* PRELOADER STYLES */
#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slide-up {
    animation: slide-up 1s ease forwards;
}

/* Ensure body is hidden while loading to prevent scrolling */
body.loading {
    overflow: hidden;
}

/* Contact form submission */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hide form smoothly */
.invisible {
    visibility: hidden;
    pointer-events: none;
}

/* Location maps */
/* --- Premium Map Interaction --- */
.grayscale {
    filter: grayscale(100%) contrast(1.1) brightness(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.grayscale:hover {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* --- Premium Input Refinement --- */
.premium-input {
    background-color: #f8fafc !important; /* slate-50 */
    border: 1px solid #e2e8f0 !important; /* slate-200 */
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.premium-input:focus {
    background-color: #fff !important;
    border-color: var(--forest) !important;
    box-shadow: 0 10px 25px -5px rgba(31, 143, 78, 0.1) !important;
    outline: none;
}

/* --- Success Message Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}