/* ============================================
   STUDIO R — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #722F37 0%, #5A252C 30%, #3D1A1F 60%, #1A0A0E 100%);
}

/* Hero Pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(244, 194, 194, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(253, 242, 242, 0.08) 0%, transparent 50%);
}

/* About Pattern */
.about-pattern {
    background-image: radial-gradient(circle at 20% 80%, rgba(244, 194, 194, 0.3) 0%, transparent 40%),
                      radial-gradient(circle at 80% 20%, rgba(253, 242, 242, 0.2) 0%, transparent 40%);
}

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

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

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

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(253, 242, 242, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 30px rgba(114, 47, 55, 0.08);
}

/* Hero Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-elem {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-elem:nth-child(1) { animation-delay: 0.2s; }
.hero-elem:nth-child(2) { animation-delay: 0.4s; }
.hero-elem:nth-child(3) { animation-delay: 0.6s; }
.hero-elem:nth-child(4) { animation-delay: 0.8s; }
.hero-elem:nth-child(5) { animation-delay: 1.1s; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-elem {
        animation: none;
        opacity: 1;
    }
    html {
        scroll-behavior: auto;
    }
    .gallery-item img {
        transition: none;
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(114, 47, 55, 0.12);
}

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

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(114, 47, 55, 0.1);
}

/* CTA Decorations */
.cta-decoration {
    animation: float 8s ease-in-out infinite;
}

.cta-decoration--bottom {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Link Hover */
.mobile-link {
    position: relative;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

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

/* Focus styles */
:focus-visible {
    outline: 2px solid #722F37;
    outline-offset: 2px;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #FDF2F2 inset !important;
    box-shadow: 0 0 0 30px #FDF2F2 inset !important;
}
