/* ============================================================
   HOPE CHURCH — MOBILE-FIRST FAITHFUL RECREATION
   Base: 375px mobile, breakpoints at 640px, 960px, 1200px
   ============================================================ */

/* ── RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #006eff;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── COLOUR TOKENS ── */
:root {
    --blue: #1a73e8;
    --blue-dark: #1558b0;
    --blue-light: #e8f0fe;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-grey: #e9ecef;
    --mid-grey: #6c757d;
    --dark-grey: #343a40;
    --black: #111111;
    --border: #dee2e6;
    --nav-bg: #ffffff;
    --nav-height: 60px;
    --section-pad: 3rem 1.25rem;
    --max-width: 960px;
    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.13);
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
    line-height: 1.25;
    color: var(--black);
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ── UTILITY ── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-center {
    text-align: center;
}

.text-upper {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-align: center;
    border: 2px solid transparent;
    line-height: 1.3;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ── NAVIGATION ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--nav-bg);
    border-bottom: 2px solid var(--blue);
    box-shadow: var(--shadow);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
}

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

.nav-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-grey);
    border-bottom: 1px solid var(--light-grey);
    transition: background 0.15s, color 0.15s;
}

.nav-menu a:last-child {
    border-bottom: none;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--blue);
    background: var(--blue-light);
}

/* Desktop nav */
.nav-links-desktop {
    display: none;
}

@media (min-width: 640px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-links-desktop {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .nav-links-desktop a {
        padding: 0.45rem 0.875rem;
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--dark-grey);
        transition: background 0.15s, color 0.15s;
    }

    .nav-links-desktop a:hover,
    .nav-links-desktop a.active {
        color: var(--blue);
        background: var(--blue-light);
    }
}

/* ── HERO (HOME) ── */
.hero {
    background: linear-gradient(160deg, rgba(10,30,80,0.5) 0%, rgba(10,30,80,0.3) 100%),
                url('https://images.unsplash.com/photo-1535353788679-3a28bfcafec1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wyMDkyMnwwfDF8c2VhcmNofDE3fHxjaHVyY2glMjB3b3JzaGlwfGVufDB8fHx8MTc3MzkxMzUxMHww&ixlib=rb-4.1.0&q=80&w=1080') center center / cover no-repeat;
    color: #fff;
    padding: 3.5rem 1.25rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 9vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.35rem;
}

.hero-time {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.25rem;
}

.hero-time-note {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
}

.hero-verse-wrap {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 0 auto 1.75rem;
    max-width: 600px;
}

.hero-verse-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.hero-verse-ref {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-spotify {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.35rem;
}

.hero-cta {
    margin-top: 2rem;
}

.hero .btn-primary {
    background: #fff;
    color: var(--blue-dark);
    border-color: #fff;
    font-size: 1.05rem;
}

.hero .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

@media (min-width: 640px) {
    .hero {
        padding: 5rem 2rem 4rem;
    }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
    background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: #fff;
    padding: 2.75rem 1.25rem 2.5rem;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
}

/* ── SECTION STYLES ── */
.section {
    padding: var(--section-pad);
}

.section-alt {
    background: var(--off-white);
}

.section-dark {
    background: var(--dark-grey);
    color: #fff;
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-blue {
    background: var(--blue);
    color: #fff;
}

.section-blue h2,
.section-blue h3 {
    color: #fff;
}

.section-title-wrap {
    margin-bottom: 2rem;
}

.section-title-wrap h2 {
    color: var(--blue-dark);
}

.section-label {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.75rem;
    border-radius: 30px;
    margin-bottom: 0.6rem;
}

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2rem 0;
}

/* ── LATEST NEWS ── */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 20px;
}

/* Mobile — 1 column */
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--blue);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    max-width: 100%;
}

.news-card h3 {
    color: var(--blue-dark);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--dark-grey);
    margin-bottom: 0.75rem;
}

.news-card a {
    display: inline-block;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--blue);
    text-decoration: underline;
    margin-top: auto;
}

