/* Howie Electric LLC — mobile-first, high-contrast, navy + gold */
:root {
  --navy-950: #04101e;
  --navy-900: #071a33;
  --navy-800: #0c2b54;
  --navy-700: #163e72;
  --blue: #1a74e8;
  --gold: #f5c518;
  --gold-2: #ffd34d;
  --gold-ink: #3a2d00;
  --cream: #f2f4f8;
  --white: #fff;
  --ink: #0e1622;
  --muted: #4a5b6e;
  --line: #d5dce6;
  --ok: #157a48;
  --danger: #c1121f;
  --radius: 8px;
  --shadow: 0 10px 28px rgba(7, 26, 51, 0.12);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  min-height: 100%;
  padding-bottom: 4.25rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6rem; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-900); padding: 0.6rem 1rem; z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.muted { color: var(--muted); }
.lead { font-size: 1.08rem; color: #243246; max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 2.85rem; padding: 0.7rem 1.15rem; border-radius: var(--radius);
  font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-size: 0.95rem; line-height: 1; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-2); color: var(--navy-900); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.service-card .btn,
.cta-row .btn { white-space: normal; text-align: center; max-width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Top bar + header */
.e-bar {
  background: var(--gold); color: var(--navy-900); font-weight: 800;
  font-size: 0.84rem; text-align: center; padding: 0.45rem 0.75rem;
}
.e-bar a { color: inherit; text-decoration: none; }
.e-bar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900); color: var(--white);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; min-height: var(--header);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--white); min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.site-footer .brand {
  align-items: center;
  background: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  margin-bottom: 0.9rem;
}
.site-footer .brand img { width: 13.5rem; height: auto; }
.logo-plate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.logo-plate img { max-width: 280px; width: 100%; height: auto; margin: 0 auto; }
.brand-name { display: block; font-weight: 800; font-size: 0.98rem; letter-spacing: 0.03em; line-height: 1.15; }
.brand-tag { display: block; font-size: 0.7rem; color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }

.nav { display: none; }
.nav a {
  color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 0.35rem 0.15rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.header-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 2.6rem; height: 2.6rem; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 1.35rem; height: 2px; background: var(--gold); transition: transform 0.2s, opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; background: var(--navy-800); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.75rem 0 1.1rem;
}
.nav-open .mobile-nav { display: block; }
.mobile-nav a {
  display: block; color: var(--white); text-decoration: none; font-weight: 700;
  padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--gold); }
.mobile-nav .btn { margin-top: 0.85rem; }

/* Hero */
.hero {
  position: relative; color: var(--white); min-height: 32rem;
  display: grid; align-items: end;
  background: var(--navy-950);
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,30,0.35) 0%, rgba(4,16,30,0.55) 40%, rgba(4,16,30,0.88) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 3.5rem 0 2.4rem; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: #d9e2ee; }
.hero .eyebrow { color: var(--gold); }

/* Trust */
.trust {
  background: var(--navy-800); color: var(--white);
  padding: 1.1rem 0;
}
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem;
}
.trust-item { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.92rem; }
.trust-item svg { flex: none; color: var(--gold); width: 1.25rem; height: 1.25rem; }

.offer-band {
  background: var(--navy-800);
  color: var(--white);
  padding: 1.6rem 0 1.8rem;
  border-bottom: 3px solid var(--gold);
}
.offer-band h2 { color: var(--white); margin-bottom: 0.45rem; }
.offer-band .lead { color: #d9e2ee; max-width: 46rem; margin-bottom: 1.15rem; }
.offer-grid { display: grid; gap: 0.85rem; }
.offer-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--navy-900); color: var(--white);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  text-decoration: none; font-weight: 800;
}
.offer-card:hover { border-color: var(--gold); color: var(--gold); }
.offer-card .icon-box { margin: 0; width: 2.3rem; height: 2.3rem; background: var(--gold); color: var(--navy-900); }
.offer-card span { font-size: 1.02rem; }

