/* ===========================================================
   TRI CITY TECH — design tokens
   Palette derived directly from the brand logo: vivid tech blue,
   white, and charcoal gray, with the circuit-icon motif carried
   through as a light accent rather than a dark blueprint theme.
   =========================================================== */

:root{
  --ink:        #24272A;   /* primary body text */
  --charcoal:   #565B5C;   /* secondary text, matches "SOLUTIONS" wordmark gray */
  --paper:      #FFFFFF;   /* main page background */
  --paper-2:    #EFF8FC;   /* soft pale-blue alt section background */
  --line:       #DEE6EA;   /* hairline dividers on light */
  --line-dark:  #3A4044;   /* hairline dividers on dark surfaces */

  --brand-blue:      #03ACEE;  /* primary logo blue */
  --brand-blue-dark: #0288C4;  /* hover / pressed state */
  --brand-blue-light:#4FC5F4;  /* secondary accent */
  --brand-blue-pale: #E4F6FD;  /* pale tint background */
  --dark:       #21262A;   /* dark surface: footer, CTA band alt */

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--brand-blue-dark); text-decoration: none; }
a:hover{ text-decoration: underline; }
h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: 0.1px;
}
h1{ font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1em; max-width: 62ch; }
p.lede{ font-size: 1.15rem; color: var(--charcoal); }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
:focus-visible{ outline: 3px solid var(--brand-blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover{ text-decoration:none; }
.btn-primary{ background: var(--brand-blue); color: #fff; }
.btn-primary:hover{ background: var(--brand-blue-dark); }
.btn-ghost{ background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover{ background: rgba(3,172,238,0.08); }
.btn-ghost.on-light{ color: var(--ink); }
.btn-ghost.on-light:hover{ background: rgba(3,172,238,0.06); }

/* ---------- Header / nav ---------- */
.site-header{
  background: var(--paper);
  color: var(--ink);
  position: sticky; top:0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-head); font-size:1.5rem; font-weight:700;
  color: var(--ink);
}
.brand img.brand-logo{ height: 51px; width:auto; display:block; }
nav.primary-nav ul{
  list-style:none; display:flex; gap: 26px; margin:0; padding:0;
  align-items:center;
}
nav.primary-nav a{
  color: var(--charcoal); font-weight:500; font-size: 0.96rem;
}
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"]{
  color: var(--brand-blue-dark); text-decoration:none; border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 4px;
}
.nav-toggle{
  display:none; background:none; border:1px solid var(--line);
  color: var(--ink); padding:8px 10px; border-radius:4px; font-size:1.1rem;
}
.header-cta{ display:flex; align-items:center; gap:18px; }
.header-phone{ font-family: var(--font-body); font-weight:600; font-size:0.92rem; color: var(--ink); }

@media (max-width: 880px){
  .nav-toggle{ display:inline-block; }
  nav.primary-nav{
    display:none; position:absolute; left:0; right:0; top:100%;
    background: var(--paper); border-top:1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  nav.primary-nav.open{ display:block; }
  nav.primary-nav ul{ flex-direction:column; align-items:flex-start; padding: 10px 24px 20px; gap:14px; }
  .header-phone{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display:grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  padding-top: 76px; padding-bottom: 76px; align-items:center;
}
.hero p.lede{ color: #E4F6FD; }
.hero-cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 22px; }
.hero-diagram{ width:100%; height:auto; }
.hero-tagline{
  font-family: var(--font-body); font-weight:600; color: #fff; opacity:0.92; font-size: 0.85rem;
  margin-bottom: 14px; letter-spacing: 0.03em;
}
.hero .btn-ghost{ border-color: #fff; }
.hero .btn-ghost:hover{ background: rgba(255,255,255,0.12); }
@media (max-width: 880px){
  .hero .container{ grid-template-columns: 1fr; padding-top:48px; padding-bottom:40px; }
  .hero-diagram{ order:-1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section{ padding: 72px 0; }
section.alt{ background: var(--paper-2); }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head .kicker{
  font-family: var(--font-body); font-weight:600; color: var(--brand-blue-dark);
  font-size: 0.85rem; margin-bottom: 10px; display:block;
}

/* ---------- Sheet / service cards ---------- */
.sheet-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 22px;
}
.sheet{
  background:#fff; border:1px solid var(--line);
  border-radius: 6px; padding: 26px 24px 24px;
  position:relative;
}
.sheet::before{
  content: attr(data-sheet);
  position:absolute; top:14px; right:16px;
  font-family: var(--font-body); font-weight:600; font-size: 0.72rem; color: var(--brand-blue-dark);
}
.sheet h3{ margin-top: 6px; margin-bottom: 10px; padding-right: 60px; }
.sheet p{ color: var(--charcoal); font-size: 0.96rem; max-width: none; }
.sheet a.more{ font-weight:600; font-size:0.92rem; }

/* ---------- Two column feature ---------- */
.split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:center;
}
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps{ list-style:none; margin:0; padding:0; counter-reset: step; }
.steps li{
  counter-increment: step;
  display:grid; grid-template-columns: 44px 1fr; gap:18px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.steps li:last-child{ border-bottom: 1px solid var(--line); }
.steps li::before{
  content: counter(step);
  font-family: var(--font-body); font-weight:700; font-size: 0.95rem; color: var(--brand-blue-dark);
  border: 1.5px solid var(--brand-blue); border-radius:50%;
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
}

/* ---------- Service area / map strip ---------- */
.area-list{ display:flex; flex-wrap:wrap; gap:10px; padding:0; list-style:none; margin: 18px 0 0; }
.area-list li{
  border:1px solid var(--line); border-radius: 4px;
  padding: 6px 14px; font-size:0.9rem; color: var(--charcoal);
  background:#fff;
}

/* ---------- FAQ ---------- */
.faq details{
  border-top: 1px solid var(--line); padding: 16px 0;
}
.faq details:last-child{ border-bottom: 1px solid var(--line); }
.faq summary{
  font-family: var(--font-head); font-size:1.1rem; font-weight:600;
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:12px;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color: var(--brand-blue); font-size:1.4rem; line-height:1; }
.faq details[open] summary::after{ content:"–"; }
.faq p{ margin-top: 10px; color: var(--charcoal); }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--brand-blue); color:#fff; text-align:left;
}
.cta-band .container{
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-band h2{ margin-bottom: 6px; }
.cta-band p{ color:#E4F6FD; margin-bottom:0; }
.cta-band .btn-primary{ background:#fff; color: var(--brand-blue-dark); }
.cta-band .btn-primary:hover{ background: var(--brand-blue-pale); }

/* ---------- Footer ---------- */
footer.site-footer{
  background: var(--dark); color:#B7C0C5; padding: 52px 0 28px;
  font-size: 0.92rem;
}
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4{ color:#fff; font-size:1rem; margin-bottom: 12px; }
.footer-brand{ display:flex; align-items:center; margin-bottom:14px; }
.footer-brand .footer-logo-chip{
  background:#fff; border-radius:6px; padding:8px 12px; display:inline-flex; align-items:center;
}
.footer-brand img{ height:39px; width:auto; display:block; }
.footer-grid ul{ list-style:none; margin:0; padding:0; }
.footer-grid li{ margin-bottom: 8px; }
.footer-grid a{ color:#B7C0C5; }
.footer-grid a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  padding-top: 20px; font-family: var(--font-body); font-size: 0.78rem; color:#7B858A;
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero{ background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%); color:#fff; padding: 52px 0 44px; }
.page-hero .kicker{ font-family: var(--font-body); font-weight:600; color:#fff; opacity:0.92; font-size:0.85rem; display:block; margin-bottom:10px; }
.breadcrumb{ font-size:0.85rem; color: rgba(255,255,255,0.72); margin-bottom: 14px; }
.breadcrumb a{ color: rgba(255,255,255,0.92); }

/* ---------- Content list with checks ---------- */
.check-list{ list-style:none; margin:0; padding:0; }
.check-list li{ padding-left: 30px; position:relative; margin-bottom:12px; color: var(--charcoal); }
.check-list li::before{
  content:""; position:absolute; left:0; top:6px; width:14px; height:14px;
  border: 2px solid var(--brand-blue); border-radius:3px;
}

/* ---------- Table (specs) ---------- */
.spec-table{ width:100%; border-collapse: collapse; font-size:0.95rem; }
.spec-table th, .spec-table td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); }
.spec-table th{ font-family: var(--font-head); font-weight:600; color: var(--ink); width: 38%; }
.spec-table td{ color: var(--charcoal); font-family: var(--font-mono); font-size:0.86rem; }

/* ---------- Equipment showcase ---------- */
.equip-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px; margin-top: 10px;
}
.equip-card{
  background:#fff; border:1px solid var(--line); border-radius:8px;
  padding: 22px 20px; text-align:left;
}
.equip-icon{
  width:56px; height:56px; border-radius:50%; background: var(--brand-blue-pale);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.equip-icon svg{ width:30px; height:30px; }
.equip-card h4{ font-family: var(--font-head); font-size:1.02rem; font-weight:600; margin:0 0 6px; color: var(--ink); }
.equip-card p{ font-size:0.9rem; color: var(--charcoal); margin:0; max-width:none; }
.equip-note{ font-size:0.85rem; color: var(--charcoal); margin-top:18px; }
