/* Sulex Electrics — navy-header trade style, lime green accent
   Navy nav · dark navy photographic hero · light content · navy headings */

:root {
  --ink:    #0E2237;   /* hero ground / dark photo overlay (navy, not black) */
  --navy:   #182B55;   /* brand — headings, CTA band (exact match to logo file) */
  --navy-lo:#0E2237;
  --lime:   #7EBF41;   /* brand chevron — all actions (exact match to logo file) */
  --lime-dk:#69A233;
  --gold:   #EFA23A;   /* the sun, and only the sun */
  --sun:    #FFD489;
  --paper:  #F4F6F3;
  --white:  #FFFFFF;
  --line:   #E1E5DF;
  --slate:  #5F6B72;
  --bone:   #EAEFEB;   /* text on dark */
  --mist:   #9AA6A1;   /* secondary on dark */

  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px rgba(16, 24, 21, 0.10);
  --shadow-lg: 0 20px 50px rgba(16, 24, 21, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Overflow guards: media never exceeds its container, and long unbroken
   strings (emails, URLs) wrap instead of pushing the page sideways. */
img, svg, video { max-width: 100%; }
body { overflow-x: hidden; }
h1, h2, h3, p, a, li { overflow-wrap: break-word; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--white);
  color: #1A211D;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }

p { margin-bottom: 1rem; max-width: 62ch; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 0.9rem;
  display: block;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ================= NAV ================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
}

.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}


/* ================= BRAND LOCKUP ================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  flex: none;
}
.brand:hover { opacity: 0.88; }

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--lime);
}

.brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__type strong {
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: lowercase;
}
.brand__type em {
  font-style: normal;
  font-family: var(--body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime);
  margin-top: 0.28em;
  margin-left: 0.1em;
}

.brand--footer { margin-bottom: 0.9rem; }

@media (max-width: 900px) {
  .brand__mark { width: 28px; height: 28px; }
  .brand__type strong { font-size: 1.2rem; }
  .brand__type em { font-size: 0.5rem; letter-spacing: 0.3em; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.nav__link {
  font-size: 0.93rem;
  color: var(--bone);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__link:hover { color: var(--lime); }
.nav__link.is-active { color: var(--white); border-bottom-color: var(--lime); }
.nav__link:focus-visible,
.brand:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; border-radius: 6px; }

.nav__call {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--lime);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.25rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.nav__call:hover { background: #9BD44E; transform: translateY(-1px); }
.nav__call:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }


@media (max-width: 900px) {
  .nav__inner {
    padding: 0.7rem 1.1rem 0;
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav__call { padding: 0.75rem 1.05rem; font-size: 0.85rem; }
  .brand__mark { width: 28px; height: 28px; }
  .brand__type strong { font-size: 1.2rem; }
  .brand__type em { font-size: 0.5rem; letter-spacing: 0.3em; }

  /* links drop to a full-width second row so all three pages
     stay reachable on a phone */
  .nav__links {
    order: 3;
    width: 100%;
    margin: 0.7rem -1.1rem 0;
    padding: 0 1.1rem;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: space-between;
  }
  .nav__link {
    flex: 1;
    text-align: center;
    padding: 0.95rem 0.35rem;
    font-size: 0.86rem;
    border-bottom: 3px solid transparent;
  }
  .nav__link.is-active { border-bottom-color: var(--lime); }
}
/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--body);
  font-size: 0.97rem;
  font-weight: 600;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.2s, color 0.2s, box-shadow 0.25s;
  will-change: transform;
}

.btn--lime {
  background: var(--lime);
  color: var(--navy);
}
.btn--lime:hover { background: #9BD44E; }
.btn--lime:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--ghost:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: #1D4166; }
.btn--navy:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.btn__arrow { transition: transform 0.25s; flex: none; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ================= HERO ================= */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

/* full-bleed media layer — swap the SVG for a real photo, see hero__media note */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media svg,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* left-to-right scrim so type stays legible over any photo */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 34, 55, 0.95) 0%, rgba(14, 34, 55, 0.88) 34%, rgba(14, 34, 55, 0.55) 62%, rgba(14, 34, 55, 0.28) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  width: 100%;
}

.hero__copy { max-width: 620px; }

