/* ===== Colors taken from the church logo ===== */
:root {
    --blue: #14607a;
    --blue-dark: #0c3f52;
    --blue-deep: #082b38;
    --blue-soft: #e4f1f4;
    --green: #3f8f3f;
    --green-dark: #2b6a2f;
    --brown: #7a4b25;
    --paper: #fbfdfc;
    --ink: #1d2b30;
    --shade: linear-gradient(to top, rgba(8, 43, 56, 0.88), rgba(12, 63, 82, 0.35));
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Nunito Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.2; }

.wrap { width: min(1150px, 92%); margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-dark); }

/* ===== Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 3px solid var(--green);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    position: relative;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand span {
    font-family: "Lora", serif;
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.links { display: flex; gap: 1.8rem; }
.links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.links a:hover { color: var(--blue); border-color: var(--green); }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 0.6rem; }
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
    content: "";
    display: block;
    width: 26px;
    height: 3px;
    background: var(--blue-dark);
    border-radius: 2px;
    position: relative;
}
.nav-burger span::before { position: absolute; top: -8px; }
.nav-burger span::after { position: absolute; top: 8px; }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    padding: 5rem 0 8rem;
    color: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.welcome { font-size: 1.2rem; color: #a9d8b0; font-weight: 700; margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
.tagline { margin-top: 1.2rem; font-size: 1.15rem; color: #dcedf1; max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-emblem { display: flex; justify-content: center; }
.hero-emblem img {
    width: min(330px, 75%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 14px rgba(63, 143, 63, 0.45);
    background: #fff;
}

.wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    fill: var(--paper);
}

/* ===== Explore tiles ===== */
.explore { padding: 4rem 0 2rem; }

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    color: var(--blue-dark);
    margin-bottom: 2.2rem;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.2rem;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    border-radius: 20px;
    color: #fff;
    background-color: var(--blue-dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
a.tile:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(12, 63, 82, 0.25); }

.wide { grid-column: span 2; }

.tile h3 { font-size: 1.35rem; }
.tile p { font-size: 0.95rem; color: #dcedf1; }
.tile .small { font-weight: 700; color: #cfeccf; }

.tile .icon {
    position: absolute;
    top: 1.4rem;
    left: 1.6rem;
    font-size: 1.8rem;
    color: #fff;
}

.tile .go {
    position: absolute;
    top: 1.5rem;
    right: 1.6rem;
    font-size: 1.1rem;
    transition: transform 0.2s;
}
a.tile:hover .go { transform: translateX(5px); }

/* your existing photos, tinted with the logo colors */
.tile-ministries { background-image: var(--shade), url('images/av.webp'); }
.tile-branches { background-image: var(--shade), url('images/branch.png'); }
.tile-live { background-image: var(--shade), url('images/live.jfif'); }
.tile-hymns { background-image: var(--shade), url('images/music.jfif'); }
.tile-podcast { background-image: var(--shade), url('images/podcast.jfif'); }

.tile-community {
    background-image: linear-gradient(to top, rgba(90, 52, 22, 0.92), rgba(122, 75, 37, 0.4)), url('images/comm.jpg');
}

.tile-theme { background: linear-gradient(145deg, var(--green), var(--green-dark)); }
.tile-theme h3 { font-size: 1.5rem; }

.tile-verse { background: var(--blue-deep); justify-content: center; padding-top: 4.2rem; }
.tile-verse blockquote {
    font-family: "Lora", serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #e6f2f5;
    border-left: 4px solid var(--green);
    padding-left: 1rem;
}
.tile-verse figcaption { margin-top: 0.8rem; padding-left: 1.2rem; font-weight: 700; color: #a9d8b0; }
.tile-verse .icon { color: #a9d8b0; }

/* ===== Call to action ===== */
.cta {
    margin: 2rem auto 4rem;
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    background-color: var(--blue);
    background-image: linear-gradient(135deg, rgba(8, 43, 56, 0.9), rgba(20, 96, 122, 0.8)), url('images/AND.png');
    background-size: cover;
    background-position: center;
}
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 1.5rem; }

/* ===== Footer ===== */
.site-footer { background: var(--blue-deep); color: #b9d3da; padding: 1.5rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.socials { display: flex; gap: 0.7rem; }
.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    transition: background 0.2s;
}
.socials a:hover { background: var(--green); }

/* ===== Tablet ===== */
@media (max-width: 960px) {
    .hero { padding: 3.5rem 0 6.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .tagline { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-emblem { order: -1; }
    .hero-emblem img { width: 200px; }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .wide { grid-column: span 2; }

    .nav-burger { display: block; }
    .links {
        display: none;
        position: absolute;
        top: 100%;
        left: -4%;
        right: -4%;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-bottom: 3px solid var(--green);
        padding: 0.5rem 4%;
    }
    .links a { padding: 0.9rem 0; border-bottom: 1px solid #e3ecee; }
    .nav-toggle:checked ~ .links { display: flex; }
}

/* ===== Phone ===== */
@media (max-width: 560px) {
    .brand span { font-size: 0.95rem; }
    .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .wide { grid-column: span 1; }
    .tile-verse { grid-row: span 2; }
    .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tile, .btn, .tile .go { transition: none; }
}
