/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #B85C38;
    color: #FAF6F1;
}

/* ===== Hero Background Clip ===== */
.clip-hero-bg {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* ===== Reveal Animations ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays for service cards */
.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

/* ===== Navigation ===== */
#navbar {
    background: rgba(250, 246, 241, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    border-bottom-color: #EDE9E5;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scroll-triggered reveals ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Smooth focus states ===== */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.1);
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF6F1;
}

::-webkit-scrollbar-thumb {
    background: #D8D2CC;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #BFB8AF;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .clip-hero-bg {
        clip-path: none;
        opacity: 0.3;
    }
    
    #hero {
        min-height: auto;
        padding-bottom: 60px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .clip-hero-bg {
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* ===== Print styles ===== */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
    }
}
