:root{
  --ink:#16181B; --surface:#FAF8F5; --accent:#D8232A; --dark:#121316; --muted:#6B7076;
  --font-head:"Anton", sans-serif; --font-body:"Public Sans", sans-serif; --font-script:"Caveat", cursive;
  --maxw:1200px;
}

/* A.B. Electrical Services - Fable test build - shared component rules */
/* Design tokens live in each page's :root; this file is structure + component behavior only */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw, 1200px); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  font-weight: 400;
  text-wrap: balance; /* no single-word orphan lines on wrapped titles */
}
h1 { font-size: clamp(44px, 8vw, 108px); }
h2 { font-size: clamp(30px, 4.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 12px;
}
.script-accent {
  font-family: var(--font-script);
  font-weight: 600;
  text-transform: none;
  color: var(--accent);
  font-size: 0.5em;
  display: inline-block;
  transform: rotate(-3deg);
  margin-left: 0.15em;
}
p.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* Buttons - ONE money action styled consistently everywhere */
.site-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 4px 4px 0 var(--dark);
}
.site-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dark); }
.site-btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--dark); }
.site-btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 2px solid var(--ink);
}
.site-btn--ghost:hover { background: var(--ink); color: #fff; }

.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.tel-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 3px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-header__logo img { height: 48px; width: auto; }
.site-header__logo-text { font-family: var(--font-head); font-size: 22px; letter-spacing: 0.02em; }
.site-header__nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 15px;
}
.site-header__nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header__nav a:hover, .site-header__nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-header__actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.site-header__actions .site-btn { padding: 12px 22px; font-size: 14px; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .site-header .container { height: 68px; }
  .site-header__logo img { height: 37px; }
  .site-header__nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-header__nav a { padding: 14px 24px; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.08); }
  .nav-toggle:checked ~ .site-header__nav { max-height: 400px; }
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 3px; background: var(--ink); }
  .site-header__actions .tel-link span.tel-text { display: none; }
}

/* Bolt-cut signature divider - single asymmetric notch echoing the logo's lightning-bolt zigzag */
.bolt-cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 96%, 58% 96%, 52% 100%, 47% 96%, 0 96%);
  padding-bottom: 56px;
}
.bolt-cut-top {
  clip-path: polygon(0 4%, 47% 4%, 52% 0%, 58% 4%, 100% 4%, 100% 100%, 0 100%);
  padding-top: 56px;
}
.bolt-rule {
  width: 120px;
  height: 4px;
  background: var(--accent);
  transform: skewX(-20deg);
  margin: 20px 0 28px;
}
.bolt-rule--center { margin-left: auto; margin-right: auto; }

