/* Team One Electric — v5 Blue */
:root {
  --red: #EC1C24;
  --red-hover: #C8141B;
  --blue: #1F5BD6;
  --blue-light: #4F86F0;
  --carbon: #121315;
  --ink: #1A1B1D;
  --charcoal: #6D6E70;
  --silver: #A6A8AB;
  --fog: #F4F4F5;
  --border: #E4E5E7;
  --white: #FFFFFF;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--silver); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--red); color: var(--white); padding: 10px 16px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.skip-link:focus { top: 8px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Type */
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.92; margin: 0;
  text-wrap: pretty;
}
.h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 4.5vw, 60px); line-height: 0.95; margin: 0;
}
.red { color: var(--red); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 30px; border: 0; cursor: pointer;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-hover); color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); padding: 14px 28px; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-carbon { background: var(--carbon); color: var(--white); padding: 16px 32px; }
.btn-carbon:hover { background: #000; color: var(--white); }

/* Top bar */
.topbar { background: var(--blue); color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.topbar .wrap { padding-top: 9px; padding-bottom: 9px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar .group { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .muted { color: #DCE6FA; }
.topbar a { color: var(--white); }
.topbar a.muted { color: #DCE6FA; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { padding-top: 6px; padding-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo sits on a white tab that hangs below the slim header bar */
.brand {
  position: relative; z-index: 2; display: flex; align-items: center; align-self: flex-start;
  width: 242px; height: 44px; margin-top: -6px;
}
.brand::before {
  content: ''; position: absolute; z-index: -1; top: 0; right: -38px; bottom: -52px; left: -100vw;
  background: var(--white); border-bottom: 4px solid var(--red);
  transform: skewX(-18deg); transform-origin: 0 0;
}
.brand img { position: absolute; top: 4px; left: 0; height: 80px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 8px 12px; color: var(--ink); border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.header-cta { font-size: 17px; padding: 12px 22px; }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--ink); width: 44px; height: 44px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: '';
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Dark section texture */
.carbon {
  background-color: var(--carbon);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
  background-size: 6px 6px;
  color: var(--white);
}
.skew { position: absolute; transform: skewX(-18deg); pointer-events: none; }

/* Home hero */
.hero { position: relative; overflow: hidden; }
.hero .panel { top: -40%; right: -40%; width: 68%; height: 180%; background: var(--blue); }
.hero .stripe { top: -40%; right: 28%; width: 14px; height: 180%; background: var(--red); }
.hero .wrap {
  position: relative; padding-top: 96px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center;
}
.hero .eyebrow { font-size: 16px; margin-bottom: 18px; }
.hero h1 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(52px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.01em; margin: 0 0 28px; text-wrap: pretty;
}
.hero p { font-size: 19px; line-height: 1.5; color: #C9CACD; max-width: 520px; margin: 0 0 36px; text-wrap: pretty; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px 0; }
.hero-mark svg { width: min(390px, 80%); height: auto; display: block; }
.hero-mark .caption {
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--silver); text-align: center;
}

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid var(--border); }
.trust .wrap { padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item .bar { width: 6px; height: 40px; background: var(--blue); flex: none; }
.trust-item .t { font-family: var(--display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.trust-item .s { color: var(--charcoal); font-size: 14px; }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.fog { background: var(--fog); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.text-link {
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 4px;
}
.text-link:hover { color: var(--red); }

/* Service cards (home) */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; }
.service-card {
  background: var(--white); box-shadow: 0 0 0 1px var(--border);
  padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 180px;
}
.service-card:hover { background: #FAFAFA; }
.service-card .num { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; color: var(--blue); }
.service-card h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 0; }
.service-card p { color: var(--charcoal); font-size: 15px; line-height: 1.5; margin: 0; text-wrap: pretty; }

/* Why Team One */
.why { position: relative; overflow: hidden; background: var(--carbon); color: var(--white); }
.why .w1 { top: 0; height: 100%; left: calc(50% - 900px); width: 280px; background: var(--blue); transform-origin: 0 0; }
.why .s1 { top: 0; height: 100%; left: calc(50% - 620px); width: 12px; background: var(--red); transform-origin: 0 0; }
.why .s2 { top: 0; height: 100%; left: calc(50% + 608px); width: 12px; background: var(--red); transform-origin: 0 100%; }
.why .w2 { top: 0; height: 100%; left: calc(50% + 620px); width: 280px; background: var(--blue); transform-origin: 0 100%; }
.why .wrap {
  position: relative; padding-top: 88px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; align-items: start;
}
.why .eyebrow { color: var(--blue-light); }
.why h2 { font-size: clamp(38px, 4.5vw, 64px); margin-bottom: 20px; text-wrap: pretty; }
.why .lede { color: #C9CACD; font-size: 17px; line-height: 1.55; max-width: 440px; margin: 0; text-wrap: pretty; }
.why-list { display: grid; gap: 28px; }
.why-item { border-top: 2px solid var(--blue); padding-top: 16px; }
.why-item h3 { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; margin: 0 0 6px; }
.why-item p { color: var(--silver); font-size: 15px; line-height: 1.5; margin: 0; }

/* CTA band */
.cta { background: var(--red); color: var(--white); }
.cta .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(36px, 4.5vw, 60px); margin-bottom: 8px; }
.cta .sub { font-size: 17px; opacity: 0.92; }

/* Page headers */
.page-head { position: relative; overflow: hidden; }
.page-head .stripe { top: -40%; right: -2%; width: 12px; height: 180%; background: var(--red); }
.page-head .wrap { position: relative; padding-top: 72px; padding-bottom: 64px; }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head .h1 { margin-bottom: 20px; }
.page-head p { color: #C9CACD; font-size: 18px; line-height: 1.5; max-width: 560px; margin: 0; text-wrap: pretty; }

/* Services list */
.service-list .wrap { padding-top: 40px; padding-bottom: 88px; display: grid; gap: 2px; }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--border); align-items: start;
}
.service-row .name { display: flex; gap: 18px; align-items: flex-start; }
.service-row .num { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.12em; color: var(--red); padding-top: 8px; }
.service-row h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 0.95; text-transform: uppercase; margin: 0; }
.service-row p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid #D4D5D8; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--charcoal); letter-spacing: 0.02em; }

/* About */
.about-intro .wrap {
  padding-top: 80px; padding-bottom: 64px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: center;
}
.about-intro .eyebrow { margin-bottom: 12px; }
.about-intro .h1 { margin-bottom: 24px; }
.about-intro .lead { font-size: 18px; line-height: 1.55; margin: 0 0 16px; text-wrap: pretty; }
.about-intro .secondary { font-size: 17px; line-height: 1.55; color: var(--charcoal); margin: 0; text-wrap: pretty; }
.about-mark {
  aspect-ratio: 4 / 5; background: var(--fog); border-top: 4px solid var(--red);
  display: flex; align-items: center; justify-content: center;
}
.about-mark svg { width: 56%; height: auto; }
.stats { background: var(--blue); color: var(--white); }
.stats .wrap { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.stat .v { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.stat .l { color: #E6ECFA; font-size: 15px; margin-top: 6px; }
.steps .wrap { padding-top: 80px; padding-bottom: 80px; }
.steps .h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 36px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { background: var(--white); padding: 28px; border-top: 4px solid var(--red); }
.step .num { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; color: var(--red); margin-bottom: 10px; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; margin: 0 0 8px; }
.step p { color: var(--charcoal); font-size: 15px; line-height: 1.5; margin: 0; }

/* Owners (About) */
.about-intro .secondary { margin-bottom: 32px; }
.owners { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.owner { display: flex; gap: 14px; }
.owner .bar { width: 4px; background: var(--blue); flex: none; }
.owner .n { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.owner .r { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); margin-top: 6px; }
.owner a { display: inline-block; margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.owner a:hover { color: var(--red); }

/* Blueprint panel (About) */
.blueprint { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1C1D20; border-top: 4px solid var(--red); }
.blueprint img { width: 100%; height: 100%; object-fit: cover; display: block; filter: invert(1) grayscale(1) contrast(1.1); mix-blend-mode: screen; opacity: 0.6; }
.blueprint .caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--carbon); border-top: 1px solid rgba(255,255,255,0.12);
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
}
.blueprint .caption > span:first-child { display: flex; align-items: center; gap: 10px; }
.blueprint .sq { width: 8px; height: 8px; background: var(--blue); flex: none; }
.blueprint .lic { color: var(--silver); white-space: nowrap; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review-card { margin: 0; background: var(--white); padding: 32px 28px; border-top: 4px solid var(--red); display: flex; flex-direction: column; gap: 18px; }
.review-card .stars { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.2em; color: var(--red); }
.review-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.review-card figcaption { font-size: 14px; color: var(--charcoal); font-weight: 600; }
.reviews-all { padding-top: 64px; padding-bottom: 88px; }

/* Contact */
.contact .wrap {
  padding-top: 80px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 56px; align-items: start;
}
.contact .eyebrow { margin-bottom: 12px; }
.contact .h1 { margin-bottom: 20px; }
.contact .intro { font-size: 17px; line-height: 1.55; color: var(--charcoal); margin: 0 0 36px; text-wrap: pretty; }
.contact-blocks { display: grid; gap: 22px; }
.contact-block { display: flex; gap: 14px; }
.contact-block .bar { width: 4px; background: var(--blue); flex: none; }
.contact-block .k { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal); }
.contact-block .phone { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--ink); }
.contact-block .email { font-size: 18px; color: var(--ink); word-break: break-word; }
.contact-block a:hover { color: var(--red); }
.contact-block .plain { font-size: 18px; }

.quote-form { background: var(--fog); padding: 36px 32px; display: grid; gap: 18px; border-top: 4px solid var(--red); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.quote-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--charcoal); }
.quote-form input, .quote-form select, .quote-form textarea {
  border: 1px solid #D4D5D8; background: var(--white); padding: 13px 14px; border-radius: 0;
  font: 16px var(--body); color: var(--ink); outline: none; width: 100%;
}
.quote-form select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--red); }
.quote-form .req { color: var(--red); }
.quote-form button { justify-self: start; }
.quote-form button[disabled] { opacity: 0.7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; font-weight: 600; }
.notice[hidden] { display: none; }
.notice-ok { background: var(--carbon); color: var(--white); }
.notice-err { background: var(--white); border: 2px solid var(--red); color: var(--ink); }
.notice-err a { color: var(--ink); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--carbon); color: var(--silver); }
.site-footer .cols { padding-top: 56px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.site-footer .logo { height: 60px; width: auto; display: block; margin-bottom: 16px; }
.site-footer .desc { font-size: 14px; line-height: 1.6; max-width: 280px; }
.site-footer h2 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer a { color: var(--silver); }
.site-footer a:hover, .site-footer a.white { color: var(--white); }
.site-footer .bottom { border-top: 1px solid #2A2B2F; }
.site-footer .bottom .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Mobile contact bar */
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 767px) {
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .site-header .wrap { flex-wrap: wrap; gap: 12px; }
  .brand { width: 194px; }
  .brand::before { bottom: -36px; right: -32px; }
  .brand img { height: 64px; top: 5px; }
  .nav.open { margin-top: 28px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; flex-basis: calc(100% + 48px); flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--border); margin: 0 -24px; padding: 8px 24px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--border); }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero .panel { top: auto; bottom: -10%; right: -60%; width: 110%; height: 55%; }
  .hero .stripe { top: auto; bottom: -10%; right: 48%; height: 55%; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .why .w1, .why .s1, .why .s2, .why .w2 { display: none; }
  .why .wrap { padding-top: 64px; padding-bottom: 64px; }
  .quote-form { padding: 28px 20px; }
  .stat .v { font-size: 52px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--red); color: var(--white); text-align: center; padding: 16px;
    font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .mobile-cta:hover { color: var(--white); background: var(--red-hover); }
  body { padding-bottom: 56px; }
}
