/*
Theme Name: Trail Life Troop PA-0221
Theme URI: https://example.org/
Author: Troop PA-0221
Description: A responsive WordPress theme for Trail Life USA Troop PA-0221 with Worthy Wheels Derby promotion and brand-safe logo handling.
Version: 1.0.19
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: trail-life-pa0221
License: GNU General Public License v2 or later
*/

:root{--tl-red:#ba262d;--tl-brown:#876237;--tl-dark:#3e2e18;--tl-black:#010101;--white:#fff;--purple:#5a0f76;--yellow:#fde003;--charcoal:#29252d;--gray:#f4f2f5;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Open Sans",Arial,sans-serif;color:var(--charcoal);line-height:1.65;background:#fff}a{color:var(--purple)}img{max-width:100%;height:auto}.container{width:min(calc(100% - 2rem),var(--max));margin:auto}.screen-reader-text{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;z-index:9999;background:#fff;padding:.75rem}
.site-header{background:#fff;border-bottom:5px solid var(--yellow);position:sticky;top:0;z-index:100;box-shadow:0 2px 12px #0001}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem;min-height:96px}.site-branding{padding:1rem 0;display:flex;align-items:center;gap:1rem}.custom-logo{max-height:84px;width:auto;object-fit:contain}.site-title{font-size:1.2rem;font-weight:800;text-decoration:none;color:var(--purple)}.site-description{margin:0;font-size:.85rem}.main-navigation ul{display:flex;gap:1.2rem;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.main-navigation a{text-decoration:none;color:var(--charcoal);font-weight:700}.main-navigation a:hover,.main-navigation a:focus{color:var(--purple)}.menu-toggle{display:none;background:var(--purple);color:#fff;border:0;padding:.7rem 1rem;border-radius:.35rem;font-weight:700}.give-cta{display:inline-block;background:var(--yellow)!important;color:#24152a!important;padding:.7rem 1rem;border-radius:.35rem;font-weight:800;white-space:nowrap}.give-cta:hover,.give-cta:focus{background:#e5cb00!important;color:#24152a!important}.header-cta{display:inline-block;background:var(--purple)!important;color:#fff!important;padding:.7rem 1rem;border-radius:.35rem;white-space:nowrap}.header-cta:hover,.header-cta:focus{background:#3f0a53!important}.main-navigation .members-link{display:inline-block;padding:.62rem .85rem;border:2px solid var(--purple);border-radius:.35rem;color:var(--purple)!important;font-weight:800;white-space:nowrap}.main-navigation .members-link:hover,.main-navigation .members-link:focus{background:var(--purple);color:#fff!important}
.hero{position:relative;min-height:clamp(520px,68vh,760px);overflow:hidden;color:#fff;display:flex;align-items:center;background:var(--purple)}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.03);transition:opacity 1s ease,transform 7s ease;z-index:0}
.hero-slide.is-active{opacity:1;transform:scale(1)}
.hero-slide.focus-high{background-position:center 22%}
.hero-slide.focus-center{background-position:center center}
.hero-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(35,5,48,.94) 0%,rgba(58,9,78,.80) 38%,rgba(35,5,48,.35) 68%,rgba(20,10,25,.22) 100%)}
.hero-shade:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(30,7,40,.72) 0%,transparent 42%)}
.hero-content{position:relative;z-index:2;padding:5.5rem 0 6.5rem}
.hero-content h1{max-width:760px;text-transform:uppercase;letter-spacing:-.025em;text-shadow:0 4px 24px #0008}
.hero-content>p:not(.eyebrow){font-size:clamp(1.1rem,2vw,1.35rem);max-width:680px;text-shadow:0 2px 12px #000}
.hero-actions{margin-top:1.25rem}.hero-values{display:flex;gap:0;flex-wrap:wrap;margin-top:2.2rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--yellow)}
.hero-values span{padding:.35rem 1.2rem;border-right:1px solid #ffffff66}.hero-values span:first-child{padding-left:0}.hero-values span:last-child{border-right:0}
.eyebrow{text-transform:uppercase;font-weight:800;letter-spacing:.12em;color:var(--yellow)}h1,h2,h3{line-height:1.15}h1{font-size:clamp(2.8rem,7vw,5.8rem);margin:.2rem 0 1rem}.btn{display:inline-block;text-decoration:none;font-weight:800;border-radius:.4rem;padding:.9rem 1.25rem;margin:.4rem .4rem .4rem 0}.btn-primary{background:var(--yellow);color:#241228}.btn-secondary{border:2px solid #fff;color:#fff;background:#25052b66}.hero-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:#16051d99;color:#fff;font-size:1.65rem;cursor:pointer}.hero-arrow:hover,.hero-arrow:focus{background:var(--purple);outline:2px solid var(--yellow)}.hero-prev{left:1rem}.hero-next{right:1rem}.hero-dots{position:absolute;z-index:3;left:50%;bottom:1.4rem;transform:translateX(-50%);display:flex;gap:.55rem}.hero-dot{width:11px;height:11px;padding:0;border:2px solid #fff;border-radius:50%;background:transparent;cursor:pointer}.hero-dot.is-active{background:var(--yellow);border-color:var(--yellow)}
.section{padding:4.5rem 0}.section-title{text-align:center;margin:0 auto 2.5rem;max-width:760px}.section-title h2{font-size:clamp(2rem,4vw,3rem);color:var(--purple);margin:.25rem}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}.card{background:#fff;border:1px solid #e6e1e8;border-radius:.75rem;padding:1.6rem;box-shadow:0 8px 24px #3e2e180d}.card h3{color:var(--purple)}.members-area{background:#f7f3f9}.members-panel{display:grid;grid-template-columns:1.4fr .8fr;gap:2rem;align-items:center;background:#fff;border-left:8px solid var(--yellow);border-radius:.8rem;padding:2rem;box-shadow:0 10px 30px #3e2e1812}.members-area h2{color:var(--purple);font-size:clamp(2rem,4vw,3rem);margin:.25rem 0}.members-action{text-align:center}.btn-members{background:var(--purple);color:#fff;margin:0}.btn-members:hover,.btn-members:focus{background:#3f0a53}.external-note{font-size:.85rem;margin:.6rem 0 0;color:#625b67}.national{background:#f6f1e9;border-top:6px solid var(--tl-red)}.national h2{color:var(--tl-red)}.national-logo{display:block;max-width:520px;margin:0 auto 2rem;padding:1.5rem;background:#fff;object-fit:contain}.derby{background:var(--charcoal);color:#fff}.derby h2{color:var(--yellow)}.derby-panel{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}.checkered{background-image:linear-gradient(45deg,#fff 25%,transparent 25%),linear-gradient(-45deg,#fff 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#fff 75%),linear-gradient(-45deg,transparent 75%,#fff 75%);background-size:36px 36px;background-position:0 0,0 18px,18px -18px,-18px 0;opacity:.08;min-height:280px;border-radius:.8rem}.content-area{padding:3rem 0}.entry-title{color:var(--purple);font-size:clamp(2.5rem,5vw,4.25rem);line-height:1.05;margin:0 0 1.25rem}.entry-content,.page .type-page{font-size:1.05rem}.page .type-page>h2,.entry-content h2{font-size:clamp(1.9rem,3.2vw,2.75rem);line-height:1.18;margin:2.75rem 0 1rem;color:var(--charcoal)}.page .type-page>h3,.entry-content h3{font-size:clamp(1.35rem,2.2vw,1.8rem);line-height:1.25;margin:2rem 0 .75rem;color:var(--purple)}.page .type-page>h4,.entry-content h4{font-size:1.2rem;line-height:1.3;margin:1.6rem 0 .65rem}.page .type-page>p,.page .type-page>ul,.page .type-page>ol,.entry-content p,.entry-content ul,.entry-content ol{max-width:900px}.page .type-page hr,.entry-content hr{border:0;border-top:1px solid #bbb;margin:2rem 0}.page .type-page li,.entry-content li{margin:.2rem 0}.site-footer{background:var(--tl-dark);color:#fff;padding:3rem 0}.footer-grid{display:grid;grid-template-columns:1.6fr .8fr 1.15fr 1.15fr;gap:2rem}.site-footer a{color:#fff}.footer-logo{background:#fff;padding:1rem;max-width:360px;border-radius:.3rem}.footer-contact-item{display:flex;align-items:flex-start;gap:.7rem;margin:0 0 1.15rem}.footer-contact-item a{text-decoration:none}.footer-contact-item a:hover,.footer-contact-item a:focus{text-decoration:underline}.footer-icon{display:inline-flex;flex:0 0 1.35rem;margin-top:.15rem}.footer-icon svg{width:1.35rem;height:1.35rem;fill:var(--yellow)}
.legal{font-size:.82rem;color:#e8dfd2;margin-top:2rem;border-top:1px solid #ffffff33;padding-top:1rem}
@media(max-width:900px){.hero-grid,.derby-panel,.footer-grid,.members-panel{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.menu-toggle{display:block}.main-navigation ul{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;padding:1rem;box-shadow:0 12px 24px #0002;flex-direction:column;align-items:stretch}.main-navigation.toggled ul{display:flex}.header-inner{gap:.75rem;min-height:108px}.site-branding{gap:.75rem;min-width:0;flex:1}.site-title-wrap{display:block;min-width:0}.site-title{display:block;font-size:clamp(1rem,4.3vw,1.3rem);line-height:1.15;white-space:normal}.site-description{display:block;font-size:.78rem;line-height:1.25;margin-top:.25rem}.custom-logo{max-height:68px;max-width:72px}.main-navigation{flex:0 0 auto}.menu-toggle{padding:.7rem .9rem}.hero{padding:3.5rem 0}.content-area{padding:2.25rem 0}.entry-title{font-size:clamp(2.25rem,10vw,3.25rem)}.page .type-page>h2,.entry-content h2{font-size:clamp(1.75rem,7vw,2.25rem);margin-top:2.25rem}}
@media(max-width:480px){.header-inner{gap:.5rem}.site-branding{gap:.55rem}.custom-logo{max-height:58px;max-width:62px}.site-title{font-size:1rem}.site-description{font-size:.7rem}.menu-toggle{padding:.65rem .75rem;font-size:.9rem}}

@media(max-width:768px){
  .national{padding:3rem 0}
  .national .section-title{margin-bottom:1.5rem;padding:0 .5rem}
  .national .section-title h2{font-size:clamp(1.8rem,8vw,2.35rem)}
  .national-logo{width:90%;max-width:280px;padding:1rem;margin:0 auto 1.5rem}
  .national .btn{display:block;width:min(100%,320px);margin:.5rem auto;text-align:center}
}
@media(max-width:480px){
  .national{padding:2.5rem 0}
  .national-logo{width:85%;max-width:220px;padding:.8rem}
}

.church-section{background:#fff}.church-panel{display:grid;grid-template-columns:.75fr 1.25fr;gap:3rem;align-items:center;background:linear-gradient(135deg,#faf8fb,#fff);border:1px solid #e8e1eb;border-radius:1rem;padding:2.5rem;box-shadow:0 12px 34px #3e2e1810}.church-logo-wrap{text-align:center}.church-logo{display:block;width:min(100%,520px);margin:auto;padding:1rem;background:#fff;object-fit:contain}.church-section .eyebrow{color:var(--purple)}.church-section h2{font-size:clamp(2rem,4vw,3rem);color:var(--purple);margin:.25rem 0 1rem}.btn-church{background:var(--purple);color:#fff}.btn-church:hover,.btn-church:focus{background:#3f0a53}.footer-church img{display:block;max-width:290px;background:#fff;padding:.65rem;border-radius:.3rem;margin:.35rem 0 1rem}.footer-church p{margin:.4rem 0}
@media(max-width:900px){.church-panel{grid-template-columns:1fr;padding:1.5rem;gap:1.5rem}.footer-church img{max-width:260px}}

@media(max-width:900px){.hero-slide.focus-high{background-position:center 18%}.hero{min-height:610px}.hero-content{padding:4.5rem 2.7rem 5.5rem}.hero-shade{background:linear-gradient(90deg,rgba(39,5,52,.94),rgba(39,5,52,.62))}.hero-values{gap:.25rem}.hero-values span{font-size:.8rem;padding:.3rem .65rem}.hero-arrow{width:40px;height:40px;font-size:1.25rem}.hero-prev{left:.35rem}.hero-next{right:.35rem}}
@media(max-width:520px){.hero-slide.focus-high{background-position:center 14%}.hero{min-height:590px}.hero-content{padding:3.7rem 2.15rem 5rem}.hero-content h1{font-size:clamp(2.5rem,13vw,4rem)}.hero-actions .btn{display:block;width:100%;text-align:center;margin:.55rem 0}.hero-values{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.hero-values span{border:0;padding:.2rem 0}.hero-arrow{top:auto;bottom:1rem;transform:none}.hero-dots{bottom:1.95rem}}
@media(prefers-reduced-motion:reduce){.hero-slide{transition:none;transform:none}}
