/* Main site styles moved from inline <style> in index.html */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

/* Modern navigation bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 18px;
}

.brand {
    font-weight: 800;
    color: #222;
    text-decoration: none;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: color 180ms ease, background-color 180ms ease, transform 150ms ease;
}

.nav-links a:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.06);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    position: relative;
    transition: transform 200ms ease, opacity 200ms ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Toggle animation when open */
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .hamburger::after { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile: collapse links behind toggle */
@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; align-items:center; }
    .nav-links {
        position: absolute;
        right: 18px;
        top: 62px;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-radius: 10px;
        flex-direction: column;
        padding: 10px;
        display: none;
        min-width: 160px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; margin: 6px 0; }
}

.hero {
    position: relative;
    background-color: #333;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Slideshow container sits below overlay but above background fallback */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px;
    max-width: 960px;
}

.hero-content h2 {
    font-size: 42px;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content .lead {
    font-size: 18px;
    margin-bottom: 18px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border: none;
    font-weight: 700;
}

.btn-primary {
    background: #e74c3c;
}

.btn-alt {
    background: #f39c12;
    color: #111;
}

.btn-map {
    background: #27ae60;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.95rem;
}

/* Responsive Design Media Queries */

/* Tablet and smaller laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-content h2 {
        font-size: 36px;
    }

    .card {
        width: 45%;
        /* Two cards per row */
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        padding: 5px;
    }

    nav a {
        display: inline-block;
        margin: 5px 10px;
        font-size: 14px;
    }

    .hero {
        min-height: 350px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .card {
        width: 80%;
        /* One card per row basically, or larger width */
        max-width: 400px;
    }

    .map-container iframe {
        height: 350px;
    }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    nav a {
        display: block;
        /* Stack links on very small screens */
        margin: 8px 0;
        border-bottom: 1px solid #333;
        padding-bottom: 5px;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content .lead {
        font-size: 16px;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        box-sizing: border-box;
        margin-bottom: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .section {
        padding: 30px 15px;
    }

    .card {
        width: 100%;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        /* Single column gallery */
    }

    .map-container iframe {
        height: 250px;
    }
}

.section {
    padding: 40px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 15px;
}

/* Map section styles */
.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.map-container iframe {
    border: 0;
    max-width: 100%;
    height: 450px;
}

#mapStatus {
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

/* Contact specific tweaks */
#contact p {
    margin: 6px 0;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-container img:hover {
    transform: scale(1.03);
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content,
#caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}