/* Theme Name: Certified HVAC Ltd — Commercial First
Theme URI: https://certifiedhvac.co.uk/
Author: Certified HVAC Ltd
Description: Six-page commercial-first website for Certified HVAC Ltd.
Version: 4.7.0
Text Domain: certified-hvac
*/
:root{--black:#101010;--orange:#f58220;--red:#e34234;--white:#fff;--ink:#202020;--muted:#666;--soft:#f4f4f2;--line:#dedede;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.65;background:#fff}a{color:inherit}img{max-width:100%;height:auto;display:block}.wrap{width:min(var(--max),calc(100% - 40px));margin:auto}.topbar{background:#090909;color:#eee;font-size:13px;padding:8px 0}.topbar .wrap{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.topbar a{text-decoration:none;color:#fff}.site-header{background:#111;color:white;position:sticky;top:0;z-index:20;border-bottom:4px solid #e31e24}.head-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:30px}.logo{width:180px;max-height:120px;object-fit:contain}.nav{display:flex;gap:24px;align-items:center}.nav a{text-decoration:none;font-size:13px;font-weight:800;letter-spacing:.04em;color:white}.nav a:hover,.nav a.current{color:var(--orange)}.menu-toggle{display:none;background:var(--orange);border:0;padding:10px 14px;font-weight:bold}.hero{background:linear-gradient(90deg,rgba(0,0,0,.92),rgba(0,0,0,.68)),url('assets/images/plant-room-hero.png') center/cover;color:#fff;padding:105px 0 95px}.eyebrow{color:var(--orange);font-weight:800;text-transform:uppercase;letter-spacing:.16em;font-size:13px}.hero h1{font-size:clamp(38px,5.2vw,66px);line-height:1.04;max-width:760px;margin:12px 0 18px;text-transform:uppercase}.hero p{font-size:19px;max-width:690px;color:#eee}.btn{display:inline-block;background:var(--orange);color:#111;text-decoration:none;padding:13px 22px;font-size:13px;font-weight:900;letter-spacing:.06em;margin:12px 10px 0 0;border:2px solid var(--orange)}.btn.outline{background:transparent;color:#fff;border-color:#fff}.btn:hover{background:var(--red);border-color:var(--red);color:white}.brandline{background:var(--orange);color:#111;text-align:center;padding:16px;font-weight:900;letter-spacing:.12em;font-size:18px;border-bottom:5px solid #e31e24}.brandline span{color:#e31e24;padding:0 8px}.strip{background:#171717;color:#fff;padding:18px 0;text-align:center;font-weight:800;font-size:13px;letter-spacing:.08em}.section{padding:76px 0}.section.soft{background:var(--soft)}.section.dark{background:#111;color:#fff}.section h2{font-size:clamp(28px,3vw,40px);line-height:1.15;text-transform:uppercase;margin:0 0 15px}.lead{font-size:18px;color:var(--muted);max-width:790px}.dark .lead{color:#ddd}.accent{width:62px;height:4px;background:var(--red);margin:20px 0 26px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:32px}.card{background:#fff;border:1px solid var(--line);box-shadow:0 8px 25px rgba(0,0,0,.05);overflow:hidden}.card img{width:100%;height:190px;object-fit:cover}.card-body{padding:22px}.card h3{font-size:18px;line-height:1.25;text-transform:uppercase;margin:0 0 10px}.price{font-weight:900;color:#111;font-size:19px;border-left:4px solid var(--orange);padding-left:12px;margin:15px 0}.price small{display:block;font-size:12px;font-weight:500;color:var(--muted)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}.feature-img{width:100%;max-height:470px;object-fit:cover}.list{padding-left:20px}.list li{margin:5px 0}.commercial-list{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-top:30px}.service{background:#1c1c1c;border-top:3px solid var(--orange);padding:26px;color:#fff}.service h3{margin:0 0 12px;text-transform:uppercase}.service p{color:#ddd}.service img{width:100%;height:210px;object-fit:cover;margin:0 0 18px}.page-hero{background:#111;color:#fff;padding:55px 0;border-bottom:4px solid var(--orange)}.page-hero h1{font-size:42px;text-transform:uppercase;margin:0}.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:45px}.contact-panel{background:#111;color:#fff;padding:30px}.contact-panel a{color:var(--orange)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{font-weight:700;font-size:14px}.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:12px;border:1px solid #bbb;margin-top:6px;font:inherit}.form-grid .full{grid-column:1/-1}.form-grid textarea{min-height:140px}.notice{padding:14px;background:#fff3e5;border-left:4px solid var(--orange);margin:15px 0}.footer{background:#090909;color:#ddd;padding:45px 0 22px}.footer-grid{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.footer a{color:#fff;text-decoration:none}.footer-nav{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.copyright{border-top:3px solid #e31e24;margin-top:30px;padding-top:18px;font-size:12px;color:#aaa}.cta{background:var(--orange);color:#111;padding:42px 0}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:25px}.cta h2{margin:0;text-transform:uppercase}.cta .btn{background:#111;color:#fff;border-color:#111}.small-note{font-size:13px;color:#666}.success{padding:15px;background:#eaf7ed;border-left:4px solid #248447;margin-bottom:20px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.chv-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important;background:#f58220!important;color:#101010!important;text-decoration:none!important;padding:14px 24px!important;border:2px solid #f58220!important;border-radius:0!important;font-size:13px!important;font-weight:900!important;letter-spacing:.06em!important;line-height:1.3!important;min-height:48px!important;margin:10px 12px 0 0!important;box-shadow:none!important}.chv-button:hover,.chv-button:focus{background:#e31e24!important;border-color:#e31e24!important;color:#fff!important}.chv-button-outline{background:transparent!important;color:#fff!important;border-color:#fff!important}.chv-button-dark{background:#111!important;color:#fff!important;border-color:#111!important}.credentials{background:#171717;color:#fff;padding:22px 0;border-bottom:4px solid #e31e24}.credentials .wrap{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}.credential-copy{display:flex;flex-direction:column;gap:4px;letter-spacing:.08em;font-size:13px}.credential-copy strong{color:#fff}.credential-copy span{color:#ddd}.credential-logos img{width:min(420px,100%);height:auto;object-fit:contain}.credentials .wrap{min-height:100px}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,1fr)}.nav{gap:13px}.nav a{font-size:11px}.logo{width:145px;max-height:100px}.commercial-list{gap:15px}}
@media(max-width:680px){.wrap{width:min(100% - 30px,var(--max))}.head-inner{min-height:72px}.menu-toggle{display:block}.nav{display:none;position:absolute;top:72px;left:0;right:0;background:#111;padding:18px 22px;flex-direction:column;align-items:flex-start;border-bottom:3px solid var(--orange)}.nav.open{display:flex}.nav a{font-size:14px}.hero{padding:75px 0}.hero p{font-size:17px}.section{padding:55px 0}.cards,.grid2,.commercial-list,.contact-grid{grid-template-columns:1fr}.card img{height:220px}.page-hero h1{font-size:34px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.cta-inner{display:block}.credentials .wrap{justify-content:center;text-align:center}.credential-logos img{margin:auto}.topbar .wrap{justify-content:center;text-align:center}}

/* Homepage correction pass 1.2 */
.hero-script{font-size:clamp(18px,2vw,24px)!important;font-weight:900!important;letter-spacing:.10em!important;text-transform:uppercase;color:#fff!important;margin:20px 0 12px!important}.hero-script span{color:#e31e24;padding:0 7px}.brandline{background:#101010!important;color:#fff!important;border-bottom:5px solid #e31e24!important}.brandline span{color:#e31e24!important}.credentials{border-bottom:4px solid #e31e24!important}.credential-logos{display:flex;align-items:center;justify-content:flex-end;max-width:440px}.credential-logos img{display:block!important;width:100%!important;max-width:420px!important;height:auto!important;object-fit:contain!important}.logo{width:220px;max-height:125px;object-fit:contain}

/* Certified HVAC button colour standard: every button is red with white text. */
.btn,.btn.outline,.chv-button,.chv-button-outline,.chv-button-dark,.menu-toggle,.cta .btn,
button[type="submit"],input[type="submit"]{
  background:#e31e24!important;
  color:#fff!important;
  border:2px solid #e31e24!important;
}
.btn:hover,.btn:focus,.chv-button:hover,.chv-button:focus,
.chv-button-outline:hover,.chv-button-dark:hover,.menu-toggle:hover,
button[type="submit"]:hover,input[type="submit"]:hover{
  background:#b9151b!important;
  color:#fff!important;
  border-color:#b9151b!important;
}


/* Certified HVAC Ltd — global red button standard (v1.5) */
body .btn, body .btn.outline, body a.btn, body a.chv-button, body .chv-button,
body .chv-button-outline, body .chv-button-dark, body .hero-actions a,
body .cta a.btn, body .cta a.chv-button, body .menu-toggle,
body button, body input[type="submit"], body input[type="button"],
body button[type="submit"], body .wp-block-button__link, body a.wp-element-button {
  background-color: #e31e24 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 2px solid #e31e24 !important;
  text-decoration: none !important;
}
body .btn:hover, body .btn:focus, body a.btn:hover, body a.chv-button:hover,
body .chv-button:hover, body .chv-button-outline:hover, body .chv-button-dark:hover,
body .hero-actions a:hover, body .cta a:hover, body .menu-toggle:hover,
body button:hover, body input[type="submit"]:hover, body input[type="button"]:hover,
body .wp-block-button__link:hover, body a.wp-element-button:hover {
  background-color: #b9151b !important;
  color: #ffffff !important;
  border-color: #b9151b !important;
}

/* Homepage leave-a-message form */
.homepage-message{background:#f4f4f2}.homepage-form{max-width:900px;margin-top:28px}.homepage-form label{display:block}.homepage-form textarea{min-height:150px}.homepage-form button{cursor:pointer}.success{padding:15px;background:#eaf7ed;border-left:4px solid #248447;margin:15px 0}

/* Commercial-first v1.9 layout and button consistency */
body .chv-button, body .btn, body .menu-toggle, body button[type=submit], body input[type=submit], body .wp-block-button__link {background:#e31e24!important;color:#fff!important;border:2px solid #e31e24!important}
body .chv-button:hover, body .btn:hover, body .menu-toggle:hover, body button[type=submit]:hover {background:#b9151b!important;color:#fff!important;border-color:#b9151b!important}
.nav a{white-space:normal}.commercial-hero{background-image:linear-gradient(90deg,rgba(0,0,0,.93),rgba(0,0,0,.60)),url('assets/images/plant-room-hero.png');background-position:center;background-size:cover}.commercial-lead{padding-top:65px}.commercial-lead .feature-img{max-height:520px;object-fit:cover}.commercial-list .service{min-height:170px}.price-card{display:block;color:inherit;text-decoration:none;transition:transform .2s ease}.price-card:hover{transform:translateY(-3px)}.price-card .card-body{height:100%}.price-card .price{margin-bottom:0}


/* Header refinements v2.1: orange strapline and contact details; clean ordered navigation. */
.topbar-service{color:var(--orange);font-weight:900;letter-spacing:.12em}
.topbar-contact,.topbar-contact a{color:var(--orange)!important;font-weight:800}
.topbar-contact a:hover{color:#fff!important}
.nav ul{display:contents;list-style:none;margin:0;padding:0}
.nav li{list-style:none;margin:0;padding:0}
.nav li::marker{content:""}
.nav{list-style:none}
@media(max-width:680px){.nav ul{display:flex;flex-direction:column;gap:13px;width:100%}.nav li{width:100%}}

/* v2.6: balanced six-card service and pricing grid */
.cards{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;max-width:100%;margin-left:auto;margin-right:auto}
.price-card{display:flex;flex-direction:column;height:100%}
.price-card>img{height:190px;flex:0 0 190px;object-fit:cover}
.price-card .card-body{display:flex;flex:1;flex-direction:column}
.price-card .price{margin-top:auto;padding-top:15px}
@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.cards{grid-template-columns:1fr}}

/* Pricing page: centred 3 x 2 desktop layout */
.pricing-page-cards{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1000px;margin-left:auto;margin-right:auto}
@media(max-width:900px){.pricing-page-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pricing-page-cards{grid-template-columns:1fr}}

/* v3.8: remove redundant homepage commercial capabilities panel; credentials logos retained. */

/* v3.9: use supplied commercial plant-room photograph on Plant Room Services card. */

/* v4.0: place the original Gas Safe and F-Gas credentials strip immediately below the homepage hero. */
.home .credentials{padding:24px 0;background:#111;border-top:0;border-bottom:4px solid #e31e24}
.home .credentials .wrap{min-height:112px;align-items:center}
.home .credential-copy{font-size:14px;line-height:1.6}
.home .credential-logos{width:min(440px,100%);max-width:440px}
.home .credential-logos img{width:100%!important;max-width:440px!important;height:auto!important;object-fit:contain!important}
@media(max-width:680px){.home .credentials{padding:20px 0}.home .credentials .wrap{gap:14px}.home .credential-logos{max-width:360px;width:100%;margin:0 auto}}


/* v4.2: tighter, more consistent desktop navigation spacing */
.head-inner{gap:20px}
.nav{flex:1;justify-content:flex-end;gap:clamp(10px,1vw,15px);min-width:0}
.nav a{font-size:12px;letter-spacing:.02em;line-height:1.35}
.logo{width:180px;flex:0 0 180px}
@media(max-width:900px){.head-inner{gap:16px}.nav{gap:10px}.nav a{font-size:11px;letter-spacing:0}}
@media(max-width:680px){.head-inner{gap:12px}.nav{flex:initial;justify-content:flex-start}}

/* v4.5: use the newly supplied photograph on the homepage only; keep commercial page imagery distinct. */
.home-hero{background-image:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.38)),url('assets/images/homepage-hero.png');background-position:center;background-size:cover}

/* v4.6: distinct commercial and domestic homepage feature sections. */
.home-feature-section .grid2{gap:54px;align-items:center}
.home-feature-section .feature-img{height:390px;max-height:390px;object-fit:cover}
.home-feature-section h2{max-width:620px}
.domestic-lead{background:#f4f4f2;color:#202020}
.domestic-lead .lead{color:#555}
.domestic-lead .eyebrow{color:#d95f12}
.home-feature-section .chv-button{margin-top:16px!important}
@media(max-width:680px){.home-feature-section .grid2{gap:25px}.home-feature-section .feature-img{height:250px;max-height:250px}.domestic-lead .grid2 img{order:0}}


/* v4.7: balanced desktop navigation — consistent spacing, clear logo separation, no awkward label wrapping. */
@media(min-width:901px){
  .head-inner{gap:26px;justify-content:flex-start}
  .logo{width:165px;flex:0 0 165px}
  .nav{flex:1;display:flex;align-items:center;justify-content:space-between;gap:clamp(8px,1vw,14px);min-width:0}
  .nav a{font-size:11px;letter-spacing:.01em;line-height:1.25;white-space:nowrap}
}
@media(min-width:901px) and (max-width:1120px){
  .head-inner{gap:18px}
  .logo{width:145px;flex-basis:145px}
  .nav{gap:8px}
  .nav a{font-size:10px;letter-spacing:0}
}
@media(min-width:681px) and (max-width:900px){
  .head-inner{gap:16px;flex-wrap:wrap;padding:12px 0}
  .logo{width:145px;flex:0 0 145px}
  .nav{flex:1;justify-content:space-between;gap:10px;flex-wrap:wrap}
  .nav a{font-size:10px;white-space:nowrap}
}
