/* ==========================================================================
   Pennsylvania Builders Supply — shared stylesheet
   Design system: charcoal/graphite + warm off-white + corten-steel rust accent
   ========================================================================== */

:root{
  --ink:        #1B1D1F;
  --ink-soft:   #26282B;
  --paper:      #F3EFE6;
  --paper-alt:  #EAE3D2;
  --card:       #FBF9F4;
  --steel:      #6B7178;
  --line:       #D9D0BC;
  --line-dark:  rgba(243,239,230,0.16);
  --rust:       #B5551F;
  --rust-dark:  #8F4116;
  --rust-tint:  #E9DDCB;
  --text:       #221F1B;
  --text-on-dark: #F3EFE6;
  --radius: 3px;
  --max: 1180px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--paper);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.08;
  margin:0 0 0.5em;
  letter-spacing:-0.01em;
  color:var(--ink);
}
h1{ font-size:clamp(2.4rem,5vw,4rem); font-weight:800; }
h2{ font-size:clamp(1.8rem,3.4vw,2.5rem); }
h3{ font-size:1.2rem; }
p{ margin:0 0 1em; color:var(--text); }
.lede{ font-size:1.15rem; color:var(--steel); max-width:56ch; }

.visually-hidden{
  position:absolute !important; width:1px;height:1px; padding:0;margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:1rem; top:-3rem; background:var(--ink); color:#fff;
  padding:0.75rem 1.25rem; border-radius:var(--radius); z-index:200; transition:top .15s ease;
}
.skip-link:focus{ top:1rem; }

:focus-visible{ outline:3px solid var(--rust); outline-offset:2px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 1.25rem; }
@media (min-width:640px){ .wrap{ padding:0 2rem; } }

