
/* =========================================
   PULLICHIRA CHURCH — COMPLETE CSS
   PART 1 OF 3
   BASE, HEADER, HERO, ABOUT, CARDS
========================================= */

:root {
    --navy: #102d46;
    --navy-light: #1b4563;
    --gold: #c8a34d;
    --gold-light: #e7d19a;
    --ivory: #fffdf7;
    --cream: #f7f2e8;
    --text: #344252;
    --muted: #667585;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(16, 45, 70, 0.10);
    --radius: 18px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--ivory);
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

/* =========================================
   HEADER
========================================= */

header {
    position: relative;
    z-index: 1000;
    width: 100%;
    min-height: 82px;
    padding: 14px 5%;
    background: rgba(16, 45, 70, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(231, 209, 154, 0.3);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.logo {
    color: var(--white);
    font-size: clamp(15px, 1.6vw, 21px);
    font-weight: 600;
    line-height: 1.5;
    flex-shrink: 0;
}

.logo::first-letter {
    color: var(--gold-light);
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}

nav a {
    position: relative;
    color: #f7f5ef;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 13px;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 10px;
    width: 0;
    height: 2px;
    background: var(--gold-light);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--gold-light);
}

nav a:hover::after {
    width: calc(100% - 20px);
}

/* =========================================
   HERO SLIDER
========================================= */

.hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--navy);
}

.hero-slide {
    display: none;
    position: relative;
    width: 100%;
}

.hero-slide.active {
    display: block;
    animation: heroFade 0.7s ease;
}

.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(8, 25, 40, 0.65) 0%,
        rgba(8, 25, 40, 0.30) 45%,
        rgba(8, 25, 40, 0.02) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: 7%;
    bottom: 9%;
    width: min(78%, 700px);
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(22px, 5vw, 66px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    max-width: 620px;
    color: #fffdf6;
    font-size: clamp(12px, 2vw, 26px);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content span {
    display: inline-block;
    margin-top: 16px;
    padding-left: 14px;
    border-left: 3px solid var(--gold-light);
    color: var(--gold-light);
    font-size: clamp(11px, 1.3vw, 17px);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes heroFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 13px 28px;
    background: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

/* =========================================
   GENERAL SECTIONS
========================================= */

section:not(.hero) {
    padding: clamp(45px, 7vw, 90px)
               clamp(18px, 7%, 100px);
    scroll-margin-top: 20px;
}

.section-title {
    position: relative;
    text-align: center;
    font-size: clamp(26px, 3.3vw, 40px);
    line-height: 1.35;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 45px;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 72px;
    height: 3px;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        var(--gold),
        var(--gold-light)
    );
}

/* =========================================
   ABOUT
========================================= */

#about {
    background: var(--ivory);
}

.about {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(25px, 5vw, 65px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-images,
.about-text {
    min-width: 0;
}

.about-images img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about p {
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
}

/* =========================================
   SERVICE, EVENT, TESTIMONIAL & MINISTRY CARDS
========================================= */

#services,
#testimonials {
    background: var(--cream);
}

#events,
#ministries {
    background: var(--ivory);
}

.cards {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto;
}

