/*
Theme Name: Hope Discovery
Theme URI: https://example.org/hope-discovery
Author: Hope Discovery
Description: A complete single-page classic theme for a live Bible Q&A ministry: live stream, tabbed panels, episode lightbox and Contact Form 7 forms. Content is edited with the standard block editor and custom post types.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hope-discovery
*/

:root{--blue:#1f5aa6;--navy:#143f80;--sun:#f6c21f;--ink:#3a3f4b;--mut:#6b7280;--line:#e5e7eb;--bar:#f1f2f4}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;font:16px/1.65 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--mut);background:#fff;overflow-x:hidden}
img{max-width:100%;height:auto}
a{color:var(--blue)}
h1,h2,h3,h4{color:var(--ink);font-weight:800;letter-spacing:-.02em;line-height:1.12;margin:0 0 .5em}
h1{font-size:clamp(34px,5.5vw,56px)}h2{font-size:clamp(28px,4.5vw,46px)}h3{font-size:22px}
.hd-center{text-align:center}
.screen-reader-text{position:absolute;left:-9999px}
.skip-link:focus{left:8px;top:8px;background:#fff;padding:8px 14px;z-index:100}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.admin-bar .site-header{top:32px}@media(max-width:782px){.admin-bar .site-header{top:46px}}
.hd-head{max-width:1160px;margin:auto;padding:0 20px;height:76px;display:flex;align-items:center;gap:26px}
.site-branding{margin-right:auto}
.site-title{font-weight:800;font-size:26px;letter-spacing:-.03em;color:var(--blue);text-decoration:none}
.custom-logo{max-height:48px;width:auto;display:block}
.main-nav ul{list-style:none;display:flex;gap:26px;margin:0;padding:0}
.main-nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}.main-nav a:hover{color:var(--blue)}
.hd-btn{display:inline-block;border:0;border-radius:999px;padding:12px 24px;font:700 15px Inter,system-ui,sans-serif;cursor:pointer;background:var(--sun);color:#1a1405;text-decoration:none}
.hd-btn:hover{filter:brightness(1.06)}
.hd-btn.line{background:transparent;border:1.5px solid var(--blue);color:var(--blue)}
.hd-btn.white{background:#fff;color:var(--navy)}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:8px;font-size:22px;padding:4px 12px;cursor:pointer;color:var(--ink)}
@media(max-width:860px){
.nav-toggle{display:block}
.main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:14px 20px}
.main-nav.open{display:block}.main-nav ul{flex-direction:column;gap:14px}
.hd-head .hd-btn.cta{display:none}}

/* Sections (block editor groups) */
.hd-band{padding:56px 0}
.hd-band>*{max-width:1000px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px}
.hd-band.hd-wide>*{max-width:1160px}
.hd-grey{background:var(--bar)}
.hd-sub{text-align:center}

/* Live video */
.hd-next{display:flex;justify-content:center;gap:10px 24px;flex-wrap:wrap;margin:0 auto 18px;font-size:15px}
.hd-next b{color:var(--ink)}
.hd-player{aspect-ratio:16/9;background:#111827;position:relative;display:grid;place-items:center;overflow:hidden;color:#fff}
.hd-player iframe{position:absolute;inset:0;width:100%!important;height:100%!important;border:0}
.hd-player>div:not(.hd-pill){position:absolute;inset:0}
.hd-pill{position:absolute;left:16px;top:16px;z-index:2;background:#6b7280;color:#fff;font-size:12px;font-weight:700;border-radius:6px;padding:3px 11px}
.hd-pill.on{background:#d42a3a}
.hd-empty{text-align:center;padding:20px;font-size:14px}

/* Tabs */
.hd-tabs{display:flex;background:var(--bar)}
.hd-tabs button{flex:1;position:relative;border:0;background:none;padding:15px 8px;font:600 14px Inter,system-ui,sans-serif;color:var(--ink);cursor:pointer}
.hd-tabs button.on{background:var(--blue);color:#fff}
.hd-tabs button.on::after{content:"";position:absolute;left:50%;bottom:-9px;margin-left:-9px;border:9px solid transparent;border-top-color:var(--blue);border-bottom:0}
@media(max-width:600px){.hd-tabs button{font-size:12px;padding:12px 2px}}
.hd-panel{border:1px solid var(--line);border-top:0;padding:36px 28px;margin-bottom:8px}
.hd-panel[hidden]{display:none}
.hd-panel .in{max-width:680px;margin:0 auto}
.hd-panel h3{font-size:24px}
.hd-bigcall{font-size:28px;font-weight:800;color:var(--ink)}
.hd-cd{display:flex;gap:8px;margin:14px 0 18px;max-width:340px}
.hd-cd div{flex:1;background:var(--bar);border-radius:8px;padding:8px 0;text-align:center;font:800 24px Inter,system-ui,sans-serif;color:var(--ink)}
.hd-cd small{display:block;font:400 11px Inter,system-ui,sans-serif;color:var(--mut)}
.hd-row{display:flex;gap:10px;flex-wrap:wrap}

/* Episodes */
.hd-eps{display:grid;gap:30px;grid-template-columns:repeat(3,1fr);margin-top:36px}
@media(max-width:860px){.hd-eps{grid-template-columns:1fr 1fr}}@media(max-width:560px){.hd-eps{grid-template-columns:1fr}}
.hd-ep{display:block}.hd-ep[data-yt]{cursor:pointer}
.hd-th{aspect-ratio:16/10;background:var(--blue);position:relative;display:grid;place-items:center;color:#fff;font-size:30px;overflow:hidden}
.hd-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hd-th span{position:relative;text-shadow:0 1px 6px #0008}
.hd-d{font-style:italic;font-size:14px;margin:14px 0 4px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.hd-ep .t{display:block;font-size:19px;font-weight:800;color:var(--ink);margin:12px 0 4px}
.hd-ep[data-yt]:hover .t{color:var(--blue)}
.hd-m{font-size:13px;font-style:italic;padding-bottom:12px;border-bottom:1px solid var(--line);margin-bottom:12px}
.hd-ex{font-size:14px;margin:0}
.hd-more{text-align:center;margin-top:36px}

/* Subscribe band */
.hd-sb{background:var(--navy);color:#dbe6f6;text-align:center;position:relative;overflow:hidden;padding:84px 0}
.hd-sb::before{content:"";position:absolute;right:-120px;bottom:-200px;width:520px;height:520px;border-radius:50%;background:var(--blue)}
.hd-sb::after{content:"";position:absolute;left:-30px;bottom:-30px;width:90px;height:90px;border-radius:50%;background:var(--sun)}
.hd-sb>*{position:relative;z-index:1}
.hd-sb h2{color:#fff}
.hd-eyebrow{color:var(--sun);font-weight:700;font-size:11px;letter-spacing:.18em;text-transform:uppercase;text-align:center;margin-bottom:10px}
.hd-sb .hd-sub-row>p{display:flex;gap:10px;flex-wrap:wrap;margin:0;max-width:620px;margin:0 auto!important}
.hd-sb .wpcf7-form-control-wrap{flex:1 1 200px}
.hd-sb .wpcf7-not-valid-tip,.hd-sb .wpcf7-response-output{color:#fff}

/* Forms (Contact Form 7) */
.wpcf7 p{margin:0}.wpcf7 br{display:none}.wpcf7 label{display:block;font-size:14px;font-weight:600;color:var(--ink)}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 textarea,.wpcf7 select{width:100%;padding:12px 14px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;margin:6px 0 16px}
.hd-sb .wpcf7 input[type=text],.hd-sb .wpcf7 input[type=email]{margin:0}
.wpcf7 input[type=submit]{border:0;border-radius:999px;padding:12px 24px;font:700 15px Inter,system-ui,sans-serif;cursor:pointer;background:var(--sun);color:#1a1405}
.hd-panel .wpcf7 input[type=submit]{width:100%}
.wpcf7 .wpcf7-not-valid-tip{color:#b3261e;font-size:13px;margin:-10px 0 12px}
.wpcf7 form .wpcf7-response-output{margin:14px 0 0;border-radius:8px;padding:10px 14px;font-size:14px}
.wpcf7-list-item{margin:0}
.hd-f2{display:grid;gap:0 14px;grid-template-columns:1fr 1fr}@media(max-width:560px){.hd-f2{grid-template-columns:1fr}}

/* Lightbox */
.hd-lb{border:0;padding:0;background:#000;width:min(960px,94vw);max-width:none;overflow:visible}
.hd-lb::backdrop{background:#000d}
.hd-lb-v{aspect-ratio:16/9;background:#000}.hd-lb-v iframe{width:100%;height:100%;border:0}
.hd-lb-x{position:absolute;right:0;top:-44px;background:none;border:0;color:#fff;font-size:36px;line-height:1;cursor:pointer}

/* Footer and generic pages */
.site-footer{background:#000;color:#cbd5e1;padding:48px 0 28px;font-size:14px}
.site-footer a{color:#cbd5e1;text-decoration:none}.site-footer a:hover{color:var(--sun)}
.hd-foot{max-width:1160px;margin:auto;padding:0 20px;display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between}
.hd-foot b{color:#fff;font-size:20px}.hd-foot ul{list-style:none;margin:0;padding:0}
.hd-copy{max-width:1160px;margin:32px auto 0;padding:20px 20px 0;border-top:1px solid #ffffff22;font-size:13px}
.hd-page{max-width:800px;margin:0 auto;padding:56px 20px}
.hd-page .entry-title{margin-bottom:24px}
.alignwide{max-width:1160px}
