/* ---------------------------------------
   Beacon Electric Co. — demo site styles
   Layout: fixed left sidebar nav (desktop) /
   top brand strip + slide-in drawer + fixed
   bottom action bar (mobile). Trust/urgency
   hero, no sticky top nav bar.
--------------------------------------- */

:root {
  --navy: #0b1f3a;
  --navy-soft: #1f3a5f;
  --slate: #4a5a6b;
  --paper: #f5f8fb;
  --panel: #ffffff;
  --panel-deep: #eef2f7;
  --amber: #e0972a;
  --amber-dark: #b8760f;
  --line: #dbe3ea;
  --ink: #0b1f3a;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --sidebar-width: 272px;
  --mobile-topbar-height: 60px;
  --mobile-actionbar-height: 64px;

  --wrap: 1040px;
  --radius: 14px;
  --shadow: 0 12px 32px -16px rgba(11, 31, 58, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin: 0 0 10px;
}

.section-sub {
  color: var(--slate);
  max-width: 46ch;
  margin: 10px 0 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: var(--navy);
}
.btn-primary:hover { background: var(--amber-dark); color: #fff; }

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

/* ============================================
   App shell
============================================ */
.app-shell {
  min-height: 100vh;
}

/* ============================================
   Sidebar (desktop primary nav)
============================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--navy);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 24px 24px;
  overflow-y: auto;
  z-index: 200;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.sidebar .brand-mark { color: var(--amber); display: inline-flex; flex-shrink: 0; }

.sidebar-emergency {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--navy-soft);
  border: 1px solid rgba(224, 151, 42, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sidebar-emergency:hover { background: rgba(224, 151, 42, 0.16); border-color: var(--amber); }
.sidebar-emergency-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 248, 251, 0.75);
}
.sidebar-emergency-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--amber);
}

.sidebar-nav {
  flex: 1;
}
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a {
  display: block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(245, 248, 251, 0.78);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(245, 248, 251, 0.08);
  color: #fff;
  border-left-color: var(--amber);
}

.sidebar-cta { width: 100%; }

.sidebar-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(245, 248, 251, 0.15);
}
.sidebar-license {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 248, 251, 0.6);
  line-height: 1.5;
}

/* ============================================
   Mobile top strip (brand + drawer toggle only —
   not a full nav bar)
============================================ */
.mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  height: var(--mobile-topbar-height);
  background: var(--navy);
  color: #fff;
}
.mobile-topbar .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  text-decoration: none;
}
.mobile-topbar .brand-mark { color: var(--amber); display: inline-flex; }

.mobile-drawer-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 248, 251, 0.3);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-drawer-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-drawer-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-drawer-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-drawer-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-in drawer (mobile nav pattern, distinct from a dropdown-under-header) */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.45);
  z-index: 290;
}
.mobile-drawer-backdrop.open { display: block; }

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 84vw);
  background: var(--navy);
  color: #fff;
  z-index: 300;
  padding: 24px 22px;
  flex-direction: column;
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.mobile-drawer.open {
  display: flex;
  transform: translateX(0);
}
.mobile-drawer-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(245, 248, 251, 0.3);
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer a {
  text-decoration: none;
  color: rgba(245, 248, 251, 0.85);
  font-weight: 500;
  font-size: 1.02rem;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(245, 248, 251, 0.12);
  display: block;
}
.mobile-drawer-emergency { margin-top: 4px; }
.mobile-drawer .sidebar-license { border-top: 1px solid rgba(245, 248, 251, 0.15); padding-top: 16px; }