.card {
    position: relative;
    min-width: 0;
    padding: 30px 25px;
    background: var(--white);
    border: 1px solid rgba(200, 163, 77, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 7px 25px rgba(16, 45, 70, 0.06);
    overflow-wrap: anywhere;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card h3 {
    color: var(--navy);
    font-size: 19px;
    margin-bottom: 12px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* =========================================
   PULLICHIRA CHURCH — COMPLETE CSS
   PART 2 OF 3
   GALLERY, FEAST VIDEOS, CONTACT, FOOTER
========================================= */

/* =========================================
   CHURCH MOMENTS SECTION
========================================= */

.church-moments,
.gallery-section {
    background: #f8f7f2;
}

.moments-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

/* FIXED GOLD COLOR:
   FAITH • DEVOTION • MEMORIES
*/

.moments-heading > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #94752e !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
}

.moments-heading .section-title {
    color: var(--navy);
    margin-bottom: 20px;
}

.moments-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
   GALLERY HEADING
========================================= */

.gallery-heading {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.gallery-subtitle {
    display: block;
    margin-bottom: 8px;
    color: #94752e;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.gallery-heading h2 {
    color: var(--navy);
    font-size: clamp(28px, 4vw, 44px);
}

.gallery-heading p {
    margin-top: 8px;
    color: var(--muted);
}

.gallery-divider {
    width: 65px;
    height: 3px;
    margin: 18px auto 0;
    background: var(--gold);
    border-radius: 5px;
}

/* =========================================
   PHOTO CAROUSEL
========================================= */

.church-carousel {
    position: relative;
    max-width: 1250px;
    margin: auto;
}

.gallery-viewport {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s ease;
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    padding: 7px;
    background: var(--white);
    border: 1px solid var(--gold-light);
    border-radius: 14px;
}

.gallery-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* GALLERY ARROWS */

.gallery-arrow {
    position: absolute;
    z-index: 3;
    top: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.gallery-arrow:hover {
    background: var(--gold);
    color: var(--navy);
}

.gallery-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.gallery-prev {
    left: -18px;
}

.gallery-next {
    right: -18px;
}

/* GALLERY DOTS */

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

.gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9c9c9;
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--gold);
}

/* =========================================
   ANNUAL FEAST VIDEO HIGHLIGHTS
========================================= */

.feast-highlights {
    max-width: 1250px;
    margin: 65px auto 0;
}

.feast-highlights-heading,
.feast-heading {
    margin-bottom: 28px;
    text-align: center;
}

/* GOLD FEAST LABEL */

.feast-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: #94752e !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
}

/* NAVY FEAST TITLE */

.feast-highlights-heading h3,
.feast-heading h3 {
    color: var(--navy);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    line-height: 1.4;
}

/* MUTED FEAST DESCRIPTION */

.feast-highlights-heading p,
.feast-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* FEAST VIDEO GRID */

.feast-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.feast-video-card {
    min-width: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid rgba(200, 163, 77, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 7px 25px rgba(16, 45, 70, 0.07);
}

.feast-video,
.feast-video-card video {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.feast-video-card video {
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #091b2a;
}

.feast-video-card h4 {
    margin: 15px 5px 5px;
    color: var(--navy);
    font-size: 17px;
}

.feast-video-card p {
    margin: 0 5px 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================
   CONTACT
========================================= */

#contact {
    background: var(--cream);
}

.contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: auto;
}

.contact-info {
    min-width: 0;
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.contact-info h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact iframe {
    display: block;
    width: 100%;
    min-height: 350px;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
}

/* =========================================
   FOOTER
========================================= */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 28px 7%;
    background: #0b2237;
    color: #e7edf2;
    border-top: 3px solid var(--gold);
    font-size: 13px;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(231, 209, 154, 0.35);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--navy);
}

/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .gallery-slide {
        flex-basis: calc((100% - 20px) / 2);
    }

    .gallery-slide img {
        height: 220px;
    }

    .gallery-prev {
        left: 3px;
    }

    .gallery-next {
        right: 3px;
    }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 8px;
        padding: 12px 3%;
    }

    .logo {
        text-align: center;
        white-space: normal;
    }

    nav {
        justify-content: center;
        gap: 2px;
    }

    nav a {
        padding: 5px 7px;
        font-size: 11px;
    }

    .hero-content {
        left: 5%;
        bottom: 7%;
        width: 90%;
    }

    .hero-content h1 {
        margin-bottom: 8px;
        font-size: clamp(19px, 5.5vw, 34px);
    }

    .hero-content p {
        font-size: clamp(11px, 2.8vw, 17px);
        line-height: 1.45;
    }

    .hero-content span {
        margin-top: 8px;
        font-size: 11px;
    }

    .about,
    .contact {
        grid-template-columns: 1fr;
    }

    .about-images img {
        max-height: 380px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .contact iframe {
        height: 320px;
        min-height: 320px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}

/* SMALL PHONES */

@media (max-width: 550px) {
    .gallery-slide {
        flex-basis: 100%;
    }

    .gallery-slide img {
        height: 230px;
    }

    .feast-video-grid {
        grid-template-columns: 1fr;
    }

    .feast-highlights {
        margin-top: 45px;
    }

    .feast-video-card {
        padding: 9px;
    }

    .contact-info {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    nav a {
        padding: 5px;
        font-size: 10px;
    }

    .hero-content {
        bottom: 5%;
    }

    .hero-content h1 {
        font-size: clamp(17px, 5.5vw, 25px);
    }

    .hero-content p {
        font-size: clamp(10px, 3vw, 13px);
    }

    .hero-content span {
        font-size: 10px;
        margin-top: 5px;
    }
}

/* =========================================
   PULLICHIRA CHURCH — COMPLETE CSS
   PART 3 OF 3
   MOMENTS MODAL & ACCESSIBILITY
========================================= */

/* =========================================
   MOMENTS MODAL — HIDDEN BY DEFAULT
========================================= */

#momentsModal.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    width: 100%;
    height: 100%;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(5, 18, 30, 0.88);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

/* OPEN STATE: MATCHES pullichirascript.js */

#momentsModal.modal.is-open {
    display: flex;
}

/* =========================================
   MODAL CONTENT BOX
========================================= */

#momentsModal .moments-content {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    margin: auto;
    padding: 58px 20px 20px;
    background: var(--navy);
    border: 1px solid var(--gold);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

/* =========================================
   CLOSE BUTTON — X
========================================= */

#momentsModal .moments-content > .close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;

    border: 2px solid #e7d19a !important;
    border-radius: 50% !important;
    background: #102d46 !important;
    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-align: center !important;

    text-indent: 0 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;

    float: none !important;
    transform: none !important;

    cursor: pointer !important;
    z-index: 100000 !important;
}

