/* Resetting and setting defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.65;
    color: #333;
    background-color: #f0f0f0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-padding-top: 90px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(255, 205, 0, 0.95);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3000;
    background: #fff;
    color: #005f56;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transform: translateY(-200%);
    transition: transform 0.2s ease;
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

header {
    background-color: #005f56;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo a {
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 10px;
    border-radius: 10px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #ffcd00;
    padding: 12px 25px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffd700;
}

/* Section Container */
.section-container {
    padding: 60px 0;
    background-color: #fff;
    margin-top: 20px;
}

.section-container h2 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    color: #005f56;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

h3 {
    color: #005f56;
}

.section-container p {
    font-size: 1.0625rem;
    margin-bottom: 30px;
    max-width: 75ch;
}

ul {
    padding-left: 1.25rem;
}

.unstyled-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 30px 0;
}

.unstyled-list li + li {
    margin-top: 10px;
}

/* Image Galleries */
.gallery, .monk-image {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gallery img, .monk-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: auto;
}

.map-embed {
    display: block;
    width: 100%;
    max-width: 900px;
    margin: 18px auto 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.map-consent {
    width: 100%;
    max-width: 900px;
    margin: 18px auto 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0, 95, 86, 0.08), rgba(0, 95, 86, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-consent__card {
    padding: 18px;
    text-align: center;
}

.map-consent__card p {
    margin-bottom: 14px;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.map-consent__button {
    border: 0;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #005f56;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer a:hover {
    text-decoration-thickness: 3px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    html {
        scroll-padding-top: 240px;
    }

    nav .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-left: auto;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 12px;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.08);
    }

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

    .hero p {
        font-size: 1rem;
    }
}

/* Donation modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
    position: relative;
    width: min(92vw, 520px);
    margin: 10vh auto 0;
    background: #fff;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    max-height: 80vh;
    overflow: auto;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: #f0f0f0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    max-height: 55vh;
    object-fit: contain;
}

.modal__text {
    margin-top: 12px;
    margin-bottom: 0;
}

@media screen and (max-width: 768px) {
    .modal__dialog {
        margin: 6vh auto 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

.guidelines {
    margin-top: 20px;
}

.accordion-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    background: #f8f9f9;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    cursor: pointer;
    color: #005f56;
    transition: background 0.2s ease;
}

.accordion-toggle:hover {
    background: rgba(0, 95, 86, 0.08);
}

.accordion-toggle[aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-content {
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.accordion-content ul {
    margin: 0;
    padding-left: 1.2rem;
}

.accordion-content li + li {
    margin-top: 8px;
}

.accordion-content h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    color: #005f56;
    font-size: 1.05rem;
}

.accordion-close {
    background-color: #e0e0e0;
    color: #333;
}

.accordion-close:hover {
    background-color: #d5d5d5;
}

.accordion-close-wrapper {
    margin-top: 20px;
}