/*
 * SPDX-FileCopyrightText: 2025 Basingstoke Repair Network
 * SPDX-License-Identifier: MIT
 */

/* Custom Color Palette */
:root {
    --header-bg: #c6c8c9;
    --header-icon: #28276f;
    --content-bg: #eeeeee;
    --content-text: #02011A;
    --footer-bg: #28276f;
    --footer-text: #eeeeee;
}

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Header Styles */
.header-bg {
    background-color: var(--header-bg);
}

.header-icon-color {
    color: var(--header-icon);
}

.nav-link {
    color: var(--header-icon);
    font-weight: 500;
    text-decoration: none;
}

/* Content Styles */
.content-bg {
    background-color: var(--content-bg);
}

.content-text {
    color: var(--content-text);
}

/* Footer Styles */
.footer-bg {
    background-color: var(--footer-bg);
}

.footer-text {
    color: var(--footer-text);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-swiper {
    width: 100%;
    height: 500px;
}

@media (min-width: 768px) {
    .hero-swiper {
        height: 600px;
    }
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* Swiper Custom Styles */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background-color: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: white;
}

/* Supporter Logos */
.supporter-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.supporter-logo:hover {
    transform: scale(1.05);
}

.supporter-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.supporter-logo img:hover {
    filter: grayscale(0%);
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.location-card,
.max-w-4xl > .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover,
.max-w-4xl > .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Smooth Link Transitions */
a {
    transition: color 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--content-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--header-icon);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a1850;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .header-bg,
    .footer-bg,
    #mobile-menu-button,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none;
    }

    .hero-section {
        height: 300px;
    }

    body {
        background-color: white;
    }

    .content-bg {
        background-color: white;
    }
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--header-icon);
    outline-offset: 2px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--header-icon);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a1850;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