.news-card a:hover {
    color: var(--blue-dark);
}

/* ── CARD IMAGE ── */
.card-image-wrap {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.card-image-wrap img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Memory verse card */
.memory-verse-card {
    background: var(--blue-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.memory-verse-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 0.625rem;
}

.memory-verse-text {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.65;
    color: #fff;
    margin-bottom: 0.5rem;
}

.memory-verse-ref {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
}

/* ── MEETINGS ── */
.meetings-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.meeting-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.meeting-header {
    background: var(--blue);
    color: #fff;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.05rem;
}

.meeting-header svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.meeting-body {
    padding: 1rem 1.25rem;
}

.meeting-body li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--light-grey);
    font-size: 0.9rem;
    color: var(--dark-grey);
    padding-left: 1rem;
    position: relative;
}

.meeting-body li:last-child {
    border-bottom: none;
}

.meeting-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* ── WHO WE ARE ── */
.who-we-are-text p {
    font-size: 1rem;
    color: var(--dark-grey);
}

/* ── WHAT TO EXPECT ── */
.expect-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expect-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.expect-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue-light);
    line-height: 1;
    min-width: 2rem;
    font-family: 'Montserrat', Arial, sans-serif;
}

.expect-item h3 {
    font-size: 1rem;
    color: var(--blue-dark);
    margin-bottom: 0.3rem;
}

.expect-item p {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

/* ── DONATE ── */
.donate-wrap {
    text-align: center;
}

.donate-wrap p {
    font-size: 1rem;
    color: var(--dark-grey);
    margin-bottom: 1.5rem;
}

.quote-block {
    border-left: 4px solid var(--blue);
    padding: 1rem 1.25rem;
    background: var(--off-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.75rem 0;
    text-align: left;
}

.quote-block blockquote {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--dark-grey);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.quote-block cite {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mid-grey);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── KIDS & YOUTH PAGE ── */
.programme-block {
    margin-bottom: 2.5rem;
}

.programme-block:last-child {
    margin-bottom: 0;
}

.programme-block h2 {
    color: var(--blue-dark);
}

.programme-time {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 0.875rem;
}

.programme-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--light-grey);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-grey);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1rem 0;
    border: 2px dashed var(--border);
}

.programme-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ── GIVING PAGE ── */
.giving-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

/* ── ABOUT PAGE ── */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.team-member {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--shadow);
}

.team-member-photo {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-grey);
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.team-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    padding: 0.75rem;
}

.team-member-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.15rem;
}

.team-member-role {
    font-size: 0.78rem;
    color: var(--mid-grey);
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .team-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ── CONTACT PAGE ── */
.contact-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--light-grey);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-grey);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border: 2px dashed var(--border);
}

/* ── FOOTER ── */
.site-footer {
    background: var(--dark-grey);
    color: rgba(255,255,255,0.75);
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
}

.site-footer address {
    font-style: normal;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.95rem;
}

.site-footer .footer-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.site-footer .copyright {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    margin-top: 0.5rem;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}

.site-footer a:hover {
    color: #fff;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Mobile  < 640px  : 1 column
   Tablet  640-899px: 2 columns
   Desktop 900px+   : 3 columns
   ══════════════════════════════════════ */

@media (min-width: 640px) {
    :root {
        --section-pad: 4rem 2rem;
    }

    .hero {
        padding: 5rem 2rem 4rem;
    }

    .page-hero {
        padding: 3.5rem 2rem 3rem;
    }

    /* Tablet — 2 columns */
    .news-card {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .meetings-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .expect-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (min-width: 900px) {
    /* Desktop — 3 columns */
    .news-card {
        flex: 0 0 calc(33.333% - 0.75rem);
        max-width: calc(33.333% - 0.75rem);
    }
}

@media (min-width: 960px) {
    :root {
        --section-pad: 5rem 2rem;
    }

    .hero {
        padding: 6rem 2rem 5rem;
    }

    .meetings-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .expect-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    :root {
        --max-width: 1100px;
    }
}