/* ===== Base & Utilities ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(161, 45, 59, 0.15);
    color: #6d1f26;
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.15s; }
.reveal-up:nth-child(4) { transition-delay: 0.2s; }
.reveal-up:nth-child(5) { transition-delay: 0.25s; }

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 252, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(161, 45, 59, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ===== Hero Section ===== */
@media (max-width: 1023px) {
    .reveal-up {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Cards ===== */
.group:hover .w-14 {
    transform: scale(1.1) rotate(3deg);
}

/* ===== Smooth transitions for all interactive elements ===== */
a, button {
    transition: all 0.2s ease;
}

input, select, textarea {
    transition: all 0.2s ease;
}

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

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

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

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

/* ===== Mobile menu animation ===== */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Form focus states ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== Testimonial cards hover ===== */
@media (hover: hover) {
    .group:hover .bg-gradient-to-br {
        box-shadow: 0 20px 60px -15px rgba(161, 45, 59, 0.12);
    }
}

/* ===== Responsive adjustments ===== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* ===== Print styles ===== */
@media print {
    #navbar, #mobileMenu, button {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .bg-gradient-to-br {
        background: #fff !important;
    }
}