#momentsModal .moments-content > .close:hover {
    background: #c8a34d !important;
    color: #102d46 !important;
    border-color: #e7d19a !important;
}

/* =========================================
   MOMENTS IMAGE CAROUSEL
========================================= */

#momentsModal .moments-carousel {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: min(65vh, 600px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #091b2a;
}

#momentsModal .moments-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

#momentsModal .moments-image.moments-active {
    display: block;
}

/* =========================================
   PREVIOUS AND NEXT BUTTONS
========================================= */

#momentsModal .moments-next,
#momentsModal .moments-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid var(--gold-light);
    border-radius: 50%;

    background: rgba(16, 45, 70, 0.92);
    color: var(--white);

    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

#momentsModal .moments-prev {
    left: 12px;
}

#momentsModal .moments-next {
    right: 12px;
}

#momentsModal .moments-prev:hover,
#momentsModal .moments-next:hover {
    background: var(--gold);
    color: var(--navy);
}

/* =========================================
   LOCK BACKGROUND SCROLL
========================================= */

body.modal-open {
    overflow: hidden;
}

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */

#topBtn {
    display: none;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

#topBtn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

/* =========================================
   KEYBOARD ACCESSIBILITY
========================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* =========================================
   MOBILE MODAL
========================================= */

@media (max-width: 600px) {
    #momentsModal.modal {
        padding: 10px;
    }

    #momentsModal .moments-content {
        width: 100%;
        max-height: 90vh;
        padding: 55px 10px 10px;
        border-radius: 14px;
    }

    #momentsModal .moments-content > .close {
        top: 8px !important;
        right: 8px !important;

        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;

        font-size: 25px !important;
    }

    #momentsModal .moments-carousel {
        height: 65vh;
        max-height: 500px;
        border-radius: 8px;
    }

    #momentsModal .moments-prev,
    #momentsModal .moments-next {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    #momentsModal .moments-prev {
        left: 6px;
    }

    #momentsModal .moments-next {
        right: 6px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
