/* ========================================
   Claras Income Tax Services
   Custom Styles
======================================== */

/* Base resets */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fafaf5;
}
::-webkit-scrollbar-thumb {
    background: #6b1f36;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c1d36;
}

/* Selection */
::selection {
    background: #6b1f36;
    color: #fde68a;
}

/* ========================================
   Navigation
======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 31, 54, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

#menu-btn.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-btn.active #line2 {
    opacity: 0;
}
#menu-btn.active #line3 {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

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

.hero-title span {
    display: block;
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title span:nth-child(1) { animation-delay: 0.3s; }
.hero-title span:nth-child(2) { animation-delay: 0.4s; }
.hero-title span:nth-child(3) { animation-delay: 0.5s; }
.hero-title span:nth-child(4) { animation-delay: 0.6s; }

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

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

.hero-stats > div {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}
.hero-stats > div:nth-child(1) { animation-delay: 0.9s; }
.hero-stats > div:nth-child(2) { animation-delay: 1.0s; }
.hero-stats > div:nth-child(3) { animation-delay: 1.1s; }

.hero-image-wrapper {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

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

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

/* ========================================
   Services
======================================== */
.service-card {
    transition: background 0.5s ease;
}

/* ========================================
   About Section
======================================== */
.about-images {
    animation: fadeIn 1s ease forwards;
}

/* ========================================
   Process Section
======================================== */
.process-step {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.process-step:nth-child(1) { animation-delay: 0.2s; }
.process-step:nth-child(2) { animation-delay: 0.4s; }
.process-step:nth-child(3) { animation-delay: 0.6s; }

/* ========================================
   Contact Form
======================================== */
select option {
    background: #fafaf5;
    color: #1c1427;
}

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

.reveal.visible {
    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; }

/* ========================================
   Utility
======================================== */
.font-serif {
    font-weight: 300;
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #6b1f36;
    outline-offset: 2px;
}
