/* Kindred 97 — Custom Styles */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 1px solid rgba(58, 168, 131, 0.5);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: rgba(58, 168, 131, 0.2);
    color: #0A1628;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .grain::before {
        display: none;
    }

    nav,
    footer,
    #mobileMenu {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .hover-underline::after {
        background-color: LinkText;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .img-zoom:hover img {
        transform: none;
    }

    .hover-underline:hover::after {
        width: 0;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    nav {
        height: 56px;
    }

    .hero-grid {
        min-height: auto;
    }
}

/* Wide screen optimization */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