/* Sections */
.page-section { padding: 96px 0; }
.page-section--tight { padding: 72px 0; }
.page-section--dark { background: var(--dark); color: #fff; }
.page-section--dark .muted { color: #A8ACB2; }
.page-section--card { background: #fff; }
.page-section--attached { padding-top: 0; }

/* Hero full */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,19,22,0.94) 0%, rgba(18,19,22,0.72) 38%, rgba(18,19,22,0.30) 62%, rgba(18,19,22,0.10) 100%);
  z-index: 1;
}
.hero-section::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(216,35,42,0.22) 0%, rgba(216,35,42,0) 45%);
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-section__content { max-width: 640px; }
.hero-section__eyebrow { color: #fff; opacity: 0.85; font-size: 16px; }
.hero-section h1 { color: #fff; margin-bottom: 18px; }
.hero-section__subtitle { font-size: 20px; max-width: 46ch; margin-bottom: 12px; color: #F1EFE9; }
.hero-section__proof { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; opacity: 0.9; margin-bottom: 32px; }
.hero-section__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero full WITH split form (residential / construction pages) */
.hero-section--split .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-section--split h1 { font-size: clamp(32px, 4.6vw, 62px); }
.hero-section--split .hero-section__content { max-width: 560px; }
.quote-card {
  background: #fff;
  color: var(--ink);
  padding: 36px 32px;
  border-radius: 2px;
  box-shadow: 10px 10px 0 var(--accent);
  border: 3px solid var(--ink);
}
.quote-card h3 { font-size: 22px; margin-bottom: 4px; }
.quote-card .quote-card__sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.quote-card label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; margin-top: 16px; }
.quote-card label:first-of-type { margin-top: 0; }
.quote-card input, .quote-card select, .quote-card textarea {
  width: 100%;
  border: 2px solid #D7D3CB;
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #FAF8F5;
}
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.quote-card .site-btn { width: 100%; justify-content: center; margin-top: 22px; }
.quote-card__fine { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }

@media (max-width: 900px) {
  .hero-section--split .container { grid-template-columns: 1fr; }
  .quote-card { max-width: 460px; }
}

/* Hero small (Home, About, Contact) */
.hero-small { min-height: 46vh; }
.hero-small .hero-section__content { max-width: 720px; }

/* Intro */
.intro-section { text-align: left; }
.intro-section .container { max-width: 820px; }
.intro-section h2 { margin-bottom: 20px; }
.intro-section p { font-size: 18px; color: var(--muted); }

/* Service cards / pillar cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--5 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card__stretched-link { position: absolute; inset: 0; z-index: 3; }
.card:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--ink); }
.card--featured { border-color: var(--accent); border-width: 3px; }
.card--featured .card__badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
}
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { font-size: 20px; }
.card__body p { color: var(--muted); font-size: 15px; flex: 1; }
.card__link { font-weight: 700; font-size: 14px; color: var(--accent); margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.card--pillar { min-height: 380px; }
.card--pillar .card__media { aspect-ratio: 16/10; }

@media (max-width: 900px) {
  .cards-grid--2, .cards-grid--5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards-grid--2, .cards-grid--5 { grid-template-columns: 1fr; }
}

/* Image + text split */
.imgtext-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.imgtext-section--reverse .container { direction: rtl; }
.imgtext-section--reverse .container > * { direction: ltr; }
.imgtext-section__media { position: relative; }
.imgtext-section__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 3px solid var(--ink); }
.imgtext-section h2 { font-size: clamp(26px, 3.2vw, 36px); }
@media (min-width: 861px) { .imgtext-section h2 { white-space: nowrap; } }
.imgtext-section__quote { font-family: var(--font-body); font-size: 22px; line-height: 1.5; font-weight: 500; margin: 20px 0; }
.imgtext-section__attribution { font-weight: 700; color: var(--accent); font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em; }
@media (max-width: 860px) {
  .imgtext-section .container { grid-template-columns: 1fr; gap: 32px; }
  .imgtext-section--reverse .container { direction: ltr; }
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.review-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 26px;
}
.review-card__stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card p { font-size: 16px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Icon grid / trust badges */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.icon-card { text-align: center; padding: 8px; }
.icon-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  border-radius: 2px;
}
.icon-card__icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; }
.icon-card h3 { font-size: 16px; font-family: var(--font-body); font-weight: 700; text-transform: none; }
.page-section--dark .icon-card__icon { background: var(--accent); }
@media (max-width: 900px) { .icon-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band.page-section--attached { padding-top: 72px; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: #A8ACB2; margin-bottom: 32px; font-size: 18px; }
.cta-band .site-btn { padding: 20px 44px; font-size: 16px; }

/* Contact embed */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 40px;
}
.contact-info__row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info__row svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; stroke: var(--accent); fill: none; }
.contact-info__row a, .contact-info__row span { font-size: 17px; }
.contact-form { background: #fff; padding: 36px; border: 3px solid var(--ink); border-radius: 2px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin: 16px 0 6px; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 2px solid #D7D3CB; border-radius: 2px; padding: 13px 14px;
  font-family: var(--font-body); font-size: 15px; background: var(--surface);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .site-btn { width: 100%; justify-content: center; margin-top: 24px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Map section */
.map-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.map-section__frame { border: 3px solid var(--ink); aspect-ratio: 4/3; overflow: hidden; }
.map-section__frame iframe { width: 100%; height: 100%; border: 0; }
.map-section__list { list-style: none; margin-top: 20px; }
.map-section__list li { font-size: 18px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid #D7D3CB; }
@media (max-width: 860px) { .map-section .container { grid-template-columns: 1fr; gap: 28px; } }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 72px 0 32px; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.site-footer__brand img { height: 40px; }
.site-footer__brand-name { font-family: var(--font-head); font-size: 20px; }
.site-footer__tagline { font-family: var(--font-script); color: var(--accent); font-size: 20px; }
.site-footer h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #A8ACB2; margin-bottom: 16px; }
.site-footer__nav a, .site-footer__contact div { display: block; margin-bottom: 12px; font-size: 15px; color: #E9E7E1; }
.site-footer__contact svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; margin-right: 8px; vertical-align: -3px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 13px; color: #8B8F96; }
.site-footer__licenses { font-size: 13px; color: #8B8F96; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }


/* ---- homepage extras ---- */
/* Homepage hero: "SHOCKINGLY GOOD" — one line, one font, accent word in red */
  .hero-section h1 { white-space: nowrap; }
  .hero-section h1 .accent-word { color: var(--accent); }
  @media (max-width: 480px) { .hero-section h1 { white-space: normal; } }

  /* GHL review carousel facsimile (placeholder until real embed) */
  .ghl-mock { margin-top: 36px; }
  .ghl-mock__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
  .ghl-mock__rating { display: flex; align-items: baseline; gap: 12px; }
  .ghl-mock__score { font-size: 38px; font-weight: 700; line-height: 1; }
  .ghl-mock__stars { color: #F6BB06; font-size: 20px; letter-spacing: 2px; }
  .ghl-mock__count { color: var(--muted); font-size: 14px; }
  .ghl-mock__btn { background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 24px; border-radius: 6px; }
  .ghl-mock__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ghl-mock__card {
    flex: 1 0 min(300px, 85%); scroll-snap-align: start;
    background: #fff; border: 1px solid #ECE9E3; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(22,24,27,0.07);
    padding: 22px 24px; display: flex; flex-direction: column; gap: 12px;
  }
  .ghl-mock__card p { font-size: 15px; line-height: 1.55; color: #3A3D42; flex: 1; }
  .ghl-mock__card-stars { color: #F6BB06; font-size: 16px; letter-spacing: 2px; }
  .ghl-mock__card-foot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
  .ghl-mock__g {
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    border: 1px solid #E0DDD6; color: #4285F4; font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .ghl-mock__pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; color: var(--muted); font-size: 14px; }
  .ghl-mock__arrow { font-size: 22px; line-height: 1; cursor: default; }
  .ghl-mock__page--on { color: var(--ink); font-weight: 700; }
  .ghl-mock__powered { text-align: right; font-size: 11px; color: #B7BABE; margin-top: 10px; }

/* WP nav menu (wp_nav_menu wraps items in a ul) */
.site-header__nav ul { display:flex; gap:28px; list-style:none; margin:0; padding:0; }
.site-header__nav li.current-menu-item a { border-bottom-color: var(--accent); }
.hero-section--home h1 { white-space: nowrap; }
@media (max-width:480px){ .hero-section--home h1 { white-space: normal; } }
@media (max-width:860px){ .site-header__nav ul { position:absolute; top:68px; left:0; right:0; background:var(--surface); border-bottom:3px solid var(--ink); flex-direction:column; gap:0; max-height:0; overflow:hidden; transition:max-height .25s ease; } .nav-toggle:checked ~ .site-header__nav ul { max-height:400px; } }
/* Lead Monkey embedded forms in the quote card / contact form */
/* Lead Monkey form clip: show only the form content, hide GHL's internal padding */
.lm-clip { overflow:hidden; position:relative; }
.lm-clip iframe { width:100%; height:1200px !important; border:none; display:block; margin-top:-70px; }
.lm-clip--service { height:560px; }
.lm-clip--contact { height:600px; }
.hero-section--split .container { align-items: start; }
.hero-section--split .quote-card { align-self: start; }
.contact-form.contact-form--embed { padding:36px; border:3px solid var(--ink); background:#fff; box-shadow:none; }

/* Legal / policy pages */
.legal { max-width:820px; margin:0 auto; }
.legal h2 { font-family:var(--font-body); font-weight:700; text-transform:none; font-size:22px; letter-spacing:0; margin:34px 0 10px; line-height:1.25; }
.legal h3 { font-family:var(--font-body); font-weight:700; text-transform:none; font-size:18px; letter-spacing:0; margin:26px 0 8px; }
.legal p { color:var(--ink); margin:0 0 14px; font-size:16px; }
.legal ul { margin:0 0 16px 22px; } .legal li { margin-bottom:6px; }
.legal .legal-updated { color:var(--muted); font-size:14px; margin-bottom:24px; }

/* Lead Monkey embedded form containers */
.quote-card--embed { padding: 12px; }
.contact-form { overflow: visible; }

/* Contact form card - mirror the service quote card */
.contact-form > h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 4px; line-height: 1.05; color: var(--ink); }
.contact-form > .quote-card__sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.contact-form > .quote-card__fine { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.contact-form > .quote-card__fine a { color: var(--accent); font-weight: 700; }

/* Contact page: raise the form card to align with the section heading */
@media (min-width: 901px) {
  .contact-form.contact-form--embed { margin-top: -107px; }
}
