/* Custom styles for Polaris Fire Protection */

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.2s ease;
}

/* Selection color */
::selection {
    background-color: #a8557a;
    color: #ffffff;
}

/* Remove focus outline for mouse users, keep for keyboard */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #a8557a;
    outline-offset: 2px;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img[width][height] {
    object-fit: cover;
}

/* Better form styling */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    appearance: none;
    -webkit-appearance: none;
}

/* Custom focus ring for select */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b3a5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Ensure navbar links are visible when scrolled */
.navbar-scrolled a:not(.bg-plum-700) {
    color: #4a2230 !important;
}

/* 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;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .float-badge {
        animation: none !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

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