/* ============================================
   The Kabb Law Firm — Custom Styles
   ============================================ */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F2EB;
}
::-webkit-scrollbar-thumb {
    background: #93bc96;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #477d4e;
}

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

#navbar.scrolled {
    background: rgba(249, 247, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(45, 90, 61, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2D5A3D;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Mobile Menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #2D5A3D;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-link:hover::after {
    width: 40%;
}

/* ============================================
   Typography & Section Styles
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #477d4e;
    background: linear-gradient(135deg, #dce8df 0%, #bdd4be 100%);
    padding: 0.4em 1em;
    border-radius: 100px;
}

.section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: #1a3523;
}

.section-desc {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #477d4e;
}

/* ============================================
   Hero
   ============================================ */
.hero-tag {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.25rem;
    border: 1px solid transparent;
    transition: border-color 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-3deg);
}

.service-icon {
    transition: transform 0.4s ease, background-color 0.5s ease;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

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

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

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }

/* ============================================
   Selection
   ============================================ */
::selection {
    background: #bdd4be;
    color: #1a3523;
}

/* ============================================
   Focus Styles
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #477d4e;
    outline-offset: 2px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .service-card {
        border-radius: 1.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .testimonial-card.md\\:col-span-2 {
        grid-column: span 2;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
