/* ========================================
   Revolution Studios — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Custom Button --- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #7B2D3B 0%, #a3243a 100%);
    border: none;
    cursor: pointer;
    letter-spacing: 0.2em;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a3243a 0%, #7B2D3B 100%);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 0;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.35);
}

.btn-primary span,
.btn-primary svg,
.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- Navbar --- */
#navbar {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(123, 45, 59, 0.08);
    padding-top: 0;
    padding-bottom: 0;
}

.nav-link {
    position: relative;
}

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

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

/* --- Service Cards --- */
.service-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .w-14 {
    transform: scale(1.1);
}

/* --- Mobile Menu --- */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .service-card .w-14:hover {
        transform: none;
    }
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    border-color: #7B2D3B !important;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1) !important;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #d4a8b8;
}

/* --- Selection --- */
::selection {
    background: #f9d0d9;
    color: #7B2D3B;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7B2D3B;
}

/* --- Utility --- */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}
