/*
Theme Name:  Remo Diocese CON
Theme URI:   https://remodiocesecon.org.ng
Description: Official WordPress theme for the Church of Nigeria General Synod – Remo Diocese. Built with hand-written CSS and optimised for the WBT Registration plugin.
Version:     1.0.0
Author:      Raphael Adedoyin Aderinwale
Author URI:  https://wbt.ng
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remo-diocese-con
Tags: church, events, registration, nigeria, anglican
*/

/* =============================================
   ROOT VARIABLES – Church of Nigeria palette
   ============================================= */
:root {
    --con-green:        #15803d;
    --con-green-dark:   #166534;
    --con-green-deep:   #052e16;
    --con-yellow:       #fbbf24;
    --con-yellow-light: #fef3c7;
    --con-red:          #dc2626;
    --con-red-light:    #fef2f2;
    --con-white:        #ffffff;
    --con-gray-50:      #f9fafb;
    --con-gray-100:     #f3f4f6;
    --con-text:         #111827;
    --con-text-muted:   #6b7280;
    --font-main:        'Inter', system-ui, sans-serif;
}

/* =============================================
   BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--con-text);
    background: var(--con-gray-50);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--con-green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   SITE LAYOUT WRAPPERS
   ============================================= */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.site-main  { flex: 1; }
.container  { width: 100%; max-width: 1152px; margin-inline: auto; padding-inline: 1.5rem; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--con-white);
    border-bottom: 1px solid var(--con-gray-100);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
    gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo img { width: 44px; height: 44px; object-fit: contain; }
.site-logo .logo-text { font-weight: 800; font-size: 0.95rem; color: var(--con-green); line-height: 1.2; }
.site-logo .logo-sub  { font-size: 0.7rem; color: var(--con-text-muted); font-weight: 500; }

.main-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; align-items: center; }
.main-nav a {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    border-radius: 0.5rem;
    transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { background: #f0fdf4; color: var(--con-green); text-decoration: none; }
.nav-cta a {
    background: var(--con-green) !important;
    color: #fff !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 0.6rem;
}
.nav-cta a:hover { background: var(--con-green-dark) !important; }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--con-gray-100); padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 1.2rem; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--con-gray-100); padding: 1rem 1.5rem; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 0.65rem 0; border-radius: 0; border-bottom: 1px solid var(--con-gray-100); }
    .main-nav ul li:last-child a { border-bottom: none; }
}

/* =============================================
   ANNOUNCEMENT BANNERS
   ============================================= */
.banner-open   { background: var(--con-green);  color: #fff; text-align: center; padding: 0.6rem 1rem; font-size: 0.875rem; font-weight: 600; }
.banner-closed { background: #dc2626;            color: #fff; text-align: center; padding: 0.6rem 1rem; font-size: 0.875rem; font-weight: 600; }

/* =============================================
   HERO
   ============================================= */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--con-green-deep) 0%, var(--con-green-dark) 45%, #0f4c20 100%);
    padding: 5rem 1.5rem 4rem;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(251,191,36,.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; margin-inline: auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: var(--con-yellow);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 1rem;
}
.hero-title .accent { color: var(--con-yellow); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,.78);
    margin: 0 0 0.5rem;
    font-weight: 500;
}
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin: 1.5rem 0 2rem; }
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.8);
    font-size: 0.9rem;
    font-weight: 500;
}
.hero-meta-item .material-symbols-outlined { font-size: 1.1rem; color: var(--con-yellow); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--con-yellow);
    color: var(--con-green-deep);
    font-weight: 900;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(251,191,36,.4);
    transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(251,191,36,.5); text-decoration: none; color: var(--con-green-deep); }
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 2px solid rgba(255,255,255,.3);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; color: #fff; }

/* ─── Hero flanking bishop photos ─────────────────────────────── */
.hero-person-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(200px, 22vw, 320px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}
.hero-person-photo--left  { left: 0; }
.hero-person-photo--right { right: 0; }

.hero-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Inner-edge fade so photos dissolve into the dark green background */
.hero-person-photo--left::after,
.hero-person-photo--right::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-person-photo--left::after {
    background: linear-gradient(to right,
        rgba(4,30,12,.15) 0%,
        rgba(4,30,12,.6)  60%,
        rgba(4,30,12,.98) 100%);
}
.hero-person-photo--right::after {
    background: linear-gradient(to left,
        rgba(4,30,12,.15) 0%,
        rgba(4,30,12,.6)  60%,
        rgba(4,30,12,.98) 100%);
}

