/* PRO-Link Commercial Overhead Door Repair — shared site styles
   Layout: sticky header (logo + phone + call/text), full-width bands, content column ~1120px,
   phone-width bottom action bar. Visual motif: horizontal "door panel" seams. */
:root {
  --ink: #141414;          /* logo black */
  --red: #c40000;          /* logo red */
  --red-dark: #8f0000;
  --steel: #eef0f2;        /* light galvanized grey */
  --steel-2: #dde1e5;
  --line: #c9ced4;
  --muted: #4f5761;
  --paper: #ffffff;
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
/* Keep phones from sliding the page sideways (clip, unlike hidden, keeps the sticky header working) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, picture, video { max-width: 100%; }
form, .hero .wrap > * { min-width: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { clip-path: none; width: auto; height: auto; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; max-width: 68ch; }
.eyebrow { font: 600 .82rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.lede { font-size: 1.2rem; color: var(--muted); }
.stack { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgb(0 0 0 / .06); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { height: 46px; width: auto; }
.contact-quick { display: flex; align-items: center; gap: 10px; }
.phone-big { font: 800 1.5rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.phone-big small { display: block; font: 600 .7rem/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 4px; border: 2px solid var(--red); background: var(--red); color: #fff; font: 700 1rem/1 var(--font-body); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 4px; min-height: 44px; padding: 0 12px; font: 700 .9rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.main-nav { border-top: 1px solid var(--steel-2); }
.main-nav ul { list-style: none; margin-block: 0; padding-block: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.main-nav a, .main-nav span { display: block; padding: 10px 10px; color: var(--ink); text-decoration: none; font: 600 .9rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .04em; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.main-nav span, .link-list span, .areas span { color: var(--muted); }
.link-list span { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.card:is(span) { opacity: .92; }

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--steel); font-size: .92rem; }
.crumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { /* sectional door panel seams */ content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 86px, rgb(255 255 255 / .07) 86px 88px, rgb(0 0 0 / .4) 88px 90px); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 72px); }
.hero .eyebrow { color: #ff6b6b; }
.hero p { color: #d7dadd; }
.hero-photo { border: 6px solid #fff; transform: rotate(1.2deg); box-shadow: 0 18px 40px rgb(0 0 0 / .45); max-width: 460px; justify-self: end; }
.hero-photo img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
/* Home hero slideshow */
.hero-slides { position: relative; display: grid; }
.hero-slides img { grid-area: 1 / 1; opacity: 0; transition: opacity .8s ease; }
.hero-slides img.is-active { opacity: 1; }
.slide-dots { grid-area: 1 / 1; align-self: end; justify-self: center; display: flex; gap: 8px; padding: 10px; z-index: 1; }
.slide-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: rgb(0 0 0 / .35); cursor: pointer; }
.slide-dots button[aria-current="true"] { background: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-note { font-size: .95rem; color: #b9bec4; }

/* Commercial-only notice */
.notice { background: var(--red); color: #fff; }
.notice .wrap { padding-block: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; font-weight: 600; }
.notice strong { font: 800 1.1rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 7vw, 84px); }
.section.alt { background: var(--steel); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.two-col > * { min-width: 0; }
.prose { display: grid; gap: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose h2 { margin-top: .6rem; }

/* Service hub cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--ink); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-top-color: var(--red); transform: translateY(-2px); color: var(--ink); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-more { font-weight: 700; color: var(--red); text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; }

/* Spoke link list (on hubs) */
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.link-list a::after { content: "→"; color: var(--red); }
.link-list a:hover { color: var(--red); }

/* Spec table */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .85rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; background: var(--steel-2); }

/* Callout */
.callout { border-left: 5px solid var(--red); background: var(--paper); padding: 16px 20px; }
.section.alt .callout { background: #fff; }

/* Carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 30%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.carousel-track figure { margin: 0; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); }
.carousel-track img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.carousel-track figcaption { padding: 8px 10px; font-size: .9rem; color: var(--muted); }
.carousel-btns { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 12px; }
.carousel-btns button { width: 46px; height: 46px; border: 2px solid var(--ink); background: var(--paper); font-size: 1.2rem; cursor: pointer; border-radius: 4px; }
.carousel-btns button:hover { background: var(--ink); color: #fff; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Up-level prompt */
.up-prompt { background: var(--ink); color: #fff; }
.up-prompt .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.up-prompt p { color: #d7dadd; }
.up-prompt a.btn { white-space: nowrap; }

/* Areas */
.areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.areas a, .areas span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 3px; }
.areas a:hover { border-color: var(--red); color: var(--red); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); }
.contact-grid > * { min-width: 0; }
.nap { font-style: normal; display: grid; gap: 4px; }
.nap .phone-big { font-size: 2rem; }
form { position: relative; display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--line); padding: clamp(16px, 3vw, 28px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; padding: 10px 12px; border: 1px solid #9aa2ab; border-radius: 3px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-status { font-weight: 600; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd3d7; padding-block: 48px 110px; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid > * { min-width: 0; }
.foot-grid h3 { color: #fff; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-logo { background: #fff; padding: 10px; display: inline-block; margin-bottom: 12px; }
.foot-logo img { height: 40px; width: auto; }
.legal { border-top: 1px solid #333; margin-top: 32px; padding-top: 16px; font-size: .85rem; color: #9ea4aa; }

/* Mobile action bar */
.action-bar { display: none; }

@media (max-width: 860px) {
  .hero .wrap, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding-bottom: 8px; }
  .contact-quick .btn, .phone-big small { display: none; }
  .brand img { height: 34px; }
  .phone-big { font-size: 1.15rem; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .action-bar a { display: grid; place-items: center; min-height: 56px; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
  .action-bar a:first-child { background: var(--red); }
  .action-bar a + a { border-left: 1px solid #333; }
}
@media (max-width: 520px) {
  .field-row, .foot-grid { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
  .bar { gap: 10px; }
  .phone-big { font-size: 1.05rem; }
  .menu-toggle { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .hero-slides img { transition: none; } }
