/* ===== CUSTOM STYLES ===== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #C4694A;
    color: #FDFBF7;
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(217, 173, 135, 0.2);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#bar1.open {
    transform: translateY(4px) rotate(45deg);
}

#bar2.open {
    opacity: 0;
}

#bar3.open {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

/* ===== HERO ===== */
.hero-headline {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-sub {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-image {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

/* ===== SERVICES ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-10px) rotate(12deg); }
}

/* ===== GEOMETRIC DECORATIONS ===== */
.geo-circle {
    animation: float 6s ease-in-out infinite;
}

.geo-square {
    animation: float 8s ease-in-out infinite reverse;
}

/* ===== BUTTON HOVER EFFECTS ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== FORM STYLES ===== */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(196, 105, 74, 0.15);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ===== ACCESSIBILITY ===== */
@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;
    }
}

/* ===== FOCUS VISIBLE ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C4694A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .hero-image-float {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    #navbar,
    #mobile-menu,
    .service-card,
    .testimonial-card {
        break-inside: avoid;
    }
}