.hero__eyebrow {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.15s forwards;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.4vw, 4.05rem);
  margin-bottom: 1.1rem;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero h1 .line span {
  display: block;
  transform: translateY(115%);
  animation: lineUp 0.85s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.hero h1 .line:nth-child(1) span { animation-delay: 0.3s; }
.hero h1 .line:nth-child(2) span { animation-delay: 0.45s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.6s; }

@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub {
  font-size: 1.13rem;
  color: var(--mist);
  max-width: 42ch;
  margin-bottom: 2.1rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.95s forwards;
}

.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease 1.1s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__inner { padding: 3.5rem 1.3rem; }
  .hero__scrim { background: linear-gradient(180deg, rgba(14, 34, 55, 0.78) 0%, rgba(14, 34, 55, 0.92) 100%); }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ================= CREDIBILITY STRIP ================= */
.strip {
  background: var(--navy);
  padding: 0;
}
.strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.strip__cell {
  padding: 1.9rem 1.4rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.strip__cell:last-child { border-right: none; }

.strip__stat {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.strip__label {
  font-size: 0.85rem;
  color: rgba(234, 239, 235, 0.78);
}

@media (max-width: 760px) {
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__cell:nth-child(2) { border-right: none; }
  .strip__cell:nth-child(1), .strip__cell:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .strip__cell { padding: 1.4rem 0.9rem; }
  .strip__stat { font-size: 1.35rem; }
}

/* ================= SECTIONS ================= */
.section { padding: 5.5rem 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p { color: var(--slate); margin: 0 auto; }
.section__head .eyebrow { margin-bottom: 0.6rem; }

@media (max-width: 760px) { .section { padding: 3.5rem 0; } }

/* ================= SERVICE CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(141, 198, 63, 0.13), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(141, 198, 63, 0.55); }
.card:hover::before { opacity: 1; }
.card:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }

.card__art {
  height: 150px;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__art svg { width: 100%; height: 100%; }

.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.94rem; color: var(--slate); margin-bottom: 1.4rem; flex-grow: 1; }

.card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  transition: color 0.25s;
}
.card__go i {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-style: normal;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), background 0.25s, border-color 0.25s;
}
.card:hover .card__go { color: var(--lime-dk); }
.card:hover .card__go i { background: var(--lime); border-color: var(--lime); transform: rotate(-45deg); }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ================= OWNER ================= */
.owner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.owner__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 25 / 14;      /* matches alex.jpg's real ratio — nothing gets cropped */
  min-height: 300px;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
.owner__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* client asked for the photo not to be cropped */
  z-index: 2;
}

/* lime corner rule — picks up the chevron mark */
.owner__photo::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 78px; height: 5px;
  background: var(--lime);
  z-index: 3;
}

.owner h2 { margin-bottom: 1.2rem; }
.owner p { color: var(--slate); margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .owner { grid-template-columns: 1fr; gap: 2rem; }
  /* min-height + aspect-ratio would force the width wider than the column on
     narrow phones (220px x 16/10 = 352px). Let width drive height instead. */
  .owner__photo { min-height: 0; width: 100%; min-width: 0; }
}

/* ================= REVIEWS ================= */
.reviews { background: var(--paper); padding: 5.5rem 0; overflow: hidden; }

.marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; height: 100%; width: 110px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }

.track {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  width: max-content;
  padding: 0.3rem 0;
  animation: scrollL 46s linear infinite;
}
.track--rev { animation: scrollR 52s linear infinite; }
@keyframes scrollL { to { transform: translateX(-50%); } }
@keyframes scrollR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.marquee:hover .track { animation-play-state: paused; }

/* review-item template — copy one block to add a review, JS handles the loop maths */
.review {
  flex: 0 0 min(400px, 85vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
}
.review__stars { color: var(--lime); margin-bottom: 0.8rem; line-height: 0; }
.review__stars svg { width: 78px; height: 15px; display: block; }
.review__text { font-size: 0.94rem; line-height: 1.7; margin-bottom: 0.9rem; color: #263029; }
.review__who { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }

.chips {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  justify-content: center;
  max-width: 900px; margin: 2.2rem auto 0; padding: 0 1.5rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--navy);
}
.chip svg { flex: none; }

/* ================= GENERAL ELECTRICAL (compact / low-priority list) ================= */
.general {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
}
.general__head {
  margin-bottom: 1.6rem;
}
.general__head h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.general__head p {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}
.general__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 1.6rem;
}
.general__item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.general__item svg {
  flex: none;
  width: 30px;
  height: 30px;
  opacity: 0.55;
  margin-top: 0.1rem;
}
.general__item h4 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.general__item p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
  max-width: none;
}
.general__ask {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.general__ask p { margin: 0; color: var(--slate); font-size: 0.9rem; }

@media (max-width: 900px) {
  .general__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .general { padding: 1.6rem 1.3rem; }
  .general__grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .general__ask { flex-direction: column; align-items: flex-start; }
}

/* ================= WHO WE ARE (services page) ================= */
.whoweare {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.whoweare__copy p { color: var(--slate); margin-bottom: 1.4rem; }

.ticklist { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.ticklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}
.ticklist li svg { flex: none; }

/* accreditation badges — set apart from the rest with its own panel */
.accred {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 2rem;
  align-self: stretch;
}
.accred__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.2rem;
}
.accred__grid { display: flex; flex-direction: column; gap: 1rem; }
.accred__badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
}
.accred__badge svg { flex: none; }
.accred__badge span { color: var(--bone); font-weight: 600; font-size: 0.88rem; line-height: 1.3; }

