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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #F77A5E;
    color: #fff;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAFAF8;
}
::-webkit-scrollbar-thumb {
    background: #36454F;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F77A5E;
}

/* ===== Navigation ===== */
#nav {
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(54, 69, 79, 0.06);
}

#nav.scrolled {
    box-shadow: 0 1px 30px rgba(54, 69, 79, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 1;
}

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

.menu-line {
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

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

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

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

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

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

.hero-image {
    transition: transform 0.6s ease;
}

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

.hero-image-accent {
    transition: all 0.4s ease;
}

.hero-image-wrapper:hover .hero-image-accent {
    top: -8px;
    right: -8px;
}

/* ===== Section Eyebrow ===== */
.section-eyebrow {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== Section Title ===== */
.section-title {
    animation: fadeUp 0.7s ease forwards;
}

/* ===== Service Cards ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #F77A5E, #FF9A80);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #F77A5E;
    transition: width 0.4s ease;
}

.testimonial-card:hover::after {
    width: 60%;
}

/* ===== Form Inputs ===== */
.form-input {
    border: none;
    border-bottom: 1px solid rgba(54, 69, 79, 0.15);
    padding: 12px 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 300;
    color: #36454F;
    background: transparent;
    transition: border-color 0.3s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(54, 69, 79, 0.3);
}

.form-input:focus {
    border-bottom-color: #F77A5E;
}

.form-input option {
    color: #36454F;
}

/* ===== Submit Button ===== */
.submit-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::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;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 100%;
}

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

.cta-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F77A5E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.cta-primary:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== Area Items ===== */
.area-item {
    transition: all 0.3s ease;
}

.area-item:hover {
    padding-left: 12px;
}

.area-item:hover .area-dot {
    transform: scale(1.3);
}

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

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

    .hero-image {
        height: 400px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-image {
        height: 400px;
    }
}

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

    .hero-stats {
        flex-direction: column;
        gap: 8px;
    }

    .hero-image-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        display: inline-block;
    }
}
