/* Base & Reset */
*, *::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;
}

/* Hero Gradient */
.hero-gradient {
    background: linear-gradient(135deg, #7B2D3B 0%, #9A3730 25%, #D15045 50%, #E06B5C 75%, #F5B5A8 100%);
    position: relative;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(58, 19, 25, 0.3) 100%);
    pointer-events: none;
}

/* Hero Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: #F5B5A8;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: #D15045;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: #FAD5CA;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Badge */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Hero Content */
.hero-gradient h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-gradient p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-gradient .flex {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

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

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding-top: 0;
}

.nav-scrolled {
    background: rgba(253, 246, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-scrolled .font-display {
    color: #6b2431 !important;
}

.nav-scrolled .nav-link {
    color: #6b2431 !important;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #7B2D3B;
    color: #FDF6F0;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #7B2D3B;
}

.btn-primary:hover {
    background: #6b2431;
    border-color: #6b2431;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 59, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(123, 45, 59, 0.06);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(123, 45, 59, 0.12);
}

.card-dark {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.card-dark:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* Mobile Menu */
#mobileMenu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

#mobileMenu.closed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: #6b2431;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: color 0.2s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #D15045;
}

/* Section headings underline accent */
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7B2D3B, #E06B5C);
    border-radius: 2px;
    margin-top: 1rem;
}

section h2.text-center::after,
.text-center h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 2.75rem;
    }

    .hero-orb-1 {
        width: 250px;
        height: 250px;
    }

    .hero-orb-2 {
        width: 200px;
        height: 200px;
    }

    .hero-orb-3 {
        width: 150px;
        height: 150px;
    }

    .card {
        padding: 6px;
    }
}

@media (max-width: 640px) {
    .hero-gradient h1 {
        font-size: 2.25rem;
    }

    section h2::after {
        width: 40px;
    }
}
