

/* =========================================
   FESTIVALS & FIESTAS
========================================= */

.festival-page {
    background: #f8faf9;
    color: #213b37;
}

.festival-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* HERO */

.festival-hero {
    padding: 110px 0 95px;
    background:
        linear-gradient(
            135deg,
            #173d38,
            #2f6c62
        );
    color: #ffffff;
}

.festival-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.festival-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
}

.festival-hero p {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.82);
}


/* SECTION */

.festival-section {
    padding: 90px 0 110px;
}

.festival-section-heading {
    max-width: 680px;
    margin-bottom: 45px;
}

.festival-section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #5f8f82;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.festival-section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    color: #214c45;
}

.festival-section-heading p {
    margin: 0;
    line-height: 1.7;
    color: #687b77;
}


/* =========================================
   LGU GRID
========================================= */

.festival-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 24px;
}


.festival-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 230px;
    padding: 30px 20px;

    background: #ffffff;
    border: 1px solid #e4ece9;
    border-radius: 20px;

    text-align: center;
    cursor: pointer;

    box-shadow:
        0 8px 25px
        rgba(21, 63, 55, .06);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


.festival-card:hover {
    transform: translateY(-7px);
    border-color: #bcd3cc;

    box-shadow:
        0 18px 40px
        rgba(21, 63, 55, .12);
}

/* =========================================
   MUNICIPALITY LOGOS
========================================= */

.festival-logo-wrap { width: 115px; height: 115px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; } .festival-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }


.festival-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #214c45;
}


.festival-card span {
    font-size: 12px;
    color: #83938f;
}


/* =========================================
   MODAL
========================================= */

.festival-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;
}


.festival-modal.active {
    display: flex;
}


.festival-modal-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(9, 24, 21, .78);

    backdrop-filter: blur(5px);
}


.festival-modal-dialog {
    position: relative;
    z-index: 2;

    width: min(960px, 100%);
    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;
    border-radius: 24px;

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.25);
}


.festival-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;

    z-index: 5;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.95);

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 18px
        rgba(0,0,0,.12);
}


/* MODAL HEADER */

.festival-modal-header {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 35px 40px;

    background: #f5f9f7;

    border-bottom:
        1px solid #e5ece9;
}


.festival-modal-header img {
    width: 90px;
    height: 90px;
    object-fit: cover;
}


.festival-modal-header span {
    display: block;
    margin-bottom: 5px;

    color: #71847f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
}


.festival-modal-header h2 {
    margin: 0;
    font-size: 32px;
    color: #214c45;
}


.festival-modal-header p {
    margin: 5px 0 0;
    color: #758580;
}


/* GALLERY */

.festival-modal-gallery {
    display: grid;
    grid-template-columns:
        2fr 1fr 1fr;

    gap: 8px;

    padding: 8px;

    background: #ffffff;
}


.festival-modal-gallery img {
    width: 100%;
    height: 250px;

    object-fit: cover;

    border-radius: 12px;
}


.festival-modal-gallery img:first-child {
    height: 250px;
}


/* INFO */

.festival-information {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 15px;

    padding: 35px 40px 15px;
}


.festival-info-card {
    padding: 20px;

    background: #f6f9f8;

    border: 1px solid #e4ece9;
    border-radius: 14px;
}


.festival-info-label {
    display: block;
    margin-bottom: 8px;

    font-size: 12px;
    color: #758782;
    text-transform: uppercase;
    letter-spacing: .8px;
}


.festival-info-card strong {
    color: #214c45;
    font-size: 16px;
}


/* DESCRIPTION */

.festival-description {
    padding: 25px 40px 45px;
}


.festival-description > span {
    display: block;
    margin-bottom: 7px;

    color: #679083;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.festival-description h3 {
    margin: 0 0 15px;

    color: #214c45;
    font-size: 25px;
}


.festival-description p {
    margin: 0;

    color: #61716d;

    font-size: 15px;
    line-height: 1.8;
}


/* TABLET */

@media (max-width: 900px) {

    .festival-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .festival-container {
        width: min(
            100% - 28px,
            1180px
        );
    }

    .festival-hero {
        padding: 75px 0 65px;
    }

    .festival-section {
        padding: 65px 0 80px;
    }

    .festival-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));

        gap: 13px;
    }

    .festival-card {
        min-height: 185px;
        padding: 22px 12px;
    }

    .festival-logo-wrap {
        width: 90px;
        height: 90px;
    }

    .festival-card h3 {
        font-size: 15px;
    }


    .festival-modal {
        padding: 12px;
    }

    .festival-modal-header {
        padding: 28px 22px;
    }

    .festival-modal-header img {
        width: 70px;
        height: 70px;
    }

    .festival-modal-header h2 {
        font-size: 23px;
    }

    .festival-modal-gallery {
        grid-template-columns: 1fr;
    }

    .festival-modal-gallery img {
        height: 210px;
    }

    .festival-information {
        grid-template-columns: 1fr;
        padding: 25px 22px 10px;
    }

    .festival-description {
        padding: 22px 22px 35px;
    }

}

