/* Custom styles for McMahon Law Office */

:root {
    --forest-500: #166534;
    --forest-600: #14532d;
    --forest-700: #174a2a;
    --cream-50: #fafaf5;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5ed;
}
::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(22, 101, 52, 0.08);
}

.navbar-scrolled .nav-link {
    color: #14532d !important;
}

.navbar-scrolled .font-display {
    color: #14532d !important;
}

.navbar-scrolled .text-forest-600 {
    color: #166534 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Geometric accent line */
.accent-line {
    position: relative;
}
.accent-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #166534, #6fc096);
    border-radius: 2px;
}

/* Hero decorative elements */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(22, 101, 52, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Pulse animation for the dot */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.animate-soft-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Smooth section transitions */
section {
    position: relative;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #166534;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header, footer, #contact-form, .mobile-menu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