section{ padding:4.5rem 0; }
@media (max-width:640px){ section{ padding:3rem 0; } }
.section-alt{ background:var(--paper-alt); }
.section-dark{ background:var(--ink); color:var(--text-on-dark); }
.section-dark h2, .section-dark h3{ color:#fff; }
.section-dark p{ color:#CFC9BC; }

.eyebrow{
  display:inline-block; font-family:var(--font-body); font-weight:600; font-size:0.85rem;
  color:var(--rust); margin:0 0 0.75rem; letter-spacing:0.01em;
}
.section-head{ max-width:62ch; margin-bottom:2.5rem; }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  font-family:var(--font-body); font-weight:600; font-size:1rem;
  padding:0.9rem 1.6rem; border-radius:var(--radius); border:2px solid transparent;
  cursor:pointer; transition:background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--rust); color:#fff; }
.btn-primary:hover{ background:var(--rust-dark); }
.btn-outline{ background:transparent; border-color:currentColor; color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn-outline-light{ background:transparent; border-color:rgba(255,255,255,0.55); color:#fff; }
.btn-outline-light:hover{ background:#fff; color:var(--ink); border-color:#fff; }
.btn-block{ width:100%; }
.btn-lg{ padding:1.05rem 2rem; font-size:1.05rem; }

/* ---------------- Utility bar ---------------- */
.utility-bar{
  background:var(--ink); color:#CFC9BC; font-size:0.85rem;
}
.utility-bar .wrap{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding-top:0.5rem; padding-bottom:0.5rem; flex-wrap:wrap;
}
.utility-hours{ display:flex; gap:1.25rem; flex-wrap:wrap; }
.utility-bar a.phone-link{ color:#fff; font-weight:700; }
.utility-bar a.phone-link:hover{ color:var(--rust-tint); }

/* ---------------- Header / nav ---------------- */
.site-header{
  position:sticky; top:0; z-index:100; background:var(--paper);
  border-bottom:1px solid var(--line);
}
.site-header.is-scrolled{ box-shadow:0 2px 10px rgba(0,0,0,0.08); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; padding:1rem 0; gap:1rem; }
.brand{ display:flex; flex-direction:column; line-height:1.1; }
.brand-name{ font-family:var(--font-display); font-weight:800; font-size:1.15rem; color:var(--ink); }
.brand-tag{ font-size:0.72rem; color:var(--steel); letter-spacing:0.02em; }
.main-nav{ display:none; }
.main-nav ul{ display:flex; gap:2rem; }
.main-nav a{ font-weight:600; font-size:0.98rem; padding:0.4rem 0; border-bottom:2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"]{ border-bottom-color:var(--rust); }
.nav-actions{ display:flex; align-items:center; gap:0.75rem; }
.nav-call{ display:none; font-weight:700; color:var(--ink); }
.menu-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border:1px solid var(--line); background:var(--card);
  border-radius:var(--radius); cursor:pointer;
}
.menu-toggle svg{ width:22px; height:22px; }
@media (min-width:960px){
  .main-nav{ display:block; }
  .nav-call{ display:inline-block; }
  .menu-toggle{ display:none; }
}

.mobile-menu{
  display:none; position:fixed; inset:0; z-index:150; background:var(--ink);
  color:#fff; padding:1.25rem;
}
.mobile-menu.is-open{ display:block; }
.mobile-menu-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:2rem; }
.mobile-menu-close{ width:44px;height:44px; border:1px solid rgba(255,255,255,0.3); background:transparent; color:#fff; border-radius:var(--radius); cursor:pointer; }
.mobile-menu ul{ display:flex; flex-direction:column; gap:0.25rem; }
.mobile-menu a{ display:block; padding:1rem 0.25rem; font-size:1.4rem; font-family:var(--font-display); font-weight:700; border-bottom:1px solid var(--line-dark); }
.mobile-menu .mobile-cta{ margin-top:2rem; display:flex; flex-direction:column; gap:0.75rem; }

/* ---------------- Hero ---------------- */
.hero{ padding:3.5rem 0 4rem; background:var(--paper); }
.hero-grid{ display:grid; gap:2.5rem; align-items:center; }
.hero-copy p.lede{ margin-bottom:1.75rem; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:0.9rem; margin-bottom:1rem; }
.hero-directions{ display:inline-flex; align-items:center; gap:0.4rem; font-weight:600; color:var(--steel); border-bottom:1px solid var(--line); padding-bottom:2px; }
.hero-directions:hover{ color:var(--rust); border-color:var(--rust); }
.hero-media{ position:relative; }
.hero-media img{ width:100%; height:100%; object-fit:cover; border-radius:var(--radius); aspect-ratio:4/3; }
.hero-media-tag{
  position:absolute; left:1rem; bottom:1rem; background:var(--ink); color:#fff;
  padding:0.6rem 0.9rem; font-size:0.85rem; font-weight:600; border-radius:var(--radius);
}
@media (min-width:900px){
  .hero-grid{ grid-template-columns:1.1fr 0.9fr; }
}

/* ---------------- Quick action bar ---------------- */
.quick-actions{ background:var(--ink); color:#fff; }
.quick-actions .wrap{ display:grid; gap:0; grid-template-columns:1fr; }
.quick-item{
  display:flex; align-items:flex-start; gap:0.9rem; padding:1.5rem 0.5rem;
  border-bottom:1px solid var(--line-dark);
}
.quick-item:last-child{ border-bottom:none; }
.quick-item .icon{ flex:none; width:36px; height:36px; color:var(--rust-tint); }
.quick-item .label{ font-size:0.78rem; color:#B9B2A2; font-weight:600; margin-bottom:0.2rem; }
.quick-item .value{ font-weight:700; font-size:1.05rem; color:#fff; }
.quick-item a.value:hover{ color:var(--rust-tint); }
@media (min-width:760px){
  .quick-actions .wrap{ grid-template-columns:repeat(3,1fr); }
  .quick-item{ border-bottom:none; border-right:1px solid var(--line-dark); padding:1.75rem 1.5rem; }
  .quick-item:last-child{ border-right:none; }
}

/* ---------------- Category / material cards ---------------- */
.category-grid{ display:grid; gap:1.5rem; grid-template-columns:1fr; }
@media (min-width:700px){ .category-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .category-grid{ grid-template-columns:repeat(4,1fr); } }
.category-card{
  background:var(--card); border:1px solid var(--line); border-left:3px solid var(--line);
  display:flex; flex-direction:column; transition:border-color .15s ease;
}
.category-card:hover{ border-left-color:var(--rust); }
.category-card img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.category-card-body{ padding:1.25rem; display:flex; flex-direction:column; flex:1; }
.category-card-body p{ color:var(--steel); font-size:0.95rem; flex:1; }
.category-card-body .btn{ align-self:flex-start; }

/* ---------------- Why choose us ---------------- */
.reasons-grid{ display:grid; gap:0; grid-template-columns:1fr; border-top:1px solid var(--line); }
@media (min-width:800px){ .reasons-grid{ grid-template-columns:repeat(4,1fr); } }
.reason{ padding:1.75rem 1.25rem 1.75rem 0; border-bottom:1px solid var(--line); }
@media (min-width:800px){
  .reason{ border-bottom:none; border-right:1px solid var(--line); padding:0 1.5rem; }
  .reason:first-child{ padding-left:0; }
  .reason:last-child{ border-right:none; }
}
.reason .icon{ width:32px; height:32px; color:var(--rust); margin-bottom:0.9rem; }
.reason h3{ margin-bottom:0.4rem; }
.reason p{ color:var(--steel); font-size:0.95rem; margin:0; }

/* ---------------- Who we serve ---------------- */
.audience-list{ display:flex; flex-wrap:wrap; gap:0.75rem; margin:1.5rem 0 2rem; }
.audience-chip{
  border:1px solid var(--line); padding:0.6rem 1.1rem; border-radius:999px;
  font-weight:600; font-size:0.92rem; background:var(--card);
}

/* ---------------- Conversion / final CTA bands ---------------- */
.cta-band{ background:var(--rust); color:#fff; }
.cta-band h2{ color:#fff; }
.cta-band p{ color:#F6E7DA; }
.cta-band .btn-outline-light{ }
.cta-band-inner{ display:flex; flex-direction:column; gap:1.5rem; align-items:flex-start; justify-content:space-between; }
@media (min-width:800px){ .cta-band-inner{ flex-direction:row; align-items:center; } }
.cta-band .btn-actions{ display:flex; flex-wrap:wrap; gap:0.9rem; }
.cta-band .btn-primary{ background:var(--ink); }
.cta-band .btn-primary:hover{ background:#000; }

.final-cta{ background:var(--ink); color:#fff; text-align:center; }
.final-cta h2{ color:#fff; }
.final-cta p{ color:#CFC9BC; }
.final-cta .btn-actions{ display:flex; flex-wrap:wrap; gap:0.9rem; justify-content:center; margin-top:1.5rem; }

/* ---------------- Review ---------------- */
.review-block{ max-width:44rem; margin:0 auto; text-align:center; }
.review-mark{ font-family:var(--font-display); font-size:3.5rem; color:var(--rust); line-height:1; margin-bottom:0.5rem; }
.review-quote{ font-family:var(--font-display); font-size:clamp(1.3rem,2.6vw,1.7rem); font-weight:700; color:var(--ink); margin-bottom:1rem; }
.review-author{ color:var(--steel); font-weight:600; }
.review-source{ margin-top:0.75rem; font-size:0.85rem; color:var(--steel); }

/* ---------------- Location ---------------- */
.location-grid{ display:grid; gap:2.5rem; }
@media (min-width:900px){ .location-grid{ grid-template-columns:1fr 1fr; align-items:stretch; } }
.location-info dt{ font-weight:700; color:var(--ink); margin-top:1.25rem; }
.location-info dt:first-child{ margin-top:0; }
.location-info dd{ margin:0.15rem 0 0; color:var(--steel); }
.location-actions{ display:flex; flex-wrap:wrap; gap:0.9rem; margin-top:1.75rem; }
.map-frame{ border:1px solid var(--line); min-height:320px; width:100%; }

/* ---------------- Forms ---------------- */
.contact-grid{ display:grid; gap:2.5rem; }
@media (min-width:900px){ .contact-grid{ grid-template-columns:1.3fr 0.9fr; } }
.form-field{ margin-bottom:1.25rem; }
.form-field label{ display:block; font-weight:600; margin-bottom:0.4rem; font-size:0.95rem; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; padding:0.8rem 0.9rem; border:1px solid var(--line); border-radius:var(--radius);
  font-family:var(--font-body); font-size:1rem; background:var(--card); color:var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:3px solid var(--rust); outline-offset:1px; border-color:var(--rust);
}
.form-row{ display:grid; gap:1.25rem; }
@media (min-width:600px){ .form-row{ grid-template-columns:1fr 1fr; } }
.form-note{ font-size:0.85rem; color:var(--steel); margin-top:0.75rem; }
.form-success{
  display:none; background:var(--rust-tint); border:1px solid var(--rust); color:var(--ink);
  padding:1rem 1.1rem; border-radius:var(--radius); margin-bottom:1.25rem; font-weight:600;
}
.form-success.is-visible{ display:block; }

.contact-card{ background:var(--ink); color:#fff; padding:2rem; border-radius:var(--radius); align-self:flex-start; }
.contact-card h3{ color:#fff; }
.contact-card .phone-big{ font-family:var(--font-display); font-size:1.9rem; font-weight:800; color:#fff; display:block; margin:0.4rem 0 1.25rem; }
.contact-card .btn{ margin-top:0.5rem; }
.contact-card dl{ margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--line-dark); }
.contact-card dt{ color:#B9B2A2; font-size:0.82rem; font-weight:600; margin-top:1rem; }
.contact-card dd{ margin:0.15rem 0 0; color:#fff; }

/* ---------------- FAQ ---------------- */
.faq-list{ max-width:52rem; border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; padding:1.25rem 0;
  display:flex; justify-content:space-between; align-items:center; gap:1rem;
  font-family:var(--font-display); font-weight:700; font-size:1.05rem; color:var(--ink); cursor:pointer;
}
.faq-q .plus{ flex:none; width:22px; height:22px; position:relative; }
.faq-q .plus::before, .faq-q .plus::after{
  content:""; position:absolute; background:var(--rust); top:50%; left:50%; transform:translate(-50%,-50%);
}
.faq-q .plus::before{ width:16px; height:2px; }
.faq-q .plus::after{ width:2px; height:16px; transition:transform .15s ease; }
.faq-item[data-open="true"] .plus::after{ transform:translate(-50%,-50%) rotate(90deg) scaleY(0); }
.faq-a{ display:none; padding:0 0 1.5rem; color:var(--steel); max-width:60ch; }
.faq-item[data-open="true"] .faq-a{ display:block; }

/* ---------------- Page hero (interior pages) ---------------- */
.page-hero{ background:var(--ink); color:#fff; padding:3.5rem 0; }
.page-hero h1{ color:#fff; }
.page-hero p{ color:#CFC9BC; max-width:56ch; }
.breadcrumb{ font-size:0.85rem; color:#B9B2A2; margin-bottom:1rem; }
.breadcrumb a:hover{ color:#fff; }

/* ---------------- Footer ---------------- */
.site-footer{ background:var(--ink); color:#CFC9BC; padding:3.5rem 0 1.5rem; }
.footer-grid{ display:grid; gap:2.25rem; grid-template-columns:1fr; margin-bottom:2.5rem; }
@media (min-width:700px){ .footer-grid{ grid-template-columns:1.3fr 1fr 1fr 1fr; } }
.footer-brand .brand-name{ color:#fff; font-size:1.2rem; }
.footer-brand p{ color:#B9B2A2; margin-top:0.5rem; }
.site-footer h4{ color:#fff; font-size:0.95rem; margin-bottom:0.9rem; }
.site-footer ul li{ margin-bottom:0.55rem; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid var(--line-dark); padding-top:1.5rem; display:flex; flex-wrap:wrap;
  gap:1rem; justify-content:space-between; font-size:0.82rem; color:#8D8778;
}
.footer-bottom a:hover{ color:#fff; }

/* ---------------- Mobile sticky call bar ---------------- */
.mobile-action-bar{
  display:flex; position:fixed; left:0; right:0; bottom:0; z-index:120;
  background:var(--ink); border-top:1px solid var(--line-dark);
}
.mobile-action-bar a{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0.15rem; padding:0.65rem 0.25rem 0.75rem; color:#fff; font-size:0.72rem; font-weight:600;
}
.mobile-action-bar a svg{ width:20px; height:20px; }
.mobile-action-bar a.is-primary{ background:var(--rust); }
@media (min-width:960px){ .mobile-action-bar{ display:none; } }
body{ padding-bottom:0; }
@media (max-width:959px){ body.has-mobile-bar{ padding-bottom:64px; } }

/* Content page prose */
.prose{ max-width:70ch; }
.prose h2{ margin-top:2rem; }
.two-col{ display:grid; gap:2.5rem; }
@media (min-width:900px){ .two-col{ grid-template-columns:1fr 1fr; } }
