/* =========================================================
   TRI ELECTRIC — Design Tokens
   Palette: Desert dusk (charcoal / warm white / voltage yellow / rust / slate)
   Type: Condensed grotesk display (Oswald) + humanist body (Inter) + mono utility (JetBrains Mono)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --charcoal: #1A1A1A;
  --charcoal-soft: #232323;
  --warm-white: #F7F5F0;
  --voltage: #F4C430;
  --voltage-deep: #D9A816;
  --rust: #C1502E;
  --rust-deep: #A33F22;
  --slate: #4A5258;
  --slate-light: #7A8389;
  --line: rgba(247, 245, 240, 0.12);
  --line-dark: rgba(26, 26, 26, 0.10);

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w: 1180px;
  --pad: 24px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

:focus-visible {
  outline: 2px solid var(--voltage);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Top bar (license strip) ---------- */
.topbar {
  background: var(--charcoal);
  color: var(--warm-white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--pad);
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--voltage); }
.topbar .sep { opacity: 0.4; margin: 0 8px; }

/* ---------- Nav ---------- */
header.site-header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
nav.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
nav.main-nav .logo img {
  height: 34px;
  width: auto;
}
nav.main-nav .links {
  display: flex;
  gap: 32px;
  align-items: center;
}
nav.main-nav .links a {
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.main-nav .links a:hover,
nav.main-nav .links a.active {
  border-bottom-color: var(--voltage);
  color: var(--voltage);
}
nav.main-nav .cta-btn {
  background: var(--rust);
  color: var(--warm-white) !important;
  border-bottom: none !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
nav.main-nav .cta-btn:hover {
  background: var(--rust-deep);
  border-bottom: none !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--warm-white);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 860px) {
  nav.main-nav .links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--charcoal-soft);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--line);
  }
  nav.main-nav .links.open { right: 0; }
  .nav-toggle { display: block; }
  nav.main-nav .links a { font-size: 18px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--rust);
  color: var(--warm-white);
}
.btn-primary:hover { background: var(--rust-deep); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--warm-white);
  color: var(--warm-white);
}
.btn-outline:hover { background: var(--warm-white); color: var(--charcoal); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: var(--warm-white); }
.btn-voltage {
  background: var(--voltage);
  color: var(--charcoal);
}
.btn-voltage:hover { background: var(--voltage-deep); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--warm-white);
  overflow: hidden;
  padding: 96px var(--pad) 80px;
}
.hero-sunburst {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  max-width: 110vw;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  margin: 18px 0 0;
  max-width: 880px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero h1 .accent { color: var(--voltage); }
.hero p.lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(247,245,240,0.82);
  max-width: 560px;
  margin: 22px 0 0;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(247,245,240,0.6);
  letter-spacing: 0.04em;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--voltage); }

/* ---------- Sections ---------- */
section { padding: 88px var(--pad); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head.center { margin: 0 auto 52px; text-align: center; align-items: center; }

.bg-dark { background: var(--charcoal); color: var(--warm-white); }
.bg-soft { background: #EFEBE2; }

/* ---------- Panel-schedule service rows ---------- */
.panel-schedule {
  border-top: 1px solid var(--line-dark);
}
.panel-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.2s;
}
.panel-row:hover { background: rgba(193, 80, 46, 0.045); }
.panel-row .ckt {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-light);
}
.panel-row .ckt strong {
  display: block;
  font-size: 22px;
  color: var(--rust);
  font-weight: 500;
}
.panel-row h3 {
  font-size: 19px;
  text-transform: none;
  letter-spacing: 0;
}
.panel-row p {
  margin: 0;
  color: var(--slate);
  font-size: 15px;
  max-width: 480px;
}
.panel-row .arrow {
  font-family: var(--font-mono);
  color: var(--charcoal);
  font-size: 20px;
  transition: transform 0.2s, color 0.2s;
}
.panel-row:hover .arrow { transform: translateX(4px); color: var(--rust); }

@media (max-width: 760px) {
  .panel-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas: "ckt title" "ckt desc" "ckt arrow";
  }
  .panel-row .ckt { grid-area: ckt; }
  .panel-row h3 { grid-area: title; }
  .panel-row p { grid-area: desc; }
  .panel-row .arrow { display: none; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px var(--pad);
  background: var(--charcoal-soft);
  color: var(--warm-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--voltage);
}
.trust-item .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(247,245,240,0.65);
  text-transform: uppercase;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--warm-white);
  border: 1px solid var(--line-dark);
  padding: 32px 28px;
  border-radius: var(--radius);
}
.card .num-tag {
  font-family: var(--font-mono);
  color: var(--rust);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.card h3 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 10px;
}
.card p {
  color: var(--slate);
  font-size: 15px;
  margin: 10px 0 0;
}

/* ---------- Quote / testimonial ---------- */
.quote-block {
  border-left: 3px solid var(--voltage);
  padding-left: 28px;
}
.quote-block p.q {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 400;
  text-transform: none;
  line-height: 1.35;
  margin: 0;
}
.quote-block .who {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  margin-top: 16px;
  letter-spacing: 0.03em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--rust);
  color: var(--warm-white);
  text-align: center;
  padding: 76px var(--pad);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { font-size: 17px; opacity: 0.92; max-width: 520px; margin: 14px auto 32px; }

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: rgba(247,245,240,0.7);
  padding: 56px var(--pad) 28px;
  font-size: 14px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
footer .footer-grid img { height: 30px; margin-bottom: 14px; }
footer h4 {
  color: var(--warm-white);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a:hover { color: var(--voltage); }
footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247,245,240,0.45);
}
@media (max-width: 760px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Page hero (non-home pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 64px var(--pad) 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 56px); margin-top: 14px; }
.page-hero p { color: rgba(247,245,240,0.78); max-width: 560px; margin-top: 16px; font-size: 17px; }
.page-hero .bolt-mark {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 320px;
  opacity: 0.12;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--warm-white);
  border: 1px solid var(--line-dark);
  padding: 36px;
  border-radius: var(--radius);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line-dark);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.divider-bolt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 14px;
}
.divider-bolt .line { height: 1px; width: 60px; background: var(--line-dark); }

.service-list-page {
  border-top: 1px solid var(--line-dark);
}

.map-embed {
  border: 0;
  width: 100%;
  height: 320px;
  filter: grayscale(0.3) contrast(1.05);
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-dark);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--slate);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-card {
  background: var(--warm-white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-card .shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--charcoal-soft);
}
.gallery-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover .shot img { transform: scale(1.06); }
.gallery-card .shot .cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rust);
  color: var(--warm-white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
}
.gallery-card .info { padding: 20px 22px 24px; }
.gallery-card h3 {
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
}
.gallery-card p {
  color: var(--slate);
  font-size: 14px;
  margin: 8px 0 0;
}

/* Homepage recent-work teaser strip */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .teaser-grid { grid-template-columns: 1fr; }
}
.teaser-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}
.teaser-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.teaser-shot:hover img { transform: scale(1.06); }
.teaser-shot .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(26,26,26,0.82), rgba(26,26,26,0));
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
