/* BBWS — Byhalia's Best Wiring Service
   Brand: deep navy / stormy sky, white, bronze–wood accents */

:root {
  --navy: #132a4a;
  --navy-mid: #1a3a63;
  --navy-deep: #0a1628;
  --storm: #243b5c;
  --bronze: #b08d57;
  --bronze-dark: #8a6d3f;
  --bronze-light: #d4b87a;
  --white: #ffffff;
  --off: #f4f6f9;
  --text: #152033;
  --muted: #5b6575;
  --border: #d8dee8;
  --shadow: 0 8px 28px rgba(10, 22, 40, 0.12);
  --radius: 12px;
  --max: 1100px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-mid); }
a:hover { color: var(--bronze-dark); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bronze);
  color: var(--navy-deep);
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--bronze);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-link img {
  height: 52px;
  width: auto;
  border-radius: 4px;
}

.brand-text {
  display: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-left: 0.65rem;
}
.brand-text span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--bronze-light);
}

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 2px solid var(--bronze);
  color: var(--white);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
.nav-toggle[aria-expanded="true"] { background: var(--bronze); color: var(--navy-deep); }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy-deep);
  border-bottom: 2px solid var(--bronze);
  padding: 0.75rem 1.1rem 1rem;
}
.site-nav.open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  min-height: 44px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--navy-mid);
  color: var(--bronze-light);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }

.btn-call {
  background: var(--bronze);
  color: var(--navy-deep);
  border-color: var(--bronze);
}
.btn-call:hover { background: var(--bronze-light); color: var(--navy-deep); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-mid); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Hero */
.hero {
  background:
    linear-gradient(90deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.6) 55%, rgba(10,22,40,0.35) 100%),
    url("../assets/cover-logo-blue.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 3.25rem 1.1rem 3.5rem;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bronze-dark), var(--bronze-light), var(--bronze-dark));
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 0.75rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  max-width: 18ch;
}
.hero-tagline {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  color: var(--bronze-light);
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.trust-line {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
}
.trust-line strong { color: var(--bronze-light); font-weight: 700; }

/* Layout */
.section {
  padding: 3rem 1.1rem;
}
.section-alt { background: var(--off); }
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  color: var(--navy);
}
.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 42rem;
}

.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 2.25rem 1.1rem 2rem;
  border-bottom: 3px solid var(--bronze);
}
.page-hero .section-inner h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}
.page-hero p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  max-width: 40rem;
}

/* Cards / services */
.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 2px 8px rgba(10,22,40,0.04);
  border-top: 3px solid var(--bronze);
}
.service-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-mid);
}
.service-card a:hover { color: var(--bronze-dark); text-decoration: underline; }

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.photo-strip figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-deep);
  aspect-ratio: 4/3;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-strip figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-mid));
  color: var(--white);
  padding: 2.5rem 1.1rem;
  text-align: center;
  border-top: 3px solid var(--bronze);
  border-bottom: 3px solid var(--bronze);
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  color: rgba(255,255,255,0.88);
}
.cta-band .hero-actions { justify-content: center; }

/* About / prose */
.prose {
  max-width: 42rem;
}
.prose p { margin: 0 0 1rem; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.fact {
  background: var(--white);
  border-left: 4px solid var(--bronze);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 1px 4px rgba(10,22,40,0.06);
}
.fact strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.fact span { color: var(--muted); font-size: 0.95rem; }

.area-list {
  columns: 1;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}
.area-list li { margin-bottom: 0.4rem; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.contact-list .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-list a {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--navy);
}
.contact-list a:hover { color: var(--bronze-dark); text-decoration: underline; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.hours-table th { font-weight: 600; color: var(--navy); width: 45%; }
.hours-table td { color: var(--muted); }

.estimate-form label {
  display: block;
  font-weight: 600;
  margin: 0.85rem 0 0.3rem;
  color: var(--navy);
}
.estimate-form label:first-of-type { margin-top: 0; }
.estimate-form input,
.estimate-form textarea,
.estimate-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--off);
  min-height: 48px;
}
.estimate-form textarea { min-height: 120px; resize: vertical; }
.estimate-form .form-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.estimate-form .btn { margin-top: 1rem; width: 100%; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 2.25rem 1.1rem 1.5rem;
  border-top: 3px solid var(--bronze);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.footer-brand img {
  height: 64px;
  width: auto;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.footer-brand .tagline {
  font-style: italic;
  color: var(--bronze-light);
  margin: 0.35rem 0 0;
  font-weight: 600;
}
.footer-col h3 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bronze-light);
}
.footer-col p, .footer-col a {
  margin: 0 0 0.35rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--bronze-light); text-decoration: underline; }
.footer-bottom {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .brand-text { display: block; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .area-list { columns: 2; }
  .estimate-form .btn { width: auto; }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.95rem;
    min-height: auto;
  }
  .header-cta {
    display: inline-flex;
    margin-left: 0.5rem;
    padding: 0.55rem 0.95rem;
    min-height: 44px;
    font-size: 0.95rem;
  }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .logo-link img { height: 56px; }
}

@media (min-width: 1100px) {
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
}

.service-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--navy);
}
.mt-2 { margin-top: 2rem; }
.mt-0 { margin-bottom: 0; }
.full-btn { width: 100%; }
