/*
Theme Name: TeamTech4 Modern V2
Theme URI: https://teamtech4.co.uk/
Author: TeamTech4
Description: Native, consistent, SEO-plugin-friendly people-first WordPress theme.
Version: 2.7.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: teamtech4
*/
:root{--orange:#f15a29;--red:#eb1c23;--green:#37af48;--blue:#1475bc;--purple:#642b8f;--yellow:#fff200;--grey:#474244;--dark:#231f20;--bg:#fff;--alt:#f6f5f3;--card:#fff;--text:#302b2d;--muted:#6d6769;--line:rgba(35,31,32,.16);--head:rgba(255,255,255,.94);--grad:linear-gradient(120deg,var(--orange),var(--red),var(--purple));--radius:22px;--shadow:0 22px 58px rgba(35,31,32,.13);--max:1240px;color-scheme:light}html[data-theme=dark]{--bg:#171415;--alt:#211d1e;--card:#292425;--text:#f2eef0;--muted:#c7c0c3;--line:rgba(255,255,255,.15);--head:rgba(23,20,21,.94);color-scheme:dark}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:17px/1.65 "Proxima Nova","Segoe UI",Arial,sans-serif}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}h1,h2,h3{margin:0 0 1rem;color:var(--text);line-height:1.08}h1,h2{font-family:"Rushen Stencil","Arial Black",sans-serif;font-weight:400}h1{font-size:clamp(2.2rem,4.25vw,4rem)}h2{font-size:clamp(1.7rem,3vw,2.65rem)}h3{font-size:1.25rem}p{margin:0 0 1.15rem;color:var(--muted)}.container{width:min(calc(100% - 40px),var(--max));margin:auto}.narrow{max-width:850px}.screen-reader-text{position:absolute;left:-9999px}.eyebrow,.badge{display:inline-flex;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;font-weight:800}.eyebrow{color:var(--orange)}.badge{padding:.35rem .65rem;border-radius:99px;background:var(--yellow);color:var(--dark)}.button,input[type=submit],.wpforms-submit{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:.78rem 1.2rem!important;border:0!important;border-radius:12px!important;background:var(--grad)!important;color:#fff!important;font-weight:800!important;cursor:pointer}.button-outline{background:transparent!important;border:1px solid rgba(255,255,255,.42)!important}.top-contact,.footer-contact{background:var(--grad);color:#fff}.top-inner,.footer-contact-inner{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.contact-links,.social-links{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.top-contact a,.footer-contact a{color:#fff;font-weight:700}.social-link{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.42);border-radius:50%}.site-header{position:sticky;top:0;z-index:100;background:var(--head);backdrop-filter:blur(20px);border-bottom:1px solid var(--line)}.header-inner{min-height:80px;display:flex;align-items:center;gap:1rem}.custom-logo{max-height:52px;width:auto}.site-title{font-weight:900}.primary-navigation{margin-left:auto}.primary-menu{display:flex;gap:.2rem;list-style:none;padding:0;margin:0}.primary-menu>li{position:relative;padding-bottom:12px;margin-bottom:-12px}.primary-menu a{display:block;padding:.68rem .78rem;border-radius:10px;font-weight:700}.primary-menu a:hover{background:var(--alt)}.sub-menu{position:absolute;right:0;top:calc(100% - 2px);width:330px;list-style:none;padding:10px;margin:0;background:var(--card);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s}.menu-item-has-children:hover>.sub-menu,.menu-item-has-children:focus-within>.sub-menu,.sub-menu:hover{opacity:1;visibility:visible;transform:none}.sub-menu li{padding:0;margin:0}.theme-toggle,.menu-toggle{width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--text);cursor:pointer}.menu-toggle{display:none}.hero{position:relative;overflow:hidden;min-height:600px;display:flex;align-items:center;background:#171415 center/cover no-repeat}.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(23,20,21,.98),rgba(23,20,21,.88) 45%,rgba(23,20,21,.18) 82%,rgba(23,20,21,.05))}.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,720px) 1fr;gap:3rem;align-items:center}.hero h1,.hero p{color:#fff}.hero p{font-size:1.13rem;max-width:660px}.actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:2rem}.section{padding:clamp(65px,7.5vw,96px) 0}.section-alt{background:var(--alt)}.section-head{max-width:760px;margin-bottom:2.5rem}.grid{display:grid;gap:1rem}.problem-grid,.value-grid{grid-template-columns:repeat(4,1fr)}.service-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.post-grid,.hub-grid,.product-grid,.event-grid{grid-template-columns:repeat(3,1fr)}.card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);transition:.22s}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.card-inner{height:100%;padding:1.35rem;display:flex;flex-direction:column}.problem-card{min-height:300px;padding:1.55rem}.problem-icon{width:58px;height:58px;display:grid;place-items:center;margin-bottom:1.2rem;border:1px solid var(--line);border-radius:50%;background:var(--card)}.problem-icon img{width:31px;height:31px;object-fit:contain}.service-card{--accent:var(--orange);min-height:340px}.service-card:nth-child(2){--accent:var(--red)}.service-card:nth-child(3){--accent:var(--green)}.service-card:nth-child(4){--accent:var(--blue)}.service-card:nth-child(5){--accent:var(--grey)}.service-card:before,.value-card:before,.hub-card:before,.product-card:before,.event-card:before,.post-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--accent,var(--orange));z-index:1}.icon-hex{width:62px;aspect-ratio:1.1547;display:grid;place-items:center;margin-bottom:1.2rem;background:var(--accent);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}.icon-hex img{width:32px;height:32px;object-fit:contain}.icon-fallback{color:#fff;font-weight:900}.service-card h3{font-size:1.08rem}.service-card p{font-size:.91rem}.card-link{margin-top:auto;color:var(--accent,var(--orange));font-weight:800}.value-card{--accent:var(--orange)}.value-card:nth-child(2){--accent:var(--red)}.value-card:nth-child(3){--accent:var(--blue)}.value-card:nth-child(4){--accent:var(--green)}.value-icon{width:52px;aspect-ratio:1.1547;display:grid;place-items:center;margin-bottom:1rem;background:color-mix(in srgb,var(--accent) 18%,var(--card));color:var(--accent);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);font-weight:900}.post-card{--accent:var(--orange)}.post-card.cat-cyber-security{--accent:var(--red)}.post-card.cat-ai{--accent:var(--blue)}.post-card.cat-automation{--accent:var(--green)}.post-card.cat-microsoft{--accent:var(--purple)}.post-card img,.event-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.post-body,.event-body{padding:1.45rem;display:flex;flex-direction:column;height:calc(100% - 1px)}.page-hero{position:relative;overflow:hidden;min-height:380px;display:flex;align-items:center;background:#231f20 center/cover no-repeat}.page-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,31,32,.98),rgba(35,31,32,.82) 52%,rgba(35,31,32,.15))}.page-hero .container{position:relative;z-index:1}.page-hero h1,.page-hero p{color:#fff;max-width:760px}.content{padding:68px 0}.entry-content>*{max-width:850px;margin-left:auto;margin-right:auto}.entry-content>.alignwide{max-width:var(--max)}.entry-content h2{margin-top:2rem}.entry-content a{text-decoration:underline;text-decoration-color:var(--orange)}.theme-managed{--accent:var(--orange)}.theme-consultancy{--accent:var(--red)}.theme-broadband{--accent:var(--green)}.theme-ai{--accent:var(--blue)}.theme-data{--accent:var(--grey)}.theme-hydra{--accent:var(--purple)}.theme-hardware{--accent:var(--red)}.theme-location{--accent:var(--blue)}.theme-franchise{--accent:var(--purple)}.hub-card,.product-card,.event-card{--accent:var(--orange);min-height:300px;display:flex;flex-direction:column}.hub-card:nth-child(2){--accent:var(--red)}.hub-card:nth-child(3){--accent:var(--green)}.hub-card:nth-child(4){--accent:var(--blue)}.hub-card:nth-child(5){--accent:var(--grey)}.hub-card .card-inner,.product-card .card-inner{padding:1.65rem}.hub-card h2,.product-card h2{font-size:clamp(1.45rem,2.25vw,2rem);min-height:2.15em}.product-card.hydra{--accent:linear-gradient(90deg,var(--blue),var(--green),var(--purple))}.product-card.hardware{--accent:linear-gradient(90deg,var(--red),var(--orange))}.mission-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}.mission-card,.about-card{padding:2rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);position:relative;overflow:hidden}.mission-card:before,.about-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:var(--orange)}.mission-card.vision:before{background:var(--blue)}.mission-card.vision .eyebrow{color:var(--blue)}.about-card.people{grid-column:1/-1;padding:2.5rem;background:linear-gradient(135deg,color-mix(in srgb,var(--orange) 12%,var(--card)),color-mix(in srgb,var(--blue) 10%,var(--card)))}.about-card.people:before{background:var(--grad)}.about-card.story{grid-column:1/-1}.about-card.story:before{background:var(--purple)}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem;margin-top:1.1rem}.contact-shell{display:grid;grid-template-columns:.68fr 1.32fr;gap:1.2rem;align-items:start}.contact-stack{display:grid;gap:.9rem}.contact-tile{padding:1.25rem;border:1px solid var(--line);border-radius:18px;background:var(--card);min-height:auto}.contact-symbol{width:48px;aspect-ratio:1.1547;display:grid;place-items:center;margin-bottom:.8rem;background:var(--accent,var(--orange));clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}.contact-symbol img{width:25px;height:25px;object-fit:contain}.contact-panel{padding:clamp(2rem,4vw,3.5rem);border-radius:var(--radius);background:linear-gradient(135deg,color-mix(in srgb,var(--orange) 28%,var(--card)),color-mix(in srgb,var(--purple) 18%,var(--card)));border:1px solid var(--line)}.contact-menu{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin:1.25rem 0}.contact-menu li{list-style:none}.contact-menu a{display:block;padding:.75rem .9rem;border:1px solid var(--line);border-radius:12px;background:var(--card);font-weight:700}.filter-row{display:flex;gap:.6rem;flex-wrap:wrap;margin:2rem 0}.filter-chip{padding:.55rem .85rem;border:1px solid var(--line);border-radius:99px;background:var(--card);color:var(--text);cursor:pointer}.filter-chip.is-active{background:var(--dark);color:#fff}.post-card[hidden]{display:none!important}.partner-section{padding:45px 0;background:var(--alt);border-top:1px solid var(--line)}.partner-heading{text-align:center}.partner-copy{text-align:center;max-width:760px;margin:0 auto 1.5rem}.partner-logos{display:flex;align-items:center;justify-content:center;gap:1.5rem;flex-wrap:wrap}.partner-logo{display:grid;place-items:center;min-width:130px;min-height:68px;padding:10px 18px;border:1px solid var(--line);border-radius:14px;background:var(--card)}.partner-logo img{max-width:150px;max-height:50px;object-fit:contain}.footer-contact-inner{min-height:76px}.site-footer{background:#171415;color:#ddd}.footer-main{padding:55px 0 25px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.3fr;gap:2.5rem}.site-footer h2,.site-footer h3,.site-footer a{color:#fff}.footer-menu{list-style:none;padding:0;margin:0}.footer-menu li+li{margin-top:.5rem}.footer-bottom{margin-top:2.5rem;padding-top:1.3rem;border-top:1px solid rgba(255,255,255,.12)}input[type=text],input[type=email],input[type=tel],input[type=url],textarea,select,.wpforms-container input,.wpforms-container textarea,.wpforms-container select{width:100%!important;padding:.8rem 1rem!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--bg)!important;color:var(--text)!important}.widget_search,.wp-block-search,#wpadminbar #adminbarsearch{display:none!important}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media(max-width:1050px){.service-grid{grid-template-columns:repeat(3,1fr)}.problem-grid,.value-grid,.post-grid,.hub-grid,.product-grid,.event-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr 1fr}.contact-shell{grid-template-columns:1fr}.primary-navigation{display:none;position:absolute;left:20px;right:20px;top:72px;background:var(--card);padding:10px;border-radius:16px}.primary-navigation.is-open{display:block}.primary-menu{display:block}.sub-menu{position:static;width:auto;opacity:1;visibility:visible;display:none}.is-submenu-open>.sub-menu{display:block}.menu-toggle{display:block}.header-cta{display:none}}@media(max-width:680px){.container{width:calc(100% - 28px)}.top-inner,.footer-contact-inner{align-items:flex-start;flex-direction:column;padding-block:.7rem}.service-grid,.problem-grid,.value-grid,.post-grid,.hub-grid,.product-grid,.event-grid,.footer-grid,.mission-grid,.about-grid{grid-template-columns:1fr}.hero-grid{grid-template-columns:1fr}.contact-menu{grid-template-columns:1fr}.hero h1{font-size:clamp(2rem,10vw,3rem)}}

/* v2.5 final consistency refinements */
.hero{min-height:760px}.hero-grid{min-height:560px;align-items:center}
.problem-card{--problem-accent:var(--orange);border-top:5px solid var(--problem-accent);background:linear-gradient(145deg,color-mix(in srgb,var(--problem-accent) 10%,var(--card)),var(--card) 58%)}.problem-card:nth-child(2){--problem-accent:var(--red)}.problem-card:nth-child(3){--problem-accent:var(--blue)}.problem-card:nth-child(4){--problem-accent:var(--purple)}.problem-icon{border-color:color-mix(in srgb,var(--problem-accent) 35%,var(--line));color:var(--problem-accent)}
.value-labels{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:1.5rem}.value-label{padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--card);text-align:center;font-weight:800}.value-label:before{content:"";display:block;width:38px;height:4px;border-radius:4px;background:var(--grad);margin:0 auto .7rem}
.dynamic-card{min-height:320px}.dynamic-card .card-inner{padding:1.65rem}.dynamic-card h2{font-size:clamp(1.45rem,2.25vw,2rem);min-height:2.15em}.dynamic-card .icon-hex{flex:none}.dynamic-card .card-link{margin-top:auto}
.page-service-detail .entry-content,.page-product-detail .entry-content,.page-location-detail .entry-content,.page-franchise-detail .entry-content{font-size:1.02rem}.native-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}.native-feature{padding:1.4rem;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.blog-empty{padding:2rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}
@media(max-width:1050px){.hero{min-height:680px}.dynamic-card h2{min-height:0}.native-feature-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.hero{min-height:620px}.value-labels,.native-feature-grid{grid-template-columns:1fr}}

/* v2.6 plugin-managed cards and native subpage sections */
.content-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.content-card-grid.services{grid-template-columns:repeat(5,minmax(0,1fr))}.plugin-card{min-height:330px;--accent:var(--orange)}.plugin-card .card-inner{padding:1.5rem}.plugin-card h2{font-size:clamp(1.35rem,2vw,1.85rem);min-height:2.1em}.plugin-card .icon-hex{flex:none}.plugin-card .card-link{margin-top:auto}.native-page-sections{margin-top:2.5rem}.native-section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.native-section-card{padding:1.5rem;border:1px solid var(--line);border-top:5px solid var(--accent,var(--orange));border-radius:18px;background:var(--card)}.native-section-card h3{margin-bottom:.65rem}.native-overview{padding:2rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--card)}.native-cta{margin-top:2rem;padding:2rem;border-radius:var(--radius);background:linear-gradient(120deg,var(--accent,var(--orange)),var(--dark));color:#fff}.native-cta h2,.native-cta p{color:#fff}.problem-card h3,.problem-card p{display:block}.problem-card:empty{display:none}@media(max-width:1050px){.content-card-grid.services{grid-template-columns:repeat(3,1fr)}.native-section-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.content-card-grid,.content-card-grid.services,.native-section-grid{grid-template-columns:1fr}}

/* v2.7 existing-page card architecture */
.page-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.page-card-grid.services{grid-template-columns:repeat(5,minmax(0,1fr))}.linked-page-card{min-height:330px;--accent:var(--orange)}.linked-page-card .card-inner{padding:1.5rem}.linked-page-card h2{font-size:clamp(1.35rem,2vw,1.85rem);min-height:2.1em}.linked-page-card .card-link{margin-top:auto}.linked-page-card .icon-hex{flex:none}.native-page-sections{margin-top:2.5rem}.native-overview,.native-section-card{border:1px solid var(--line);border-radius:18px;background:var(--card)}.native-overview{padding:2rem}.native-section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1rem}.native-section-card{padding:1.5rem;border-top:5px solid var(--accent,var(--orange))}.native-cta{margin-top:1rem;padding:2rem;border-radius:var(--radius);background:linear-gradient(120deg,var(--accent,var(--orange)),var(--dark));color:#fff}.native-cta h2,.native-cta p{color:#fff}.native-benefits{margin:1.1rem 0 0;padding:0;list-style:none}.native-benefits li{padding:.65rem 0;border-bottom:1px solid var(--line)}.native-benefits li:before{content:"✓";margin-right:.6rem;color:var(--accent,var(--orange));font-weight:900}.card-symbol-placeholder{color:#fff;font-weight:900}.tt4-builder-hidden>.entry-content>.elementor,.tt4-builder-hidden>.entry-content>[class*="kubio"],.tt4-builder-hidden>.entry-content>[class*="wp-block-kubio"]{display:none!important}@media(max-width:1050px){.page-card-grid.services{grid-template-columns:repeat(3,1fr)}.native-section-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:680px){.page-card-grid,.page-card-grid.services,.native-section-grid{grid-template-columns:1fr}.linked-page-card h2{min-height:0}}
