/*
Theme Name: Technical Solutions Divi Child
Theme URI: https://technicalsolutions.org.uk/
Description: Divi child theme for the Technical Solutions partner-led homepage design.
Author: OpenAI
Template: Divi
Version: 1.0.0
Text Domain: technical-solutions-divi-child
*/

:root{
  --ts-black:#0A0A0A;
  --ts-dark:#121212;
  --ts-white:#ffffff;
  --ts-grey:#e5e5e7;
  --ts-mid:#8b8b8f;
  --ts-accent:#c7d61c;
  --ts-accent-2:#c4d51a;
  --ts-panel:#f3f3f4;
  --ts-radius:22px;
  --ts-shadow:0 24px 60px rgba(0,0,0,.22);
  --ts-width:1200px;
}

body{
  color:#f2f2f2;
  background:var(--ts-black);
}

body, input, textarea, select{
  font-weight:400;
}

h1,h2,h3,h4,h5,h6{
  letter-spacing:-0.03em;
  line-height:1.02;
  color:inherit;
}

.ts-container{
  width:min(calc(100% - 48px), var(--ts-width));
  margin-inline:auto;
}

.ts-section-dark{
  background:var(--ts-black);
  color:var(--ts-white);
}

.ts-section-light{
  background:var(--ts-grey);
  color:#111;
}

.ts-hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.72) 45%, rgba(0,0,0,.9) 100%),
    url('assets/images/tsav-temp-cads-landscape.jpeg') center/cover no-repeat;
  min-height:90vh;
  display:flex;
  align-items:center;
}

.ts-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size:12px 12px;
  opacity:.12;
  pointer-events:none;
}

.ts-hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(135deg, rgba(199,214,28,.10), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.04), transparent 30%);
  pointer-events:none;
}

.ts-logo img{
  max-width:440px;
  height:auto;
}

.ts-kicker{
  color:var(--ts-accent);
  text-transform:uppercase;
  letter-spacing:.24em;
  font-size:12px;
  font-weight:600;
  margin-bottom:18px;
}

.ts-hero h1{
  font-size:clamp(42px, 7vw, 84px);
  margin:0 0 18px;
  max-width:900px;
}

.ts-hero-copy{
  font-size:clamp(18px, 2.2vw, 24px);
  line-height:1.55;
  color:rgba(255,255,255,.82);
  max-width:760px;
}

.ts-btn-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:34px;
}

.ts-btn,
.et_pb_button.ts-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:15px 28px !important;
  text-decoration:none;
  font-weight:600;
  transition:transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.ts-btn:hover,
.et_pb_button.ts-btn:hover{
  transform:translateY(-1px);
}

.ts-btn-primary,
.et_pb_button.ts-btn-primary{
  background:var(--ts-accent);
  color:#111 !important;
  border:1px solid var(--ts-accent);
}

.ts-btn-secondary,
.et_pb_button.ts-btn-secondary{
  background:transparent;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.28);
}

.ts-trust-strip{
  background:#101010;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.ts-trust-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  padding:22px 0;
}

.ts-trust-item{
  color:rgba(255,255,255,.92);
  font-size:15px;
  text-align:center;
  position:relative;
}

.ts-trust-item:not(:last-child)::after{
  content:"";
  position:absolute;
  right:-12px; top:50%;
  width:1px; height:20px;
  background:rgba(255,255,255,.14);
  transform:translateY(-50%);
}

.ts-section{
  padding:86px 0;
}

.ts-heading{
  font-size:clamp(34px, 4.2vw, 56px);
  margin:0 0 14px;
}

.ts-subheading{
  font-size:18px;
  line-height:1.7;
  max-width:760px;
  color:rgba(17,17,17,.70);
}

.ts-grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.ts-grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.ts-grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

.ts-card{
  background:#fff;
  color:#111;
  border-radius:var(--ts-radius);
  padding:30px;
  box-shadow:var(--ts-shadow);
}

.ts-card-dark{
  background:rgba(255,255,255,.05);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:none;
  backdrop-filter:blur(4px);
}

.ts-card .bar{
  width:74px;
  height:6px;
  border-radius:999px;
  background:var(--ts-accent);
  margin-bottom:22px;
}

.ts-card h3{
  font-size:28px;
  margin:0 0 12px;
}

.ts-card p{
  margin:0;
  color:rgba(17,17,17,.72);
  line-height:1.7;
}

.ts-card-dark p{
  color:rgba(255,255,255,.72);
}

.ts-process-step{
  min-height:240px;
}

.ts-equipment{
  background:
    linear-gradient(180deg, #f1f1f2 0%, #e6e6e8 100%);
  color:#111;
}

.ts-equipment-tiles .ts-card{
  min-height:180px;
}

.ts-projects{
  position:relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,.86), rgba(0,0,0,.96)),
    url('assets/images/tsav-temp-cads.jpeg') center/cover no-repeat;
}

.ts-project-tile{
  min-height:340px;
  overflow:hidden;
  position:relative;
  background:rgba(255,255,255,.04);
}

.ts-project-tile img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.45;
}

.ts-project-content{
  position:relative;
  z-index:2;
}

.ts-cta{
  background:var(--ts-accent);
  color:#111;
  text-align:center;
}

.ts-cta .ts-heading{
  margin-bottom:18px;
}

.ts-cta p{
  max-width:680px;
  margin:0 auto 28px;
  line-height:1.7;
  font-size:18px;
  color:rgba(0,0,0,.74);
}

.ts-footer-note{
  padding:18px 0 34px;
  color:rgba(255,255,255,.54);
  font-size:14px;
  text-align:center;
}

@media (max-width: 980px){
  .ts-grid-4{ grid-template-columns:repeat(2,1fr); }
  .ts-grid-3{ grid-template-columns:1fr; }
  .ts-grid-2{ grid-template-columns:1fr; }
  .ts-trust-grid{ grid-template-columns:repeat(2,1fr); }
  .ts-trust-item:not(:last-child)::after{ display:none; }
  .ts-logo img{ max-width:320px; }
  .ts-hero{ min-height:auto; padding:110px 0 90px; }
}

@media (max-width: 640px){
  .ts-grid-4{ grid-template-columns:1fr; }
  .ts-trust-grid{ grid-template-columns:1fr; }
  .ts-container{ width:min(calc(100% - 32px), var(--ts-width)); }
  .ts-section{ padding:68px 0; }
}
