/* Electrician Precision Richmond Hill — "all-in" industrial theme
   Palette: signal red / warm cream / deep slate. Condensed uppercase display type. */

:root {
  --red: #d2232a;
  --red-dark: #a91b21;
  --cream: #f7f1e6;
  --cream-deep: #efe6d4;
  --ink: #1c2b31;
  --slate: #24404a;
  --slate-deep: #1b3038;
  --line: #e2d7c2;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

.disp { font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--red); box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.topbar-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { text-decoration: none; color: var(--white); line-height: 1.05; }
.brand .b1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; display: block; }
.brand .b2 { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; opacity: .92; display: block; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--white); }
.nav .nav-call { border: 2px solid var(--white); padding: 8px 16px; }
.nav .nav-call:hover { background: var(--white); color: var(--red); border-bottom: 2px solid var(--white); }
.menu-btn { display: none; font-family: "Oswald", sans-serif; letter-spacing: .12em; text-transform: uppercase; background: none; border: 2px solid var(--white); color: var(--white); padding: 8px 14px; font-size: 13px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 14px 26px; border: 2px solid transparent; cursor: pointer; }
.btn-primary, a.cta-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover, a.cta-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--red); }
.arrow::after { content: "\2009\203A"; }

/* ---------- hero ---------- */
.hero { background: var(--red); color: var(--white); overflow: hidden; position: relative; }
.hero-in { max-width: 1240px; margin: 0 auto; padding: 84px 20px 30px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(42px, 6vw, 76px); line-height: .98; text-transform: uppercase; letter-spacing: .01em; }
.hero .lede { font-size: 18px; line-height: 1.6; max-width: 46ch; }
.hero .hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-word { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 14.5vw, 218px); line-height: .8; text-align: center; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.85); letter-spacing: .02em; white-space: nowrap; user-select: none; margin: 26px auto -10px; }
.hero-band img { width: 100%; height: clamp(260px, 44vw, 520px); object-fit: cover; }

/* inner-page hero */
.page-hero { background: var(--red); color: var(--white); }
.page-hero-in { max-width: 1240px; margin: 0 auto; padding: 64px 20px 56px; }
.page-hero h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; text-transform: uppercase; }
.page-hero p { margin-top: 14px; max-width: 62ch; font-size: 18px; }
.crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; opacity: .85; }
.crumbs a { color: var(--white); text-decoration: none; }

