/* ========================================
   Bra Lokal - Main Stylesheet
   ======================================== */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #004499;
    text-decoration: underline;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../garage.jpg');
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9),
                 0 2px 4px rgba(0, 0, 0, 1),
                 0 1px 2px rgba(0, 0, 0, 1);
    margin: 0;
    letter-spacing: 0.02em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    opacity: 0.7;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
    opacity: 1;
    color: white;
    text-decoration: none;
}

.scroll-indicator:focus {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Navigation
   ======================================== */

.main-nav {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.main-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 1.25rem 2rem;
    color: #333;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
    background-color: #f5f5f5;
    color: #0066cc;
    text-decoration: none;
    border-bottom-color: #0066cc;
}

.main-nav a.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* ========================================
   Container & Sections
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background-color: #f9f9f9;
}

.section h1,
.section h2 {
    margin-bottom: 1.5rem;
    color: #222;
}

.section h1 {
    font-size: 2.5rem;
}

.section h2 {
    font-size: 2rem;
}

.section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

/* ========================================
   Welcome Section
   ======================================== */

.welcome-section {
    background-color: #fff;
}

/* ========================================
   Facilities Section
   ======================================== */

.facilities-section {
    background-color: #f9f9f9;
}

.no-facilities-message {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 600px;
}

.no-facilities-message svg {
    color: #999;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.no-facilities-message h3 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 1rem;
}

.no-facilities-message p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.no-facilities-message a {
    color: #0066cc;
    text-decoration: none;
    white-space: nowrap;
}

.no-facilities-message a:hover {
    text-decoration: underline;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.facility-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.facility-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.facility-content {
    padding: 1.5rem;
}

.facility-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #222;
}

.facility-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.facility-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.95rem;
}

.facility-details dt {
    font-weight: 600;
    color: #444;
}

.facility-details dd {
    color: #666;
    margin: 0;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-section {
    background-color: #fff;
}

.contact-info-centered {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}

.contact-info-centered address {
    font-style: normal;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-info-centered p {
    margin-bottom: 0.75rem;
}

.contact-info-centered strong {
    font-weight: 600;
}


/* Map Link */

.map-link-container {
    margin-top: 2rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.map-link:hover,
.map-link:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
    color: white;
    text-decoration: none;
}

.map-link svg {
    flex-shrink: 0;
}

.map-link span {
    line-height: 1.4;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: #222;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 0.875rem 1rem;
        border-bottom: 1px solid #eee;
        border-left: 3px solid transparent;
    }

    .main-nav a:hover,
    .main-nav a:focus,
    .main-nav a.active {
        border-bottom-color: #eee;
        border-left-color: #0066cc;
    }

    .logo {
        max-width: 120px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .main-nav,
    .scroll-indicator,
    .map-link-container {
        display: none;
    }

    .hero {
        background-attachment: scroll;
        min-height: auto;
        height: auto;
        padding: 2rem;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Reduced motion for users who prefer it */
@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;
    }
}
