/* Pittsburgh Railings landing page */
:root {
  --ink: #12263f;
  --blue: #00529b;
  --blue-deep: #003f78;
  --bronze: #a8672e;
  --bronze-light: #e0a56a;
  --mist: #eef2f6;
  --line: #d3dce6;
  --text: #1d2b3c;
  --muted: #4f6176;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1160px;
  --head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--bronze-light); outline-offset: 2px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--head); font-variation-settings: "wdth" 80; margin: 0; color: var(--ink); line-height: 1.05; }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); font-weight: 800; letter-spacing: -.01em; color: var(--white); }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 780; letter-spacing: -.005em; }
h3 { font-size: 1.3rem; font-weight: 700; font-variation-settings: "wdth" 88; line-height: 1.2; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; max-width: 40rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1.05rem/1 var(--body);
  padding: 1rem 1.5rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
  min-height: 52px;
}
.btn-bronze { background: var(--bronze-light); color: var(--ink); }
.btn-bronze:hover { background: #ecb67e; color: var(--ink); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-block { width: 100%; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--head); font-variation-settings: "wdth" 80; font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--ink); }
.brand-sub { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .2rem; }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.header-phone:hover { color: var(--blue); }
.header-actions .btn { padding: .8rem 1.2rem; min-height: 46px; font-size: 1rem; white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(105deg, rgba(10,24,42,.93) 0%, rgba(10,24,42,.82) 55%, rgba(10,24,42,.62) 100%),
    url("../images/hero.jpg"),
    repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 2px, transparent 2px 30px),
    linear-gradient(160deg, #17345a 0%, #0c1b30 100%);
  background-size: cover, cover, auto, cover;
  background-position: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 440px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero-copy { padding-top: .5rem; }
.hero-sub { font-size: 1.3rem; max-width: 36rem; margin: 1.4rem 0 1.6rem; color: #dbe6f2; }
.hero-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .65rem; max-width: 34rem; }
.hero-points li { position: relative; padding-left: 1.9rem; font-weight: 500; }
.hero-points li::before { content: ""; position: absolute; left: .3rem; top: .25rem; width: 5px; height: 1.15rem; background: var(--bronze-light); border-radius: 3px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.est-badge { margin-top: 2.2rem; display: flex; align-items: center; gap: .9rem; font-size: .98rem; color: #c3d2e3; }
.est-badge img { width: 64px; height: 64px; flex: none; background: var(--white); border-radius: 50%; }

/* Handrail divider: bronze rail with picket stubs */
.rail { height: 30px; background:
  linear-gradient(var(--bronze-light), var(--bronze-light)) 0 0 / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 5px, transparent 5px 38px) 14px 10px / 100% 20px no-repeat; }
.rail-dark { background:
  linear-gradient(var(--bronze), var(--bronze)) 0 0 / 100% 10px no-repeat,
  repeating-linear-gradient(90deg, rgba(18,38,63,.55) 0 5px, transparent 5px 38px) 14px 10px / 100% 20px no-repeat; }
.hero .rail { position: absolute; left: 0; right: 0; bottom: 0; }

/* Form */
.form-card { background: var(--white); color: var(--text); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2rem); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.form-card h2 { font-size: 2rem; }
.form-card .form-sub { color: var(--muted); margin: .4rem 0 1.2rem; font-size: 1rem; }
.field { margin-bottom: .95rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; color: var(--ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: .8rem .9rem; border: 1.5px solid #9fb0c4; border-radius: var(--radius); background: var(--white);
  min-height: 50px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,82,155,.28); border-color: var(--blue); }
.field input[type="file"] { padding: .6rem; background: var(--mist); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.fine { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; line-height: 1.45; }
.file-note { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.file-note.warn { color: #9b2c1c; font-weight: 600; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Sections */
section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin-top: .9rem; }
.band { background: var(--mist); }

/* Proof strip */
.proof { padding-block: 0; background: var(--white); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof li { padding: 1.5rem 1.2rem 1.5rem 0; }
.proof li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--head); font-variation-settings: "wdth" 82; font-size: 1.45rem; color: var(--ink); line-height: 1.15; margin-bottom: .2rem; }
.proof span { color: var(--muted); font-size: .98rem; line-height: 1.4; display: block; }

/* Gallery */
.slider { --gap: 1.1rem; --per: 3; }
.slider.small { --gap: .9rem; --per: 4; }
.gallery { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .2rem; }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.gallery .shot { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
.sl-ctl { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.sl-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 0 .15rem; }
.sl-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.sl-btn:disabled { opacity: .3; cursor: default; }
.sl-count { min-width: 5.5rem; text-align: center; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.shot { display: block; text-decoration: none; color: inherit; }
.shot figure { margin: 0; }
.shot .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #dfe6ee; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shot:hover img { transform: scale(1.03); }
.shot .ph.is-missing img { display: none; }
.shot .ph.is-missing::after { content: attr(data-file); position: absolute; inset: 0; display: grid; place-items: center; font: 600 .9rem var(--body); color: #5f7389;
  background: repeating-linear-gradient(135deg, #e6ecf2 0 12px, #dde5ed 12px 24px); }
.shot figcaption { padding-top: .6rem; }
.shot .cap { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.shot .where { display: block; font-size: .92rem; color: var(--muted); }
.subhead { margin: 3.2rem 0 1rem; }
.subhead h3 { font-size: 1.6rem; }
.subhead p { color: var(--muted); margin: .3rem 0 0; }
.slider.small .cap { font-size: .95rem; }

/* Lightbox */
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100dvh; }
dialog#lightbox::backdrop { background: rgba(8,16,28,.92); }
.lb { height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 1rem; gap: .8rem; }
.lb-img { min-height: 0; display: grid; place-items: center; }
.lb-img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: var(--radius); }
.lb-cap { color: #e4ecf5; text-align: center; max-width: 46rem; margin-inline: auto; }
.lb-cap strong { color: var(--white); display: block; font-size: 1.1rem; }
.lb-cap span { font-size: .95rem; color: #b9cadd; }
.lb-btn { position: fixed; background: rgba(255,255,255,.14); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }

/* Options table */
.options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.spec { margin: 0; padding: 0; }
.spec div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 800; color: var(--ink); font-family: var(--head); font-variation-settings: "wdth" 85; font-size: 1.15rem; }
.spec dd { margin: 0; color: var(--text); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 1rem .8rem; margin: 1.4rem 0 .6rem; padding: 0; list-style: none; }
.swatches li { font-size: .92rem; line-height: 1.3; }
.chip { display: block; width: 100%; aspect-ratio: 1.5; border-radius: var(--radius); margin-bottom: .45rem; border: 1px solid rgba(0,0,0,.16); }
.chip.raw { background: linear-gradient(120deg, #e4e8ec, #b9c0c8 45%, #dde1e6 70%, #aeb6bf); }
.chip.black { background: #1a1a1c; }
.chip.matte { background: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px) 0 0 / 5px 5px, #29292c; }
.chip.bronze { background: #4b3a2a; }
.chip.white { background: #f6f6f2; }
.chip.pebble { background: #b7aa94; }
.chip.gray { background: #858b92; }
.chip.red { background: #98282a; }
.small-note { color: var(--muted); font-size: .92rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 6px solid var(--bronze); padding-top: 1rem; }
.steps li::before { content: counter(s); font-family: var(--head); font-variation-settings: "wdth" 80; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--blue); display: block; margin-bottom: .5rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; }

/* Precast steps */
.precast { background: var(--ink); color: #dbe6f2; }
.precast h2 { color: var(--white); }
.precast .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.precast p { color: #c9d7e8; font-size: 1.12rem; }
.precast ul { padding: 0; margin: 1.2rem 0 1.8rem; list-style: none; display: grid; gap: .6rem; }
.precast li { position: relative; padding-left: 1.7rem; }
.precast li::before { content: ""; position: absolute; left: .2rem; top: .45rem; width: 12px; height: 6px; border-left: 3px solid var(--bronze-light); border-bottom: 3px solid var(--bronze-light); transform: rotate(-45deg); }
.step-art { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: .8rem; }
.step-art p { padding: 0 .4rem .3rem; }
.step-art svg { width: 100%; height: auto; display: block; }
.step-art img { width: 100%; height: auto; display: block; border-radius: 4px; }
.step-art p { font-size: .98rem; margin: 1rem 0 0; color: #b9cadd; }

/* Reviews */
.reviews-box { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem 3rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.score { font-family: var(--head); font-variation-settings: "wdth" 78; font-weight: 800; font-size: 4.2rem; line-height: 1; color: var(--ink); }
.score small { display: block; font-family: var(--body); font-variation-settings: normal; font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: .35rem; }
.quotes { display: grid; gap: 1.1rem; grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quotes blockquote { margin: 0; padding-left: 1rem; border-left: 4px solid var(--bronze-light); }
.quotes cite { display: block; font-style: normal; font-weight: 700; margin-top: .4rem; color: var(--ink); }

.reviews-widget { min-height: 160px; }

/* Service area */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.towns { columns: 2; padding: 0; margin: 1rem 0 0; list-style: none; }
.towns li { padding: .35rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--blue); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); max-width: 44rem; }

/* Final CTA */
.final { background: var(--blue); color: var(--white); position: relative; }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.final .final-copy h2 { color: var(--white); }
.final .final-copy p { font-size: 1.2rem; color: #d7e5f4; margin-top: 1rem; max-width: 34rem; }
.final .phone-big { display: inline-block; margin-top: .6rem; font-family: var(--head); font-variation-settings: "wdth" 80; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); color: var(--white); text-decoration: none; }
.final .phone-big:hover { color: var(--bronze-light); }

/* Footer */
.site-footer { background: #0b1828; color: #b4c4d8; padding-block: 2.5rem 6rem; font-size: .96rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #dbe6f2; }
.site-footer h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .6rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.2rem; font-size: .88rem; }
.site-footer p { margin: 0 0 .4rem; }

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

/* Simple pages */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page h1 { color: var(--ink); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.7rem; margin: 2.2rem 0 .6rem; }
.thanks { text-align: left; }
.thanks .big { font-size: 1.25rem; color: var(--muted); max-width: 36rem; }
.thanks .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

@media (max-width: 940px) {
  .hero .wrap, .final .wrap, .options, .precast .grid, .area { grid-template-columns: 1fr; }
  .proof ul { grid-template-columns: 1fr 1fr; }
  .proof li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { display: none; }
  .header-actions .btn { padding: .7rem .9rem; font-size: .95rem; }
  .spec div { grid-template-columns: 1fr; gap: .2rem; }
  .steps { grid-template-columns: 1fr; }
  .proof ul { grid-template-columns: 1fr; }
  .proof li, .proof li + li { padding: 1rem 0; border-left: 0; }
  .proof li + li { border-top: 1px solid var(--line); }
  .towns { columns: 1; }
  .reviews-box { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 5.5rem; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; padding: .6rem; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding: .8rem; }
}
@media (max-width: 980px) { .slider { --per: 2; } .slider.small { --per: 3; } }
@media (max-width: 620px) { .slider, .slider.small { --per: 1.25; --gap: .8rem; } }
@media (max-width: 350px) { .row-2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
