/*
Theme Name: MTPB Modern
Theme URI: https://musictoprayby.com
Author: Flux
Description: A clean, modern theme for Music To Pray By — original piano music for prayer and worship.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: mtpb-modern
*/

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

:root {
    --bg-dark: #0c1222;
    --bg-card: rgba(15, 22, 42, 0.85);
    --bg-card-hover: rgba(20, 30, 55, 0.9);
    --bg-section-alt: rgba(8, 12, 28, 0.7);
    --blue: #4a8ec9;
    --blue-light: #7ab5e8;
    --blue-glow: rgba(74, 142, 201, 0.15);
    --gold: #d4a853;
    --gold-light: #e8c87a;
    --text: #dde4ee;
    --text-muted: #8e9bb5;
    --text-heading: #ffffff;
    --pink: #c9849a;
    --lavender: #9b8ec4;
    --border: rgba(255,255,255,0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.3; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === BACKGROUNDS === */
.bg-stars {
    background: url('/wp-content/uploads/2016/09/MTPB-Contact-Background.png') center/cover no-repeat fixed;
}
.bg-mountains {
    background: url('/wp-content/uploads/2016/09/MTPB-Web-Background.png') center/cover no-repeat fixed;
}
.bg-cross {
    background: url('/wp-content/uploads/2008/08/MTPB-Page-Bcakground-2.png') center/cover no-repeat fixed;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.85) 100%);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(13, 129, 219, 0.06);
    padding: 4px 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.site-logo img { height: 126px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4)); }
.site-logo { display: flex; align-items: center; }

/* Nav */


/* Dropdown menus */
.main-nav ul { display: flex; list-style: none; gap: 8px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(13, 129, 219, 0.12);
    border-radius: 10px;
    padding: 4px 0;
    margin-top: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
    flex-direction: column;
    gap: 0;
}
.main-nav > ul > li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu li { width: 100%; }
.main-nav .sub-menu a {
    display: block;
    padding: 9px 20px;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.55);
    border-radius: 0;
    transition: all 0.2s;
}
.main-nav .sub-menu a:hover {
    color: #fff;
    background: rgba(13, 129, 219, 0.15);
}

.main-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
}
.main-nav a:hover {
    color: #fff;
    background: rgba(13, 129, 219, 0.12);
}
.main-nav .current-menu-item a {
    color: var(--blue-light);
    background: rgba(13, 129, 219, 0.08);
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; padding: 8px; }

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
    background: url('/wp-content/uploads/2016/09/MTPB-Web-Background.png') center/cover no-repeat;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,14,26,0.4) 0%, rgba(10,14,26,0.2) 40%, rgba(10,14,26,0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-logo { width: 572px; max-width: 85vw; margin-bottom: 28px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-tagline {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgba(212, 168, 83, 0.9);
    color: #1a1a2e;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(212, 168, 83, 0.3);
}
.hero-cta:hover { background: var(--gold-light); color: #1a1a2e; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212, 168, 83, 0.4); }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* === SECTIONS === */
section { padding: 80px 0; position: relative; }
.section-overlay {
    position: relative;
}
.section-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 28, 0.75);
    z-index: 0;
}
.section-overlay > .container { position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-divider { width: 60px; height: 2px; background: var(--gold); margin: 16px auto 0; border-radius: 2px; }

/* === ALBUM SECTION === */
.album-section {
    background: url('/wp-content/uploads/2016/09/MTPB-Web-Background.png') center 30%/cover no-repeat fixed;
}
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.track-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}
.track-card:hover { background: var(--bg-card-hover); border-color: rgba(212, 168, 83, 0.3); transform: translateY(-2px); }
.track-card .track-number { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 4px; }
.track-card .track-title { font-family: var(--font-heading); font-size: 1.15rem; color: var(--text-heading); margin-bottom: 8px; }
.track-card audio { width: 100%; height: 40px; margin-top: 8px; filter: invert(0.85) hue-rotate(180deg); }

/* === PODCAST SECTION === */
.podcast-section {
    background: url('/wp-content/uploads/2016/09/MTPB-Contact-Background.png') center/cover no-repeat fixed;
}
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.podcast-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
}
.podcast-card:hover { background: var(--bg-card-hover); border-color: rgba(155, 142, 196, 0.3); }
.podcast-card .podcast-num { font-size: 2rem; font-weight: 700; color: var(--lavender); line-height: 1; }
.podcast-card .podcast-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.podcast-card audio { width: 100%; height: 36px; margin-top: 12px; filter: invert(0.85) hue-rotate(180deg); }

/* === ABOUT === */
.about-section {
    background: url('/wp-content/uploads/2008/08/MTPB-Page-Bcakground-2.png') center/cover no-repeat fixed;
}
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.about-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
}
.about-photo img { width: 100%; display: block; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--text); text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.about-text .highlight { color: var(--gold-light); font-weight: 500; }

