/* Shared look for the Precision website (home + contact). Colors match the logo. */
:root {
  --navy: #1f3f7a;
  --navy-dark: #12284f;
  --red: #e3262d;
  --ice: #2aa7df;
  --ink: #1c2530;
  --muted: #5d6875;
  --line: #d5dbe3;
  --bg: #f3f6fa;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- Top bar with logo ---- */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--red);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap;
}
.site-header .logo img { width: 300px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; color: var(--navy-dark); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .call {
  background: var(--red); color: #fff; padding: 9px 16px; border-radius: 7px;
}
.site-nav .call:hover { background: #c41a21; color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c41a21; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---- Hero ---- */
.hero {
  color: #fff;
  background:
    linear-gradient(115deg, rgba(18,40,79,.94) 0%, rgba(31,63,122,.86) 55%, rgba(42,167,223,.75) 100%),
    var(--hero-photo, none) center / cover no-repeat,
    var(--navy-dark);
  padding: 88px 0 96px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 0 0 18px; max-width: 760px; }
.hero p { font-size: 20px; max-width: 640px; margin: 0 0 30px; opacity: .95; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy-dark); margin: 0 0 10px; }
.section-title p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards.five { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cards.five .card { padding: 24px 18px; }
.cards.five .card h3 { font-size: 18px; }

.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats .wrap > div { padding: 26px 8px; }
.stats .wrap > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(22px, 3vw, 30px); color: var(--navy-dark); }
.stats span { color: var(--muted); font-size: 15px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 28px 24px; border-top: 4px solid var(--navy);
}
.card.heat { border-top-color: var(--red); }
.card.cool { border-top-color: var(--ice); }
.card h3 { margin: 0 0 8px; color: var(--navy-dark); font-size: 20px; }
.card p { margin: 0; color: var(--muted); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; background: #eef3fb; color: var(--navy);
}
.card.heat .icon { background: #fdeced; color: var(--red); }
.card.cool .icon { background: #e6f5fc; color: var(--ice); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy-dark); margin: 0 0 16px; }
.split ul { padding: 0; margin: 20px 0 0; list-style: none; }
.split li { padding: 8px 0 8px 32px; position: relative; }
.split li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.6 13.6 4 10l-1.4 1.4 5 5 10-10L16.2 5z'/%3E%3C/svg%3E") center/14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Photo slot: shows a soft placeholder until a real picture is dropped in */
.photo {
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #dfe8f4, #c9d8ec);
  display: grid; place-items: center; color: var(--muted); font-weight: 600;
}
.photo { position: relative; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cta {
  background: var(--navy-dark); color: #fff; text-align: center; padding: 64px 0;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.cta p { margin: 0 auto 26px; max-width: 560px; opacity: .9; }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: #0b1a35; color: #b9c4d6; padding: 28px 0; font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* ---- Contact page ---- */
.page-head { background: var(--navy-dark); color: #fff; padding: 48px 0 52px; text-align: center; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4.4vw, 44px); }
.page-head p { margin: 0; opacity: .9; }

.join { max-width: 720px; margin: 0 auto; }
.join-question { text-align: center; font-size: 22px; font-weight: 700; color: var(--navy-dark); margin: 0 0 18px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.choice button {
  font: inherit; font-size: 19px; font-weight: 700; cursor: pointer;
  padding: 22px 16px; border-radius: 12px; background: #fff;
  border: 2px solid var(--line); color: var(--navy-dark);
}
.choice button small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.choice button:hover { border-color: var(--navy); }
.choice button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice button[aria-pressed="true"] small { color: #d7e1f1; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.form-card h2 { margin: 0 0 20px; color: var(--navy-dark); font-size: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px; font: inherit; color: inherit;
  border: 1px solid #b9c2cd; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.field input[type=file] { padding: 10px; background: var(--bg); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field.bad input { border-color: var(--red); background: #fff5f6; }
.form-error { color: var(--red); font-weight: 600; margin: 0 0 14px; }
.form-done {
  text-align: center; padding: 40px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.form-done h2 { color: var(--navy-dark); margin: 0 0 8px; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .site-header .logo img { width: 240px; }
  .site-header { position: static; }
  .site-nav { justify-content: center; gap: 10px 16px; }
  .site-nav .tech, .site-nav .call, .site-nav .pay { padding: 7px 12px; font-size: 15px; }
  .split, .grid2 { grid-template-columns: 1fr; gap: 0 16px; }
  .split { gap: 28px; }
  .hero { padding: 60px 0 68px; }
  section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .choice { grid-template-columns: 1fr; }
}

/* Blue "Become a technician" button in the top bar */
.site-nav .tech { background: #1a73b8; color: #fff; padding: 9px 16px; border-radius: 7px; }
.site-nav .tech:hover { background: #155f98; color: #fff; }
.site-nav a.tech[aria-current="page"] { color: #fff; }

/* Industries we serve: icon tiles */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries { grid-template-columns: 1fr; } }
.industry {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; font-weight: 700; color: var(--navy-dark);
}
.industry .icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; background: #eef3fb; color: var(--navy);
}
.industry:nth-child(3n+2) .icon { background: #fdeced; color: var(--red); }
.industry:nth-child(3n) .icon { background: #e6f5fc; color: var(--ice); }

.stats strong.long { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.25; padding-top: 4px; }

/* Service tabs with a picture that changes per tab */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tabs button {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 12px 24px; border-radius: 999px;
  border: 2px solid var(--line); background: #fff; color: var(--navy-dark);
}
.tabs button:hover { border-color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel h3 { font-size: clamp(24px, 3vw, 30px); color: var(--navy-dark); margin: 0 0 12px; }
.tab-panel p { margin: 0; font-size: 18px; }
@media (max-width: 480px) { .tabs button { padding: 10px 16px; font-size: 15px; } }

/* Partner clients: logo row that scrolls on its own */
.partners .section-title { margin-bottom: 32px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex: 0 0 auto; width: 200px; height: 100px; }
.marquee-track img { object-fit: contain; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.logo-slot {
  display: grid; place-items: center; border-radius: 12px;
  border: 2px dashed #c3cfdf; background: var(--bg); color: var(--muted); font-weight: 600;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; padding: 0 16px; }
  .marquee-track > [aria-hidden="true"] { display: none; }
}
.tab-panel p + p { margin-top: 14px; }
.tagline { font-weight: 700; color: var(--red); }
.split .tagline { font-size: 20px; margin: 20px 0 0; }

/* Industries: specialty line and the three highlighted boxes */
.section-title .specialty { margin-top: 10px; color: var(--navy-dark); font-size: 19px; }
.section-title .specialty strong { color: var(--red); }
.industry.featured {
  border: 2px solid var(--navy); border-left-width: 6px; font-size: 18px; padding: 20px 18px;
}
.industry.featured .icon { background: var(--navy); color: #fff; }

/* Banner with the truck on the right */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.hero-truck { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .35)); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-truck { max-width: 380px; margin: 8px auto 0; }
}

/* Service-area map: show the whole map, not cropped */
.photo.map { aspect-ratio: auto; background: none; }
.photo.map img { position: static; height: auto; object-fit: contain; }

/* Service & Repair photo: keep the technician on the left in view */
#tabPhoto img[src*="service-repair"] { object-position: left center; }

/* Pay Invoice button in the header (goes to the pay page) */
.site-nav .pay { border: 2px solid var(--navy); color: var(--navy); padding: 7px 14px; border-radius: 7px; }
.site-nav .pay:hover { background: var(--navy); color: #fff; }
