/* ==========================================================================
   Shared CSS - Simply Works Marketing
   Extracted from inline <style> blocks across all pages to reduce duplication.
   ========================================================================== */

/* Navigation - Transparent with glassmorphism on scroll */
.nav-glass {
    background: transparent;
}
.nav-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Logo enhancement */
.logo-img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Nav Link Underline Animation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F05A4D;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Button Hover Effects */
.btn-primary {
    box-shadow: 0 4px 14px rgba(240, 90, 77, 0.3);
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background: #D94840;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 90, 77, 0.4);
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    border-color: #F05A4D;
    color: #F05A4D;
    background: #FEF2F1;
}

/* Animated gradient background (hero sections) */
.hero-gradient {
    background: linear-gradient(-45deg, #FBCEC9, #FEF0EF, #D6EBFB, #FEF0EF, #FBCEC9);
    background-size: 400% 400%;
    animation: gradientFlow 12s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Arrow Animation */
.arrow-icon {
    transition: transform 0.2s ease;
}
.group:hover .arrow-icon {
    transform: translateX(4px);
}

/* Text Link */
.text-link {
    transition: all 0.2s ease;
}
.text-link:hover {
    color: #D94840;
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #F05A4D;
    outline-offset: 2px;
}

/* Mobile Responsive Fixes */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll - CRITICAL */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

/* Ensure all containers respect viewport width */
section, main, footer, header, article, aside {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Mobile menu button - ensure clickable */
#mobile-menu-btn {
    position: relative;
    z-index: 100;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile menu dropdown */
#mobile-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 40;
}

/* Ensure text wraps properly */
h1, h2, h3, h4, h5, h6, p, a, span, li, td, th, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    /* Force container padding */
    .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
    }
    /* Smaller hero title on mobile */
    h1.text-4xl, h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    /* Smaller section titles */
    h2.text-3xl, h2 {
        font-size: 1.5rem !important;
    }
    /* Smaller tagline */
    p.text-lg, .text-lg {
        font-size: 0.95rem !important;
    }
    /* Full width buttons on mobile */
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Ensure email/URLs don't overflow */
a[href^="mailto:"],
a[href^="tel:"] {
    word-break: break-all;
}
