/* CrossRoad East Church — Base Styles
   Design tokens: Ink Navy + Dawn Gold on Warm Paper.
   Display type: Fraunces. Body/UI type: Inter. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink:        #1C2541;
    --ink-soft:   #5B6478;
    --paper:      #FBF9F4;
    --card:       #FFFFFF;
    --gold:       #B98B33;
    --gold-deep:  #8F6A24;
    --ink-dark:   #14161F;
    --paper-on-dark: #F5F1E6;
    --gold-line:  #B98B33;
    --tracking-wide: 0.12em;
    --line:       #E4DFD3;
    --danger:     #B3452C;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 10px;
    --shadow-card: 0 1px 2px rgba(28, 37, 65, 0.04), 0 4px 16px rgba(28, 37, 65, 0.06);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--ink);
    background: linear-gradient(180deg, #fcfbf7 0%, #f6f2e9 100%);
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 249, 244, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 24px rgba(28, 37, 65, 0.06);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: var(--gold-deep);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Crossroads signature mark ──
   A small crossing-lines glyph — a nod to the church's name.
   Used sparingly: as a section divider and a card accent. */

.x-mark {
    display: inline-block;
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
}

.x-mark::before,
.x-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.x-mark::before {
    transform: translate(-50%, -50%) rotate(35deg);
}

.x-mark::after {
    transform: translate(-50%, -50%) rotate(-35deg);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

/* ── Header / Nav ── */

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    background: transparent;
    position: relative;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 1.2rem;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    margin-left: auto;
    align-items: center;
}

.nav-links a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    text-decoration: none;
    background-color: rgba(185, 139, 51, 0.12);
}

.nav-links.open {
    display: flex;
    background: rgba(251, 249, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(228, 223, 211, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease;
}

/* ── Main ── */

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Hero ── */

.hero {
    background: var(--paper);
    padding: 4rem 0 5rem;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: center;
    gap: 2.5rem 3rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.hero-text {
    text-align: left;
}

.hero-text .hero-tagline,
.hero-text h1 {
    letter-spacing: var(--tracking-wide);
}

.hero-text .hero-tagline {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-text h1 {
    color: var(--ink);
    font-size: clamp(2.75rem, 4vw, 3.75rem);
    margin: 0 0 1.5rem;
    line-height: 1.06;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0 0 1rem;
    width: 100%;
}

.hero-bubble {
    position: absolute;
    width: 140%;
    height: 140%;
    background: rgba(185, 139, 51, 0.15);
    border-radius: 60% 40% 55% 45%;
    top: 45%;
    left: 55%;
    transform: translate(-55%, -45%);
}

.hero-img {
    position: relative;
    display: block;
    width: min(100%, clamp(320px, 47vw, 720px));
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 6px solid var(--paper);
    box-shadow: var(--shadow-card);
    z-index: 1;
    margin-left: auto;
}

.visit-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--gold);
    padding: 3.5rem 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4.5rem;
    margin: 0 auto;
    max-width: 100%;
}

.visit-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.visit-text h3 {
    font-family: var(--font-display);
    color: var(--paper-on-dark);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.visit-desc {
    color: rgba(245, 241, 230, 0.7);
    max-width: 100%;
    flex: 1;
    line-height: 1.8;
}

.visit-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
    margin-top: 0;
}

.visit-actions .btn {
    min-width: 236px;
    text-align: center;
    width: 100%;
    max-width: 236px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .visit-card {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .visit-actions {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 800px) {
    .visit-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .visit-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .visit-actions .btn {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

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

.welcome {
    margin-top: 2rem;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-card);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--gold-deep);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    padding: 14px 32px;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--ink-dark);
    border-color: var(--gold);
}

/* ── Info Bar ── */

.info-bar-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--ink-dark);
    padding: 4rem 1rem 3.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-bar-wrap > * {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    text-align: center;
    color: var(--paper-on-dark);
}

.info-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    border-color: rgba(185, 139, 51, 0.9);
    box-shadow: 0 20px 35px rgba(28, 37, 65, 0.08);
}

.info-item h2,
.info-item h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.info-item p {
    font-size: 1.15rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--ink-soft);
}

.info-bar-wrap .info-item h2,
.info-bar-wrap .info-item h3 {
    color: var(--gold);
}

.info-bar-wrap .info-item p {
    color: var(--paper-on-dark);
}

.info-bar-wrap .section-heading,
.pillars-section .section-heading {
    color: var(--paper-on-dark);
}

.pillars-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--ink-dark);
    color: var(--paper-on-dark);
    padding: 4rem 1rem;
    box-sizing: border-box;
}

.pillars-section > * {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.pillars-section h2 {
    color: var(--paper-on-dark);
}

.pillars-section .pillars-list {
    margin-top: 1.75rem;
}

.pillars-section .pillar {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 241, 230, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    min-height: 220px;
}

.pillars-section .pillar h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--paper-on-dark);
}

