/* ── Custom Styles ── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
.nav-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hero badge */
.hero-badge {
    animation: badgeIn 0.6s ease-out both;
}

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

/* Hero text animations */
.hero-badge,
.hero-text h1,
.hero-text p,
.hero-text .flex {
    animation: fadeUp 0.6s ease-out both;
}
.hero-text h1        { animation-delay: 0.15s; }
.hero-text p         { animation-delay: 0.3s; }
.hero-text .flex     { animation-delay: 0.45s; }

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

/* Floating dots */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* Scroll reveal (progressive enhancement — only when JS adds .revealed) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2)  { transition-delay: 0.08s; }
    .reveal:nth-child(3)  { transition-delay: 0.16s; }
    .reveal:nth-child(4)  { transition-delay: 0.24s; }
    .reveal:nth-child(5)  { transition-delay: 0.32s; }
    .reveal:nth-child(6)  { transition-delay: 0.40s; }
}

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

/* Mobile menu */
#mobile-menu.show {
    animation: slideDown 0.25s ease-out;
}

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

/* Hamburger animation */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 1.25rem;
}

/* Mobile links */
.mobile-link {
    transition: color 0.2s ease;
}
.mobile-link:hover {
    color: #C4704B;
}

/* Form focus rings */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Custom select arrow */
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='%236b7280' stroke-width='2.5' 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;
    appearance: none;
    -webkit-appearance: none;
}

/* Navbar height */
#nav {
    height: 72px;
}

@media (max-width: 639px) {
    #nav {
        height: 64px;
    }
}

/* Subtle pattern for hero background */
.hero-section {
    background-image: radial-gradient(circle at 20% 80%, rgba(196, 112, 75, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(224, 173, 85, 0.06) 0%, transparent 50%);
}
