/* =========================
   GLOBAL STYLES
========================= */

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

html {
    scroll-behavior:smooth;
}

body {
    font-family:'Source Sans 3', sans-serif;
    background:#111;
    color:white;
}

/* HEADINGS */

h1,
h2,
h3 {
    font-family:'Playfair Display', serif;
}

/* =========================
   MENU
========================= */

.menu-button {
    position:fixed;
    top:25px;
    left:25px;
    width:45px;
    height:45px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    cursor:pointer;
    z-index:30;
}

.menu-button span {
    width:30px;
    height:3px;
    background:black;
    border-radius:5px;
}

.menu {
    position:fixed;
    top:0;
    left:-300px;
    width:280px;
    height:100vh;
    background:rgba(15,15,15,.95);
    backdrop-filter:blur(10px);
    padding-top:100px;
    z-index:25;
    transition:.4s ease;
}

.menu.active {
    left:0;
}

.menu a {
    display:block;
    color:white;
    text-decoration:none;
    font-size:1.4rem;
    padding:20px 35px;
    transition:.3s;
}

.menu a:hover {
    background:rgba(255,255,255,.1);
    padding-left:45px;
}

.menu-overlay {
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    pointer-events:none;
    transition:.3s;
    z-index:20;
}

.menu-overlay.active {
    opacity:1;
    pointer-events:auto;
}

/* =========================
   HERO
========================= */

.hero {

    max-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:100px 20px;
    position:relative;
    overflow:hidden;
    background-image:url("images/EOF BANNER.png");
    border-bottom: 5px solid #28282B;
}

.hero::before {

    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0);
    z-index:1;

}

.hero h1 {

    position:relative;
    z-index:2;
    color:black;
    text-align:center;
    font-size:clamp(2.5rem,6vw,5rem);
    font-weight:600;
    letter-spacing:1px;
    
}

/* =========================
   ABOUT
========================= */

.about {

    position:relative;
    overflow:hidden;
    min-height:90vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:80px 20px;
    animation:textFade 2s ease forwards;

}

.about::before {

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.70);

    z-index:1;

}

.background {

    position:absolute;

    height:110%;

    width:110%;

    top:-5%;

    left:-5%;

    background-size:cover;

    background-position:center;

    filter:grayscale(100%);

    z-index:0;

    opacity:0;

}

.background.one {

    background-image:url("images/group_1.jpeg");

    opacity:1;

    animation:
        crossfadeOne 30s infinite,
        slowZoom 30s infinite;

}

.background.two {

    background-image:url("images/group_2.jpg");

    animation:
        crossfadeTwo 30s infinite,
        slowZoom 30s infinite;

}

.background.three {

    background-image:url("images/group_3.jpeg");

    animation:
        crossfadeThree 30s infinite,
        slowZoom 30s infinite;

}

/* =========================
   EXPLORE
========================= */

.explore {

    background:#1a1a1a;
    animation:textFade 2s ease forwards;
    padding:90px 20px;
    text-align:center;

}

.explore h2 {

    font-size:clamp(2rem,5vw,3.5rem);
    margin-bottom:50px;

}

.explore h3 {

    font-size: 2rem;
    margin-bottom:50px;
    color: #c5b58f;
    font-weight: 600;

}

.explore-grid {

    max-width:1000px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));

    gap:24px;

}

.explore-card {

    background:#222;

    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;

    padding:35px 28px;
    min-width:0;
    box-sizing:border-box;

    text-decoration:none;
    transition:.3s ease;

}

.explore-card:hover {

    transform:translateY(-8px);

    background:#292929;
    border-color:rgba(255,255,255,.18);

}

/* MOBILE EXPLORE */

@media (max-width:600px) {

    .explore {
        padding:55px 16px;
    }

    .explore h2 {
        margin-bottom:30px;
    }

    .explore-grid {
        gap:14px;
    }

    .explore-card {
        padding:24px 12px;
        border-radius:14px;
    }

    .explore-card h3 {
        font-size:1.25rem;
        margin-bottom:12px;
    }

    .explore-card p {
        font-size:0.9rem;
        line-height:1.5;
        margin:0;
    }

}

.exploredif {

    background:#E3DACA;

    padding:90px 20px;

    text-align:center;

}

.exploredif h2 {

    font-size:clamp(2rem,5vw,3.5rem);

    margin-bottom:50px;
}


/* =========================
   ABOUT PAGE
========================= */

.about-page {

    position:relative;

    min-height:100vh;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:80px 20px;

}


.about-page::before {

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.70);

    z-index:1;

}


.about-content {

    position:relative;

    z-index:2;

    max-width:800px;

}


.about-content h1,
.about-content p {

    opacity:0;

    transform:translateY(40px);

}


.about-content h1 {

    font-size:clamp(3rem,6vw,5rem);

    margin-bottom:30px;

    transition:1s ease;

}


.about-content p {

    font-size:1.2rem;

    line-height:1.8;

    color:#ccc;

    margin-bottom:25px;

    transition:1s ease .2s;

}


.about-content.show h1,
.about-content.show p {

    opacity:1;

    transform:translateY(0);

}

/* =========================
   OUTLINE PAGE
========================= */

.outline {

    background:#E3DACA;
    color: #425A4E;
    font-size: 1.6rem;
    padding:90px 20px;
    text-align:center;


}


/* =========================
   HIGHLIGHT BOOK
========================= */
.chapter-highlight {
    animation: chapterGlow 2.5s ease-out;
    border-radius: 8px;
}

