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

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

::selection {
    background: rgba(122, 27, 52, 0.15);
    color: #3d0b17;
}

/* ===== Hero Animations ===== */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    animation-delay: 0s;
}

.hero-orb-2 {
    animation-delay: -3s;
}

.hero-orb-3 {
    animation-delay: -5s;
}

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

.hero-eyebrow {
    opacity: 0;
    animation: fadeDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-subheadline {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.1s;
}

.hero-scroll {
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.5s;
}

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

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

/* ===== Navbar ===== */
.navbar-scrolled {
    background: rgba(253, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(122, 27, 52, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #3d0b17 !important;
}

.navbar-scrolled .nav-logo-sub {
    color: #961c37 !important;
}

/* ===== Services ===== */
.services-grid {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.services-grid.revealed {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== About ===== */
.about-image-wrapper {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image-wrapper.revealed {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Approach ===== */
.approach-orb-1 {
    animation: orbFloat 10s ease-in-out infinite;
}

.approach-orb-2 {
    animation: orbFloat 12s ease-in-out infinite reverse;
}

.approach-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.approach-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Section Headers ===== */
.section-header {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-header.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Menu ===== */
.mobile-menu-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    color: #b82844;
    padding-left: 8px;
}

/* ===== Button Focus ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #b82844;
    outline-offset: 2px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-eyebrow,
    .hero-headline,
    .hero-subheadline,
    .hero-ctas,
    .hero-scroll {
        opacity: 1;
        animation: none;
    }
    .services-grid,
    .service-card,
    .about-image-wrapper,
    .about-content,
    .approach-card,
    .section-header {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .about-image-main {
        border-radius: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4.5rem;
    }
}
