/*
Theme Name: Kadence Child RCHM
Template: kadence
Version: 1.4.0 (Mobile Layout Optimized)
Author: Mediapaou
*/

/* ============== GLOBAL COLOR & FONT PALETTE ============== */
:root {
    /* Main Brand Colors */
    --rchm-blue: #2A4B8D;
    --rchm-red: #D9252D;
    
    /* App-Inspired Colors */
    --app-teal: #1E8991;
    --accent-yellow: #FFD130;
    --dark-navy: #1D2B3A;

    /* Global */
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --text-dark: #2c3e50;

    /* Fonts */
    --heading-font: 'Oswald', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* ============== GLOBAL STYLES ============== */
body { font-family: var(--body-font); background-color: var(--bg-light); color: var(--text-dark); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Updated padding */
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 50px; color: var(--rchm-blue); font-family: var(--heading-font); }
html { scroll-padding-top: 52px; scroll-behavior: smooth; }

/* ============== HEADER STYLES ============== */
.site-header { background-color: var(--rchm-blue); padding: 4px 0; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; min-height: 52px; border-bottom: 2px solid #FFC107; }
.header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1290px; margin: 0 auto; padding: 0 15px; }
.custom-logo-link img { height: 40px; width: auto; filter: drop-shadow(0 0 3px rgba(0,0,0,0.5)); }
.site-title a { color: var(--white); text-decoration: none; }

.main-nav { display: none; }
.main-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; }
.main-nav li { margin-left: 10px; }
.main-nav a { font-family: var(--heading-font); color: var(--white); text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 14px; padding: 7px 9px; border-radius: 4px; transition: all 0.3s ease; display: block; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--rchm-blue); background-color: var(--white); }

.mobile-menu-toggle { display: block; background: none; border: none; cursor: pointer; color: var(--accent-yellow); font-size: 1.6rem; }
.mobile-nav { display: none; position: absolute; top: 52px; left: 0; right: 0; background-color: var(--rchm-blue); z-index: 999; border-top: 1px solid #1565C0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { text-align: center; border-bottom: 1px solid #1565C0; }
.mobile-nav a { display: block; color: var(--white); text-decoration: none; font-family: var(--heading-font); padding: 12px 18px; }

/* ============== HOMEPAGE-SPECIFIC STYLES ============== */
.request-song-section { background-color: var(--white); padding: 15px 0; text-align: center; border-bottom: 1px solid #e0e0e0; }
.rteh-request-button { background-color: var(--rchm-blue) !important; color: var(--white) !important; padding: 10px 25px !important; border-radius: 50px !important; font-weight: 600 !important; text-decoration: none !important; display: inline-block; transition: background-color 0.3s !important; }
.rteh-request-button:hover { background-color: var(--rchm-red) !important; }

.hero-section { background: linear-gradient(145deg, var(--dark-navy) 0%, var(--app-teal) 100%); color: var(--white); padding: 60px 20px; text-align: center; }
.hero-logo { width: 120px; margin-bottom: 20px; animation: float 6s ease-in-out infinite; }
.hero-content h1 { font-family: var(--heading-font); font-size: 36px; font-weight: 800; line-height: 1.2; }
.hero-content .subtitle { font-size: 18px; opacity: 0.9; margin: 15px 0 35px 0; }
.primary-cta { background-color: var(--accent-yellow); color: var(--dark-navy); text-decoration: none; font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 50px; display: inline-block; box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.primary-cta:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.stations-section { padding: 60px 0; }
.stations-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.station-card { background-color: var(--white); border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); text-align: center; padding: 30px; display: flex; flex-direction: column; overflow: hidden; border-top: 5px solid transparent; transition: transform 0.3s, box-shadow 0.3s; }
.station-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.station-card .logo { width: 90px; height: 90px; object-fit: contain; margin-bottom: 20px; align-self: center; }
.station-card h3 { font-family: var(--heading-font); font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.station-card p { margin-bottom: 30px; line-height: 1.6; flex-grow: 1; font-size: 15px; }

.station-card.radio { border-top-color: var(--app-teal); }
.station-card.radio h3 { color: var(--app-teal); }

.station-card.gospel { border-top-color: var(--rchm-red); }
.station-card.gospel h3 { color: var(--rchm-red); }

.station-card.podcast { background-color: var(--rchm-blue); color: var(--white); border-top-color: var(--accent-yellow); }
.station-card.podcast h3, .station-card.podcast p { color: var(--white); }

.carousel-section, .programmes-section, .testimonials-section {
    padding: 0 0 60px 0;
}

.main-footer { background-color: var(--dark-navy); color: #bdc3c7; text-align: center; padding: 50px 20px; }

/* ============== RESPONSIVE BREAKPOINTS ============== */
@media (min-width: 768px) {
    .container { padding: 0 30px; }
    .hero-section { padding: 80px 30px; }
    .hero-content h1 { font-size: 48px; }
    .stations-grid { grid-template-columns: 1fr 1fr; }
    .carousel-section, .programmes-section, .testimonials-section { padding: 0 0 80px 0; }
    .section-title { font-size: 32px; }
}
@media (min-width: 1024px) {
    .container { padding: 0 40px; }
    .stations-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-section { padding: 100px 0; }
    .hero-content h1 { font-size: 56px; }
    .carousel-section, .programmes-section, .testimonials-section { padding: 0 0 100px 0; }
    .section-title { font-size: 36px; }
}
@media (min-width: 1100px) {
    .main-nav { display: flex; }
    .mobile-menu-toggle { display: none; }
}

/* ============== CRITICAL KADENCE OVERRIDES (FIXES EDGE ISSUES) ============== */
/* This ensures your custom templates are not constrained by Kadence default padding */
.page-template .entry-content, 
.page-template .content-area,
.page-template .site-main {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}