/* ===================================================================
 *
 * WOO INTERNATIONAL - PRODUCTION-READY CUSTOM STYLESHEET
 * Author: Lone Design
 * Version: 3.0.0
 *
 * TABLE OF CONTENTS
 * ------------------------------------------------------------------
 * 01. VARIABLE DEFINITIONS (:root)
 * 02. RESET & BASE STYLES
 * 03. PAGE LOADER
 * 04. LAYOUT & HELPERS
 * 05. HEADER & TOP BANNER
 * 06. NAVIGATION & MEGA MENU
 * 07. HERO SECTION & SLIDER
 * 08. SCROLL DOWN MOUSE ICON
 * 09. STANDARD SECTIONS (About, Services, CTA)
 * 10. FOOTER
 * 11. FLOATING ACTION BUTTONS
 * 12. ANIMATIONS & KEYFRAMES
 * 13. ACCESSIBILITY ENHANCEMENTS
 * 14. RESPONSIVE MEDIA QUERIES
 *
 * =================================================================== */


/* ===================================================================
 * 01. VARIABLE DEFINITIONS (:root)
 * =================================================================== */
:root {
    /* Colors */
    --color-primary: #1a1a1a;
    --color-secondary: #F26522;
    --color-accent: #f5f5f5;
    --color-text: #333333;
    --color-text-light: #6b7280;
    --color-light-gray: #fafafa;
    --color-white: #ffffff;
    --color-border: #e5e7eb;

    /* Typography */
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Sizing & Spacing */
    --container-padding: 1rem;
    --section-padding-y: 6rem;

    /* Transitions & Borders */
    --transition-fast: all 0.2s ease-in-out;
    --transition-default: all 0.3s ease-in-out;
    --transition-slow: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --border-radius-default: 0.5rem;
    --border-radius-large: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}


/* ===================================================================
 * 02. RESET & BASE STYLES
 * =================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}


/* ===================================================================
 * 03. PAGE LOADER
 * =================================================================== */
#page-loader {
    animation: color-change-bg 4s infinite linear;
    will-change: background-color;
}

.loader-icon {
    animation: pulse-icon 2s infinite ease-in-out;
    will-change: transform, opacity;
}

body.loading {
    overflow: hidden;
}


/* ===================================================================
 * 04. LAYOUT & HELPERS
 * =================================================================== */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.section-padding {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
}

.cta-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-default);
    transform: perspective(1px) translateZ(0);
}

.cta-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.cta-glow:hover::before,
.cta-glow:focus::before {
    width: 250%;
    height: 250%;
}

.cta-glow:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.link-underline {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 500;
    padding-bottom: 3px;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transform-origin: bottom right;
    transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
}

.link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* ===================================================================
 * 05. HEADER & TOP BANNER
 * =================================================================== */
#top-banner {
    transition: top 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

#top-banner.hide {
    top: -100px;
}

#top-banner a:hover svg,
#top-banner a:hover span {
    color: var(--color-secondary);
}


/* ===================================================================
 * 06. NAVIGATION & MEGA MENU
 * =================================================================== */
#main-nav {
    transition: var(--transition-slow);
}

#main-nav.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#main-nav.nav-scrolled > .container > div {
    box-shadow: var(--shadow-md);
}

.dropdown-icon {
    transition: var(--transition-default);
}

[aria-expanded="true"] .dropdown-icon {
    transform: rotate(45deg);
}

.mega-menu {
    opacity: 0;
    visibility: hidden;
    display: none;
    transform: translateY(-1rem);
    will-change: transform, opacity;
}

.mega-menu.is-open {
    visibility: visible;
}

.mega-menu a:focus,
.mega-menu button:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

#mobile-menu-button #menu-open-icon,
#mobile-menu-button #menu-close-icon {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu-button[aria-expanded="true"] #menu-open-icon {
    transform: rotate(90deg);
    opacity: 0;
}
#mobile-menu-button[aria-expanded="true"] #menu-close-icon {
    transform: rotate(0);
    opacity: 1;
}


/* ===================================================================
 * 07. HERO SECTION & SLIDER
 * =================================================================== */
.hero-slider .swiper-slide {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition-default);
    border: 1px solid transparent;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--color-secondary);
    width: 32px;
    border-radius: 6px;
    border-color: var(--color-white);
}


/* ===================================================================
 * 08. SCROLL DOWN MOUSE ICON
 * =================================================================== */
.scroll-down-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 60px;
    position: relative;
    display: block;
}
.scroll-down-mouse .mouse-wheel {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
    will-change: transform, opacity;
}


/* ===================================================================
 * 09. STANDARD SECTIONS (About, Services, CTA)
 * =================================================================== */
#about-section .relative > div:last-child {
    box-shadow: var(--shadow-xl);
}

.service-card {
    transition: var(--transition-default);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.aspect-w-4 {
    position: relative;
    padding-bottom: 75%;
}
.aspect-h-3 { /* Helper class */ }


/* ===================================================================
 * 10. FOOTER
 * =================================================================== */
footer a.transition:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
    text-underline-offset: 4px;
}

footer form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.4);
    border-color: var(--color-secondary);
}

footer form button {
    transition: var(--transition-default);
}

footer form button:hover {
    background-color: #d95a1e; /* Darker orange */
}


/* ===================================================================
 * 11. FLOATING ACTION BUTTONS
 * =================================================================== */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-default);
    transform: scale(0) translateY(20px);
    opacity: 0;
    will-change: transform, opacity;
}

.floating-btn.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

#whatsapp-btn {
    background-color: #25D366;
    transition-delay: 0.2s;
}

#back-to-top-btn {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}


/* ===================================================================
 * 12. ANIMATIONS & KEYFRAMES
 * =================================================================== */
@keyframes color-change-bg {
    0%, 100% { background-color: var(--color-primary); }
    50% { background-color: var(--color-secondary); }
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}


/* ===================================================================
 * 13. ACCESSIBILITY ENHANCEMENTS
 * =================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Show focus outline only for keyboard users */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}


/* ===================================================================
 * 14. RESPONSIVE MEDIA QUERIES
 * =================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 5rem;
    }
    
    .mega-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 4rem;
    }
    
    .footer .grid {
        text-align: center;
    }
    .footer .grid > div {
        margin-bottom: 2rem;
    }
    .footer form {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    #top-banner .hidden {
        display: none;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