.pillars-section .pillar p {
    color: rgba(245, 241, 230, 0.9);
    line-height: 1.8;
}

.gallery-section {
    background: var(--paper);
    color: var(--ink);
}

.gallery-section > * {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.gallery-section .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 720px) {
    .gallery-section .gallery {
        grid-template-columns: 1fr;
    }
}

.gallery-section .gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: block;
    position: relative;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.gallery-section .gallery img:hover {
    transform: translateY(-2px);
    filter: brightness(0.92);
}

.gallery-section .gallery img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.16);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
    pointer-events: none;
}

.gallery-section .gallery img:hover::after {
    opacity: 1;
}

.gallery-section .gallery img::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--gold-line);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-section .gallery img:hover::before {
    opacity: 1;
}

/* ── Page Sections ── */

.section-heading {
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    text-align: center;
    margin: 0 auto 1.1rem;
}

.section-heading::before {
    content: '';
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold-line);
}

.welcome,
.home-section {
    padding: 4rem 0;
    position: relative;
}

.home-section + .home-section {
    border-top: 1px solid var(--line);
}

.welcome h2,
.home-section h2,
.gallery-section h2,
.pillars-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    text-align: center;
    position: relative;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.welcome h2::before,
.home-section h2::before,
.gallery-section h2::before,
.pillars-section h2::before {
    content: '';
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold-line);
}

.pillars-section h2 {
    color: var(--paper-on-dark);
}

.welcome p {
    margin-bottom: 0.75rem;
    max-width: 700px;
}

.welcome-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

/* ── Card List (home page) ── */

.card-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.card {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid rgba(28, 37, 65, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(28, 37, 65, 0.08);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    color: var(--ink);
}

.card time {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.see-all {
    font-weight: 600;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Contact strip ── */

.contact-strip {
    text-align: center;
    padding: 3.5rem 1rem;
}

.contact-strip h2 {
    margin-bottom: 0.5rem;
}

.contact-strip p {
    margin-bottom: 1rem;
}

.contact-details {
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 0.25rem;
}

/* ── Page Headers ── */

.page-header {
    padding: 3.5rem 0 1.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.1rem;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.page-header p {
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.empty-state {
    padding: 3rem 0;
    color: var(--ink-soft);
    text-align: center;
}

.about-cta {
    margin: 1.5rem 0 2.5rem;
}

.live-empty-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.live-empty-card .btn {
    margin: 0 auto;
}

.live-banner {
    background: var(--ink);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}

.live-banner h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.live-banner h2::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E24C4C;
    animation: live-pulse 1.8s ease-in-out infinite;
}

.live-banner p {
    color: #C9CDDA;
    margin: 0;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Sermon List ── */

.sermon-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 2rem;
}

.sermon-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: 2rem;
}

.sermon-meta {
    margin-bottom: 1rem;
}

.sermon-meta h2 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
    color: var(--ink);
}

.sermon-meta time {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.sermon-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-card);
}

.sermon-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
}

.pillars-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}

.pillar {
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid rgba(28, 37, 65, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    min-height: 220px;
}

.pillar h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--ink);
}

.pillar p {
    color: var(--ink-soft);
    line-height: 1.8;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease;
}

.gallery img:hover {
    transform: translateY(-2px);
}

.location-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.location-info {
    background: var(--card);
    border: 1px solid rgba(28, 37, 65, 0.08);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.sermon-notes {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.35rem;
    border-radius: var(--radius);
    line-height: 1.7;
}

.sermon-notes h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── Event List ── */

.events-section {
    padding-bottom: 2rem;
}

.events-section + .events-section {
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding-top: 2rem;
}

.events-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.event-list {
    list-style: none;
}

.event-item {
    display: flex;
    gap: 1.35rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date-badge {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    background: var(--ink);
    color: var(--gold);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.event-date-badge--past {
    background: #9ca3af;
    color: #fff;
}

.event-month {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-display);
}

.event-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.1rem;
    font-family: var(--font-display);
}

.event-details time {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 0.25rem;
}

.event-details p {
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* ── Contact Page ── */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

@media (max-width: 860px) {
    .site-nav {
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
        background: var(--card);
        border: 1px solid rgba(28, 37, 65, 0.12);
        border-radius: 18px;
        box-shadow: var(--shadow-card);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(28, 37, 65, 0.08);
    }

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

    .hero {
        min-height: 560px;
        padding: 4rem 1rem 3rem;
    }

    .hero-overlay {
        padding: 2.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-links {
        right: 0.75rem;
        left: 0.75rem;
    }

    main {
        padding: 0 0.9rem;
    }

    .welcome,
    .home-section,
    .contact-strip,
    .whatsapp-form-section {
        padding: 2.5rem 0;
    }

    .hero-overlay {
        border-radius: 20px;
    }

    .card {
        padding: 1.4rem;
    }

    .pillars-list,
    .gallery,
    .card-list,
    .info-bar {
        gap: 0.9rem;
    }
}

.contact-card {
    padding: 1.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.contact-card h2 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.contact-card address {
    font-style: normal;
    line-height: 1.7;
}

/* ── WhatsApp Contact Form ── */

.whatsapp-form-section {
    padding: 2.5rem 0 3.5rem;
    border-top: 1px solid var(--line);
}

.whatsapp-form-section h2 {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.whatsapp-form-section > p {
    color: var(--ink-soft);
    margin-bottom: 1.4rem;
}

#contactForm {
    max-width: 500px;
}

#contactForm label {
    font-weight: 600;
}

#contactForm input[type="text"],
#contactForm input[type="tel"],
#contactForm input[type="email"],
#contactForm textarea {
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
}

#contactForm input:focus,
#contactForm textarea:focus {
    border-color: var(--gold);
}

#contactForm button {
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    background: #25D366;
    color: #08341c;
    font-weight: 600;
    cursor: pointer;
    max-width: fit-content;
}

