/* Will Power Electrical — shared stylesheet
   Navy #0A1628 · Gold #F5C518 · White
   Headings: Archivo · Body: Source Sans 3 */

:root {
  --navy: #0a1628;
  --navy-2: #10203a;
  --gold: #f5c518;
  --gold-dark: #d9a90c;
  --white: #ffffff;
  --ink: #1a2433;
  --muted: #5b6675;
  --light: #f5f7fa;
  --line: #e3e8ef;
  --radius: 10px;
  --maxw: 1120px;
  --font-head: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

section { padding: 4rem 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; text-decoration: none; }

.brand img { height: 46px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }

.main-nav a.nav-link {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}

.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--gold); }

.nav-phone {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: .95rem;
  white-space: nowrap;
}

.nav-phone:hover { background: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle svg { width: 28px; height: 28px; stroke: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  padding: .85rem 1.8rem;
  border-radius: 8px;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); }

.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy) url('../img/hero.jpg') center 35% / cover no-repeat;
  color: var(--white);
  padding: 6.5rem 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 22, 40, .93) 20%, rgba(10, 22, 40, .72) 55%, rgba(10, 22, 40, .35) 100%);
}

.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; max-width: 1120px; }
.hero-inner > * { max-width: 620px; }

.eyebrow {
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .22em;
  font-size: .78rem;
  margin-bottom: 1rem;
}

.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1.1rem; }

.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .88); margin-bottom: 2rem; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  overflow: hidden;
}

.page-hero.has-photo { background: var(--navy) center 40% / cover no-repeat; }

.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 22, 40, .94) 15%, rgba(10, 22, 40, .75) 60%, rgba(10, 22, 40, .45) 100%);
}

.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
.page-hero p { color: rgba(255, 255, 255, .85); margin-top: .8rem; max-width: 640px; }

/* ---------- Service cards ---------- */
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: .6rem; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 2.5rem; font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 22, 40, .14); }

.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.card-body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-body h3 { font-size: 1.08rem; }
.card-body p { font-size: .94rem; color: var(--muted); flex: 1; }
.card-link { color: var(--navy); font-weight: 700; font-size: .95rem; }
.card:hover .card-link { color: var(--gold-dark); }

/* Numbered service list */
.service-list { list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.service-list li a {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.service-list li:last-child a { border-bottom: 0; }
.service-list li a:hover { background: var(--light); }

.service-num { font-family: var(--font-head); font-weight: 800; color: var(--gold-dark); font-size: 1.25rem; min-width: 2.6rem; }
.service-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--navy); flex: 1; }
.service-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; flex: 0 0 96px; }
.service-arrow { color: var(--gold-dark); font-size: 1.4rem; font-weight: 700; }

/* ---------- Navy / gold bands ---------- */
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2 { color: var(--white); }

.included-list { list-style: none; max-width: 640px; margin: 1.8rem auto 0; display: grid; gap: .9rem; }
.included-list li { position: relative; padding-left: 2rem; font-size: 1.08rem; color: rgba(255, 255, 255, .92); }
.included-list li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: .7em; height: .7em; border-radius: 50%;
  background: var(--gold);
}

.band-gold { background: var(--gold); color: var(--navy); text-align: center; }
.band-gold h2 { color: var(--navy); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.band-gold p { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.4rem; }

/* ---------- Two-column intro ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10, 22, 40, .16); }
.two-col h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.two-col p + p { margin-top: 1rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.testimonial {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  color: rgba(255, 255, 255, .9);
}

.testimonial .stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .8rem; font-size: 1.05rem; }
.testimonial blockquote { font-size: 1.02rem; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--gold); font-size: .95rem; }
.testimonial .placeholder-note { display: block; margin-top: .5rem; font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* ---------- Towns strip ---------- */
.towns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }
.towns span {
  background: var(--white);
  border: 1px solid var(--line);
  padding: .45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }

.contact-card {
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-card h3 { margin-bottom: 1rem; }
.contact-line { display: flex; gap: .8rem; align-items: baseline; margin-bottom: .9rem; font-size: 1.08rem; }
.contact-line a { color: var(--navy); font-weight: 700; text-decoration: none; }
.contact-line a:hover { color: var(--gold-dark); }

form.quote-form { display: grid; gap: 1.1rem; }
.form-status { margin: 0; padding: .9rem 1.1rem; border-radius: 8px; background: rgba(245, 197, 24, .12); border: 1px solid rgba(245, 197, 24, .45); color: var(--white); font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 3rem 0 2rem; text-align: center; }

.footer-lines { font-size: .98rem; line-height: 2; margin-bottom: 1.2rem; }
.footer-lines strong { color: var(--white); }

.footer-contact { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.4rem; }
.footer-contact a { color: var(--gold); text-decoration: none; font-weight: 700; }
.footer-contact a:hover { text-decoration: underline; }

.footer-small { font-size: .82rem; color: rgba(255, 255, 255, .45); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .two-col img { order: -1; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .main-nav.open { display: flex; }

  .main-nav a.nav-link { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-phone { margin-top: 1rem; text-align: center; }
  .nav-toggle { display: block; }
  .site-header { position: sticky; }

  section { padding: 2.8rem 0; }
  .hero { padding: 4.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .service-thumb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.ecra-badge { display: block; margin: 0 auto 1.2rem; width: 220px; height: auto; }