/* Name / title caption at the bottom of each photo */
.hero-person-photo figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5rem 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    text-align: center;
    z-index: 2;
    color: #fff;
    backdrop-filter: blur(2px);
}
.hpf-label {
    display: inline-block;
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--con-yellow, #fbbf24);
    color: #111;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}
.hpf-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--con-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hpf-title {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
    line-height: 1.3;
    color: var(--con-yellow-light);
    font-weight: 500;
}

/* Mobile optimized Episcopal presentation */
@media (max-width: 960px) {
    .hero-section {
        flex-direction: column;
        padding-top: 4rem;
        min-height: auto;
    }
    .hero-person-photo {
        position: relative;
        width: 140px;
        height: 140px;
        flex-shrink: 0;
        border-radius: 50%;
        border: 3px solid var(--con-yellow);
        margin-bottom: 2rem;
        box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    }
    .hero-person-photo--left { order: -2; margin-right: 10px; display: inline-block; }
    .hero-person-photo--right { order: -1; margin-left: 10px; display: inline-block; }
    
    .hero-person-photo::after { display: none; }
    .hero-person-photo figcaption {
        position: static;
        padding: 0.75rem 0 0;
        background: none;
        backdrop-filter: none;
    }
    .hpf-name, .hpf-title { text-shadow: none; }
    .hero-content { order: 0; margin-top: 1rem; }
}


.section { padding: 5rem 1.5rem; }
.section-sm { padding: 3rem 1.5rem; }
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--con-text);
    margin: 0 0 0.5rem;
}
.section-lead { font-size: 1.05rem; color: var(--con-text-muted); max-width: 640px; margin: 0 0 2.5rem; }

/* Reusable Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--con-green);
    color: #fff;
    font-weight: 700;
    padding: 0.65rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.15);
    text-decoration: none;
}

.btn-download:hover {
    background: var(--con-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.2);
    color: #fff;
    text-decoration: none;
}

/* =============================================
   COUNTER BLOCK  (used by [lcr_registration_counter] output)
   ============================================= */
.counter-block {
    background: linear-gradient(135deg, var(--con-green) 0%, var(--con-green-dark) 100%);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}
.counter-block .lcr-counter-widget { flex-direction: row; gap: 1.5rem; align-items: center; justify-content: center; }
.counter-block .lcr-counter-number { font-size: 5rem; color: var(--con-yellow); }
.counter-block .lcr-counter-label  { font-size: 1rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .1em; }

/* =============================================
   PROGRAMME / INFO CARDS
   ============================================= */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.info-card {
    background: #fff;
    border: 1px solid var(--con-gray-100);
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.info-card-icon { width: 48px; height: 48px; border-radius: 0.75rem; background: #f0fdf4; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.info-card-icon .material-symbols-outlined { color: var(--con-green); font-size: 1.5rem; }
.info-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--con-text); }
.info-card p  { font-size: 0.875rem; color: var(--con-text-muted); margin: 0; line-height: 1.6; }

/* =============================================
   CONTACTS SECTION
   ============================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.contact-card {
    background: #fff;
    border: 1px solid var(--con-gray-100);
    border-left: 4px solid var(--con-green);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.contact-card .role  { font-size: 0.75rem; font-weight: 700; color: var(--con-green); text-transform: uppercase; letter-spacing: .06em; }
.contact-card .name  { font-size: 0.95rem; font-weight: 700; color: var(--con-text); }
.contact-card .phone { font-size: 0.9rem; color: var(--con-text-muted); }
.contact-card .phone a { color: var(--con-green); }

/* =============================================
   FORM / PAGE CONTENT
   ============================================= */
.page-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid var(--con-gray-100);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    max-width: 860px;
    margin-inline: auto;
}
.page-content h1, .page-content h2 { color: var(--con-green-dark); }

/* =============================================
   REGISTRATION FORM INTEGRATION BLOCK
   ============================================= */
.reg-section-bg {
    background: var(--con-gray-50);
    border-top: 4px solid var(--con-green);
    border-bottom: 4px solid var(--con-green);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--con-green-deep);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.875rem;
}
.site-footer a { color: var(--con-yellow); }
.site-footer .footer-logo { width: 48px; margin-inline: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .6; }
.site-footer p { margin: 0.3rem 0; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1rem 0; }

/* =============================================
   UTILITIES
   ============================================= */
.text-green   { color: var(--con-green); }
.text-yellow  { color: var(--con-yellow); }
.bg-green     { background: var(--con-green); }
.bg-green-50  { background: #f0fdf4; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =============================================
   PRINT UTILITIES (for tag page)
   ============================================= */
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
}
