/*
Theme Name: Bingley Fire Alarms
Version: 1.0.25
Description: A responsive theme for Bingley Fire Alarms.
Requires PHP: 7.4
*/
:root{--red:#b51e2c;--ink:#1b2229;--muted:#57636b;--light:#f4f5f5}*{box-sizing:border-box}body{margin:0;font:16px/1.7 system-ui,-apple-system,sans-serif;color:var(--ink)}a{color:var(--red)}img{max-width:100%;height:auto} .wrap{width:min(1120px,90%);margin:auto}.top{background:#1b2229;color:white;padding:8px 0;font-size:14px}.top .wrap{display:flex;justify-content:space-between;gap:1rem}.top a{color:white}.header{background:white;border-bottom:1px solid #ddd}.header .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;flex-wrap:wrap}.brand{text-decoration:none;font-size:22px;font-weight:800;line-height:1.15;color:var(--ink)}.brand span{display:block;color:var(--red);font-size:12px;letter-spacing:.12em;text-transform:uppercase}.menu{display:flex;gap:20px;list-style:none;margin:0;padding:0;flex-wrap:wrap}.menu a{color:var(--ink);text-decoration:none;font-weight:650;font-size:15px}.button{display:inline-block;background:var(--red);color:white!important;text-decoration:none;padding:13px 22px;border-radius:4px;font-weight:750}.hero{background:#202831;color:#fff;padding:80px 0}.hero .eyebrow{color:#ffacb2;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.hero h1{font-size:clamp(36px,5vw,62px);line-height:1.1;max-width:800px;margin:14px 0 22px}.hero p{font-size:19px;max-width:700px;color:#e4e8eb}.hero a:not(.button){color:white;margin-left:20px}.section{padding:65px 0}.section.alt{background:var(--light)}h2{font-size:clamp(27px,3vw,38px);line-height:1.2}h3{line-height:1.3}.intro{max-width:720px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:#fff;border:1px solid #e0e3e4;border-top:4px solid var(--red);padding:25px}.card h3{margin-top:0}.card img{width:100%;aspect-ratio:16/9;object-fit:cover}.card a{font-weight:700}.content{max-width:800px}.content h1{font-size:clamp(32px,4vw,48px);line-height:1.15}.content h2{font-size:27px;margin-top:1.6em}.content p,.content li{line-height:1.8}.content img{height:auto}.article-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:55px}.aside{background:var(--light);padding:25px;align-self:start}.footer{background:#1b2229;color:#dbe0e2;padding:50px 0}.footer a{color:white}.footer .wrap{display:flex;justify-content:space-between;gap:25px;flex-wrap:wrap}.wpcf7 input,.wpcf7 textarea{max-width:100%;width:100%;padding:12px;border:1px solid #b7bfc2;font:inherit}.wpcf7 input[type=submit]{width:auto;background:var(--red);color:#fff;border:0;cursor:pointer;font-weight:bold}.pagination{margin:30px 0}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;background:white;z-index:100}.post-meta{color:var(--muted);font-size:14px}@media(max-width:760px){.grid,.article-grid{grid-template-columns:1fr}.hero{padding:55px 0}.top .wrap{display:block}.menu{gap:10px 16px}.section{padding:45px 0}}
/* Keep theme typography consistent when older plugins add global heading styles. */
body h1,body h2,body h3,body h4,body h5,body h6{font-family:system-ui,-apple-system,sans-serif;font-style:normal;letter-spacing:normal;line-height:1.25;color:#1b2229}body .hero h1{color:#fff;font-size:clamp(36px,5vw,62px);line-height:1.1}body .section h2{font-size:clamp(27px,3vw,38px)}body .card h3{font-size:20px}body .card h3 a{color:#1b2229;text-decoration:none}body .card h3 a:hover{text-decoration:underline}.card p{overflow-wrap:anywhere}

.hero{background-image:linear-gradient(90deg,rgba(20,28,35,.94) 0%,rgba(20,28,35,.82) 40%,rgba(20,28,35,.25) 100%),url("fire-alarm-servicing-bingley.webp");background-size:cover;background-position:center center}
@media(max-width:760px){.hero{background-position:65% center;background-image:linear-gradient(90deg,rgba(20,28,35,.94),rgba(20,28,35,.70)),url("fire-alarm-servicing-bingley.webp")}}

.brand img{display:block;width:250px;height:auto;max-width:100%}

.wpcf7 form{background:#fff;padding:28px;border:1px solid #dfe3e5;border-radius:5px}.wpcf7 label{display:block;color:#1b2229;font-weight:600;margin-bottom:15px}.wpcf7 input:not([type=submit]),.wpcf7 textarea{display:block;background:#fff;color:#1b2229;border:1px solid #aab4b9;border-radius:4px;margin-top:5px}.wpcf7 textarea{height:150px}.wpcf7 input[type=submit]{background:#b51e2c;color:#fff;padding:13px 28px;border-radius:4px}.wpcf7 input:focus,.wpcf7 textarea:focus{outline:2px solid #b51e2c;outline-offset:2px}

.service-layout{display:block}.service-layout .content{max-width:900px;margin:auto}.service-image{display:block;width:100%;height:auto;max-height:390px;object-fit:cover;border-radius:5px;margin:30px 0}

.systems-section{margin:48px 0}.system-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.system-card{padding:26px 18px;background:#fff;border:1px solid #dfe3e5;border-top:4px solid var(--red);border-radius:5px;text-align:center}.system-card svg{width:52px;height:52px;color:var(--red);margin-bottom:12px}.system-card p{font-size:15px;line-height:1.65}.system-card h3{margin:6px 0 18px}@media(max-width:760px){.system-cards{grid-template-columns:1fr}}

/* Compact archive cards; keep individual article typography unchanged. */
body .section .blog-grid .card h2,body .section .blog-grid .card h2 a{font-family:Arial,sans-serif!important;font-style:normal!important;font-size:22px!important;line-height:1.3!important;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}body .section .blog-grid .card h2{margin:12px 0}body .section .blog-grid .card h2 a:hover{text-decoration:underline}body .section .blog-grid .card .blog-excerpt{font-size:16px!important;line-height:1.65!important;color:var(--muted);margin:0 0 18px}.blog-grid{align-items:stretch;grid-template-columns:repeat(3,minmax(0,1fr))}.blog-grid .card{min-width:0}.blog-grid .card .post-meta{font-size:13px;margin-bottom:8px}@media(max-width:960px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.blog-grid{grid-template-columns:1fr}}

/* Individual articles use the full container without a sidebar. */
.content.article-full-width{width:100%;max-width:none;min-width:0;overflow-wrap:anywhere}

/* Collapsible navigation and separated mobile contact details. */
.menu-toggle{display:none;background:#fff;border:1px solid var(--red);border-radius:4px;color:var(--ink);padding:10px 12px;font:600 16px/1.4 Arial,sans-serif;cursor:pointer}
.menu-toggle:focus-visible{outline:2px solid var(--red);outline-offset:3px}
@media(max-width:960px){
.top .wrap{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.top .wrap span{display:block}.top .wrap a{display:block;white-space:nowrap}
.header .wrap{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 0}
.header .brand{flex:1;min-width:0}.header .brand img{width:230px}
.bfa-nav-ready .menu-toggle:not([hidden]){display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
.header #primary-navigation{flex-basis:100%;order:3;width:100%}
.bfa-nav-ready .header #primary-navigation{display:none}
.bfa-nav-ready .header #primary-navigation.is-open{display:block}
.header #primary-navigation .menu{display:flex;flex-direction:column;gap:0;padding:8px 0}
.header #primary-navigation .menu a{display:block;padding:12px 0;border-bottom:1px solid #e0e3e4}
.header .wrap>.button{order:4;font-size:15px;padding:10px 18px}
}

/* Keep the hero phone link intact beneath the quote button on mobile. */
.hero a[href^="tel:"]{white-space:nowrap}
@media(max-width:760px){.hero a[href^="tel:"]{display:block;width:fit-content;margin:18px 0 0;line-height:1.5}}

/* Mobile tap-to-call controls have generous touch targets. */
@media(max-width:760px){
body a[href^="tel:"]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:12px 18px;border:2px solid var(--red);border-radius:4px;background:var(--red);color:#fff!important;font-size:16px;line-height:1.3;font-weight:700;text-decoration:none;white-space:nowrap;box-sizing:border-box}
body .hero a[href^="tel:"]{display:flex;width:fit-content;margin:18px 0 0;background:transparent;border-color:#fff;color:#fff!important}
body .top a[href^="tel:"],body .footer a[href^="tel:"]{background:transparent;border-color:#fff;color:#fff!important}
body .top a[href^="tel:"]{margin-top:8px}
body a[href^="tel:"]:focus-visible{outline:3px solid #b51e2c;outline-offset:4px}
body .hero a[href^="tel:"]:focus-visible,body .top a[href^="tel:"]:focus-visible,body .footer a[href^="tel:"]:focus-visible{outline-color:#fff}
body a[href^="tel:"]:active{opacity:.8}
}

@media(max-width:760px){body .contact-call a[href^="tel:"]{display:flex;width:fit-content;margin:12px 0 24px}}

/* Forminator enquiry form styling, including popup embeds. */
body .forminator-ui.forminator-custom-form{padding:28px;background:#fff;border:1px solid #dfe3e5;border-radius:5px}
body .forminator-ui.forminator-custom-form .forminator-label{color:#1b2229!important;font-weight:600!important}
body .forminator-ui.forminator-custom-form .forminator-input,body .forminator-ui.forminator-custom-form .forminator-textarea{background:#fff!important;color:#1b2229!important;border:1px solid #aab4b9!important;border-radius:4px!important;font-size:16px!important}
body .forminator-ui.forminator-custom-form .forminator-textarea{min-height:150px}
body .forminator-ui.forminator-custom-form .forminator-button-submit{background:#b51e2c!important;color:#fff!important;border-radius:4px!important;min-height:48px;padding:13px 28px!important;font-weight:700!important}
body .forminator-ui.forminator-custom-form .forminator-input:focus,body .forminator-ui.forminator-custom-form .forminator-textarea:focus,body .forminator-ui.forminator-custom-form .forminator-button-submit:focus-visible{outline:2px solid #b51e2c!important;outline-offset:2px}
@media(max-width:600px){body .forminator-ui.forminator-custom-form{padding:20px}}

.social-links{display:flex;gap:12px;margin-top:18px}.footer .social-links a{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #74808a;border-radius:4px;color:#fff;text-decoration:none}.social-links svg{width:24px;height:24px;display:block}.footer .social-links a:hover{background:var(--red);border-color:var(--red)}.footer .social-links a:focus-visible{outline:2px solid #fff;outline-offset:4px}
