/*
Theme Name: CSTSC Workshop
Theme URI: https://www.cstsc.co.uk/
Author: JRGM Technical Services LLP
Description: Lightweight, compact workshop-first theme for Central Scotland Trailer Servicing Centre.
Version: 1.1.3
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cstsc-workshop
*/
:root{
 --navy:#101820;--navy2:#070b0f;--blue:#4a9de4;--blue2:#2379c4;--blue-soft:#e9f4fd;--ink:#15191d;
 --muted:#5d6770;--line:#d9e1e7;--paper:#fff;--soft:#f4f7f9;--green:#1d7a48;--danger:#a22d2d;
 --shadow:0 10px 28px rgba(8,26,43,.10);--radius:12px;--max:1180px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6}
img{max-width:100%;height:auto}a{color:var(--blue);text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:var(--navy)}
.cstsc-wrap{width:min(var(--max),calc(100% - 32px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(10,27,43,.97);color:#fff;border-bottom:3px solid var(--blue);backdrop-filter:blur(10px)}
.header-row{min-height:70px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;text-decoration:none;color:#fff;white-space:nowrap}.brand:hover{color:#fff}.brand-mark{display:inline-grid;place-items:center;background:var(--blue);color:#fff;font-weight:900;letter-spacing:.04em;height:42px;padding:0 12px;border-radius:5px;margin-right:10px}.brand-copy strong{display:block;font-size:15px;line-height:1.05}.brand-copy small{display:block;color:#cbd6df;font-size:11px}
.primary-nav{margin-left:auto}.primary-nav ul{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:4px}.primary-nav a{display:block;padding:10px 9px;color:#f3f6f8;text-decoration:none;font-size:14px;font-weight:650;border-radius:7px}.primary-nav a:hover{background:#17354e}
.header-call{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;font-weight:800;font-size:14px}.header-call span{color:#cbd6df;font-size:11px;font-weight:500;display:block}.nav-toggle{display:none;background:none;border:1px solid #4f6678;color:#fff;border-radius:7px;padding:7px 10px;font-size:18px}
.hero{position:relative;min-height:520px;display:grid;align-items:center;background:#0b1f30;overflow:hidden}.hero-media{position:absolute;inset:0}.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center 58%;filter:saturate(.78) contrast(1.04)}.hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,21,33,.94) 0%,rgba(6,21,33,.78) 48%,rgba(6,21,33,.35) 78%,rgba(6,21,33,.18))}
.hero-inner{position:relative;z-index:2;padding:70px 0;color:#fff}.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;font-weight:900;color:var(--blue);margin:0 0 8px}.hero h1{font-size:clamp(34px,5vw,62px);line-height:1.02;letter-spacing:-.035em;max-width:760px;margin:0 0 18px}.hero p{font-size:18px;max-width:680px;color:#e3e9ed;margin:0 0 26px}.button-row{display:flex;flex-wrap:wrap;gap:10px}.cstsc-button,.button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;border-radius:8px;font-weight:850;text-decoration:none;border:2px solid transparent;cursor:pointer}.cstsc-button{background:var(--blue);color:#fff}.cstsc-button:hover{background:#65afea;color:#fff}.button-secondary{border-color:#b7c6d1;color:#fff;background:rgba(255,255,255,.05)}.button-secondary:hover{background:#fff;color:var(--navy2)}
.trust-strip{background:var(--navy);color:#fff}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#365066}.trust-item{background:var(--navy);padding:14px 16px}.trust-item strong{display:block;font-size:14px}.trust-item span{font-size:12px;color:#c9d4dc}
.section{padding:62px 0}.section.soft{background:var(--soft)}.section.dark{background:var(--navy2);color:#fff}.section-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}.section-head h2{font-size:clamp(26px,3vw,38px);line-height:1.1;margin:0;letter-spacing:-.02em}.section-head p{max-width:620px;margin:0;color:var(--muted)}.dark .section-head p{color:#cbd5dd}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.service-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 16px rgba(13,34,51,.06);display:flex;flex-direction:column}.service-card-image{aspect-ratio:16/9;background:#dfe6eb;overflow:hidden}.service-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.service-card:hover .service-card-image img{transform:scale(1.025)}.service-card-body{padding:18px;display:flex;flex-direction:column;flex:1}.service-label{display:inline-block;align-self:flex-start;background:#eaf0f4;color:var(--navy);font-size:10px;font-weight:900;letter-spacing:.1em;padding:4px 7px;border-radius:5px;margin-bottom:8px}.service-card h3{margin:0 0 8px;font-size:20px;line-height:1.2}.service-card p{margin:0 0 14px;color:var(--muted);font-size:14px}.service-card .more{margin-top:auto;font-weight:800;text-decoration:none}
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center}.split img{border-radius:var(--radius);box-shadow:var(--shadow)}.checklist{list-style:none;padding:0;margin:18px 0}.checklist li{position:relative;padding:7px 0 7px 26px}.checklist li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:900}
.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.project-card{background:#142d42;border:1px solid #28455c;border-radius:var(--radius);overflow:hidden}.project-card img{width:100%;aspect-ratio:16/10;object-fit:cover}.project-card-body{padding:16px}.project-card h3{margin:0 0 7px;color:#fff;font-size:19px}.project-card p{margin:0 0 10px;color:#c9d5dd;font-size:14px}.project-card a{color:#ffc36e;font-weight:800;text-decoration:none}
.photo-proof{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.photo-proof figure{margin:0}.photo-proof img{width:100%;height:230px;object-fit:cover;border-radius:9px}.photo-proof figcaption{font-size:12px;color:var(--muted);padding-top:5px}
.page-hero{background:linear-gradient(135deg,var(--navy2),var(--navy));color:#fff;padding:52px 0 46px;border-bottom:3px solid var(--blue)}.page-hero .breadcrumbs{font-size:12px;color:#c7d2da;margin-bottom:12px}.page-hero .breadcrumbs a{color:#e7edf1}.page-hero h1{font-size:clamp(32px,4vw,50px);line-height:1.04;margin:0 0 12px;letter-spacing:-.03em}.page-hero p{max-width:760px;margin:0;color:#dbe4e9;font-size:17px}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:38px;padding:48px 0 68px}.entry-content{min-width:0}.entry-content>p:first-child,.cstsc-lead{font-size:19px;color:#34424c}.entry-content h2,.cstsc-copy-section h2{font-size:27px;line-height:1.18;margin:36px 0 10px}.entry-content h3{font-size:21px}.entry-content p{margin:0 0 16px}.cstsc-copy-section{margin-bottom:34px}
.sidebar-card{border:1px solid var(--line);border-radius:var(--radius);padding:19px;background:var(--soft);margin-bottom:16px}.sidebar-card h2,.sidebar-card h3{margin-top:0;font-size:18px}.sidebar-card p{font-size:14px}.sidebar-card .cstsc-button{width:100%}
.cstsc-faq-list details{border-top:1px solid var(--line);padding:0}.cstsc-faq-list details:last-child{border-bottom:1px solid var(--line)}.cstsc-faq-list summary{cursor:pointer;font-weight:800;padding:14px 4px}.cstsc-faq-list details div{padding:0 4px 12px;color:var(--muted)}
.cstsc-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:22px 0}.cstsc-info-grid article{border:1px solid var(--line);border-radius:10px;padding:17px;background:#fff}.cstsc-info-grid article h2{font-size:19px;margin:0 0 7px}.cstsc-info-grid article p{margin:0;color:var(--muted)}
.project-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0 32px}.project-gallery figure{margin:0}.project-gallery img{width:100%;height:390px;object-fit:cover;border-radius:9px}
.archive-intro{padding:44px 0 10px}.archive-intro h1{font-size:42px;letter-spacing:-.03em;margin:0 0 10px}.archive-intro p{max-width:760px;color:var(--muted)}
.cstsc-form{max-width:820px}.cstsc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cstsc-form label{display:block;font-weight:700;font-size:14px;margin-bottom:14px}.cstsc-form input,.cstsc-form textarea,.cstsc-form select{width:100%;border:1px solid #b9c4cc;border-radius:7px;padding:11px;background:#fff;color:var(--ink);font:inherit;margin-top:5px}.cstsc-form input:focus,.cstsc-form textarea:focus,.cstsc-form select:focus{outline:3px solid rgba(30,93,143,.2);border-color:var(--blue)}.cstsc-consent{font-weight:500!important}.cstsc-consent input{width:auto;margin-right:7px}.cstsc-hp{position:absolute!important;left:-9999px!important}.cstsc-form-message{padding:12px 14px;border-radius:7px;margin-bottom:16px}.cstsc-form-message.success{background:#e8f5ed;color:#165d36}.cstsc-form-message.error{background:#f9e7e7;color:#7a2020}
.site-footer{background:#081824;color:#d7e0e6;padding:44px 0 24px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}.site-footer h2,.site-footer h3{color:#fff;font-size:15px;margin-top:0}.site-footer p,.site-footer li{font-size:13px;color:#bdcad3}.site-footer ul{list-style:none;padding:0}.site-footer a{color:#e6edf1}.footer-bottom{border-top:1px solid #284052;margin-top:28px;padding-top:18px;font-size:12px;color:#9caeb9;display:flex;justify-content:space-between;gap:20px}
.mobile-cta{display:none}
@media(max-width:950px){.primary-nav{display:none;position:absolute;top:70px;left:0;right:0;background:var(--navy2);padding:12px 16px}.primary-nav.open{display:block}.primary-nav ul{display:block}.primary-nav a{padding:11px}.nav-toggle{display:block;margin-left:auto}.header-call{display:none}.service-grid,.project-grid{grid-template-columns:repeat(2,1fr)}.content-layout{grid-template-columns:1fr}.split{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.photo-proof{grid-template-columns:1fr 1fr}}
@media(max-width:650px){body{padding-bottom:64px}.cstsc-wrap{width:min(var(--max),calc(100% - 22px))}.brand-copy strong{font-size:13px}.brand-copy small{display:none}.brand-mark{height:38px}.hero{min-height:500px}.hero-inner{padding:56px 0}.hero h1{font-size:38px}.hero p{font-size:16px}.trust-grid{grid-template-columns:1fr 1fr}.section{padding:44px 0}.section-head{display:block}.section-head p{margin-top:10px}.service-grid,.project-grid,.cstsc-info-grid,.cstsc-form-grid{grid-template-columns:1fr}.photo-proof{grid-template-columns:1fr 1fr}.photo-proof img{height:150px}.project-gallery{grid-template-columns:1fr}.project-gallery img{height:auto}.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}.mobile-cta{position:fixed;z-index:60;bottom:0;left:0;right:0;height:64px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}.mobile-cta a{display:grid;place-items:center;border-radius:7px;text-decoration:none;font-weight:900}.mobile-cta .call{background:var(--navy);color:#fff}.mobile-cta .quote{background:var(--blue);color:#fff}}

.brand-logo{display:block;width:245px;max-width:31vw;height:54px;object-fit:contain;object-position:left center;background:#fff;border-radius:5px;padding:4px 8px}
.footer-logo{display:block;width:290px;max-width:100%;height:auto;background:#fff;border-radius:5px;padding:6px;margin-bottom:14px}
.trailer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.trailer-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 16px rgba(13,34,51,.06);display:flex;flex-direction:column}.trailer-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.trailer-card-body{padding:18px;display:flex;flex-direction:column;flex:1}.trailer-card h3{margin:0 0 8px;font-size:20px;line-height:1.2}.trailer-card p{margin:0 0 14px;color:var(--muted);font-size:14px}.trailer-brand{font-size:10px;font-weight:900;letter-spacing:.11em;color:var(--blue2);text-transform:uppercase;margin-bottom:7px}.stock-note{font-size:12px;color:var(--muted);font-style:italic}.cstsc-independence{padding:17px;border-left:4px solid var(--blue);background:var(--blue-soft)}
@media(max-width:950px){.trailer-grid{grid-template-columns:repeat(2,1fr)}.brand-logo{max-width:none;width:210px;height:50px}}
@media(max-width:650px){.trailer-grid{grid-template-columns:1fr}.brand-logo{width:180px;height:46px}.header-row{gap:10px}}

/* v1.1 compact CSTSC brand treatment derived from the supplied logo artwork */
.brand{gap:9px;min-width:270px}.brand-symbol{width:68px;height:48px;object-fit:contain;background:#fff;border-radius:5px;padding:2px}.brand-wording{display:block;line-height:1}.brand-wording strong{display:block;color:var(--blue);font-size:31px;font-weight:950;letter-spacing:-.035em}.brand-wording small{display:block;color:#fff;font-size:10px;font-weight:750;white-space:nowrap;margin-top:2px}.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px}.footer-brand img{width:92px;height:62px;object-fit:contain;background:#fff;border-radius:5px}.footer-brand strong{display:block;color:var(--blue);font-size:34px;line-height:1;font-weight:950}.footer-brand span{display:block;color:#fff;font-size:12px;font-weight:750;max-width:210px;line-height:1.2}.brand-logo,.footer-logo{display:none!important}
@media(max-width:1120px){.brand{min-width:auto}.brand-symbol{width:58px;height:43px}.brand-wording strong{font-size:27px}.brand-wording small{font-size:9px}.primary-nav a{padding:10px 7px;font-size:13px}}
@media(max-width:650px){.brand-symbol{width:52px;height:40px}.brand-wording strong{font-size:25px}.brand-wording small{display:none}}


/* v1.1.1 — complete CSTSC logo and corrected blue-led identity */
:root{
 --blue:#4a9de4;
 --blue2:#2379c4;
 --blue-soft:#eaf5fe;
 --navy:#101820;
 --navy2:#070b0f;
 --steel:#64717c;
}
.brand{
 display:flex;
 align-items:center;
 min-width:310px;
 max-width:360px;
 padding:3px 0;
}
.brand-symbol,.brand-wording,.brand-logo{display:none!important}
.brand-full-logo{
 display:block;
 width:340px;
 max-width:34vw;
 height:62px;
 object-fit:contain;
 object-position:left center;
 background:#fff;
 border-radius:6px;
 padding:3px 7px;
}
.footer-brand,.footer-logo{display:none!important}
.footer-full-logo{
 display:block;
 width:360px;
 max-width:100%;
 height:auto;
 background:#fff;
 border-radius:6px;
 padding:6px;
 margin:0 0 16px;
}
.service-label,.trailer-brand{color:var(--blue2)}
.project-card a{color:#8fc7f2}
@media(max-width:1120px){
 .brand{min-width:260px;max-width:290px}
 .brand-full-logo{width:285px;max-width:30vw;height:56px}
}
@media(max-width:950px){
 .brand{min-width:240px;max-width:270px}
 .brand-full-logo{width:260px;max-width:none;height:54px}
}
@media(max-width:650px){
 .brand{min-width:0;max-width:220px}
 .brand-full-logo{width:210px;height:48px;padding:2px 5px}
}


/* v1.1.2 — corrected complete CSTSC logo
   Uses the untouched supplied logo and masks only the phone/web area.
   This preserves both trailer drawings, CSTSC lettering and full business name. */
.brand{
 display:flex;
 align-items:center;
 min-width:188px;
 max-width:188px;
 padding:6px 0;
}
.brand-full-logo{display:none!important}
.brand-logo-frame{
 position:relative;
 display:block;
 width:180px;
 aspect-ratio:2048/1330;
 overflow:hidden;
 background:#fff;
 border-radius:7px;
 flex:0 0 auto;
}
.brand-logo-frame img{
 display:block;
 width:100%;
 height:100%;
 object-fit:contain;
}
.brand-logo-mask{
 position:absolute;
 left:52.25%;
 top:0;
 width:47.75%;
 height:30.1%;
 background:#fff;
 pointer-events:none;
}
.footer-full-logo{display:none!important}
.footer-logo-frame{
 position:relative;
 display:block;
 width:300px;
 max-width:100%;
 aspect-ratio:2048/1330;
 overflow:hidden;
 background:#fff;
 border-radius:7px;
 margin:0 0 16px;
}
.footer-logo-frame img{
 display:block;
 width:100%;
 height:100%;
 object-fit:contain;
}
.footer-logo-mask{
 position:absolute;
 left:52.25%;
 top:0;
 width:47.75%;
 height:30.1%;
 background:#fff;
 pointer-events:none;
}

/* Header now allows the complete logo to retain its natural proportions. */
.header-row{
 min-height:126px;
}
@media(max-width:1120px){
 .brand{min-width:168px;max-width:168px}
 .brand-logo-frame{width:160px}
 .header-row{min-height:114px}
}
@media(max-width:950px){
 .brand{min-width:158px;max-width:158px}
 .brand-logo-frame{width:150px}
 .header-row{min-height:108px}
 .primary-nav{top:108px}
}
@media(max-width:650px){
 .brand{min-width:150px;max-width:150px}
 .brand-logo-frame{width:145px}
 .header-row{min-height:104px;gap:10px}
 .primary-nav{top:104px}
}


/* v1.1.3 — transparent CSTSC logo treatment */
.brand{
 display:flex;
 align-items:center;
 min-width:220px;
 max-width:300px;
 padding:8px 0;
}
.brand-logo-transparent{
 display:block;
 width:285px;
 max-width:30vw;
 height:72px;
 object-fit:contain;
 object-position:left center;
 background:transparent;
}
.brand-logo-frame,.brand-full-logo{display:none!important}

.footer-logo-transparent{
 display:block;
 width:320px;
 max-width:100%;
 height:auto;
 background:transparent;
 margin:0 0 16px;
}
.footer-logo-frame,.footer-full-logo{display:none!important}

/* Gives the blue logo some breathing room without a white box */
.site-header .brand-logo-transparent{
 filter:drop-shadow(0 1px 0 rgba(255,255,255,.05));
}

@media(max-width:1120px){
 .brand{min-width:200px;max-width:250px}
 .brand-logo-transparent{width:240px;height:66px;max-width:27vw}
}
@media(max-width:950px){
 .brand{min-width:190px;max-width:220px}
 .brand-logo-transparent{width:210px;height:62px;max-width:none}
}
@media(max-width:650px){
 .brand{min-width:170px;max-width:185px}
 .brand-logo-transparent{width:180px;height:58px;max-width:none}
}
