/* WP Bootstrapr Premium Styles */

/* ==========================================================================
   RESET & NORMALIZE - Fix WordPress default styles interfering with Tailwind
   ========================================================================== */

/* Reset button styles - WordPress adds default padding/margins */
button,
a.button,
input[type="button"],
input[type="submit"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Prevent WordPress list bullets from appearing in menus and service pills */
.menu li,
nav li,
.flex li,
.grid li {
    list-style: none !important;
}

/* Reset WordPress admin bar spacing issues */
body.admin-bar {
    margin-top: 0 !important;
}

/* Fix nav menu items - WordPress adds ::before bullets */
.menu-item::before,
nav a::before,
nav li::before {
    content: none !important;
    display: none !important;
}

/* Fix WordPress default link underlines in custom content */
.page-content a:not(.btn):not([class*="bg-"]) {
    text-decoration: none;
}

/* Ensure form elements inherit proper box-sizing */
input,
textarea,
select,
button {
    box-sizing: border-box;
}

/* Fix select dropdown arrow in dark mode */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary, #3eb489);
}

/* CSS Custom Properties for dynamic theming */
:root {
    --color-primary: #3eb489;
    --color-primary-light: #5ac79f;
    --color-secondary: #6b21a8;
    --color-accent: #1e40af;
    --color-dark: #0a0a0a;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(62, 180, 137, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(62, 180, 137, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 180, 137, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Utility Classes for JS Observer */
/* Default: visible (failsafe if JS fails) */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}
/* JS adds this class to enable animations */
.js-reveal-enabled .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}
.js-reveal-enabled .reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer Loading */
.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Lightbox */
#lightboxModal {
    transition: opacity 0.3s ease;
}
#lightboxModal.active {
    display: flex;
    opacity: 1;
}

/* Gallery Filter Buttons */
.gallery-filter.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #0a0a0a;
}

/* Gallery Item Images */
.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* FAQ Accordion */
details summary {
    cursor: pointer;
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2px rgba(62, 180, 137, 0.2);
}

/* Button Hover Effects */
.btn-primary {
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(62, 180, 137, 0.3);
}

/* Card Hover Effects */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image Zoom on Hover */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.7s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.open {
    transform: translateX(0) !important;
}

/* Selection Color */
::selection {
    background-color: var(--color-primary);
    color: #0a0a0a;
}

/* Print Styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ccc;
    }
}

/* Accessibility - Focus Visible */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
