/* ============================================
   A Little Help At Home — Custom Styles
   ============================================ */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(240, 96, 64, 0.15);
    color: #1e1e25;
}

/* ============================================
   Navbar
   ============================================ */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(30, 30, 37, 0.06);
}

/* ============================================
   Hero
   ============================================ */
#hero {
    position: relative;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    border: 1px solid rgba(212, 212, 216, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(240, 96, 64, 0.2);
    transform: translateY(-4px);
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(212, 212, 216, 1);
}

.faq-item.active {
    border-color: rgba(240, 96, 64, 0.3);
    background-color: rgba(255, 245, 242, 0.3);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal[data-delay="100"] { transition-delay: 0.1s; }
    .reveal[data-delay="200"] { transition-delay: 0.2s; }
    .reveal[data-delay="300"] { transition-delay: 0.3s; }
    .reveal[data-delay="400"] { transition-delay: 0.4s; }
}

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

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

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 212, 216, 0.4);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ============================================
   Contact Form
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}