@keyframes chapterGlow {
    0% {
        background-color: #f5dfa0;
        box-shadow: 0 0 0 4px #d4a94f;
    }

    50% {
        background-color: #fff1c9;
        box-shadow: 0 0 18px 5px rgba(212, 169, 79, 0.45);
    }

    100% {
        background-color: transparent;
        box-shadow: 0 0 0 0 transparent;
    }
}

/* ================================
   MESSAGE GRID
================================ */

.message-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
}


/* Individual section */

.message-section {
    padding: 25px;
    border-radius: 12px;
    background: #EFE6D6;
}


/* Section title */

.message-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
}


/* Individual message */

.message-section a {
    display: block;
    text-decoration: none;
    padding: 14px 0;
}


/* Bible passage */

.message-section .passage {
    display: block;
    font-size: 0.95rem;
    opacity: 0.7;
    margin-bottom: 3px;
}


/* Sermon title */

.message-section .title {
    display: block;
    font-size: 1.15rem;
}

/* Single Column */
.message-grid.single-column {
    grid-template-columns: minmax(0, 700px);
    justify-content: center;
}

/* Hover effect */

.message-section a:hover .title {
    text-decoration: underline;
}

/* =========================
   Outline Dropdown
========================= */
.study-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px auto;
    animation:textFade 2s ease forwards;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
}

.study-selector label {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 8px;
}

.study-selector select {
    width: 180px;
    padding: 10px 12px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.study-selector button {
    padding: 10px 22px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #2b2b2b;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.study-selector button:hover {
    opacity: 0.85;
}

.study-selector h3 {

    font-size:2rem;
    margin-bottom:18px;

}

/* =========================
   RESOURCES SECTION
========================= */

.resources-section {
    background: #f6f1e7;
    width: 100%;
    padding: 80px 6%;
    box-sizing: border-box;
}

.resources-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #2b2b2b;
}

.resources-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.resource-card {
    text-decoration: none;
    color: #2b2b2b;
    display: block;
}

.resource-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
}

.resource-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    pointer-events: none;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

/* Desktop hover overlay */

.resource-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 25px;

    background: rgba(43, 43, 43, 0.82);

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    box-sizing: border-box;
}

.resource-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #f6f1e7;
}

.resource-overlay p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: #f6f1e7;
}


/* Hover animation */

.resource-card:hover .resource-image img {
    transform: scale(1.06);
}

.resource-card:hover .resource-overlay {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile resource name */

.mobile-resource-name {
    display: none;
}

/* Back to Top Display */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #425A4E;
    color: white;

    font-size: 24px;
    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    transition: opacity 0.3s ease;
}

#backToTop:hover {
    opacity: 0.8;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

    .message-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 25px auto;
    }

    .message-section {
        padding: 20px;
    }
    .study-selector {
        flex-wrap: wrap;
        gap: 8px;
    }

    .study-selector select {
        width: 150px;
    }
}

/* =========================
  MOBILE (RESOURCES)
========================= */

@media (max-width: 700px) {

    .resources-section {
        padding: 60px 20px;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .resource-overlay {
        display: none;
    }

    .resource-card:hover .resource-image img {
        transform: none;
    }

    .mobile-resource-name {
        display: block;

        text-align: center;

        font-family: 'Playfair Display', serif;
        font-size: 1.1rem;
        color: #425A4E;
        margin: 12px 0 0;
    }
}


/* =========================
   ANIMATIONS
========================= */

@keyframes crossfadeOne {

0%,30% {
opacity:1;
}

33%,100% {
opacity:0;
}

}

@keyframes crossfadeTwo {

0%,33% {
opacity:0;
}

36%,63% {
opacity:1;
}

66%,100% {
opacity:0;
}

}

@keyframes crossfadeThree {

0%,66% {
opacity:0;
}

69%,96% {
opacity:1;
}

100% {
opacity:0;
}

}

@keyframes slowZoom {

from {

transform:scale(1);

}

to {

transform:scale(1.08);

}

}

@keyframes textFade {

from {

opacity:0;

transform:translateY(30px);

}

to {

opacity:1;

transform:translateY(0);

}

}


/* Link styling */

a {

    color:inherit;

    text-decoration:none;

}

a:hover {

    color:inherit;

    text-decoration:underline;

}

/* ==============================
   LATEST MESSAGE SECTION
============================== */

.latest-message-section {
    padding: 70px 20px;
    background: #111;
    color: #fff;
    animation:textFade 2s ease forwards;
}

.latest-message-container {
    max-width: 1000px;
    margin: 0 auto;
}

.latest-message-label {
    margin: 0 0 20px;
    color: #b8a47a;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-align: center;
}

.latest-message-card {
    background: #1c1c1c;
    border: 1px solid #333;
    border-left: 4px solid #b8a47a;
    border-radius: 8px;
    padding: 38px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    transition: border-color 0.25s ease,
                transform 0.25s ease;
}

.latest-message-card:hover {
    border-color: #b8a47a;
    transform: translateY(-3px);
}

.latest-message-content {
    max-width: 760px;
    margin: 0 auto;
}

.latest-message-date {
    margin: 0 0 12px;
    color: #b8a47a;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.latest-message-content h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.25;
}

.latest-message-scripture {
    margin: 0 0 20px;
    color: #c5b58f;
    font-size: 1rem;
    font-weight: 600;
}

.latest-message-description {
    margin: 0 0 26px;
    color: #d0d0d0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.latest-message-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid #b8a47a;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease,
                color 0.2s ease;
}

.latest-message-button:hover {
    background: #b8a47a;
    color: #111;
}

@media (max-width: 600px) {
    .latest-message-section {
        padding: 45px 16px;
    }

    .latest-message-card {
        padding: 25px 20px;
    }

    .latest-message-description {
        font-size: 1rem;
    }

    .latest-message-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

