/* =============================================
   Lawbank Australia Pty Ltd - Custom Styles
   ============================================= */

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delays for child elements */
.animate-on-scroll.delay-100 {
    transition-delay: 100ms;
}

.animate-on-scroll.delay-200 {
    transition-delay: 200ms;
}

.animate-on-scroll.delay-300 {
    transition-delay: 300ms;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background-color: #3b82f6;
    color: white;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Card hover lift effect */
.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

/* Gradient text support */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero section min height */
@media (max-height: 700px) {
    .min-h-screen {
        min-height: 700px;
    }
}

/* Timeline responsive adjustments */
@media (max-width: 768px) {
    .timeline-line {
        display: none;
    }
}

/* Form input transitions */
input, select, textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Button press effect */
button:active,
a.bg-blue-600:active,
a.bg-white:active {
    transform: translateY(0) !important;
}

/* Image loading fade-in */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Mobile menu animation */
#mobileMenu {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, footer, .cta-section {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }
}
