/* Commercial focus: automatic-door repair, pricing and parts. */
.commercial-home .section,
.commercial-home .portfolio { padding-block: 38px; }

.commercial-hero { min-height: 560px; }
.commercial-hero::after { background: linear-gradient(90deg, rgba(7, 18, 28, .96) 8%, rgba(10, 27, 40, .84) 56%, rgba(10, 27, 40, .42)); }
.commercial-hero .bg img { object-position: center 46%; }
.hero-kicker,
.eyebrow { margin: 0 0 8px; color: #c35312; font-size: .78rem; font-weight: 850; letter-spacing: 0; }
.hero .hero-kicker { color: #ffc99e; }
.hero-lead { max-width: 780px; color: #eef4f7 !important; font-size: 1.08rem; }
.dispatch-note { max-width: 820px; margin-block: 12px 18px; padding: 11px 14px; color: #ecf3f7 !important; background: rgba(255,255,255,.09); border-inline-start: 3px solid var(--sg-accent); border-radius: 8px; font-size: .9rem; }
.hero-quick { display: grid; gap: 8px; }
.hero-quick a { display: grid; gap: 2px; min-height: 76px; padding: 13px 15px; color: #fff; text-decoration: none; background: rgba(8, 23, 34, .77); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; transition: background .18s ease, border-color .18s ease; }
.hero-quick a:hover { color: #fff; background: rgba(17, 43, 59, .92); border-color: rgba(244,123,32,.7); }
.hero-quick strong { font-size: 1rem; }
.hero-quick span { color: #d0dce3; font-size: .8rem; }

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading-row h2 { margin-bottom: 0; }
.commercial-price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.commercial-price-grid article { display: grid; align-content: start; gap: 7px; min-height: 156px; padding: 18px; background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); box-shadow: 0 8px 22px rgba(11,21,32,.06); }
.commercial-price-grid span { color: var(--sg-muted); font-size: .86rem; }
.commercial-price-grid strong { color: var(--sg-ink); font-size: 1.08rem; line-height: 1.55; }
.commercial-price-grid small { color: var(--sg-muted); line-height: 1.65; }
.price-date { margin: 13px 0 0; color: var(--sg-muted); font-size: .83rem; }

.issue-finder { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: stretch; }
.issue-finder-copy,
.issue-result { padding: 24px; border-radius: var(--sg-radius); }
.issue-finder-copy { background: #fff; border: 1px solid var(--sg-line); }
.issue-finder-copy label { display: block; margin-bottom: 6px; color: var(--sg-ink); font-weight: 750; }
.issue-finder-copy select { width: 100%; min-height: 48px; padding: 8px 12px; color: var(--sg-text); background: var(--sg-surface-soft); border: 1px solid #aebdc8; border-radius: 8px; }
.maintenance-service { scroll-margin-top: 96px; }
.maintenance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.maintenance-grid article { padding: 18px; border: 1px solid var(--sg-line); border-radius: 8px; background: var(--sg-surface-soft); }
.maintenance-grid h3 { margin-top: 0; }
.issue-result { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--sg-ink); color: #fff; }
.issue-result strong { color: #fff; font-size: 1.12rem; }
.issue-result p { color: #d7e1e7; }

.parts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.parts-grid .card { min-height: 170px; box-shadow: none; }
.parts-grid h3 { margin-bottom: 8px; }
.parts-grid p { color: var(--sg-muted); font-size: .9rem; }
.stock-note { display: inline-flex; margin-top: auto; padding: 5px 8px; color: #395365; background: #eaf0f4; border-radius: 6px; font-size: .76rem; font-weight: 700; }

.process-grid { counter-reset: sg-step; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.process-grid li { counter-increment: sg-step; position: relative; min-height: 150px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); }
.process-grid li::before { content: counter(sg-step); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 10px; color: #fff; background: #365f79; border-radius: 50%; font-weight: 800; }
.process-grid strong,
.process-grid span { display: block; }
.process-grid span { margin-top: 6px; color: var(--sg-muted); font-size: .88rem; }

.commercial-project-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.commercial-project-grid figure { aspect-ratio: 4 / 3; margin: 0; overflow: hidden; background: #dce4e9; border-radius: 10px; }
.commercial-project-grid img { width: 100%; height: 100%; object-fit: cover; }
.verified-project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.verified-project-card { display: flex; flex-direction: column; min-width: 0; margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--sg-line); border-radius: var(--sg-radius); box-shadow: 0 8px 24px rgba(21,43,56,.07); }
.verified-project-card a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #dce4e9; }
.verified-project-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .2s ease; }
.verified-project-card a:hover img { transform: scale(1.02); }
.verified-project-card figcaption { padding: 12px 14px; color: var(--sg-ink); font-size: .86rem; font-weight: 750; line-height: 1.7; }
.fact-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; background: var(--sg-ink); border-radius: var(--sg-radius); }
.fact-grid article { display: grid; place-items: center; min-height: 130px; padding: 18px; border-inline-start: 1px solid rgba(255,255,255,.14); text-align: center; }
.fact-grid article:first-child { border-inline-start: 0; }
.fact-grid strong { color: #fff; font-size: clamp(1.7rem,3vw,2.5rem); }
.fact-grid span { color: #cad7df; }
.other-service-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.other-service-grid a { position: relative; min-height: 180px; overflow: hidden; color: #fff; background: var(--sg-ink); border-radius: 10px; text-decoration: none; }
.other-service-grid img { width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .2s ease, opacity .2s ease; }
.other-service-grid span { position: absolute; inset-inline: 12px; inset-block-end: 11px; color: #fff; font-weight: 800; }
.other-service-grid a:hover img { transform: scale(1.025); opacity: .78; }
.final-commercial-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 32px !important; padding-inline: 24px !important; color: #fff; background: var(--sg-ink); border-radius: var(--sg-radius); }
.final-commercial-cta h2,
.final-commercial-cta p { color: #fff; }

.commercial-service .hero-summary strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.symptom-grid,
.repair-cost-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.symptom-grid article { padding: 16px; background: var(--sg-surface-soft); border: 1px solid var(--sg-line); border-radius: 9px; }
.symptom-grid p { margin-bottom: 0; color: var(--sg-muted); }
.repair-cost-grid .card { display: grid; gap: 6px; min-height: 105px; }
.repair-cost-grid span { color: var(--sg-muted); font-size: .86rem; }
.parts-page .parts-grid .card { display: flex; flex-direction: column; }
.price-ack { display: flex; align-items: flex-start; gap: 9px; line-height: 1.8; }
.price-ack input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px; }

@media (max-width: 980px) {
  .commercial-price-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .parts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commercial-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .verified-project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .other-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .site-top-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .site-top-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 680px) {
  .commercial-home .section,
  .commercial-home .portfolio { padding-block: 28px; }
  .commercial-hero { min-height: 500px; }
  .commercial-hero .hero-content { padding-block: 24px; }
  .commercial-hero .bg img { object-position: 52% center; }
  .commercial-hero h1 { font-size: 1.68rem; }
  .hero-lead { font-size: .95rem; line-height: 1.75; }
  .dispatch-note { font-size: .82rem; line-height: 1.75; }
  .commercial-hero .cta-row { display: grid; grid-template-columns: 1fr 1fr; }
  .commercial-hero .cta-row .btn { width: 100%; min-height: 48px; }
  .commercial-hero .cta-row .btn:last-child { grid-column: 1 / -1; }
  .hero-quick { display: none; }
  .commercial-hero::after { background: linear-gradient(90deg, rgba(7,18,28,.91) 6%, rgba(10,27,40,.73) 58%, rgba(10,27,40,.48)); }
  .commercial-hero .hero-proof { margin-top: 11px; color: #f3f7f9 !important; font-size: .82rem; line-height: 1.7; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .commercial-price-grid,
  .parts-grid,
  .process-grid,
  .symptom-grid,
  .repair-cost-grid { grid-template-columns: 1fr; }
  .commercial-price-grid article,
  .parts-grid .card,
  .process-grid li { min-height: 0; }
  .issue-finder { grid-template-columns: 1fr; gap: 10px; }
  .maintenance-grid { grid-template-columns: 1fr; gap: 10px; }
  .issue-finder-copy,
  .issue-result { padding: 18px; }
  .commercial-project-grid { gap: 7px; }
  .verified-project-grid { grid-template-columns: 1fr; gap: 10px; }
  .verified-project-card a { aspect-ratio: 16 / 10; }
  .fact-grid article { min-height: 100px; padding: 12px 8px; }
  .fact-grid strong { font-size: 1.55rem; }
  .fact-grid span { font-size: .75rem; }
  .other-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .other-service-grid a { min-height: 145px; }
  .other-service-grid a:last-child { grid-column: 1 / -1; min-height: 130px; }
  .final-commercial-cta { align-items: stretch; flex-direction: column; padding: 20px !important; }
  .final-commercial-cta .cta-row { display: grid; grid-template-columns: 1fr 1fr; }
  .service-hero.repair-hero .hero-bg img,
  .service-hero.parts-hero .hero-bg img { object-position: 58% center; }
  body { padding-bottom: 76px; }
}

/* Card readability: verified against all sitemap URLs. */
.service-hub .fact-grid article h3 { color: #fff; }
.service-hub .fact-grid article p { color: #cad7df; }
.service-final-cta a:not(.btn),
.service-trust-cta a:not(.btn) { color: #9ddcff; font-weight: 700; text-decoration: underline; }
.service-final-cta a:not(.btn):hover,
.service-trust-cta a:not(.btn):hover { color: #fff; }


/* 2026-08-27 approved homepage service cards and mobile trust layout */
.commercial-home .commercial-hero .hero-content { grid-template-columns: minmax(0,820px); }
.home-service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.home-service-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; color: var(--sg-ink); background: #fff; border: 1px solid var(--sg-line); border-radius: 12px; text-decoration: none; box-shadow: 0 12px 28px rgba(11,33,48,.09); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.home-service-card:hover, .home-service-card:focus-visible { color: var(--sg-ink); border-color: rgba(244,123,32,.72); box-shadow: 0 16px 34px rgba(11,33,48,.15); transform: translateY(-2px); }
.home-service-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dce4e9; }
.home-service-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .2s ease; }
.home-service-card:hover .home-service-media img { transform: scale(1.025); }
.home-service-copy { display: grid; align-content: start; gap: 6px; padding: 16px; }
.home-service-copy strong { color: var(--sg-ink); font-size: 1rem; line-height: 1.65; }
.home-service-copy > span { color: var(--sg-muted); font-size: .88rem; line-height: 1.85; }
@media (max-width: 980px) {
  .home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .commercial-home .commercial-hero .hero-content { grid-template-columns: 1fr; }
  .home-service-grid { grid-template-columns: 1fr; gap: 11px; }
  .home-service-card { grid-template-columns: 128px minmax(0,1fr); grid-template-rows: 1fr; min-height: 128px; }
  .home-service-media { height: 100%; min-height: 128px; aspect-ratio: auto; }
  .home-service-copy { padding: 13px; }
  .home-service-copy strong { font-size: .96rem; }
  .home-service-copy > span { font-size: .82rem; line-height: 1.7; }
  .trust-facts .fact-grid { grid-template-columns: 1fr; gap: 9px; overflow: visible; background: transparent; }
  .trust-facts .fact-grid article { min-height: 88px; padding: 14px; background: var(--sg-ink); border: 0; border-radius: 10px; }
  .trust-facts .fact-grid strong { font-size: 1.35rem; overflow-wrap: anywhere; }
  .trust-facts .fact-grid span { font-size: .82rem; }
}
@media (max-width: 390px) {
  .home-service-card { grid-template-columns: 112px minmax(0,1fr); }
}


/* 2026-08-27 approved lean homepage hierarchy */
.commercial-home .home-primary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-secondary-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin-top: 22px; border-block: 1px solid var(--sg-line); }
.home-secondary-links > a { display: grid; grid-template-columns: 74px minmax(0,1fr); align-items: center; gap: 11px; min-width: 0; padding: 12px 14px; color: var(--sg-ink); text-decoration: none; border-inline-start: 1px solid var(--sg-line); background: transparent; }
.home-secondary-links > a:first-child { border-inline-start: 0; }
.home-secondary-links img { width: 74px; height: 58px; display: block; object-fit: cover; border-radius: 6px; }
.home-secondary-links span { display: grid; gap: 2px; min-width: 0; }
.home-secondary-links strong { font-size: .9rem; line-height: 1.55; }
.home-secondary-links small { color: var(--sg-muted); font-size: .76rem; }
.home-project-gallery { padding-block: 38px; }
.home-project-gallery h2 { margin-bottom: 18px; }
.home-project-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; overflow: hidden; border-radius: 12px; }
.home-project-item { position: relative; display: block; min-height: 260px; overflow: hidden; color: #fff; text-decoration: none; background: #132532; }
.home-project-item img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .2s ease; }
.home-project-item::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg,transparent,rgba(5,17,25,.86)); }
.home-project-item span { position: absolute; z-index: 1; inset-inline: 14px; bottom: 13px; font-size: .9rem; font-weight: 800; }
.home-project-item:hover img, .home-project-item:focus-visible img { transform: scale(1.025); }
.commercial-home .service-area { max-width: 860px; margin-inline: auto; padding-block: 34px; text-align: center; border-block: 1px solid var(--sg-line); }
.commercial-home .home-faq .faq details { margin: 0; padding: 0; background: transparent; border: 0; border-top: 1px solid var(--sg-line); border-radius: 0; box-shadow: none; }
.commercial-home .home-faq .faq details:last-child { border-bottom: 1px solid var(--sg-line); }
.commercial-home .home-faq .faq summary { padding: 14px 2px; }
.commercial-home .home-faq .faq details p { padding: 0 2px 15px; }
@media (max-width: 760px) {
  .commercial-home .home-primary-grid { grid-template-columns: 1fr; }
  .home-secondary-links { grid-template-columns: 1fr; }
  .home-secondary-links > a { border-inline-start: 0; border-top: 1px solid var(--sg-line); }
  .home-secondary-links > a:first-child { border-top: 0; }
  .home-project-strip { grid-template-columns: 1fr; gap: 4px; }
  .home-project-item { min-height: 190px; }
  .trust-facts .fact-grid { gap: 0; overflow: hidden; background: var(--sg-ink); border-radius: 10px; }
  .trust-facts .fact-grid article { min-height: 78px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-facts .fact-grid article:last-child { border-bottom: 0; }
}
