/*
Theme Name: Pole Barn Insurance (BB child)
Template: bb-theme
Description: Child of the Beaver Builder theme for polebarninsurance.com. Full-width page template so the existing .aibgl Custom HTML pages render as before; Themer header/footer styles. Added 2026-10-27.
Version: 1.0
*/
/* Match the previous Twenty Twenty-Five content width (645px) so pages look as before */
.pbi-content{max-width:645px;margin:0 auto;padding:20px 20px 40px;box-sizing:content-box}
@media(max-width:700px){.pbi-content{padding:16px 16px 32px}}
.pbi-content>.wp-block-html,.pbi-content>p:empty{margin:0}
body.fl-builder-theme, body{background:#fff}
.fl-page{box-shadow:none!important}
/* Themer header */
.pbi-head{position:relative;z-index:50}
.pbi-head .pbi-head-call{color:var(--navy)!important;white-space:nowrap}
.pbi-head nav a{color:var(--navy)}
.pbi-nav-t{position:absolute;opacity:0;pointer-events:none}
.pbi-nav-btn{display:none;cursor:pointer;font-size:26px;line-height:1;color:var(--navy);padding:8px 10px;border:1px solid var(--line);border-radius:8px;min-height:44px;align-items:center}
@media(max-width:900px){
 .pbi-nav-btn{display:inline-flex}
 .pbi-head nav{display:none;width:100%;flex-direction:column;align-items:stretch;gap:0}
 .pbi-head nav a{border-top:1px solid var(--line);padding:0 4px}
 .pbi-head nav a.aibgl-sitehead-quote{justify-content:center;margin-top:10px;border-top:0}
 .pbi-nav-t:checked ~ nav{display:flex}
}
/* Themer footer: no theme gaps */
.fl-builder-content .aibgl-sitefoot{margin:0}
.fl-page-content{background:#fff}
/* Meet Paul Locke (above footer) */
.pbi-meet{background:#fff;border-top:1px solid var(--line);padding:28px 16px;text-align:center}
.pbi-meet-in{display:inline-flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none!important;color:var(--navy)!important;font-family:var(--sans);font-weight:800;font-size:17px}
.pbi-meet img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--gold);display:block}
/* Other AIB sites icon row (footer) */
.pbi-sites{background:#fff;padding:8px 16px 28px;text-align:center}
.pbi-sites-h{font-family:var(--sans);font-weight:800;color:var(--navy);font-size:16px;margin:0 0 14px}
.pbi-sites .pbi-sites-l{list-style:none!important;margin:0 auto!important;padding:0!important;max-width:900px;display:flex!important;flex-wrap:wrap;justify-content:center!important;gap:14px 22px}
.pbi-sites-l li{margin:0;padding:0}
.pbi-sites-l a{display:flex;flex-direction:column;align-items:center;gap:6px;width:130px;text-decoration:none!important;color:var(--navy)!important;font-family:var(--sans);font-size:13px;font-weight:700;line-height:1.25}
.pbi-sites-l a:hover svg,.pbi-sites-l a:focus-visible svg{transform:translateY(-2px)}
.pbi-sites-l svg{display:block;transition:transform .15s}
@media(max-width:600px){.pbi-sites-l{gap:12px 8px}.pbi-sites-l a{width:100px;font-size:12px}.pbi-sites-l svg{width:52px;height:52px}}
/* Header = white nav strip + barn photo band beneath it (2026-10-27).
   Home: the page's own hero becomes the full-width band (carries headline/buttons; seasons swap it), so the header strip band is hidden there.
   Other pages: slim photo strip. */
.pbi-band{height:120px;background:#0B1F3A var(--pbi-head-bg,url(/wp-content/uploads/2026/10/pole-barn-hero-example.jpg)) center 62%/cover no-repeat;border-bottom:4px solid var(--gold);position:relative}
.pbi-band::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,26,48,.55) 0%,rgba(8,26,48,.2) 60%,rgba(8,26,48,.1) 100%)}
@media(max-width:700px){.pbi-band{height:72px}}
body.home .pbi-band{display:none}
body.home .pbi-content{max-width:none;padding-top:0;padding-left:0;padding-right:0}
body.home .pbi-content .aibgl>*:not(.aibpb-hero):not(.aibpb-season-banner){max-width:645px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px;box-sizing:content-box}
body.home .pbi-content .aibgl>.aibgl-wrap{max-width:645px!important;padding:24px 20px!important}
body.home .pbi-content .aibpb-hero .aibpb-hero-in{max-width:1100px;padding:0 4px}
/* Footer explore row */
.pbi-explore{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;font-family:var(--sans);font-size:15px}
.pbi-explore strong{color:var(--navy)}
/* Home hero v2 (2026-10-27 11:30): full-bleed, lighter overlay, 2 columns x 2 rows: text | form, caption | Meet Paul. Mobile: text, form, Meet Paul, caption. */
body.home .pbi-content .aibgl>.aibpb-hero{max-width:none!important;width:auto;margin-left:0;margin-right:0;padding:0!important}
@media(min-width:1281px){body.home .aibpb-hero{background-image:url(/wp-content/uploads/2026/10/pole-barn-hero-example-1920.jpg)}}
body.home .aibgl .aibpb-hero{background-position:center 45%!important;background-size:cover!important}
body.home .aibgl .aibpb-hero .aibpb-hero-ov{background:linear-gradient(90deg,rgba(8,26,48,var(--pbi-ov-l,.78)) 0%,rgba(8,26,48,var(--pbi-ov-m,.5)) 36%,rgba(8,26,48,.12) 62%,rgba(8,26,48,.04) 100%);padding:clamp(36px,5vw,64px) 20px clamp(28px,4vw,48px);min-height:480px;box-sizing:border-box}
body.home .aibpb-hero h1,body.home .aibpb-hero .aibpb-sub{text-shadow:0 2px 12px rgba(0,0,0,.55)}
.aibpb-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,400px);grid-template-areas:"text form" "cap meet";gap:18px 40px;align-items:start;max-width:1100px!important;margin:0 auto}
.aibpb-hero-text{grid-area:text;align-self:center}
.aibgl .aibpb-hero-form{grid-area:form;background:rgba(255,255,255,.97);border-radius:12px;padding:18px 18px 8px;box-shadow:0 10px 30px rgba(0,0,0,.28);border-top:4px solid var(--gold);scroll-margin-top:90px;color:var(--ink)}
.aibgl .aibpb-hero-form .aibpb-hero-form-h{font-family:var(--serif);color:var(--navy);font-size:24px;margin:0 0 4px;text-shadow:none}
.aibgl .aibpb-hero-form .aibpb-hero-form-p{font-size:14px;color:var(--muted);margin:0 0 8px}
.aibgl .aibpb-hero-form .gform_wrapper{margin:0}
.aibgl .aibpb-hero-form .gf_page_steps{flex-wrap:wrap;gap:4px 10px}
.aibgl p.aibpb-hero-cap{grid-area:cap;align-self:end;margin:0;font-size:12px;color:rgba(255,255,255,.82);text-shadow:0 1px 4px rgba(0,0,0,.7)}
.aibpb-hero-meet{grid-area:meet;justify-self:end}
.aibgl .aibpb-hero-meet a{display:inline-flex;align-items:center;gap:12px;text-decoration:none!important;color:#fff!important;font-family:var(--sans);font-weight:800;font-size:15px;background:rgba(8,26,48,.55);padding:8px 16px 8px 8px;border-radius:999px}
.aibpb-hero-meet img{width:72px;height:72px;border-radius:50%;object-fit:cover;border:3px solid var(--gold);display:block}
@media(max-width:900px){
 .aibpb-hero-grid{grid-template-columns:1fr;grid-template-areas:"text" "form" "meet" "cap";gap:18px}
 body.home .aibgl .aibpb-hero .aibpb-hero-ov{background:linear-gradient(180deg,rgba(8,26,48,.78) 0%,rgba(8,26,48,.55) 45%,rgba(8,26,48,.35) 100%);min-height:420px;padding:28px 16px}
 .aibpb-hero-meet{justify-self:start}
}
/* hidden menu checkbox: never paint (possible stray dot) */
.pbi-nav-t{width:1px!important;height:1px!important;margin:0!important;clip-path:inset(50%)!important;overflow:hidden!important}

/* Inner-page header band v2 (2026-10-27 12:20): photo band carries the page title like the home hero; the content's own first H1 stays in the page for screen readers but is visually hidden so the title isn't shown twice. */
body:not(.home) .pbi-band{height:auto;min-height:200px;display:flex;align-items:center;background-position:center 42%}
body:not(.home) .pbi-band::before{background:linear-gradient(90deg,rgba(8,26,48,.82) 0%,rgba(8,26,48,.55) 45%,rgba(8,26,48,.15) 75%,rgba(8,26,48,.05) 100%)}
.pbi-band-in{position:relative;width:100%;max-width:645px;margin:0 auto;padding:28px 20px;box-sizing:content-box}
.pbi-band-title{margin:0;color:#fff;font-family:var(--serif,Georgia,serif);font-size:clamp(28px,4vw,44px);line-height:1.15;text-shadow:0 2px 12px rgba(0,0,0,.55)}
body:not(.home) .pbi-content .aibgl>.aibgl-wrap:first-child>h1:first-child{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){body:not(.home) .pbi-band{min-height:140px}.pbi-band-in{padding:22px 16px}}
/* Inner-page band v3 (2026-10-27 15:30): deeper so the whole barn shows, roof to the bottom of the door opening.
   Source photo: barn spans about 24%-68% of the image height; height scales with the width (26vw) so that range always fits; position 58% 42%. */
body:not(.home) .pbi-band{min-height:0;height:clamp(240px,26vw,500px);background-position:58% 42%;background-size:cover}
@media(min-width:1281px){body:not(.home) .pbi-band{background-image:var(--pbi-head-bg,url(/wp-content/uploads/2026/10/pole-barn-hero-example-1920.jpg))}}
body:not(.home) .pbi-band::before{background:linear-gradient(90deg,rgba(8,26,48,.8) 0%,rgba(8,26,48,.5) 30%,rgba(8,26,48,.08) 55%,rgba(8,26,48,0) 100%)}
.pbi-band-in{max-width:1100px}
@media(max-width:700px){body:not(.home) .pbi-band{height:240px;background-position:60% 50%}body:not(.home) .pbi-band::before{background:linear-gradient(180deg,rgba(8,26,48,.15) 0%,rgba(8,26,48,.55) 100%)}.pbi-band{align-items:flex-end!important}}
/* Inner-page band v4 (2026-10-27 15:35): title back on the content column (centered 645px column like the page text below), overlay darkened behind it. */
.pbi-band-in{max-width:645px}
body:not(.home) .pbi-band::before{background:linear-gradient(90deg,rgba(8,26,48,.55) 0%,rgba(8,26,48,.6) 50%,rgba(8,26,48,.55) 100%)}
@media(max-width:700px){body:not(.home) .pbi-band::before{background:linear-gradient(180deg,rgba(8,26,48,.15) 0%,rgba(8,26,48,.55) 100%)}}
/* Inner-page band v5 (2026-10-27 15:31): title centered horizontally on the picture (Paul). */
body:not(.home) .pbi-band-in{max-width:1100px;text-align:center}
body:not(.home) .pbi-band-title{text-align:center}

/* === AIB 2026-10-28: county/city two-column intro (BB row .aibpb-twocol-row, form 3). Undo: delete this block === */
.pbi-content .aibpb-twocol-row{width:min(1060px,calc(100vw - 48px));margin-left:calc(50% - min(530px,calc(50vw - 24px)))}
.aibpb-twocol-row > .fl-row-content-wrap{padding:24px 0 0}
body:not(.home) .aibpb-twocol-row .aibpb-twocol-text h1:first-child{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.aibpb-twocol-row .aibpb-twocol-text > .fl-col-content{padding-right:28px}
.aibpb-twocol-row .aibpb-twocol-text .fl-module-content,.aibpb-twocol-row .aibpb-twocol-form .fl-module-content{margin:0}
.aibpb-twocol-row .aibpb-twocol-form > .fl-col-content{background:#fff;border:1px solid #e3e7ee;border-top:4px solid #D6B54A;border-radius:10px;box-shadow:0 6px 20px rgba(11,31,58,.10);padding:18px 18px 8px}
.aibpb-twocol-row .aibpb-topform-h{color:#0B1F3A;font-size:22px;line-height:1.25;font-weight:700;margin:0 0 6px}
.aibpb-twocol-row .aibpb-topform-p{margin:0 0 10px;font-size:15px;line-height:1.45}
.aibpb-twocol-row .gform_wrapper{margin:0}
.aibpb-rest-row > .fl-row-content-wrap{padding:0}
.aibpb-rest-row .fl-module-content{margin:0}
@media (max-width:768px){.pbi-content .aibpb-twocol-row{width:auto;margin-left:0}.aibpb-twocol-row .aibpb-twocol-text > .fl-col-content{padding-right:0}.aibpb-twocol-row .aibpb-twocol-form{margin-top:12px}}
/* === end AIB two-column intro === */