@media (max-width: 860px) {
  .whoweare { grid-template-columns: 1fr; gap: 2rem; }
}

/* ================= UNCROPPED PHOTO GALLERY (services page) =================
   Client asked for these not to be cropped, so contain (not cover) inside a
   fixed-height frame, letterboxed on a neutral fill rather than sliced. */
.uncropped-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.uncropped-gallery__item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.uncropped-gallery__item img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--ink);
  display: block;
}
.uncropped-gallery__item figcaption {
  padding: 0.7rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--slate);
}
@media (max-width: 700px) {
  .uncropped-gallery { grid-template-columns: 1fr; }
  .uncropped-gallery__item img { height: 280px; }
}

/* ================= CONTACT METHODS (contact page, no-form layout) ================= */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.contact-method {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-method:hover { transform: translateY(-3px); border-color: var(--lime); }
.contact-method__icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.contact-method h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.contact-method__value { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; word-break: break-word; }
.contact-method__note { font-size: 0.85rem; color: var(--slate); }
@media (max-width: 760px) {
  .contact-methods { grid-template-columns: 1fr; }
}

/* ================= HIGHLIGHTED REVIEW (contact page) ================= */
.pull-review {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pull-review__stars { color: var(--gold); width: 130px; margin: 0 auto 1.4rem; }
.pull-review__text {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 1.2rem;
}
.pull-review__who { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); }

/* ================= ROUTE / REGION GRAPHIC (contact page) ================= */
.route {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 760px;
  margin: 2.6rem auto 0;
  padding: 0 10px;
}
.route__line {
  position: absolute;
  left: 20px; right: 20px;
  bottom: 13px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.route__stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0 6px;
}
.route__stop span {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}
.route__note {
  max-width: 640px;
  margin: 2.2rem auto 0;
  text-align: center;
  color: var(--slate);
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .route { flex-wrap: wrap; justify-content: center; gap: 1.6rem 1.2rem; }
  .route__line { display: none; }
}

/* ================= PAGE HEADER ================= */
.pagehead {
  background: var(--navy);
  padding: 4rem 0 3.4rem;
  position: relative;
  overflow: hidden;
}
.pagehead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--lime);
}
.pagehead h1 { color: var(--white); margin-bottom: 0.7rem; }
.pagehead p { color: var(--mist); max-width: 52ch; }

/* ================= FEATURE BLOCKS ================= */
/* ================= PHOTO SLOTS =================
   Drop an <img> into any .tile__img and the placeholder SVG hides itself. */
.tile__img:has(img) svg,
.tile__img.has-photo svg { display: none !important; }

/* ================= SERVICE TILES (What we do) ================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

/* Primary tiles (Solar / Battery / EV) — forced 3-up, larger than the
   compact general-electrical list below it. Must come after .tiles above
   so this grid-template-columns wins the cascade instead of being silently
   overridden back to 4 columns. */