/* Sections */
.section { padding: 3.2rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { margin-bottom: 1.6rem; }
.section-head p { max-width: 38rem; }

/* Cards / grids */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem; box-shadow: 0 1px 0 rgba(7,26,51,0.04);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card-link:hover { border-color: var(--gold); box-shadow: var(--shadow); }
a.card-link { border: 1px solid var(--line); }
.icon-box {
  width: 2.5rem; height: 2.5rem; border-radius: 6px; background: var(--navy-900);
  color: var(--gold); display: grid; place-items: center; margin-bottom: 0.75rem;
}
.icon-box svg { width: 1.3rem; height: 1.3rem; display: block; }

.service-card .btn { margin-top: 0.85rem; }

/* Photo placeholder */
.photo-ph {
  background:
    linear-gradient(135deg, rgba(7,26,51,0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(7,26,51,0.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(7,26,51,0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(7,26,51,0.04) 25%, transparent 25%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 0, 12px -12px, 0 12px;
  background-color: #e7ebf1;
  border: 2px dashed #9aa8b8;
  border-radius: var(--radius);
  min-height: 16rem;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  color: var(--muted); font-weight: 700;
}
.photo-ph span { display: block; color: var(--navy-900); font-size: 1.05rem; margin-bottom: 0.25rem; }

figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.45rem; }
.media { border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.team-photo { margin: 0; }
.team-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 18%;
  border-radius: var(--radius); background: var(--navy-900);
}
.media.team-wide img { aspect-ratio: 4 / 3; object-position: center 22%; }

/* Reviews */
.stars { color: var(--gold); letter-spacing: 0.08em; font-size: 1.05rem; }
.review p { font-size: 0.98rem; }
.review-meta { font-size: 0.85rem; font-weight: 700; color: var(--navy-800); }

/* Forms */
form { display: grid; gap: 0.75rem; }
label { font-weight: 700; font-size: 0.86rem; color: var(--navy-900); display: block; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; border: 1.5px solid #c5ced9; border-radius: 6px; min-height: 2.75rem;
  padding: 0.55rem 0.7rem; font: inherit; background: var(--white); color: var(--ink);
}
textarea { min-height: 7.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(245,197,24,0.45); border-color: var(--navy-800);
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { display: none; padding: 0.75rem 0.9rem; border-radius: 6px; font-weight: 700; width: 100%; }
.form-status.ok { display: block; background: #e5f6ec; color: var(--ok); }
.form-status.err { display: block; background: #fde8ea; color: var(--danger); }
.form-card { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }

/* Split */
.split { display: grid; gap: 1.5rem; }
.hours dt { font-weight: 800; color: var(--navy-900); }
.hours dd { margin: 0 0 0.7rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.contact-list li { margin: 0 0 0.7rem; }
.contact-list a { font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--navy-900); }
.contact-list a:hover { color: var(--blue); }

/* Map placeholder */
.map-ph {
  background: var(--navy-900); color: var(--white); border-radius: var(--radius);
  min-height: 18rem; position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map-rings {
  position: absolute; inset: 0; pointer-events: none;
}
.map-rings i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  border: 2px solid rgba(245,197,24,0.28); border-radius: 50%;
}
.map-rings i:nth-child(1) { width: 6rem; height: 6rem; }
.map-rings i:nth-child(2) { width: 11rem; height: 11rem; }
.map-rings i:nth-child(3) { width: 16.5rem; height: 16.5rem; }
.pin {
  width: 1.15rem; height: 1.15rem; background: var(--gold); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); margin: 0 auto 0.7rem; position: relative; z-index: 1;
}
.map-ph h3, .map-ph p { position: relative; z-index: 1; }
.map-ph h3 { color: var(--white); }

/* Badges / list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem; width: 0.85rem; height: 0.45rem;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.2rem 0; }
.stat { background: var(--navy-800); color: var(--white); border-radius: var(--radius); padding: 0.9rem; }
.stat b { display: block; color: var(--gold); font-size: 1.15rem; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy-900); color: var(--white); padding: 2.2rem 0 2rem;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #d5deea; margin: 0; max-width: 38rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: #c9d4e2; padding: 2.4rem 0 5.5rem; }
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer .brand-name { font-size: 1.15rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 0.4rem; }
.legal { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 1.5rem; padding-top: 1rem; font-size: 0.82rem; color: #8ea0b5; }
.footer-phone { font-size: 1.35rem; font-weight: 800; color: var(--gold); display: inline-block; margin: 0.3rem 0 0.5rem; }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-900);
  border-top: 3px solid var(--gold);
}
.callbar a {
  text-align: center; padding: 0.85rem 0.5rem; color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 0.92rem;
}
.callbar a:first-child { background: var(--gold); color: var(--navy-900); }

/* Service area chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.75rem; font-weight: 700; font-size: 0.88rem; color: var(--navy-800);
}

.note {
  font-size: 0.82rem; color: var(--muted); background: #eef2f6;
  border-left: 3px solid var(--gold); padding: 0.6rem 0.75rem; margin: 1rem 0 0;
}

/* Desktop */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-name { font-size: 1.05rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .hero { min-height: 36rem; align-items: center; }
  .hero-copy { padding: 5rem 0 4rem; }
  .hero-media::after {
    background: linear-gradient(90deg, rgba(4,16,30,0.88) 0%, rgba(4,16,30,0.55) 48%, rgba(4,16,30,0.2) 100%);
  }
  .hero-media img { object-position: center right; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 2.2rem; }
}

@media (min-width: 1024px) {
  .nav-toggle, .mobile-nav { display: none !important; }
  .nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .header-cta { display: inline-flex; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  form.two-col { grid-template-columns: 1fr 1fr; }
  form.two-col .span-2 { grid-column: 1 / -1; }
}

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

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