/* City Electric - one stylesheet shared by the home, about, gallery and
   contact pages.

   Mobile-first: most visitors arrive on a phone in a hurry, so the phone
   number is the largest thing in the sticky header on every page.
   Dark navy, white and amber. No web fonts, no libraries, no build step. */

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

:root {
  --navy: #0b1c33;
  --navy-deep: #071426;
  --navy-soft: #1b3a5f;
  --white: #ffffff;
  --ink: #152135;
  --muted: #586a82;
  --line: #dde4ee;
  --tint: #f5f8fc;
  --accent: #f7b32b;
  --accent-dark: #dd9a10;
  --wrap: 1080px;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(7, 20, 38, 0.12);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--navy-soft); }

h1, h2, h3 { margin: 0 0 0.6rem; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 7vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 5vw, 2.15rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.15rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--navy-deep);
  padding: 0.6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* The skip link jumps to the top of the page; keep it clear of the sticky
   header rather than landing underneath it. */
main { scroll-margin-top: 5.5rem; }

/* ---------- Sticky contact header (same on all four pages) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(7, 20, 38, 0.25);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.9rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.wordmark {
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  line-height: 1.3;
}

.header-phone {
  font-size: clamp(1.2rem, 5.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
}

.header-email {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.header-phone:hover, .header-email:hover { text-decoration: underline; }

/* On a phone the page links sit on their own row under the phone number;
   on wider screens they move up between the wordmark and the contact. */

.site-nav { flex-basis: 100%; order: 3; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover { color: var(--white); }

.site-nav a[aria-current='page'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Inner page header band ---------- */

.page-head {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
}

.page-head h1 { color: var(--white); }

.page-lede {
  max-width: 46rem;
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Hero (home page) ---------- */

.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
}

.hero-grid { display: grid; gap: 1.75rem; }

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 { color: var(--white); }

.hero-lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
}

.hero-alt { margin: 1rem 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }
.hero-alt a { color: var(--accent); font-weight: 700; }

.hero-panel img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  max-width: 24rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.btn-call {
  background: var(--accent);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(247, 179, 43, 0.3);
}

.btn-call:hover { background: var(--accent-dark); }

.btn-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; }
.btn-number { font-size: clamp(1.35rem, 6vw, 1.75rem); letter-spacing: 0.02em; }

/* ---------- Shared section shell ---------- */

.section { padding: 2.5rem 0; }
.section-lede { max-width: 46rem; color: var(--muted); }

.section-more { margin: 1.5rem 0 0; }

.more-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.more-link:hover { color: var(--navy-soft); }

/* ---------- About Warren ---------- */

.about-grid { display: grid; gap: 1.5rem; }

.portrait {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.about-points li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 600;
  color: var(--navy);
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Services / job lists ---------- */

.services-section { background: var(--tint); }

.services {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.service h3 { margin-bottom: 0.3rem; }
.service p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Work gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.gallery-wide {
  grid-column: 1 / -1;
  display: block;
  margin: 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.gallery-wide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.gallery figcaption, .card-caption { display: block; padding: 0.85rem 1.1rem; }

.gallery .tile-job, .card-caption .tile-job {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--white);
}

.gallery .tile-place, .card-caption .tile-place {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  min-height: 140px;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-soft) 100%);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.tile figcaption { padding: 0; }

.gallery-wide:hover .tile-job, .tile:hover .tile-job { text-decoration: underline; }

/* ---------- Contact blocks (home, about and gallery strips + contact page) ---------- */

.contact {
  background: var(--navy-deep);
  color: var(--white);
  padding: 2.75rem 0 3rem;
}

.contact-strip { padding: 2.25rem 0 2.5rem; }

.contact h2 { color: var(--white); }
.contact-lede { max-width: 42rem; color: rgba(255, 255, 255, 0.85); }

.contact-links {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
}

.contact-link {
  display: block;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
  transition: background 0.15s ease;
}

.contact-link:hover { background: rgba(255, 255, 255, 0.16); }

.contact-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  display: block;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-facts {
  display: grid;
  gap: 1.25rem;
  margin: 2.25rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-facts dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-facts dd { margin: 0.35rem 0 0; color: rgba(255, 255, 255, 0.88); }

.contact-more { margin: 1.25rem 0 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.contact-more a { color: var(--accent); font-weight: 700; }

.ready {
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.ready strong { color: var(--white); }

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

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-inner { display: grid; gap: 0.5rem; }
.footer-name { margin: 0; }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-links { margin: 0; }
.footer-links a { color: var(--white); font-weight: 700; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .contact-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
  .section { padding: 3.5rem 0; }
  .page-head { padding: 3rem 0 3.25rem; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
  .portrait { max-width: 100%; }
  .gallery-wide img { aspect-ratio: 2 / 1; }
}

@media (min-width: 880px) {
  .header-inner { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-nav { order: 2; flex-basis: auto; margin-left: 1.25rem; }
  .header-contact { order: 3; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 3rem; }
  .hero-panel img { max-height: 640px; }
  .btn { display: inline-flex; width: auto; padding: 1rem 2.25rem; }
}

@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery-wide img { aspect-ratio: 21 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-link { transition: none; }
}