/* Fixed bottom action bar (mobile only) — persistent call/quote actions */
.mobile-actionbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-actionbar-height);
  background: var(--navy);
  border-top: 1px solid rgba(245, 248, 251, 0.12);
  z-index: 250;
}
.mobile-actionbar-call,
.mobile-actionbar-quote {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.mobile-actionbar-call {
  color: var(--navy);
  background: var(--amber);
}
.mobile-actionbar-quote {
  color: #fff;
  background: var(--navy-soft);
}

/* ============================================
   Page content (offset for sidebar on desktop)
============================================ */
.page {
  min-width: 0;
}

/* ============================================
   Trust hero
============================================ */
.trust-hero {
  padding: 64px 0 60px;
  background:
    radial-gradient(680px 420px at 88% -10%, rgba(224, 151, 42, 0.14), transparent 60%),
    radial-gradient(520px 360px at 4% 110%, rgba(11, 31, 58, 0.06), transparent 60%),
    var(--paper);
}
.trust-hero-inner { max-width: 880px; }

.emergency-block { margin-bottom: 30px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin: 0 0 14px;
}
.emergency-call {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 18px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.emergency-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(224, 151, 42, 0.18);
  color: var(--amber);
  flex-shrink: 0;
}
.emergency-call-text { display: flex; flex-direction: column; gap: 2px; }
.emergency-call-label {
  font-size: 0.82rem;
  color: rgba(245, 248, 251, 0.75);
}
.emergency-call-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.emergency-sub {
  margin: 16px 0 0;
  color: var(--slate);
  max-width: 56ch;
  font-size: 0.98rem;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--panel-deep);
  color: var(--amber-dark);
  flex-shrink: 0;
}
.trust-badge strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.trust-badge span {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
}

.trust-hero-cta h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 20ch;
}
.hero-lede {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 56ch;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Services
============================================ */
.services { padding: 84px 0; }
.services h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-top: 2px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--panel-deep);
  color: var(--amber-dark);
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--slate);
  font-size: 0.94rem;
  margin: 0;
}

/* ============================================
   Hours
============================================ */
.hours { padding: 76px 0 40px; background: var(--navy); color: var(--paper); }
.hours .section-label { color: var(--amber); }
.hours h2 { color: var(--paper); font-size: clamp(1.85rem, 3vw, 2.5rem); }
.hours .section-sub { color: rgba(245, 248, 251, 0.72); }
.hours-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr { border-bottom: 1px solid rgba(245, 248, 251, 0.15); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 16px 0;
  font-weight: 400;
}
.hours-table th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--paper);
}
.hours-table td {
  text-align: right;
  color: rgba(245, 248, 251, 0.82);
  font-variant-numeric: tabular-nums;
}
.hours-note {
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 248, 251, 0.15);
  color: rgba(245, 248, 251, 0.6);
  font-size: 0.9rem;
  max-width: var(--wrap);
}

/* ============================================
   Service area
============================================ */
.location { padding: 84px 0; }
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.location h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-bottom: 18px; }
.location address {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 18px;
}
.location-note {
  color: var(--slate);
  max-width: 46ch;
  margin: 0 0 26px;
}
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ============================================
   Why Us / credentials
============================================ */
.about { padding: 84px 0; background: var(--panel-deep); }
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-bottom: 20px; }
.about-copy p {
  color: var(--slate);
  margin: 0 0 16px;
  max-width: 58ch;
}
.about-figures {
  display: grid;
  gap: 18px;
}
.figure-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.figure-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--amber-dark);
  line-height: 1.15;
  margin-bottom: 8px;
  font-weight: 700;
}
.figure-caption {
  color: var(--slate);
  font-size: 0.92rem;
}

/* ============================================
   Contact
============================================ */
.contact { padding: 84px 0 96px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.contact h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); margin-bottom: 18px; }
.contact-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.contact-list strong {
  color: var(--slate);
  font-weight: 500;
}
.contact-list a { text-decoration: none; color: var(--amber-dark); font-weight: 600; }
.license-text { color: var(--navy); font-weight: 600; text-align: right; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.form-row select { cursor: pointer; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--amber);
}
.contact-form .btn { width: 100%; }
.form-note {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--amber-dark);
  min-height: 1.2em;
}

/* ============================================
   Footer
============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(245, 248, 251, 0.65);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.footer-demo-note { color: rgba(245, 248, 251, 0.4); }

/* ============================================
   Responsive
============================================ */

/* Desktop: sidebar visible, offset content */
@media (min-width: 901px) {
  .page { margin-left: var(--sidebar-width); }
}

/* Below 900px: sidebar becomes top strip + drawer + bottom action bar */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .mobile-actionbar { display: flex; }
  .page { padding-bottom: calc(var(--mobile-actionbar-height) + 12px); }

  .trust-hero { padding: 40px 0 44px; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .emergency-call { flex-wrap: wrap; }
  .emergency-call-number { font-size: 1.3rem; }

  .about-inner, .hours-inner, .location-inner, .contact-inner {
    grid-template-columns: 1fr;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .location-map { order: -1; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .trust-badges { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .contact-form { padding: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .license-text { text-align: left; }
  .emergency-call { padding: 16px 18px; gap: 12px; }
}
