/* ========== BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; overflow-x: hidden; }

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(254, 252, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(184, 93, 56, 0.08);
    transition: box-shadow 0.4s ease, background 0.4s ease;
}
#navbar.scrolled {
    background: rgba(254, 252, 248, 0.95);
    box-shadow: 0 4px 30px rgba(184, 93, 56, 0.08);
}
.nav-link { position: relative; }

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #B85D38;
    color: #fff;
    font-weight: 800;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9375rem;
    box-shadow: 0 4px 20px rgba(184, 93, 56, 0.3);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: #a04e2e;
    box-shadow: 0 8px 30px rgba(184, 93, 56, 0.4);
    transform: translateY(-2px);
    color: #fff;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #B85D38;
    font-weight: 800;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9375rem;
    border: 2px solid #B85D38;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: #B85D38;
    color: #fff;
    transform: translateY(-2px);
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #B85D38;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}
.btn-cta:hover {
    background: #fefcf8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #a04e2e;
}
.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}
.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ========== SCROLL INDICATOR ========== */
.scroll-line {
    width: 100%;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #a8a29e);
    position: absolute;
    top: 0;
    animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ========== MARQUEE ========== */
.marquee-track {
    animation: marquee 30s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== FLOATING ANIMATION ========== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    .animate-float { animation: none; }
    html { scroll-behavior: auto; }
    .scroll-line { animation: none; opacity: 0.5; }
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-6px);
}

/* ========== BACK TO TOP ========== */
#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
.mob-link { display: block; }

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    #hero h1 { font-size: 2.75rem; }
    #hero .order-2 { order: 2; }
    #hero .order-1 { order: 1; }
    .animate-float { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 { font-size: 3.5rem; }
}
