/* ========================================
   Fusion Star — Custom Styles
   Clean Minimalist · Terracotta & Sand
======================================== */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 114, 74, 0.2);
    color: inherit;
}

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #d4724a;
    position: relative;
    padding-left: 32px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 1px;
    background-color: #d4724a;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1c1917;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #78716c;
    font-weight: 300;
    max-width: 520px;
}

/* ---- Hero Animations ---- */
.hero-tag {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-tag span {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.5s;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Service Cards ---- */
.service-card {
    transition: background-color 0.4s ease;
}

.service-card:hover {
    background-color: #faf8f5;
}

.service-card:hover svg {
    color: #c75a35;
    transform: scale(1.1);
}

.service-card svg {
    transition: all 0.4s ease;
}

/* ---- Testimonial Cards ---- */
.testimonial-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #d4724a, #e9b498);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.testimonial-card:hover::after {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* ---- Form Inputs ---- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ---- Mobile Menu ---- */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ---- Keyframes ---- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Mobile Menu Active State ---- */
body.menu-open {
    overflow: hidden;
}

body.menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

body.menu-open #mobileMenu .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open #mobileMenu .mobile-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open #mobileMenu .mobile-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open #mobileMenu .mobile-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open #mobileMenu .mobile-link:nth-child(4) { transition-delay: 0.2s; }
body.menu-open #mobileMenu .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ---- Hamburger Animation ---- */
body.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    #hero {
        padding-top: 1rem;
    }
}

/* ---- Focus Styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d4724a;
    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;
    }
}
