*, *::before, *::after { box-sizing: border-box; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu */
#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

.menu-line.open-1 {
    transform: translateY(6px) rotate(45deg);
}
.menu-line.open-2 {
    opacity: 0;
}
.menu-line.open-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #C0523A, #E86A1A);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: #FDE8E2;
    line-height: 1;
    z-index: 0;
}

/* Scroll reveal (below fold only) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

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

/* Geometric floating shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F5EE;
}
::-webkit-scrollbar-thumb {
    background: #C0523A;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9C3F2A;
}

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

/* Button hover lift */
a:hover, button:hover {
    transform: translateY(-1px);
}
a:active, button:active {
    transform: translateY(0);
}
</style>
