/* ===== Custom Properties ===== */
:root {
    --burgundy: #800020;
    --burgundy-light: #a0103a;
    --burgundy-dark: #600018;
    --blush: #fce4ec;
    --blush-light: #fff0f5;
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --stone-800: #1c1917;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    overflow-x: hidden;
}

/* ===== Google Fonts ===== */
.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-nunito {
    font-family: 'Nunito', sans-serif;
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(252, 228, 236, 0.5);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(128, 0, 32, 0.08);
}

.nav-link {
    position: relative;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, var(--burgundy-light) 100%);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(96, 0, 24, 0.88) 0%,
        rgba(128, 0, 32, 0.82) 50%,
        rgba(160, 16, 58, 0.75) 100%
    );
}

.hero-img {
    opacity: 0.35;
    filter: blur(2px);
}

/* Hero entrance animations */
.hero-badge {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

.hero-title {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
}

.hero-cta {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.8s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Buttons ===== */
.btn-primary {
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ===== Section Styles ===== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burgundy);
    background: var(--blush);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--stone-800);
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--stone-500);
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Service Cards ===== */
.service-card {
    transition: var(--transition-smooth);
}

.service-icon {
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
}

/* ===== About ===== */
.about-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.03);
}

.about-text {
    font-size: 1.05rem;
}

/* ===== Step Cards ===== */
.first-step, .third-step {
    position: relative;
}

.step-number {
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced motion: keep content visible, disable transitions */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-badge, .hero-title, .hero-subtitle, .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* JS-gated animations (progressive enhancement) */
.js .scroll-animate {
    opacity: 0;
    transform: translateY(30px);
}

.js .scroll-animate.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.hidden {
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.mobile-link {
    display: block;
}

/* ===== Scroll Indicator ===== */
.hero-scroll-indicator {
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1.2s;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .about-image-wrapper {
        border-radius: 1.5rem !important;
    }

    .first-step {
        border-radius: 1.5rem 1.5rem 0 0 !important;
    }

    .third-step {
        border-radius: 0 0 1.5rem 1.5rem !important;
    }
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
