/*
Theme Name: C&T Smart Energy
Theme URI: https://ctgroup.wales/
Author: C&T website staging build
Description: Responsive C&T Smart Energy theme based on the November 2026 approved design handover.
Version: 0.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ct-smart
*/
:root{--teal:#003D40;--teal-hover:#002C2F;--gold:#D4A029;--gold-hover:#C39120;--warm:#F7F5F0;--ink:#102A2E;--muted:#53676B;--line:#D5DDDB;--focus:#176AD5;--radius:12px;--max:1200px}*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Manrope,system-ui,'Segoe UI',sans-serif;color:var(--ink);font-size:16px;line-height:1.65;background:#fff}a{color:var(--teal)}a:hover{text-decoration-thickness:2px}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}img{display:block;max-width:100%;height:auto}h1,h2,h3,h4{line-height:1.13;letter-spacing:-.035em;color:var(--teal);margin:0 0 .7em}h1{font-size:clamp(2.45rem,4.5vw,4.8rem);font-weight:800}h2{font-size:clamp(2rem,3vw,3.15rem);font-weight:800}h3{font-size:1.36rem;font-weight:800}p{margin:0 0 1.25rem}.ct-container{max-width:var(--max);margin-inline:auto;padding-inline:26px}.ct-section{padding:clamp(64px,8vw,112px) 0}.ct-section.warm{background:var(--warm)}.ct-section.dark{background:var(--teal);color:#fff}.ct-section.dark h2,.ct-section.dark h3{color:#fff}.ct-section.dark a:not(.ct-btn){color:#fff}.ct-eyebrow{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:#8b6614;margin-bottom:18px}.dark .ct-eyebrow{color:#f4d080}.ct-lede{font-size:clamp(1.1rem,1.5vw,1.28rem);max-width:690px;color:var(--muted)}.dark .ct-lede{color:#d9e9e5}.ct-btn{min-height:52px;display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;border:0;border-radius:7px;text-decoration:none;line-height:1.3;font-size:.95rem;font-weight:800;cursor:pointer;transition:background .16s ease-out;white-space:normal;text-align:center}.ct-btn-primary{background:var(--gold);color:var(--ink)!important}.ct-btn-primary:hover{background:var(--gold-hover)}.ct-btn-secondary{background:var(--teal);color:#fff!important}.ct-btn-secondary:hover{background:var(--teal-hover)}.ct-btn-outline{background:transparent;border:1px solid currentColor;color:inherit}.ct-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.ct-header{background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:50}.ct-header-inner{display:flex;align-items:center;gap:30px;min-height:92px}.ct-brand{display:flex;align-items:center;text-decoration:none;gap:12px;min-width:200px}.ct-logo{display:flex;align-items:center;justify-content:center;background:var(--teal);border-radius:7px;color:#fff;width:57px;height:54px;font-weight:800;font-size:22px;line-height:1}.ct-brand-name{font-weight:800;color:var(--teal);font-size:15px;line-height:1.2;letter-spacing:.02em}.ct-brand-name small{font-size:10px;display:block;color:var(--muted);letter-spacing:.1em}.ct-menu{display:flex;align-items:center;gap:8px;flex:1;justify-content:flex-end}.ct-nav-link,.ct-menu-toggle{background:none;border:0;color:var(--ink);font:700 .88rem Manrope,system-ui,sans-serif;text-decoration:none;padding:16px 10px;cursor:pointer}.ct-nav-link[aria-current=page]{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:7px}.ct-nav-group{position:relative}.ct-dropdown{position:absolute;top:calc(100% + 12px);left:0;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px #102a2e1f;padding:16px;border-radius:12px;min-width:250px;max-height:75vh;overflow-y:auto}.ct-dropdown[hidden],.ct-mobile[hidden],.ct-dialog[hidden]{display:none!important}.ct-dropdown a{display:block;padding:10px 12px;color:var(--ink);text-decoration:none;font-weight:600}.ct-dropdown a:hover{background:var(--warm)}.ct-dropdown small{display:block;color:var(--muted);font-size:12px;padding:8px 12px}.ct-hamburger{display:none;background:transparent;border:1px solid var(--line);border-radius:8px;padding:12px;min-width:48px;min-height:48px;cursor:pointer}.ct-mobile{position:fixed;z-index:99;inset:0;background:#fff;overflow:auto;padding:24px}.ct-mobile-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.ct-mobile a{display:block;padding:13px 9px;color:var(--ink);text-decoration:none;min-height:48px}.ct-mobile details{border-bottom:1px solid var(--line)}.ct-mobile summary{cursor:pointer;padding:15px 9px;font-weight:800}.ct-mobile .ct-mobile-sub{padding-left:18px}.ct-hero{display:grid;grid-template-columns:1fr 1fr;min-height:580px;max-width:1600px;margin:auto}.ct-hero-copy{padding:clamp(55px,7vw,105px) clamp(28px,5vw,90px);display:flex;flex-direction:column;justify-content:center;background:var(--warm)}.ct-hero-copy p{max-width:570px;font-size:1.12rem}.ct-hero-media{overflow:hidden;min-height:460px}.ct-hero-media picture,.ct-hero-media img{width:100%;height:100%;object-fit:cover}.ct-hero-media img{aspect-ratio:1/1}.ct-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.ct-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;color:var(--ink)}.ct-card:hover{border-color:#788b8d}.ct-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.ct-card-body{padding:27px}.ct-card-body p{color:var(--muted)}.ct-card a:not(.ct-btn){font-weight:800;text-underline-offset:4px}.ct-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,6vw,90px);align-items:center}.ct-split img{width:100%;border-radius:var(--radius);aspect-ratio:4/3;object-fit:cover}.ct-stat-strip{background:var(--teal);color:#fff;padding:24px 0}.ct-stat-strip .ct-container{display:flex;gap:35px;flex-wrap:wrap;justify-content:space-between}.ct-stat-strip span{font-weight:700}.ct-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}.ct-step-number{display:inline-grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--gold);font-weight:800;margin-bottom:18px}.ct-faqs{max-width:830px;margin:auto}.ct-faqs details{border-bottom:1px solid var(--line);padding:3px 0}.ct-faqs summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:65px;font-weight:800;color:var(--teal);padding:13px 0;gap:20px}.ct-faqs summary::-webkit-details-marker{display:none}.ct-faqs summary:after{content:'+';font-size:25px}.ct-faqs details[open] summary:after{content:'−'}.ct-faqs details p{padding:0 0 15px;color:var(--muted)}.ct-form-wrap{max-width:750px;margin:auto}.ct-enquiry-form{background:white;border:1px solid var(--line);border-radius:12px;padding:clamp(22px,4vw,40px);color:var(--ink)}.ct-enquiry-form h3{font-size:1.75rem}.ct-form-intro,.ct-form-privacy{font-size:.89rem;color:var(--muted)}.ct-field{margin-bottom:19px}.ct-field label{display:block;font-weight:700;font-size:.92rem;margin-bottom:7px}.ct-field label span{font-weight:400;color:var(--muted)}.ct-field input,.ct-field select,.ct-field textarea{display:block;width:100%;min-height:49px;padding:12px 13px;border:1px solid #788B8D;border-radius:6px;background:white;color:var(--ink);font:inherit}.ct-field [aria-invalid=true]{border:2px solid #a12622}.ct-field-error{color:#a12622;font-size:.82rem}.ct-form-errors{color:#a12622;border-left:3px solid #a12622;padding:12px 15px;margin:15px 0}.ct-form-status{margin-top:10px}.ct-honey{position:absolute;left:-9999px}.ct-form-success{padding:25px;background:#e8f3f1;border-radius:8px}.ct-footer{background:#092c2e;color:#d5e5e3;padding:70px 0 25px}.ct-footer h3{font-size:1rem;color:#fff}.ct-footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:35px}.ct-footer a{color:#d5e5e3;display:block;margin:6px 0}.ct-footer-bottom{border-top:1px solid #ffffff3b;margin-top:48px;padding-top:25px;font-size:.83rem}.ct-modal-overlay{position:fixed;inset:0;z-index:100;background:#102a2e8c;display:grid;place-items:center;padding:20px}.ct-dialog{width:min(640px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:12px;position:relative}.ct-dialog .ct-enquiry-form{border:0}.ct-close{position:absolute;right:12px;top:10px;border:0;background:white;border-radius:5px;width:44px;height:44px;font-size:24px;cursor:pointer;z-index:2}.ct-empty{border:1px dashed var(--line);padding:38px;border-radius:12px}.screen-reader-text{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden;white-space:nowrap}body.ct-modal-open{overflow:hidden}
@media(max-width:1023px){.ct-menu,.ct-header-action{display:none}.ct-hamburger{display:inline-block;margin-left:auto}.ct-header-inner{min-height:76px}.ct-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:767px){.ct-container{padding-inline:20px}.ct-hero{grid-template-columns:1fr}.ct-hero-media{min-height:310px;max-height:440px;order:-1}.ct-hero-copy{padding:42px 25px 60px}.ct-grid,.ct-grid.two,.ct-split,.ct-steps{grid-template-columns:1fr}.ct-section{padding:65px 0}.ct-footer-grid{grid-template-columns:1fr 1fr}.ct-brand{min-width:0}.ct-hero-media img{aspect-ratio:4/3}.ct-stat-strip .ct-container{display:grid;gap:12px}}@media(max-width:420px){.ct-footer-grid{grid-template-columns:1fr}.ct-brand-name{font-size:12px}.ct-logo{width:47px;height:46px;font-size:18px}.ct-actions .ct-btn{width:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

[hidden]{display:none!important}

/* Dedicated homepage route into the separately styled solar funnel. */
.ct-bf-home-promo{background:#f8f7f1;color:#123c39;padding:55px 0}.ct-bf-home-grid{display:grid;grid-template-columns:1fr 0.86fr;gap:48px;align-items:center}.ct-bf-home-promo h2{font-size:clamp(35px,4vw,55px);line-height:1.1;max-width:720px;margin:18px 0}.ct-bf-home-promo h2 span{border-bottom:7px solid #f6c64e}.ct-bf-home-promo p{font-size:18px;line-height:1.6}.ct-bf-badge{display:inline-flex;background:#e2eee6;border-radius:40px;padding:9px 16px;font-size:12px;font-weight:800;letter-spacing:.11em}.ct-bf-home-button{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;background:#f6c64e;color:#173c35!important;text-decoration:none!important;padding:16px 23px;min-height:56px;border-radius:9px;font-weight:800}.ct-bf-home-small{font-size:13px!important;color:#64736e}.ct-bf-home-image img{width:100%;max-height:420px;object-fit:cover;border-radius:100px 16px 100px 16px}@media(max-width:700px){.ct-bf-home-grid{grid-template-columns:1fr}.ct-bf-home-image img{max-height:270px}}

/* 2026 readability and contrast refinements. Background variants must explicitly set foreground text. */
.ct-section.dark,.ct-section.dark p,.ct-section.dark li,.ct-section.dark .ct-lede{color:#f5f9f7}
.ct-section.dark .ct-card,.ct-section.dark .ct-card h3,.ct-section.dark .ct-card p{color:#102a2e}
.ct-section.dark .ct-card a:not(.ct-btn){color:#003d40}
.ct-section.dark .ct-card .ct-card-body p{color:#465b5d}
.ct-section.dark .ct-eyebrow{color:#ffe09a}
.ct-section.warm,.ct-section.warm p,.ct-section.warm h1,.ct-section.warm h2,.ct-section.warm h3{color:#123c39}
.ct-section.warm .ct-lede,.ct-section.warm .ct-card p{color:#40565a}
.ct-hero-copy,.ct-hero-copy h1,.ct-hero-copy p{color:#123c39}
.ct-bf-home-promo,.ct-bf-home-promo h2,.ct-bf-home-promo p{color:#123c39}
.ct-bf-home-promo .ct-bf-home-small{color:#40565a}
.ct-work-intro{background:#fffefa}.ct-work-intro .ct-btn-outline{color:#003d40;border-color:#003d40}
.ct-work-card{display:flex;flex-direction:column}.ct-work-card .ct-card-body{display:flex;flex-direction:column;flex:1}.ct-work-card .ct-card-body a{margin-top:auto}
.ct-work-cta h2{color:#fff}
.ct-enquiry-form label,.ct-enquiry-form h3{color:#123c39}.ct-form-privacy,.ct-form-intro{color:#40565a}
@media(forced-colors:active){.ct-btn,.ct-card,.ct-field input{border:1px solid CanvasText}}