.tiles--primary {
  grid-template-columns: repeat(3, 1fr);
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 760px) { .tiles--primary { grid-template-columns: 1fr; } }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s;
}
.tile:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tile:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* PHOTO SLOT — each tile takes a 4:3 job photo. Greyscale by default,
   full colour on hover, matching the trade-directory look. */
.tile__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #E8EBE7;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* Greyscale-until-hover only on devices that can actually hover.
   Touch devices never fire :hover, so phones show full colour photos. */
@media (hover: hover) {
  .tile__img img { filter: grayscale(1) contrast(1.05); }
  .tile:hover .tile__img img { filter: grayscale(0); transform: scale(1.04); }
}
.tile__img svg { width: 62%; height: 62%; opacity: 0.55; }

.tile h3 {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.55rem;
}
.tile p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
  max-width: none;
}

@media (max-width: 1040px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .tiles { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; } }
@media (max-width: 420px)  { .tiles { grid-template-columns: 1fr; } }





/* ================= STEPS ================= */
.steps-wrap {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 2.6rem;
  max-width: 900px;
  margin: 0 auto;
}
.steps-rail { position: sticky; top: 120px; display: flex; justify-content: center; }
.rail {
  width: 3px; min-height: 420px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
}
.rail::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--progress, 0%);
  background: var(--lime);
  border-radius: 2px;
  transition: height 0.12s linear;
}

.steps { display: flex; flex-direction: column; gap: 3.4rem; }
.step { position: relative; padding-left: 2rem; }
.step__n {
  position: absolute;
  left: -85px; top: -2px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.1rem; font-weight: 700;
  color: var(--slate);
  transition: all 0.3s ease;
}
.step.is-on .step__n {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
  transform: scale(1.06);
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--slate); font-size: 0.96rem; opacity: 0.6; transition: opacity 0.3s; margin: 0; }
.step.is-on p { opacity: 1; }

@media (max-width: 900px) {
  .steps-wrap { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps-rail { position: static; justify-content: flex-start; }
  .rail { width: 100%; height: 3px; min-height: 3px; }
  .rail::before { height: 100%; width: var(--progress, 0%); }
  .step { padding-left: 0; }
  .step__n { position: static; width: 40px; height: 40px; font-size: 0.95rem; margin-bottom: 0.8rem; }
  .steps { gap: 2rem; }
}

/* ================= CONTACT ================= (form removed — see .contact-methods above) */

/* ================= CTA BAND ================= */
.cta {
  background: var(--navy);
  padding: 4.2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--lime);
}
.cta h2 { color: var(--white); margin-bottom: 0.6rem; position: relative; }
.cta p { color: rgba(234, 239, 235, 0.8); margin: 0 auto 1.9rem; position: relative; }
.cta__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; position: relative; }

@media (max-width: 620px) {
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}

/* ================= FOOTER ================= */
.footer { background: var(--navy); color: var(--bone); padding: 3.4rem 0 1.8rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.2rem;
}
.footer h3 {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--lime);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.footer p { font-size: 0.89rem; color: rgba(234, 239, 235, 0.72); margin-bottom: 0.5rem; line-height: 1.75; }
.footer a { color: var(--bone); transition: color 0.2s; }
.footer a:hover { color: var(--lime); }
.footer a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.4rem;
  font-size: 0.8rem;
  color: rgba(234, 239, 235, 0.5);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ================= SCROLL REVEAL ================= */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in-view { animation: revealUp 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) forwards; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* skip link */
.skip {
  position: absolute; left: 1rem; top: -60px;
  background: var(--lime); color: var(--navy);
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--r) var(--r);
  z-index: 500; font-weight: 600; transition: top 0.2s;
}
.skip:focus { top: 0; }

/* ================= TOUCH TARGETS =================
   Anything tappable gets to ~44px on phones, so it can be hit reliably. */
@media (max-width: 900px) {
  .brand { padding: 0.35rem 0; }
  .footer p a,
  .info__card a,
  .card__go,
  .svc__link,
  .tile a {
    display: inline-block;
    padding: 0.55rem 0;
    min-height: 44px;
    line-height: 1.9;
  }
  /* footer page links: full row is tappable, not just the word */
  .footer__col--pages p a { display: block; }
  .footer__base { line-height: 2.2; }
  .btn { padding: 1rem 1.7rem; }
  .chip { padding: 0.7rem 1.1rem; }
}
