/* ============================================
   REVIVED RADIANCE BEAUTY CO — STYLES
   Classic & Elegant | Emerald + Cream
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background-color: #064e3b;
    color: #fdfcfa;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf6f0;
}
::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ---------- Hero Animations (above the fold — always visible) ---------- */
.hero-eyebrow {
    animation: slideInLeft 0.8s ease-out both;
    animation-delay: 0.2s;
}

.hero-title-line {
    animation: fadeInUp 0.9s ease-out both;
}

.hero-title-line:nth-child(1) { animation-delay: 0.4s; }
.hero-title-line:nth-child(2) { animation-delay: 0.6s; }
.hero-title-line:nth-child(3) { animation-delay: 0.8s; }

.hero-sub {
    animation: fadeInUp 0.9s ease-out both;
    animation-delay: 1s;
}

/* ---------- Scroll Reveal (below fold only) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: if JS is disabled, all content is visible */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

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

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.15);
}

/* ---------- Buttons ---------- */
.btn-primary {
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 78, 59, 0.35);
}

.btn-secondary {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

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

/* ---------- Header Scroll State ---------- */
#site-header.scrolled {
    background-color: rgba(253, 252, 250, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

#site-header.scrolled .font-serif {
    color: #064e3b !important;
}

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

#mobile-menu.open .mobile-nav-link {
    animation: slideDown 0.4s ease-out both;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Mobile Menu Toggle ---------- */
.menu-line:last-child {
    transform-origin: right center;
}

body.menu-open .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open .menu-line:last-child {
    width: 1.5rem;
    transform: translateY(-4px) rotate(-45deg);
    margin-left: auto;
}

/* ---------- Form Focus States ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #15803d !important;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

/* ---------- Image Hover Zoom ---------- */
.overflow-hidden img {
    transition: transform 0.7s ease;
}

.overflow-hidden:hover img {
    transform: scale(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .hero-title-line {
        font-size: 3.5rem !important;
    }

    .lg\:h-\[calc\(100vh-6rem\)\] {
        height: auto;
        min-height: 60vh;
    }
}

@media (max-width: 767px) {
    .hero-title-line {
        font-size: 2.75rem !important;
    }

    .floating-badge {
        display: none;
    }
}

@media (max-width: 639px) {
    .hero-title-line {
        font-size: 2.25rem !important;
    }
}
