/* ============================================
   F.A.M.E. — Professional Services Website
   Bold Editorial Style | Terracotta + Sand
   ============================================ */

/* ---------- Base / Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: #d4523b;
    color: #faf8f5;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
    background: #d4523b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b83e2d;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    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);
    }
}

/* ---------- Hero Animations ---------- */
.hero-eyebrow {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    animation: fadeInUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

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

.hero-image-wrapper {
    animation: scaleIn 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-stat {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

/* ---------- Section Animations (scroll-triggered) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(222, 207, 168, 0.3);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(26, 22, 20, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

/* ---------- CTA Buttons ---------- */
.cta-primary {
    position: relative;
    overflow: hidden;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 22, 20, 0.15);
}

/* ---------- 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(26, 22, 20, 0.2);
}

/* ---------- About Image ---------- */
.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    transition: transform 0.6s ease;
}

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

/* ---------- Process Steps ---------- */
.process-step {
    transition: background 0.4s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ---------- Form Inputs ---------- */
input:focus,
select:focus,
textarea:focus {
    border-color: #d4523b !important;
    box-shadow: 0 0 0 3px rgba(212, 82, 59, 0.1) !important;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    position: relative;
    display: inline-block;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1.5px;
    background: #d4523b;
}

/* ---------- Decorative Divider ---------- */
.divider-terracotta {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4523b, #eb6f57);
    border-radius: 2px;
}

/* ---------- Parallax-like subtle movement ---------- */
.hero-image-wrapper img {
    transition: transform 0.3s ease-out;
}

/* ---------- Print Styles ---------- */
@media print {
    nav, #contact-form, .cta-primary, .cta-secondary {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
