/* Allied Wiring Services, LLC — site styles v2 (PREVIEW — upgraded design, same brand) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #111111;
  --orange: #fcb523;
  --orange-soft: #fdf0cd;
  --red: #b5182a;
  --red-dark: #8f1220;
  --light: #f4f6f8;
  --text: #1a1a1a;
  --muted: #5d6d7a;
  --dark: #14181d;
}
html { scroll-behavior: smooth; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
a { color: var(--ink); }
::selection { background: var(--orange); }

/* Header / nav — now sticky with a soft shadow */
.site-header { background: #fff; color: #111; border-bottom: 1px solid #eceff1; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(20,24,29,.08); }
.brand { font-size: 20px; font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: .5px; display: flex; align-items: center; }
.brand-logo { width: 54px; height: 54px; border-radius: 50%; margin-right: 12px; flex-shrink: 0; }
.brand-text { color: var(--ink); line-height: 1.25; }
.brand small { display: block; font-size: 11px; color: #666; font-weight: 400; font-style: italic; letter-spacing: 0; }
nav.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav.main-nav a { color: #111; text-decoration: none; font-size: 14px; font-weight: 800; padding: 8px 15px; border-radius: 999px; background: #f1f3f5; white-space: nowrap; transition: background .15s ease, color .15s ease; }
nav.main-nav a:hover { background: var(--red); color: #fff; }
nav.main-nav a.active { background: var(--ink); color: #fff; }
.header-phone { display: inline-block; background: var(--red); color: #fff; text-decoration: none; font-weight: 800; font-size: 16px; padding: 10px 24px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px rgba(181,24,42,.28); }
.header-phone:hover { background: var(--red-dark); color: #fff; }
@media (max-width: 640px) {
  .site-header { flex-direction: column; text-align: center; position: static; }
  .brand { text-align: center; }
  nav.main-nav { justify-content: center; gap: 6px; }
  nav.main-nav a { font-size: 13px; padding: 8px 12px; }
}

/* Hero — photo background with dark overlay */
.hero { background: #14181d url("images/job5-warehouse-lighting-after.jpg") center 38% / cover no-repeat; color: #fff; text-align: center; padding: 92px 20px 84px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,19,24,.82), rgba(16,19,24,.68) 55%, rgba(16,19,24,.85)); }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; margin-bottom: 14px; line-height: 1.12; letter-spacing: -.5px; }
.hero h1 span { color: var(--orange); }
.hero p { font-size: 19px; color: #e8ecf0; max-width: 660px; margin: 0 auto 28px; }
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 800; font-size: 18px; padding: 15px 36px; border-radius: 10px; text-decoration: none; margin: 6px; box-shadow: 0 6px 18px rgba(181,24,42,.35); transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-gold { background: var(--orange); color: #14181d; box-shadow: 0 6px 18px rgba(252,181,35,.35); }
.btn-gold:hover { background: #e5a40f; }
.btn-outline { background: transparent; color: #111; border: 2px solid #111; box-shadow: none; }
.btn-outline:hover { background: rgba(0,0,0,.06); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.75); box-shadow: none; }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.trust-chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 14px; font-weight: 700; padding: 7px 16px; border-radius: 999px; }

/* Trust strip */
.trust-strip { background: var(--dark); color: #fff; }
.trust-strip .strip-in { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.trust-strip .stat { padding: 22px 10px; }
.trust-strip .stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.trust-strip .big { display: block; font-size: 25px; font-weight: 800; color: var(--orange); line-height: 1.2; }
.trust-strip .lbl { font-size: 13px; color: #c3ccd4; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 640px) { .trust-strip .strip-in { grid-template-columns: repeat(2, 1fr); } .trust-strip .stat + .stat { border-left: none; } }

/* Sections */
.section { max-width: 1000px; margin: 0 auto; padding: 56px 20px; }
.section h2 { color: var(--ink); font-size: 30px; text-align: center; margin-bottom: 10px; }
.section h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--orange); border-radius: 2px; margin: 12px auto 0; }
.section .lede { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 30px; font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid #e4e9ee; border-radius: 14px; padding: 26px 24px; box-shadow: 0 2px 8px rgba(15,61,94,.06); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(20,24,29,.12); }
.card.featured { border-top: 4px solid var(--red); }
.card h3 { color: var(--ink); font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .icon { font-size: 24px; margin-bottom: 14px; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--orange-soft); border-radius: 50%; }
.alt-bg { background: var(--light); }

/* Checklist */
.checklist { list-style: none; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 8px 24px; box-shadow: 0 2px 8px rgba(15,61,94,.06); }
.checklist li { padding: 12px 0 12px 38px; position: relative; border-bottom: 1px solid #eef1f4; font-size: 16px; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 26px; height: 26px; line-height: 26px; text-align: center; font-size: 14px; font-weight: 800; color: #fff; background: var(--orange); border-radius: 50%; }

/* Reviews placeholder */
.review-card { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid #e4e9ee; border-radius: 14px; padding: 30px 28px; text-align: center; box-shadow: 0 2px 8px rgba(15,61,94,.06); }
.review-card .stars { color: var(--orange); font-size: 26px; letter-spacing: 4px; margin-bottom: 10px; }
.review-card p { color: var(--muted); font-size: 16px; }

/* Gallery */
.job-set { margin-bottom: 44px; }
.job-set h3 { color: var(--ink); font-size: 21px; margin-bottom: 4px; border-left: 4px solid var(--red); padding-left: 12px; }
.job-set .job-loc { color: var(--muted); font-size: 14px; margin-bottom: 14px; padding-left: 16px; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ba-grid figure { background: #fff; border: 1px solid #e4e9ee; border-radius: 12px; overflow: hidden; }
.ba-grid img { width: 100%; height: 260px; object-fit: cover; display: block; transition: transform .3s ease; }
.ba-grid figure:hover img { transform: scale(1.04); }
.ba-grid figcaption { padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ba-grid figcaption span { display: inline-block; background: var(--ink); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-right: 8px; text-transform: uppercase; letter-spacing: .5px; }
.ba-grid figcaption span.after { background: var(--orange); color: #1a1a1a; }

/* CTA band */
.cta-band { background: #fff; color: #111; border-top: 3px solid var(--orange); text-align: center; padding: 52px 20px; }
.or-divider { margin: 26px 0 4px; color: #999; font-size: 15px; }
.home-quote-form { max-width: 520px; margin: 0 auto; text-align: left; }
.cta-band .quote-form label { color: #111; }
.cta-band .form-note { color: #666; text-align: center; }
.cta-band .form-note a { color: var(--red); }
.cta-band h2 { color: var(--red); font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #555; margin-bottom: 20px; font-size: 17px; }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 0 auto; }
@media (max-width: 720px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info { background: var(--light); border-radius: 12px; padding: 28px; }
.contact-info h3 { color: var(--ink); margin-bottom: 14px; }
.contact-info p { margin-bottom: 10px; font-size: 16px; }
form.quote-form { display: flex; flex-direction: column; gap: 14px; }
form.quote-form label { font-weight: 700; font-size: 14px; color: var(--ink); }
form.quote-form input, form.quote-form select, form.quote-form textarea { padding: 12px; border: 1px solid #cfd8e0; border-radius: 8px; font-size: 16px; font-family: inherit; width: 100%; }
form.quote-form input:focus, form.quote-form select:focus, form.quote-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(181,24,42,.15); }
form.quote-form button { background: var(--red); color: #fff; border: none; font-weight: 800; font-size: 18px; padding: 15px; border-radius: 10px; cursor: pointer; box-shadow: 0 6px 18px rgba(181,24,42,.3); transition: background .15s ease; }
form.quote-form button:hover { background: var(--red-dark); }
.form-note { font-size: 13px; color: var(--muted); }

/* Footer — dark in v2 */
.site-footer { background: var(--dark); color: #aeb9c2; text-align: center; padding: 34px 20px; font-size: 14px; }
.site-footer .badges { color: var(--orange); font-weight: 700; letter-spacing: 3px; margin-top: 10px; font-size: 13px; }
.site-footer a { color: #fff; font-weight: 700; }
.placeholder-note { background: #fff8e6; border: 1px dashed var(--orange); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: #7a5b00; max-width: 680px; margin: 0 auto 24px; }

/* Sticky mobile call bar (phones only) */
.call-bar { display: none; }
@media (max-width: 720px) {
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 18px rgba(20,24,29,.22); }
  .call-bar a { flex: 1; text-align: center; padding: 16px 8px; font-weight: 800; font-size: 17px; text-decoration: none; }
  .call-bar .cb-call { background: var(--red); color: #fff; }
  .call-bar .cb-quote { background: var(--orange); color: #14181d; }
  body { padding-bottom: 56px; }
}

/* Header logo strike effect — plays on every page load, on the header badge */
.logo-fx { position: relative; display: inline-flex; flex-shrink: 0; }
.fx-bolt { position: absolute; left: 27px; top: -16px; width: 18px; margin-left: -9px; fill: #fcb523; filter: drop-shadow(0 0 6px #fcb523); opacity: 0; pointer-events: none; }
.fx-arcs { position: absolute; left: 27px; top: 27px; width: 132px; height: 132px; margin: -66px 0 0 -66px; overflow: visible; pointer-events: none; }
.fx-arcs path { fill: none; stroke: #fcb523; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px #fcb523); opacity: 0; transform-origin: 120px 120px; }
.logo-fx.play .fx-bolt { animation: fxBoltDrop .45s steps(6) both, fxBoltOut .3s ease .62s forwards; }
.logo-fx.play .brand-logo { animation: fxLogoHit .55s ease .45s both; }
.logo-fx.play .fx-arcs path { animation: fxArc .62s linear .46s both; }
@keyframes fxBoltDrop { 0% { transform: translateY(-12px); opacity: 0; } 30% { opacity: 1; } 55% { opacity: .25; } 78% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes fxBoltOut { to { transform: translateY(6px) scale(.3); opacity: 0; } }
@keyframes fxLogoHit { 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(252,181,35,0)); } 35% { transform: scale(1.1); filter: drop-shadow(0 0 16px rgba(252,181,35,.95)); } 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(252,181,35,.3)); } }
@keyframes fxArc { 0% { opacity: 0; transform: scale(.55); } 14% { opacity: 1; } 28% { opacity: .15; } 42% { opacity: 1; } 58% { opacity: .3; transform: scale(1.04); } 76% { opacity: .95; } 100% { opacity: 0; transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .fx-bolt, .fx-arcs { display: none; } }
