/*
Theme Name: ST Compliance
Theme URI: https://stcompliance.co.uk/
Author: ST Compliance
Description: A professional, small-business-focused commercial maintenance and electrical compliance theme.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: st-compliance
*/
:root{--orange:#f36b21;--orange-dark:#dc5410;--ink:#202329;--muted:#626b76;--paper:#f4f5f6;--white:#fff;--dark:#17191c;--line:#e2e5e8;--max:1160px;--radius:12px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:Inter,Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}
a{color:inherit;text-decoration:none}
a:hover{opacity:.88}
img{max-width:100%;height:auto}
.container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:5}
.header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-weight:900;letter-spacing:-.04em;font-size:1.12rem}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:var(--orange);color:#fff;border-radius:7px;font-weight:950;font-size:1.18rem;letter-spacing:-.08em}
.brand small{display:block;color:var(--muted);font-size:.58rem;letter-spacing:.11em;text-transform:uppercase;font-weight:750;line-height:1.2}
.nav{display:flex;align-items:center;gap:27px;font-size:.9rem;font-weight:650}
.nav a:not(.button):hover{color:var(--orange)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;border-radius:5px;background:var(--orange);color:#fff;font-weight:800;border:1px solid var(--orange);transition:transform .18s ease,background .18s ease}
.button:hover{transform:translateY(-1px);background:var(--orange-dark);opacity:1}
.button-outline{background:transparent;color:var(--ink);border-color:var(--orange)}
.button-outline:hover{color:#fff}
.mobile-contact{display:none}
.hero{background:#f5f6f7;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:34px;min-height:420px}
.hero-copy-wrap{padding:66px 0 58px;align-self:center}
.eyebrow{display:flex;align-items:center;gap:12px;font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;font-weight:850;color:#4e5660;margin:0 0 19px}
.eyebrow:before{content:"";width:25px;height:3px;background:var(--orange);flex:none}
.hero h1{font-size:clamp(2.65rem,4.6vw,4.35rem);line-height:1.03;letter-spacing:-.065em;margin:0 0 22px;max-width:640px;color:var(--ink)}
.hero h1 span{color:var(--orange)}
.hero-copy{font-size:1.04rem;line-height:1.7;color:#515a64;max-width:560px;margin:0 0 27px}
.hero-actions{display:flex;flex-wrap:wrap;gap:10px}
.hero-image{min-height:420px;position:relative;overflow:hidden;background:#d7dce0 url(https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=85) center/cover no-repeat}
.hero-image:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(18,22,27,.58),transparent 55%)}
.hero-points{position:absolute;left:20px;right:20px;bottom:20px;background:rgba(20,23,27,.91);color:#fff;padding:17px 20px;display:flex;gap:20px;justify-content:space-around;border-radius:7px}
.hero-point{display:flex;align-items:center;gap:8px;font-size:.8rem;font-weight:750;line-height:1.3}
.hero-point b{font-size:1.25rem;color:var(--orange)}
.trust-strip{background:#fff;border-bottom:1px solid var(--line)}
.trust-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;padding:20px 0}
.trust-item{display:flex;align-items:center;gap:10px;color:#363c43;font-weight:750;font-size:.86rem}
.trust-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:#fff0e8;color:var(--orange);font-weight:900;flex:none}
.section{padding:76px 0}
.section-soft{background:var(--paper)}
.section-dark{background:var(--dark);color:#fff}
.section-head{display:grid;grid-template-columns:1.15fr .85fr;gap:35px;align-items:end;margin-bottom:34px}
.section h2{font-size:clamp(1.95rem,3.25vw,2.8rem);line-height:1.1;letter-spacing:-.05em;margin:0;color:var(--ink)}
.section h2 span{color:var(--orange)}
.section-dark h2{color:#fff}
.section-head p,.intro-copy{font-size:1rem;color:var(--muted);margin:0;max-width:700px}
.section-dark .section-head p{color:#c8cbd0}
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.service-card{background:#f6f7f8;border:1px solid #f0f1f2;border-radius:8px;padding:24px;min-height:200px;display:flex;flex-direction:column;align-items:flex-start;transition:transform .18s ease,border-color .18s ease}
.service-card:hover{transform:translateY(-3px);border-color:#f6b18b}
.service-icon{display:grid;place-items:center;width:43px;height:43px;background:#fff0e8;border-radius:8px;color:var(--orange);font-size:1.45rem;margin-bottom:17px}
.service-card h3{font-size:1.08rem;line-height:1.25;margin:0 0 8px;color:var(--ink);letter-spacing:-.02em}
.service-card p{font-size:.9rem;color:var(--muted);margin:0 0 17px}
.text-link{margin-top:auto;color:var(--ink);font-weight:800;font-size:.86rem}
.text-link span{color:var(--orange);padding-left:5px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}
.split-image{min-height:390px;border-radius:9px;background:#cdd2d6 url('https://images.unsplash.com/photo-1581092160562-40aa08e78837?auto=format&fit=crop&w=1200&q=85') center/cover no-repeat;position:relative;overflow:hidden}
.split-image:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(18,22,27,.22),transparent 65%)}
.feature-list{list-style:none;padding:0;margin:24px 0 28px;display:grid;gap:13px}
.feature-list li{display:flex;gap:11px;align-items:flex-start}
.check{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--orange);color:#fff;font-weight:900;flex:none;margin-top:2px;font-size:.78rem}
.feature-list strong{display:block;color:inherit;margin-bottom:1px}
.feature-list span.detail{display:block;color:var(--muted);font-size:.9rem}
.section-dark .feature-list span.detail{color:#c8cbd0}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.step{padding:25px 23px;border:1px solid rgba(255,255,255,.13);border-radius:8px;background:rgba(255,255,255,.035)}
.step-number{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--orange);color:#fff;font-weight:900;margin-bottom:18px}
.step h3{font-size:1.1rem;margin:0 0 8px}
.step p{color:#c8cbd0;margin:0;font-size:.92rem}
.sectors{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:28px}
.sector{text-align:center;font-size:.85rem;font-weight:750}
.sector b{display:block;color:var(--orange);font-size:1.65rem;margin-bottom:6px}
.cta-band{padding:47px 0;background:var(--orange);color:#fff}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:25px}
.cta-band h2{font-size:clamp(1.8rem,3vw,2.55rem);letter-spacing:-.05em;line-height:1.1;margin:0 0 8px;color:#fff}
.cta-band p{margin:0;color:#fff0e8;max-width:620px}
.cta-band .button{background:#fff;color:var(--ink);border-color:#fff;flex:none}
.site-footer{background:#17191c;color:#fff;padding:48px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:35px;padding-bottom:32px}
.footer-copy{max-width:360px;color:#c5c8cd;font-size:.9rem}
.footer-heading{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:#ff9a63;font-weight:850;margin:5px 0 13px}
.footer-links{display:grid;gap:8px;color:#d6d8dc;font-size:.9rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.13);padding-top:17px;display:flex;justify-content:space-between;gap:18px;color:#aeb3bb;font-size:.78rem}
.page-content{padding:60px 0;min-height:45vh}
@media(max-width:900px){
 .hero-grid{grid-template-columns:1fr;gap:0}
 .hero-copy-wrap{padding:52px 0 36px}
 .hero-image{min-height:330px;margin:0 -20px}
 .trust-inner{grid-template-columns:repeat(2,1fr)}
 .section-head{grid-template-columns:1fr;gap:16px}
 .services-grid{grid-template-columns:repeat(2,1fr)}
 .split{gap:30px}
 .split-image{min-height:320px}
 .footer-grid{grid-template-columns:1fr 1fr}
 .footer-grid>div:first-child{grid-column:1/-1}
}
@media(max-width:640px){
 .container{width:min(var(--max),calc(100% - 32px))}
 .header-inner{min-height:70px}
 .nav{display:none}
 .mobile-contact{display:inline-flex;padding:10px 12px;font-size:.83rem}
 .brand{font-size:1rem}
 .brand-mark{width:36px;height:36px}
 .brand small{font-size:.52rem}
 .hero-copy-wrap{padding:43px 0 30px}
 .hero h1{font-size:2.65rem}
 .hero-copy{font-size:.98rem}
 .hero-image{min-height:270px;margin:0 -16px}
 .hero-points{left:12px;right:12px;bottom:12px;padding:12px 10px;gap:10px}
 .hero-point{font-size:.68rem;gap:5px}
 .hero-point b{font-size:1rem}
 .trust-inner{gap:12px;padding:17px 0}
 .trust-item{font-size:.76rem;gap:7px}
 .trust-icon{width:28px;height:28px}
 .section{padding:55px 0}
 .services-grid,.steps{grid-template-columns:1fr}
 .service-card{min-height:0;padding:22px}
 .split{grid-template-columns:1fr}
 .split-image{min-height:260px}
 .sectors{grid-template-columns:repeat(2,1fr);gap:18px}
 .cta-inner{align-items:flex-start;flex-direction:column}
 .footer-grid{grid-template-columns:1fr;gap:25px}
 .footer-grid>div:first-child{grid-column:auto}
 .footer-bottom{flex-direction:column;gap:8px}
}


/* Refinements: more natural proportions and careful small-screen layout */
body{font-size:16px;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
.hero-copy-wrap{max-width:620px}
.hero h1{font-weight:800;letter-spacing:-.055em}
.eyebrow{letter-spacing:.075em}
.button{font-size:.94rem}
.service-card{box-shadow:0 1px 2px rgba(18,25,33,.025)}
.service-card:hover{box-shadow:0 7px 20px rgba(18,25,33,.06)}
@media (max-width: 640px){
  .container{width:calc(100% - 32px)}
  .header-inner{gap:10px}
  .brand{gap:7px;min-width:0}
  .brand-mark{width:34px;height:34px;flex:none;font-size:1rem}
  .brand span:last-child{font-size:.9rem}
  .brand small{font-size:.46rem;letter-spacing:.07em;white-space:normal;max-width:190px}
  .mobile-contact{white-space:nowrap;padding:9px 10px;font-size:.78rem}
  .hero-copy-wrap{padding:38px 0 28px}
  .eyebrow{font-size:.66rem;line-height:1.5;align-items:flex-start}
  .hero h1{font-size:clamp(2.25rem,10.2vw,3.05rem);line-height:1.035;letter-spacing:-.06em}
  .hero-copy{font-size:.96rem;line-height:1.65}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .hero-actions .button{width:100%;padding:12px 9px;font-size:.86rem;gap:5px}
  .hero-image{min-height:260px;background-position:center}
  .hero-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 9px}
  .hero-point{justify-content:center;font-size:.67rem;overflow-wrap:anywhere}
  .hero-point b{font-size:.95rem}
  .trust-inner{grid-template-columns:repeat(2,minmax(0,1fr))}
  .trust-item{align-items:flex-start;font-size:.76rem;line-height:1.35}
  .section{padding:48px 0}
  .section-head{margin-bottom:25px}
  .section h2{font-size:clamp(1.8rem,7.6vw,2.35rem);line-height:1.12}
  .section-head p,.intro-copy{font-size:.96rem;line-height:1.65}
  .services-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .service-card{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:13px;align-items:start;padding:18px}
  .service-icon{grid-row:1 / span 3;width:42px;height:42px;margin:0;font-size:1.25rem}
  .service-card h3{margin:2px 0 6px;font-size:1.03rem}
  .service-card p{margin:0 0 10px;font-size:.89rem;line-height:1.55}
  .text-link{font-size:.84rem}
  .split{gap:24px}
  .split-image{min-height:230px}
  .feature-list{gap:12px}
  .sectors{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}
  .sector{font-size:.8rem}
  .steps{gap:12px}
  .step{padding:20px}
  .cta-band{padding:38px 0}
  .cta-band .button{width:100%}
  .footer-grid{gap:24px}
  .footer-bottom{font-size:.74rem;overflow-wrap:anywhere}
}
@media (max-width: 360px){
  .container{width:calc(100% - 24px)}
  .brand small{max-width:145px;font-size:.42rem}
  .mobile-contact{padding:8px;font-size:.72rem}
  .hero h1{font-size:2.15rem}
  .hero-actions{grid-template-columns:1fr}
  .hero-points{left:8px;right:8px;bottom:8px}
  .hero-point{font-size:.61rem}
}


/* Anchor navigation: leave room for the header and land sections cleanly */
#services, #about, #sectors, #process, #contact { scroll-margin-top: 24px; }
html { scroll-behavior: smooth; }


/* Reliable section landing and focus styles */
#services, #about, #sectors, #process, #contact { scroll-margin-top: 18px; }
html { scroll-behavior: smooth; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
