/* Base styles and custom utilities */
:root {
    --plum-950: #1A0917;
    --plum-900: #4A1942;
    --plum-800: #70274D;
    --amber-500: #D4A017;
    --amber-400: #FFC22E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4A1942;
}

/* Navbar transitions */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(26, 9, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .nav-link {
    color: #F9F0F7;
}

.navbar-scrolled .nav-logo-text {
    color: #F9F0F7;
}

.navbar-scrolled .nav-logo-sub {
    color: #D794BC;
}

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

.hamburger-active #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-active #bar2 {
    opacity: 0;
}

.hamburger-active #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Service cards */
.service-card {
    transform: translateY(0);
}

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

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(74, 25, 66, 0.12);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Hero stagger animations */
.hero-stagger {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger:nth-child(2) { animation-delay: 0.3s; }
.hero-stagger:nth-child(3) { animation-delay: 0.5s; }
.hero-stagger:nth-child(4) { animation-delay: 0.7s; }

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

/* Pulse animation for emergency card */
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(212, 160, 23, 0.15); }
}

.service-card:last-child {
    animation: subtlePulse 3s ease-in-out infinite;
}

/* Back to top */
#back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

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

/* Print styles */
@media print {
    nav, #back-to-top, .service-card:last-child {
        display: none;
    }
}
