/* ============================================
   Woodall Enterprises — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: rgba(255, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(120, 31, 47, 0.08);
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.95);
    box-shadow: 0 4px 30px rgba(120, 31, 47, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF8A74;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.close {
    opacity: 0;
    pointer-events: none;
}

.menu-line:nth-child(3) {
    width: 6px;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* ============================================
   HERO — GEOMETRIC SHAPES
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.geo-circle-1 {
    top: 10%;
    right: 5%;
    width: 120px;
    height: 120px;
    background: #FF8A74;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.geo-circle-2 {
    top: 60%;
    left: 3%;
    width: 80px;
    height: 80px;
    background: #781F2F;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite reverse;
}

.geo-circle-3 {
    bottom: 15%;
    right: 10%;
    width: 50px;
    height: 50px;
    background: #FFB9A8;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 5s ease-in-out infinite;
}

.geo-square-1 {
    top: 20%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: #FCE4E9;
    transform: rotate(45deg);
    opacity: 0.5;
    animation: spin-slow 20s linear infinite;
}

.geo-triangle {
    bottom: 25%;
    right: 3%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(244, 145, 160, 0.2);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Hero badge animation */
.hero-badge {
    animation: badge-in 0.8s ease-out both;
}

@keyframes badge-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-images-grid {
    perspective: 1000px;
}

.about-images-grid img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-images-grid:hover img:not(:hover) {
    transform: scale(0.97);
    opacity: 0.85;
}

.about-content {
    opacity: 1;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF8A74, #781F2F);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(67, 18, 25, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   Only active when user prefers motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion — ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .geo-circle-1 {
        width: 60px;
        height: 60px;
    }

    .geo-square-1 {
        width: 30px;
        height: 30px;
    }

    .geo-triangle {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 35px solid rgba(244, 145, 160, 0.2);
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