/* === BLOG / POSTS === */
.posts-section { background: var(--bg-dark); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}
.post-card:hover { border-color: rgba(212, 168, 83, 0.3); transform: translateY(-2px); }
.post-card .post-date { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.post-card h3 a { color: var(--text-heading); }
.post-card h3 a:hover { color: var(--gold); }
.post-card .post-excerpt { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.post-card .read-more { display: inline-block; margin-top: 12px; color: var(--gold); font-size: 14px; font-weight: 600; }

/* === SINGLE POST === */
.single-content { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.single-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.single-content .post-meta { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }
.single-content .entry-content { font-size: 1.05rem; line-height: 1.8; }
.single-content .entry-content p { margin-bottom: 20px; }
.single-content .entry-content h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.single-content .entry-content img { border-radius: var(--radius); margin: 24px 0; }
.single-content .entry-content a { color: var(--blue-light); text-decoration: underline; }
.single-content .powerpress_player { margin: 20px 0; }

/* === PAGE CONTENT === */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 80px;
    background: url('/wp-content/uploads/2008/08/MTPB-Page-Bcakground-2.png') center top/cover no-repeat fixed;
    min-height: 80vh;
}
.page-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 24px; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.page-content .entry-content { font-size: 1.05rem; line-height: 1.8; }
.page-content .entry-content p { margin-bottom: 20px; }

/* === WPFORMS STYLING (light labels on dark bg) === */
.wpforms-container {
    max-width: 600px;
    margin: 0 auto;
}
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-field-sublabel {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #1a1a2e !important;
    border-radius: 8px !important;
}
.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2) !important;
}
.wpforms-container .wpforms-submit-container button {
    background: var(--gold) !important;
    color: #1a1a2e !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    cursor: pointer;
    transition: all 0.3s;
}
.wpforms-container .wpforms-submit-container button:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
}
.wpforms-container .wpforms-required-label { color: var(--pink) !important; }

/* === FOOTER === */
.site-footer {
    background: rgba(4, 6, 14, 0.95);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    text-align: center;
}
.footer-logo img { height: 80px; margin-bottom: 16px; opacity: 0.6; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.footer-text { color: var(--text-muted); font-size: 13px; }
.footer-text a { color: var(--text-muted); }
.footer-text a:hover { color: var(--gold); }
.footer-verse {
    font-style: italic;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: linear-gradient(180deg, rgba(10, 14, 26, 0.98), rgba(10, 14, 26, 0.95)); backdrop-filter: blur(24px); padding: 16px 24px; border-bottom: 1px solid rgba(13, 129, 219, 0.06); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 16px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 250px; margin: 0 auto; }
    .album-grid { grid-template-columns: 1fr; }
    .post-list { grid-template-columns: 1fr; }
    .hero-logo { width: 340px; }
    section { padding: 60px 0; }
}

/* === WP SPECIFIC === */
.wp-block-audio audio { width: 100%; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.entry-content [class*="et_pb_"] { display: none; }

/* WPForms error/validation visibility fixes */
.wpforms-container .wpforms-error,
.wpforms-container label.wpforms-error {
    color: #ff6b6b !important;
    font-size: 14px !important;
    margin-top: 4px;
}
.wpforms-container .wpforms-field.wpforms-has-error input,
.wpforms-container .wpforms-field.wpforms-has-error textarea {
    border-color: #ff6b6b !important;
}
.wpforms-container .wpforms-confirmation-container-full {
    background: rgba(13, 129, 219, 0.15) !important;
    border: 1px solid var(--blue) !important;
    color: #fff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    margin-top: 16px;
}
.wpforms-container .wpforms-confirmation-container-full p {
    color: #fff !important;
}

/* Custom Contact Form */
.mtpb-contact-form .form-group { margin-bottom: 20px; }
.mtpb-contact-form label { display: block; color: #ccc; margin-bottom: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.mtpb-contact-form .required { color: #ff6b6b; }
.mtpb-contact-form input, .mtpb-contact-form textarea {
    width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px; color: #fff; font-size: 16px; font-family: inherit; transition: border-color 0.3s;
}
.mtpb-contact-form input:focus, .mtpb-contact-form textarea:focus { border-color: var(--blue); outline: none; background: rgba(255,255,255,0.12); }
.mtpb-contact-form .submit-btn {
    background: var(--blue); color: #fff; border: none; padding: 14px 40px; border-radius: 6px;
    font-size: 16px; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s;
}
.mtpb-contact-form .submit-btn:hover { background: #0a6db8; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(13,129,219,0.4); }
.contact-success { background: rgba(13,129,219,0.15); border: 1px solid var(--blue); padding: 24px; border-radius: 8px; text-align: center; }
.contact-success p { color: #fff; font-size: 18px; margin: 0; }
.contact-error { background: rgba(255,107,107,0.15); border: 1px solid #ff6b6b; padding: 16px; border-radius: 8px; margin-bottom: 20px; }
.contact-error p { color: #ff6b6b; margin: 0; }

/* === CUSTOM CONTACT FORM (WPForms-modern style) === */
.cf-form {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 36px 32px;
    backdrop-filter: blur(10px);
}
.cf-field { margin-bottom: 22px; }
.cf-field label {
    display: block;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}
.cf-req { color: #e74c3c; }
.cf-field input, .cf-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
.cf-field input::placeholder, .cf-field textarea::placeholder {
    color: rgba(255,255,255,0.3);
}
.cf-field input:focus, .cf-field textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13,129,219,0.2);
    background: rgba(255,255,255,0.08);
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-submit { text-align: center; margin-top: 28px; }
.cf-btn {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 14px 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(13,129,219,0.3);
}
.cf-btn:hover {
    background: #0a6db8;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13,129,219,0.45);
}
.cf-btn:active { transform: translateY(0); }
.cf-success {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    background: rgba(13,129,219,0.1);
    border: 1px solid rgba(13,129,219,0.3);
    border-radius: 12px;
    padding: 48px 32px;
}
.cf-success-icon { font-size: 48px; margin-bottom: 16px; }
.cf-success h3 { color: var(--blue-light); font-size: 24px; margin-bottom: 12px; }
.cf-success p { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.6; }
.cf-error {
    max-width: 560px;
    margin: 0 auto 24px;
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.35);
    border-radius: 8px;
    padding: 14px 20px;
}
.cf-error p { color: #ff6b6b; margin: 0; font-size: 15px; }

/* Contact page - cathedral piano background */
.page-template-page-contact .page-content {
    background: url('/wp-content/uploads/2016/09/MTPB-Contact-Background.png') center/cover no-repeat fixed;
}
