/* Custom styles that complement Tailwind and inline styles */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Ensure all images have consistent rendering */
img {
    -webkit-font-smoothing: antialiased;
}

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

/* Selection color */
::selection {
    background-color: #d1fae5;
    color: #064e3b;
}

/* Animation for floating shapes - ensure they don't cause layout shift */
.geo-shape {
    will-change: transform;
}

/* Ensure hero content is always visible (no JS dependency for above-fold) */
#hero h1,
#hero p,
#hero .btn-primary,
#hero .btn-secondary,
#hero .relative {
    opacity: 1 !important;
    transform: none !important;
}

/* Print styles */
@media print {
    header, .mobile-menu, #back-to-top, .geo-shape, .animate-float-slow, .animate-float-medium, .animate-float-fast {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

/* Reduced motion - ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Extra large screens */
@media (min-width: 1280px) {
    .service-card {
        padding: 48px 40px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 32px 24px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .service-card {
        padding: 28px 20px;
    }

    #hero h1 {
        font-size: 2.25rem;
    }
}
