/* AV Garage Door Repairs – charcoal, brushed silver and signal red, taken from the logo */
:root {
  --ink: #121314;
  --steel: #1c1f23;
  --steel-2: #262a2f;
  --silver: #c9cdd2;
  --concrete: #f3f2ef;
  --line: #dddbd6;
  --text: #22262a;
  --muted: #5d6268;
  --red: #c8161f;
  --red-dark: #a3111a;
  --head: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r: 6px;
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 17px/1.55 var(--body); color: var(--text); background: var(--concrete); padding-bottom: var(--bar); }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; margin: 0 0 .4em; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: 64px 0; }
.eyebrow { font: 600 .82rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--silver); margin-bottom: 14px; }
.eyebrow-red { color: var(--red); }
.section-lead { color: var(--muted); max-width: 46ch; }
.sub-cta { margin-top: 28px; color: var(--muted); }
.sub-cta a { font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: var(--r); font: 700 1.15rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { min-height: 42px; padding: 0 14px; font-size: 1rem; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* header */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 10px 20px; background: rgba(18,19,20,.96); backdrop-filter: blur(6px); border-bottom: 1px solid #2b2f34; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--head); text-transform: uppercase; line-height: .95; }
.brand-1 { color: #e9eaec; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.brand-2 { color: var(--red); font-weight: 700; font-size: .9rem; letter-spacing: .32em; }
.nav { display: none; }
.topbar .btn-sm span { display: none; }
.topbar .btn-sm { width: 44px; padding: 0; }

/* hero: a garage door rolls up to reveal the photo */
.hero { position: relative; min-height: min(88svh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,19,20,.15) 0%, rgba(18,19,20,.35) 40%, rgba(18,19,20,.94) 100%); }
.hero-door { position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: repeat(5, 1fr); pointer-events: none;
  animation: door-up 1.5s cubic-bezier(.6,.05,.25,1) .35s forwards; }
.hero-door i { background: linear-gradient(180deg, #2d3136 0%, #3a3f45 45%, #24272b 100%); border-bottom: 3px solid #17191b; }
@keyframes door-up { to { transform: translateY(-101%); } }
.hero-content { position: relative; z-index: 2; padding: 0 20px 44px; max-width: 760px; }
.hero h1 { font-size: clamp(2.9rem, 13vw, 5.6rem); font-weight: 800; margin-bottom: .25em; }
.hero h1 em { font-style: normal; color: var(--red); display: block; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.lead { font-size: 1.12rem; color: #e6e7e9; max-width: 40ch; }
.hero-cta { display: grid; gap: 10px; margin: 22px 0 18px; }
.hero-points { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; font: 600 .9rem var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.hero-points li + li::before { content: "•"; color: var(--red); margin-right: 18px; }

/* services: each card reads like a garage door panel */
.service-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.panel { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 18px 76px; }
.panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0 0 var(--r) var(--r);
  background: repeating-linear-gradient(90deg, var(--line) 0 22%, transparent 22% 25%); }
.panel svg { position: absolute; left: 18px; top: 20px; width: 42px; height: 42px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.panel h3 { margin-bottom: .2em; }
.panel p { margin: 0; color: var(--muted); font-size: .98rem; }

/* gallery */
.work { background: #fff; border-block: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.g-item { position: relative; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left; color: #fff;
  font: 700 .95rem var(--head); letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.g-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.g-top img { object-position: 50% 0; }
.g-tall { grid-column: span 2; aspect-ratio: 1; }

.btn-fb { margin-top: 20px; background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f63d1; }
.btn-fb svg { width: 20px; height: 20px; }

/* why */
.why { background: var(--steel); color: #e6e7e9; }
.why h2 { color: #fff; }
.why-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.why-list li { display: grid; gap: 2px; padding: 16px 18px; background: var(--steel-2); border-left: 4px solid var(--red); }
.why-list strong { font: 700 1.3rem var(--head); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.why-list span { color: #b9bdc2; }

/* service area */
.towns { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 8px 14px; border: 1px solid var(--line); background: #fff; border-radius: 99px; font-weight: 600; }
.towns .home { background: var(--red); border-color: var(--red); color: #fff; }

/* quote */
.quote { background: var(--ink); color: #e6e7e9; }
.quote h2 { color: #fff; }
.quote-grid { display: grid; gap: 32px; }
.text-tip { margin-top: 14px; color: #b9bdc2; }
.text-tip a { color: #fff; font-weight: 600; }
.form { display: grid; gap: 14px; background: var(--steel); padding: 22px; border-radius: var(--r); border-top: 4px solid var(--red); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: #fff; }
.opt { font-weight: 400; color: #9aa0a6; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 2px solid transparent;
  border-radius: var(--r); padding: 12px; min-height: 50px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form [aria-invalid="true"] { border-color: #ff6b6b; }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 12px; border-radius: var(--r); background: var(--steel-2); }

/* footer */
.footer { background: #0c0d0e; color: #9aa0a6; padding: 40px 0 20px; font-size: .95rem; }
.footer-grid { display: grid; gap: 18px; }
.footer a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.fb-link { display: inline-flex; align-items: center; gap: 6px; }
.fb-link svg { width: 18px; height: 18px; fill: currentColor; }
.copy { text-align: center; margin: 24px 0 0; font-size: .85rem; }

/* sticky call bar (phones) */
.callbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: var(--bar); display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--ink); border-top: 1px solid #2b2f34; padding-bottom: env(safe-area-inset-bottom); }
.callbar a { display: grid; place-items: center; color: #fff; text-decoration: none; font: 700 1.1rem var(--head); letter-spacing: .06em; text-transform: uppercase; }
.callbar a + a { border-left: 1px solid #2b2f34; }
.callbar .cb-call { background: var(--red); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 96vw; max-height: 82vh; border-radius: var(--r); }
.lb-caption { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close { position: fixed; top: 12px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; cursor: pointer; }

/* ---------- larger screens ---------- */
@media (min-width: 640px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .g-tall { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .g-wide:last-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .form { grid-template-columns: 1fr 1fr; }
  .form .full { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 18px; }
  .callbar { display: none; }
  .topbar { padding: 12px 40px; }
  .nav { display: flex; gap: 28px; margin-left: auto; }
  .nav a { color: #e6e7e9; text-decoration: none; font: 600 1.05rem var(--head); letter-spacing: .08em; text-transform: uppercase; }
  .nav a:hover { color: #fff; box-shadow: 0 2px 0 var(--red); }
  .topbar .btn-sm { width: auto; padding: 0 16px; }
  .topbar .btn-sm span { display: inline; }
  .brand img { width: 52px; }
  .section { padding: 96px 0; }
  .hero { align-items: center; }
  .hero-content { padding: 80px 0 60px max(40px, calc((100% - 1160px) / 2)); }
  .hero::after { background: linear-gradient(90deg, rgba(18,19,20,.92) 0%, rgba(18,19,20,.7) 38%, rgba(18,19,20,.1) 75%); }
  .hero-img { object-position: 70% 50%; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .panel { padding: 24px 22px 26px; }
  .panel svg { position: static; margin-bottom: 14px; }
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .g-item, .g-wide { aspect-ratio: auto; }
  .g-wide:last-child { grid-column: span 2; aspect-ratio: auto; }
  .why-grid, .quote-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .why-list { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-door { display: none; }
  .g-item img { transition: none; }
}
