/* ============================================
   Rosen Group — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf8f9;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b0;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* Selection */
::selection {
    background: #722F37;
    color: #fce4e8;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-blur-md;
    box-shadow: 0 1px 0 rgba(114, 47, 55, 0.08);
}

.nav-text {
    color: #722F37;
}

#navbar:not(.scrolled) .nav-text {
    color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.6);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

#navbar:not(.scrolled) .menu-line {
    background: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled) .menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: background-color 0.5s ease;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4b5563;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #722F37;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1rem;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

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

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}
