/* Custom styles and overrides */

:root {
    --burgundy-700: #9c1a3c;
    --burgundy-800: #821633;
    --burgundy-900: #6e142c;
    --burgundy-950: #3a0a16;
    --blush-300: #ffb3c7;
    --blush-400: #ff7fa3;
}

html {
    scroll-behavior: smooth;
}

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

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

#navbar.scrolled .font-display {
    color: #6e142c !important;
}

#navbar.scrolled .text-burgundy-600 {
    color: #9c1a3c !important;
}

/* Mobile menu animation */
.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #ff7fa3, #ffb3c7);
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Area cards */
.area-card {
    position: relative;
    overflow: hidden;
}

.area-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #ff7fa3, #ffb3c7);
    transition: width 0.5s ease;
}

.area-card:hover::after {
    width: 100%;
}

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

/* Back to top button */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
    background: #f4a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ec6b91;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e142c;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ec6b91;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Fade-in animation for scroll reveals */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsiveness adjustments */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.15;
    }
}
