/* Ballard Electric public landing page.
 *
 * Visual thesis: the solidity of a trade-service placard, sharpened by the
 * coast. Tide ink carries the page, paper holds the service list, and brass is
 * reserved for the one action customers came here to take.
 */

:root {
  --teal: #0d4f52;
  --teal-bright: #17666a;
  --brass: #a8762f;
  --brass-bright: #c99645;
  --ink: #111c1a;
  --paper: #f4f5f1;
  --paper-muted: #d8dfda;
  --line-dark: rgba(244, 245, 241, .18);
  --line-paper: #d4dcd7;
  --shadow: 0 28px 80px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(168, 118, 47, .18), transparent 26rem),
    linear-gradient(135deg, var(--ink) 0%, #102724 58%, var(--teal) 130%);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--brass-bright);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: min(100%, 80rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 5vw, 4.5rem) 1.25rem;
}

.site-shell::before {
  position: fixed;
  z-index: -1;
  top: -12rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(244, 245, 241, .09);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(244, 245, 241, .025),
    0 0 0 9rem rgba(244, 245, 241, .018);
  content: "";
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  color: var(--paper);
  text-decoration: none;
}

.identity img {
  display: block;
  width: clamp(5.5rem, 8vw, 7rem);
  height: auto;
  filter: brightness(1.62) saturate(.9);
}

.identity span {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-main {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.22fr) minmax(19rem, .78fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hero { min-width: 0; }

.location,
.section-label {
  margin: 0 0 1rem;
  color: var(--brass-bright);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--paper);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
}

.intro {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.primary-action,
.phone-action {
  display: inline-flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: center;
  border-radius: .35rem;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.primary-action {
  min-width: min(100%, 18.5rem);
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0 1.25rem 0 1.4rem;
  background: var(--brass-bright);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.primary-action span:last-child {
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
}

.phone-action {
  gap: .55rem;
  padding: 0 1.15rem;
  border: 1px solid var(--line-dark);
  color: var(--paper);
}

.phone-action span { color: var(--paper-muted); font-weight: 500; }
.phone-action strong { font-variant-numeric: tabular-nums; }

.primary-action:hover,
.phone-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover { background: #d2a252; }
.phone-action:hover { border-color: rgba(244, 245, 241, .5); }

.services {
  position: relative;
  padding: .5rem 0 .5rem clamp(1.35rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(201, 150, 69, .65);
  color: var(--paper);
}

.services .section-label {
  margin-bottom: .4rem;
  color: var(--brass-bright);
}

.service {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .85rem;
  padding: 1.55rem 0;
  border-top: 1px solid var(--line-dark);
}

.service-primary {
  margin-top: .65rem;
  border-top-color: rgba(201, 150, 69, .65);
}

.service-number {
  padding-top: .18rem;
  color: var(--brass-bright);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.service h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.service p {
  margin: .38rem 0 0;
  color: var(--paper-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.service-primary h2 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  color: #aebbb7;
  font-size: .78rem;
}

.site-footer a {
  color: #aebbb7;
  text-decoration-color: rgba(174, 187, 183, .45);
  text-underline-offset: .22em;
}

.site-footer a:hover { color: var(--paper); }

@media (max-width: 52rem) {
  .site-shell { min-height: auto; }

  .landing-main {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
  }

  h1 { max-width: 16ch; }
  .services { width: min(100%, 38rem); }
}

@media (max-width: 34rem) {
  .site-shell { padding-inline: 1rem; }
  .site-header { padding-bottom: 1.75rem; }
  .identity { gap: .85rem; }
  .identity span { letter-spacing: .045em; }
  h1 { font-size: clamp(2.15rem, 10vw, 2.8rem); }
  .intro { margin-top: 1.15rem; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .primary-action, .phone-action { width: 100%; }
  .services { padding: .4rem 0 .4rem 1rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action,
  .phone-action { transition: none; }
}
