/* HTC Electrical – theme styles (front end + editor) */
:root{--htc-black:#0e0e0e;--htc-ink:#161616;--htc-off:#f4f4f2;--htc-grey:#5f5f5f;--htc-line:#e2e2e2;--htc-purple:#7952f5}
body{-webkit-font-smoothing:antialiased}
/* Keep pages scrollable: some plugins set html,body{overflow:hidden} on every page.
   Screens that belong to such a plugin (body.bsm-body) are left alone. */
html:not(:has(body.bsm-body)),body:not(.bsm-body){overflow:visible!important}
.wp-site-blocks>*{margin-block-start:0}
main.htc-main{margin-block-start:0}
main.htc-main>.entry-content>*:first-child,.htc-main .wp-block-post-content>*:first-child{margin-block-start:0}
.wp-block-post-content>.alignfull+.alignfull{margin-block-start:0}

/* ---------- header ---------- */
.htc-topbar{background:#000;color:#cfcfcf;font-size:.78rem;letter-spacing:.06em;padding-top:.55rem!important;padding-bottom:.55rem!important}
.htc-topbar p{margin:0}
.htc-topbar a{color:#cfcfcf;text-decoration:none}
.htc-topbar a:hover{color:#fff}
.htc-header{background:var(--htc-black);color:#fff;padding-top:1rem!important;padding-bottom:1rem!important;border-bottom:1px solid #222}
.htc-header-inner{gap:2rem}
.htc-brand{gap:.9rem}
.htc-brand .wp-block-site-logo img{border-radius:50%}
.htc-brand-text{margin:0;line-height:1.25;font-size:.68rem;letter-spacing:.32em;text-transform:uppercase;color:#bdbdbd}
.htc-brand-text strong{color:#fff;font-size:.95rem;letter-spacing:.16em;font-weight:700}
.htc-nav{font-size:.86rem;font-weight:500;letter-spacing:.04em;color:#fff;gap:1.8rem}
.htc-nav a{color:#fff;text-decoration:none;padding:.3rem 0;border-bottom:2px solid transparent}
.htc-nav a:hover,.htc-nav .current-menu-item>a,.htc-nav a[aria-current="page"]{border-bottom-color:var(--htc-purple);color:#fff}
.htc-nav .wp-block-navigation__responsive-container.is-menu-open{background:var(--htc-black)!important;color:#fff!important}
.htc-nav .wp-block-navigation__responsive-container-open svg,.htc-nav .wp-block-navigation__responsive-container-close svg{fill:#fff}
.htc-header-cta .wp-block-button__link{padding:.7rem 1.3rem;font-size:.75rem}

/* ---------- buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;color:var(--htc-black);border-color:var(--htc-black)}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--htc-black);color:#fff}
.htc-header .is-style-outline .wp-block-button__link,.wp-block-cover .is-style-outline .wp-block-button__link,.htc-cta .is-style-outline .wp-block-button__link{color:#fff;border-color:#fff}
.htc-header .is-style-outline .wp-block-button__link:hover,.wp-block-cover .is-style-outline .wp-block-button__link:hover{background:#fff;color:var(--htc-black)}
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link,.wp-block-button.is-style-light .wp-block-button__link{background:#fff;color:var(--htc-black);border-color:#fff}
.wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,.wp-block-button.is-style-light .wp-block-button__link:hover{background:var(--htc-purple);border-color:var(--htc-purple);color:#fff}

/* ---------- type helpers ---------- */
.htc-kicker{display:flex;align-items:center;gap:14px;font-size:.74rem;font-weight:500;letter-spacing:.28em;text-transform:uppercase;margin-bottom:.4rem!important}
.htc-kicker::before{content:"";width:34px;height:3px;background:var(--htc-purple);flex:0 0 34px}
.htc-kicker.is-light{color:#bdbdbd}
.htc-section-title{margin-top:.3rem!important;margin-bottom:2.6rem!important}
.htc-lead{font-size:1.08rem;line-height:1.8;color:var(--htc-grey)}
.htc-lead.is-light,.is-light{color:#d8d8d8}
.htc-muted{color:var(--htc-grey);font-size:.95rem;line-height:1.7}
.htc-small{font-size:.86rem;line-height:1.7}
.htc-narrow{max-width:760px;margin-left:max(0px,calc((100% - 1200px)/2))!important;margin-right:auto!important}
.htc-eyebrow{font-size:.76rem;font-weight:500;letter-spacing:.3em;text-transform:uppercase;color:#d0d0d0}
.htc-display{font-size:clamp(2.8rem,6.4vw,5.8rem)!important;line-height:.98!important;text-transform:uppercase;margin-top:1.2rem!important;margin-bottom:1.4rem!important}
.htc-tag{display:inline-block;font-size:.6rem;letter-spacing:.18em;font-weight:600;border:1px solid currentColor;padding:2px 7px;margin-left:8px;vertical-align:middle;text-transform:uppercase;opacity:.7}

/* ---------- photos ---------- */
.is-style-greyscale img,.wp-block-cover.is-style-greyscale .wp-block-cover__image-background{filter:grayscale(1)}
.htc-photo img{width:100%;height:100%;object-fit:cover;display:block}
.htc-card-photo img,.htc-gallery-photo img{aspect-ratio:4/3}
.htc-portrait img{aspect-ratio:4/5}
.htc-split .htc-photo img{aspect-ratio:1/1}
.htc-photo{margin:0}

/* ---------- covers / heroes ---------- */
.wp-block-cover.htc-home-hero .wp-block-cover__inner-container,.wp-block-cover.htc-page-hero .wp-block-cover__inner-container{color:#fff}
.htc-home-hero .wp-block-cover__inner-container>*{max-width:720px;margin-left:max(0px,calc((100% - 1200px)/2))!important;margin-right:auto!important}
.htc-home-hero .htc-lead{max-width:600px}
.htc-page-hero .wp-block-cover__inner-container>*{max-width:680px;margin-left:max(0px,calc((100% - 1200px)/2))!important;margin-right:auto!important}
.wp-block-cover.htc-home-hero,.wp-block-cover.htc-page-hero{padding-left:24px!important;padding-right:24px!important}
.htc-hero-title{text-transform:uppercase;margin-top:.6rem!important;margin-bottom:1.2rem!important;color:#fff}
.htc-crumb{font-size:.74rem;letter-spacing:.2em;text-transform:uppercase;color:#a9a9a9}
.htc-crumb a{color:#a9a9a9;text-decoration:none}
.htc-crumb a:hover{color:#fff}
.htc-simple-hero{background:var(--htc-black);color:#fff;padding-top:90px!important;padding-bottom:80px!important;position:relative}
.htc-simple-hero::after{content:"";position:absolute;left:0;right:0;bottom:40px;height:1px;background:rgba(255,255,255,.7)}

/* ---------- sections ---------- */
.htc-section{padding-top:clamp(64px,8vw,110px)!important;padding-bottom:clamp(64px,8vw,110px)!important}
.htc-section.is-off{background:var(--htc-off)}
.htc-split-head{align-items:flex-end!important;margin-bottom:2.8rem!important}
.htc-split-head .htc-section-title{margin-bottom:0!important}
.htc-split{align-items:center!important;gap:clamp(2rem,6vw,5rem)!important}

/* trust bar */
.htc-trust{background:#000;color:#fff;padding-top:0!important;padding-bottom:0!important}
.htc-trust-grid{gap:0!important}
.htc-trust-item{border-left:1px solid #2a2a2a;padding:30px 26px!important}
.htc-trust-item p{margin:0}
.htc-trust-item .htc-small{color:#a9a9a9}

/* service cards */
.htc-cards{gap:28px!important}
.htc-cards h3{margin-top:1.6rem!important;margin-bottom:.6rem!important}
.htc-more{font-size:.74rem;font-weight:600;letter-spacing:.24em;text-transform:uppercase}
.htc-more a{text-decoration:none;border-bottom:2px solid var(--htc-black);padding-bottom:4px}
.htc-more a:hover{border-color:var(--htc-purple);color:var(--htc-black)}

/* why / values */
.htc-why{gap:28px!important}
.htc-why-item{border-top:3px solid var(--htc-black);padding-top:24px!important}
.htc-why-item h4{margin:1rem 0 .5rem!important}
.htc-num{display:inline-block;background:var(--htc-black);color:#fff;font-weight:700;font-size:.8rem;padding:6px 10px;margin:0!important;line-height:1}

/* services list */
.htc-svc{gap:0 60px!important}
.htc-svc-item{position:relative;padding:22px 0 22px 44px!important;border-bottom:1px solid var(--htc-line)}
.htc-svc-item::before{content:"";position:absolute;left:0;top:24px;width:26px;height:26px;background:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13.5 1.5 4 13.5h6.5L9.5 22.5 20 9.5h-6.6z' fill='%230e0e0e'/></svg>")}
.htc-svc-item h4{margin:0 0 .2rem!important}
.htc-svc-item p{margin:0!important}

/* steps */
.htc-steps{gap:0!important;position:relative}
.htc-steps::before{content:"";position:absolute;left:0;right:0;top:28px;height:1px;background:var(--htc-black)}
.htc-step{padding-right:26px!important;position:relative}
.htc-step-num{width:56px;height:56px;border-radius:50%;border:2px solid var(--htc-black);background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.05rem;margin:0 0 1.4rem!important;position:relative;z-index:1}
.htc-section.is-off .htc-step-num{background:var(--htc-off)}
.htc-step h4{margin:0 0 .4rem!important}

/* gallery */
.htc-gallery{gap:24px!important}

/* directors */
.htc-director{align-items:center!important;gap:28px!important}
.htc-director h3{margin:0!important}
.htc-role{font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;color:var(--htc-grey);font-weight:500}

/* accreditations */
.htc-accred-section{padding-top:56px!important;padding-bottom:56px!important}
.htc-accred{gap:2rem!important}
.htc-accred-logos{gap:28px!important;align-items:center}
.htc-accred-logo img{height:96px;width:auto}
.htc-logo-placeholder{width:150px;height:96px;border:2px dashed #c9c9c9;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-weight:700;letter-spacing:.14em;line-height:1.3;color:#555;margin:0!important}
.htc-logo-placeholder span{font-size:.62rem;font-weight:400;letter-spacing:.12em;color:#8d8d8d;text-transform:uppercase}
.htc-logo-grid{gap:24px!important;max-width:760px;margin-top:2.4rem!important;margin-left:max(0px,calc((100% - 1200px)/2))!important;margin-right:auto!important}
.htc-logo-card{border:1px solid var(--htc-line);padding:32px!important;display:flex;flex-direction:column;align-items:center;text-align:center;gap:1rem}
.htc-logo-card .htc-accred-logo img{height:120px}
.htc-logo-card .htc-logo-placeholder{width:200px;height:120px}

/* qualifications */
.htc-quals{gap:24px!important}
.htc-qual-card{background:#fff;border:1px solid var(--htc-line);padding:30px 32px 30px 92px!important;position:relative}
.htc-qual-card::before{content:"";position:absolute;left:30px;top:30px;width:44px;height:44px;background:var(--htc-black) no-repeat center/22px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13.5 1.5 4 13.5h6.5L9.5 22.5 20 9.5h-6.6z' fill='%23ffffff'/></svg>")}
.htc-qual-card h4{margin:0 0 .4rem!important}
.htc-qual-card p{margin:0!important}

/* contact */
.htc-contact-cols{gap:48px!important;align-items:flex-start!important}
.htc-form-card{background:#fff;border-top:4px solid var(--htc-black);padding:48px!important}
.htc-form-card h2{font-size:2rem!important;margin-bottom:.2rem!important}
.htc-contact-card{background:var(--htc-black);color:#fff;padding:40px!important}
.htc-contact-card a{color:#fff;text-decoration:none}
.htc-contact-card a:hover{color:#c9b8ff}
.htc-contact-row{border-bottom:1px solid #2c2c2c;padding:16px 0!important}
.htc-contact-row p{margin:0!important}
.htc-label{font-size:.72rem;letter-spacing:.2em;color:#9b9b9b;text-transform:uppercase}
.htc-big{font-size:1.25rem;font-weight:600;margin-top:.3rem!important}
.htc-contact-card .htc-small{color:#cfcfcf}
.htc-contact-card .htc-small:last-child{margin-top:1.2rem!important}
.htc-contact-cols .htc-photo{margin-top:24px!important}
.htc-map img{width:100%;height:auto;display:block}

/* form */
.htc-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 20px;margin-top:2rem}
.htc-form .htc-field{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0}
.htc-form .htc-field.is-wide{grid-column:1/-1}
.htc-form label{font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase}
.htc-form input,.htc-form select,.htc-form textarea{width:100%;box-sizing:border-box;min-width:0;font:inherit;font-size:1rem;padding:14px 16px;border:1px solid #cfcfcf;background:#fff;border-radius:0;color:var(--htc-ink)}
.htc-form input:focus,.htc-form select:focus,.htc-form textarea:focus{outline:2px solid var(--htc-purple);outline-offset:0;border-color:var(--htc-purple)}
.htc-form textarea{min-height:150px;resize:vertical}
.htc-form .htc-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.htc-form button{grid-column:1/-1;justify-self:start;font:inherit;font-weight:600;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;background:var(--htc-black);color:#fff;border:2px solid var(--htc-black);padding:1rem 1.9rem;cursor:pointer}
.htc-form button:hover{background:var(--htc-purple);border-color:var(--htc-purple)}
.htc-form-msg{padding:14px 18px;margin-top:1.4rem;font-size:.95rem;border-left:4px solid var(--htc-black);background:var(--htc-off)}
.htc-form-msg.is-error{border-color:#b3261e}
.htc-form-msg.is-ok{border-color:var(--htc-purple)}

/* ---------- footer ---------- */
.htc-cta{background:var(--htc-black);color:#fff;padding-top:80px!important;padding-bottom:80px!important;position:relative;overflow:hidden}
.htc-cta::after{content:"";position:absolute;right:-140px;top:50%;width:420px;height:420px;border:1px solid rgba(255,255,255,.16);border-radius:50%;transform:translateY(-50%);pointer-events:none}
.htc-cta-cols{align-items:center!important}
.htc-cta-title{color:#fff;text-transform:uppercase;font-size:clamp(2rem,4vw,2.9rem)!important;margin:.4rem 0 0!important}
.htc-cta-phone{font-size:clamp(2rem,4vw,3rem);font-weight:700;letter-spacing:.02em;text-align:right;margin:.2rem 0 1rem!important;line-height:1.1}
.htc-cta-phone a{color:#fff;text-decoration:none}
.htc-right{justify-content:flex-end}
.htc-right-buttons{justify-content:flex-end}
.htc-footer{background:#000;color:#cfcfcf;padding-top:72px!important;font-size:.92rem}
.htc-footer a{color:#cfcfcf;text-decoration:none}
.htc-footer a:hover{color:#fff}
.htc-footer-cols{gap:50px!important;padding-bottom:56px}
.htc-footer-logo img{width:110px;height:auto}
.htc-footer-head{color:#fff;font-size:.74rem;letter-spacing:.26em;font-weight:600;text-transform:uppercase;margin-bottom:.9rem!important}
.htc-footer-cols p:not(.htc-footer-head){line-height:2}
.htc-footer-base{border-top:1px solid #2a2a2a;padding-top:22px!important;padding-bottom:22px!important;font-size:.76rem;color:#8d8d8d;gap:1rem}
.htc-footer-base p{margin:0}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .htc-why,.htc-steps,.htc-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .htc-steps::before{display:none}
  .htc-step{padding-bottom:28px!important}
  .htc-topbar-inner p:first-child{display:none}
}
@media (max-width:781px){
  .htc-why,.htc-steps,.htc-svc,.htc-quals,.htc-logo-grid{grid-template-columns:1fr!important}
  .htc-trust-grid{grid-template-columns:1fr 1fr!important}
  .htc-form{grid-template-columns:1fr}
  .htc-form-card,.htc-contact-card{padding:28px!important}
  .htc-cta-phone,.htc-right,.htc-right-buttons{text-align:left;justify-content:flex-start}
  .htc-accred{flex-direction:column;align-items:flex-start!important}
  .htc-qual-card{padding-left:30px!important;padding-top:92px!important}
  .htc-brand-text{display:none}
}
