/* ===== Custom Styles for Stockton's IRS Tax Group ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #d14f2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c23d22;
}

/* ===== Navbar ===== */
.nav-scrolled {
    background: rgba(250, 247, 242, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .font-display,
.nav-scrolled span {
    color: #1e1b17 !important;
}

.nav-scrolled a:not(.bg-terracotta-600):not(.bg-terracotta-50) {
    color: #443e36 !important;
}

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

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #FAF7F2, transparent);
    pointer-events: none;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d14f2e, #e2af3a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ===== Process Steps ===== */
.process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d14f2e, transparent);
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 1023px) {
    .process-step::after {
        display: none;
    }
}

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

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #f9ddd3;
    line-height: 1;
    pointer-events: none;
}

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

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='%238a7e6f' 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 12px center;
    padding-right: 36px;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 767px) {
    #hero::after {
        height: 60px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card::before,
    .service-card,
    .process-step::after,
    button,
    a {
        transition: none;
    }
}
