/* ========== CUSTOM STYLES ========== */

/* Base typography refinements */
body {
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Custom focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #106A3E;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-up,
    .fade-in,
    .slide-left,
    .slide-right {
        opacity: 1 !important;
        transform: none !important;
    }

    .line-grow {
        width: 80px !important;
    }

    .img-zoom img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    #mobile-menu,
    .fade-up,
    .fade-in,
    .slide-left,
    .slide-right {
        display: block !important;
        opacity: 1 !important;
    }

    .img-zoom img {
        max-height: 200px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .corner-border::before,
    .corner-border::after {
        width: 24px;
        height: 24px;
    }
}

/* Large screen optimizations */
@media (min-width: 1280px) {
    h1 {
        line-height: 1.0;
    }
}

/* Ensure hero is visible even without JS */
#hero h1,
#hero p,
#hero a,
#hero svg {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure all sections above fold are visible */
section:not(#hero) h2,
section:not(#hero) p,
section:not(#hero) a,
section:not(#hero) svg {
    opacity: 1 !important;
}
