/* ========== CUSTOM RESET & BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========== NAVBAR ========== */
#navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

/* ========== HERO CARDS ========== */
.hero-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-3px);
}

/* ========== SERVICE TAG ========== */
.service-tag {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF6B4A;
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.2);
    padding: 0.4em 1em;
    border-radius: 9999px;
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.15;
    color: #1f2937;
}

.section-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #6b7280;
}

/* ========== SERVICE CARDS ========== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ========== WHY US CARDS ========== */
.why-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.why-card:hover {
    transform: translateY(-3px);
}

/* ========== FORM INPUTS ========== */
.form-input {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9375rem;
    color: #1f2937;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.form-input:focus {
    border-color: #FF6B4A;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 74, 0.12);
}

/* ========== PRIMARY BUTTON ========== */
.btn-primary {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    background: #FF6B4A;
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 107, 74, 0.3);
}

.btn-primary:hover {
    background: #e85535;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ========== MOBILE MENU ========== */
.mobile-link {
    display: block;
}

/* ========== BACK TO TOP ========== */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s 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; }
}

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

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

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .hero-card {
        padding: 0.75rem !important;
    }

    .hero-card div:last-child {
        font-size: 0.6875rem !important;
    }
}