#contactForm button:hover {
    background: #1DA851;
}

.form-note {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

/* ── Footer ── */

.site-footer {
    margin-top: 5rem;
    background: linear-gradient(180deg, #1a273f 0%, #111923 100%);
    color: #d5d9e6;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-info p:first-child {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.footer-info address {
    font-style: normal;
    color: #acb4c7;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #d5d9e6;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.social-links a {
    color: #d5d9e6;
    font-size: 0.95rem;
}

.social-links a:hover {
    color: var(--gold);
}

/* ── Login ── */

.login-page {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.login-page h1 {
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.login-page form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.login-page label {
    font-weight: 600;
    font-size: 0.9rem;
}

.login-page input {
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.login-page button {
    padding: 0.65rem;
    font-size: 1rem;
    margin-top: 0.4rem;
    border: none;
    border-radius: 6px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}

.login-page button:hover {
    background: var(--gold-deep);
    color: #fff;
}

.errors {
    color: var(--danger);
    margin-bottom: 1rem;
    list-style: none;
}

/* ── Admin ── */

.dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dashboard-card {
    display: block;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow-card);
}

.dashboard-card:hover {
    border-left-color: var(--gold-deep);
    text-decoration: none;
}

.dashboard-card h2 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.dashboard-card p {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

main form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 600px;
}

main form label {
    font-weight: 600;
    font-size: 0.9rem;
}

main form input[type="text"],
main form input[type="date"],
main form input[type="email"],
main form input[type="password"],
main form textarea {
    padding: 0.6rem 0.7rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--line);
    border-radius: 6px;
}

main form input:focus,
main form textarea:focus {
    border-color: var(--gold);
}

main form small {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

main form button {
    padding: 0.65rem 1.3rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    max-width: fit-content;
}

main form button:hover {
    background: var(--gold-deep);
    color: #fff;
}

.btn-danger {
    background: var(--danger) !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #8f331f !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--line);
}

th {
    font-weight: 600;
    background: #F4F0E6;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

td a {
    margin-right: 0.75rem;
}

/* ── Beliefs Page ── */

.beliefs-content {
    padding-bottom: 2rem;
}

.belief-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.belief-section:last-child {
    border-bottom: none;
}

.belief-section h2 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.belief-section p {
    margin-bottom: 0.75rem;
    max-width: 750px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.beliefs-header-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-top: 1rem;
}

/* ── About Page ── */

.about-content {
    padding-bottom: 2rem;
}

.about-content blockquote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    border-left: 3px solid var(--gold);
    padding-left: 1.35rem;
    margin: 1.5rem 0 2rem;
    color: var(--ink);
    max-width: 750px;
}

.about-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: var(--ink);
}

.about-content .btn {
    margin-top: 1rem;
}

.about-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

/* ── Pillars ── */

.pillars-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.pillar {
    padding: 1.75rem 1.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.pillar h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--ink);
}

/* ── Gallery ── */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ink-soft);
    padding: 3rem 0;
}

/* ── Location ── */

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

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-top: 1rem;
}

.location-info p {
    margin-bottom: 0.5rem;
}

.location-map iframe {
    width: 100%;
    min-height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.location-placeholder {
    color: var(--ink-soft);
    padding: 2rem 0;
}

/* ── Blockquote (general) ── */

blockquote {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    border-left: 3px solid var(--gold);
    padding-left: 1.35rem;
    margin: 1rem 0;
    color: var(--ink);
}

/* ── Responsive ── */

@media (max-width: 640px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--line);
        margin-top: 0.75rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: none;
    }

    .hero {
        padding: 3.5rem 0.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .info-bar {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .event-date-badge {
        width: 50px;
        padding: 0.35rem 0;
    }

    .event-day {
        font-size: 1.2rem;
    }
}