/* ---------- sections ---------- */
.section { position: relative; padding: 84px 20px; }
.section-in { max-width: 1240px; margin: 0 auto; position: relative; }
.section.slate { background: var(--slate); color: var(--cream); }
.section.deep { background: var(--slate-deep); color: var(--cream); }
.section.white { background: var(--white); }
.side-label { position: absolute; left: -52px; top: 8px; font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); writing-mode: vertical-rl; transform: rotate(180deg); border-right: 3px solid var(--red); padding: 2px 8px 2px 0; opacity: .85; }
.slate .side-label, .deep .side-label { color: var(--cream); }
.kicker { font-family: "Oswald", sans-serif; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.slate .kicker, .deep .kicker { color: #f0a9ac; }
h2.h-big { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; text-transform: uppercase; color: var(--red); }
h2.h-big .sub { display: block; color: var(--ink); font-size: .62em; margin-top: 6px; }
.slate h2.h-big, .deep h2.h-big { color: var(--cream); }
.slate h2.h-big .sub, .deep h2.h-big .sub { color: #9fc0c9; }
h3.h-mid { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.section .intro { max-width: 68ch; margin-top: 18px; font-size: 18px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 34px; }

/* ---------- cards / grids ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.svc-card { background: var(--white); border-top: 4px solid var(--red); padding: 26px 22px 30px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 0 var(--line); }
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,43,49,.12); }
.svc-card .go { margin-top: auto; font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.svc-list { columns: 2; gap: 44px; margin-top: 30px; list-style: none; }
.svc-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.svc-list a, .svc-list span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 2px; text-decoration: none; color: var(--ink); font-family: "Oswald", sans-serif; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
.svc-list a:hover { color: var(--red); }
.svc-list a::after { content: "\203A"; color: var(--red); font-size: 20px; }

/* project cards with angled plate */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.proj-card { position: relative; overflow: hidden; background: var(--ink); }
.proj-card img { width: 100%; height: 300px; object-fit: cover; transition: transform .35s ease; }
.proj-card:hover img { transform: scale(1.04); }
.plate { position: absolute; left: 0; bottom: 22px; background: var(--white); padding: 10px 34px 10px 16px; max-width: 86%; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
.plate .t { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); line-height: 1.25; }
.plate .s { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.badge { position: absolute; top: 14px; right: 0; background: var(--ink); color: var(--cream); font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.filters button { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; background: transparent; border: 1.5px solid var(--ink); color: var(--ink); cursor: pointer; }
.filters button.on { background: var(--red); border-color: var(--red); color: var(--white); }

/* reviews */
.rev-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.rev-score { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 84px; line-height: 1; color: var(--red); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.rev-card { background: var(--white); padding: 24px 22px; border-left: 4px solid var(--red); box-shadow: 0 1px 0 var(--line); }
.rev-card .q { font-size: 16px; }
.rev-card .who { margin-top: 14px; font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.stars { color: var(--red); letter-spacing: 2px; }

/* figure */
figure.ph { position: relative; margin: 0; }
figure.ph img { width: 100%; object-fit: cover; }
figure.ph figcaption { font-size: 13px; letter-spacing: .02em; color: var(--slate); padding: 10px 2px 0; }
.ph-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border-left: 1px solid rgba(247,241,230,.25); }
.steps > div { padding: 6px 26px 6px 22px; border-right: 1px solid rgba(247,241,230,.25); }
.steps .num { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 44px; color: #f0a9ac; line-height: 1; }
.steps h3 { margin: 10px 0 8px; }
.steps p { font-size: 15px; color: #cfdde2; }

/* area list */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.area-card { background: var(--white); padding: 22px; border-top: 4px solid var(--red); }
.area-card p { font-size: 15px; margin-top: 6px; }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); text-align: center; padding: 92px 20px; }
.cta-band h2 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(34px, 5vw, 58px); text-transform: uppercase; line-height: 1.02; }
.cta-band p { margin: 14px auto 0; max-width: 56ch; font-size: 18px; }
.phone-big { display: inline-block; font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(40px, 7vw, 84px); color: var(--white); text-decoration: none; margin-top: 22px; line-height: 1; }
.phone-big:hover { opacity: .9; }
.phone-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
.cta-band .btn-primary { background: var(--white); color: var(--red); border-color: var(--white); }
.cta-band .btn-ghost { color: var(--white); border-color: var(--white); }
[data-phone-slot] { display: block; }

/* ---------- footer ---------- */
footer { background: var(--slate-deep); color: #cfdde2; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 64px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-in h4 { font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; }
.foot-in ul { list-style: none; }
.foot-in li { margin: 7px 0; }
.foot-in a { color: #cfdde2; text-decoration: none; font-size: 15px; }
.foot-in a:hover { color: var(--white); }
.foot-brand .b1 { display: block; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.foot-brand .b2 { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #9fc0c9; }
.foot-brand p { font-size: 15px; margin-top: 14px; max-width: 34ch; }
.foot-base { border-top: 1px solid rgba(247,241,230,.15); }
.foot-base-in { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #9fc0c9; }

/* sticky mobile bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 1px; background: var(--ink); }
.sticky-cta .btn { flex: 1; text-align: center; border: 0; padding: 16px 10px; }
.sticky-cta .btn-ghost { background: var(--slate-deep); color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 1360px) { .side-label { display: none; } }
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid, .rev-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); border-left: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .hero-in { grid-template-columns: 1fr; padding-top: 64px; }
  .side-label { display: none; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--red-dark); flex-direction: column; align-items: flex-start; padding: 18px 20px 24px; gap: 14px; }
  .nav.open { display: flex; }
  .lead-grid, .ph-grid-2 { grid-template-columns: 1fr; }
  .svc-grid, .proj-grid, .rev-grid, .area-grid, .steps { grid-template-columns: 1fr; }
  .svc-list { columns: 1; }
  .section { padding: 60px 16px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 54px; }
  .foot-in { grid-template-columns: 1fr; }
}
