/* Altamont Electric — Swiss / clinical clean */

:root {
  --ink: #111417;
  --ink-2: #4a5157;
  --rule: #d9dde0;
  --paper: #ffffff;
  --tint: #f3f5f5;
  --accent: #0b6b62;
  --accent-dark: #084f48;
  --gutter: 20px;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font: 600 16px/1 var(--font);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 2px;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-invert { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-invert:hover { background: transparent; color: #fff; }
.btn-small { min-height: 48px; padding: 0 18px; font-size: 15px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 12px; height: 12px;
  background: var(--accent);
  margin-right: 4px;
}
.logo-light { font-weight: 400; }
.nav { display: none; }
.hide-xs { display: none; }

/* ---------- Shared section layout ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section { padding: 64px 0; border-top: 1px solid var(--rule); }
.section-tint { background: var(--tint); }

.grid-12 { display: grid; gap: 32px; }

h2 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.note { margin-top: 16px; color: var(--ink-2); max-width: 34ch; }
.section-call { margin-top: 28px; }

/* ---------- Hero ---------- */

.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; }

h1 {
  font-size: clamp(40px, 11vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 13ch;
}
.lede {
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 46ch;
}
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.rating {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
}
.stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }

.facts {
  border-top: 3px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.fact {
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--rule);
}
.fact:nth-child(odd) { padding-right: 16px; }
.fact dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.fact dd { font-size: 16px; font-weight: 600; line-height: 1.4; }
.fact dd span { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.fact dd a { color: var(--ink); }
.fact-rating { display: none; }
.fact-wide { grid-column: 1 / -1; }

/* ---------- Services ---------- */

.services { border-top: 3px solid var(--ink); }
.service {
  display: grid;
  gap: 6px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.service dt {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.num {
  display: inline-block;
  min-width: 44px;
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.service dd { color: var(--ink-2); }

/* ---------- Why us ---------- */

.points {
  list-style: none;
  padding: 0;
  display: grid;
  border-top: 3px solid var(--ink);
}
.points li { padding: 24px 0 28px; border-bottom: 1px solid var(--rule); }
.point-figure {
  display: block;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}
.points h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.points p { color: var(--ink-2); }

/* ---------- Visit ---------- */

.visit { display: grid; gap: 32px; }
.info-table {
  align-self: start;
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid var(--ink);
}
.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.info-table th {
  width: 34%;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
  padding-top: 19px;
}
.info-table td { font-weight: 500; }

.map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--rule);
  background: var(--tint);
}
.map figcaption {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- CTA ---------- */

.cta { background: var(--accent-dark); color: #fff; padding: 64px 0; }
.cta-inner { display: grid; gap: 28px; justify-items: start; }
.cta h2 { max-width: 20ch; }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0; font-size: 15px; color: var(--ink-2); }
.footer-inner { display: grid; gap: 4px; }
.footer-name { font-weight: 800; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.site-footer a { color: var(--ink-2); }

/* ---------- Larger screens ---------- */

@media (min-width: 480px) {
  .hide-xs { display: inline; margin-left: 4px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .nav { display: flex; gap: 32px; margin-left: auto; margin-right: 16px; }
  .nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
  .nav a:hover { color: var(--accent); }
  .section { padding: 96px 0; }
  .service { grid-template-columns: 5fr 7fr; gap: 32px; padding: 26px 0; }
  .points { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 32px; }
  .points li { border-top: 3px solid var(--ink); border-bottom: 0; }
  .visit { grid-template-columns: 5fr 7fr; gap: 40px; }
  .map iframe { height: 380px; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1024px) {
  .hero { padding: 96px 0 112px; }
  .hero-grid { grid-template-columns: 7fr 4fr; gap: 80px; align-items: end; }
  .facts { grid-template-columns: 1fr; }
  .rating { display: none; }
  .fact-rating { display: grid; }
  .fact:nth-child(odd) { padding-right: 0; }
  .fact { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
  .fact dt { margin: 3px 0 0; }
  .grid-12 { grid-template-columns: 4fr 8fr; gap: 64px; }
  .section-head .eyebrow { margin-bottom: 24px; }
}
