/* Custom styles for Admiral Insurance website */

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #99f6e4;
    color: #042f2e;
}

/* Input autofill style */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* Ensure navbar is always on top */
#navbar {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Navbar scrolled state */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Active nav link */
#navbar.scrolled .nav-link {
    color: #1e293b;
}

#navbar.scrolled .nav-link:hover {
    color: #0d9488;
}

/* Reduce motion preference */
@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;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    nav,
    #back-to-top,
    .geo-circle,
    .geo-square,
    .geo-diamond,
    .geo-triangle {
        display: none !important;
    }

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

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card {
        border: 1px solid ButtonText;
    }

    .btn-primary {
        border: 2px solid ButtonText;
    }
}

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

    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
}
