/* ==========================================================================
   ROCK & MORTAR — Design System
   Palette grounded in the actual jobsite: mortar oxide, poured concrete,
   safety-cone orange, turf moss. Type: Archivo (heavy, structural) for
   display, Inter for body — a working contractor's site, not a SaaS demo.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --charcoal: #211f1c;
  --charcoal-soft: #322f2a;
  --limestone: #f1ece1;
  --limestone-dim: #e6ded0;
  --oxide: #68180a;
  --oxide-dark: #4a1206;
  --safety: #ff6a13;
  --safety-dark: #e2570a;
  --moss: #545f3e;
  --steel: #6b6862;
  --white: #ffffff;
  --line: rgba(33, 31, 28, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-w: 1240px;
  --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--limestone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; max-width: 62ch; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   TOP UTILITY BAR — phone always visible
   ========================================================================== */
.top-bar {
  background: var(--charcoal);
  color: var(--limestone);
  font-size: 0.85rem;
}
.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: var(--limestone); }
.top-bar .phone-link { font-weight: 700; color: var(--safety); }
.top-bar .hours { color: rgba(241,236,225,0.7); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
header.site-header {
  background: var(--limestone);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.logo img { height: 34px; width: auto; display: block; }

.brand-strip { background: var(--white); padding: 44px 0; text-align: center; border-bottom: 1px solid var(--line); }
.brand-strip img { height: 84px; width: auto; margin: 0 auto; }
.brand-strip p { margin: 16px auto 0; color: var(--steel); font-weight: 600; font-size: 0.95rem; }

nav.primary-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
nav.primary-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
nav.primary-nav > ul > li { position: relative; }
nav.primary-nav > ul > li > a,
nav.primary-nav > ul > li > button.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  color: var(--charcoal);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
nav.primary-nav > ul > li > a:hover,
nav.primary-nav > ul > li > button.nav-toggle:hover,
nav.primary-nav > ul > li.open > button.nav-toggle { color: var(--oxide); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(33,31,28,0.14);
  min-width: 260px;
  padding: 10px;
  display: none;
  max-height: 70vh;
  overflow-y: auto;
}
nav.primary-nav > ul > li.open .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.dropdown a:hover { background: var(--limestone); color: var(--oxide); }
.dropdown-cols { columns: 2; column-gap: 8px; }
.dropdown-foot {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.dropdown-foot a { font-weight: 700; color: var(--oxide); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--charcoal);
  color: var(--limestone);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 1rem;
  white-space: nowrap;
}
.phone-pill strong { color: var(--safety); }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta {
  background: var(--safety);
  color: var(--white);
}
.btn-cta:hover { background: var(--safety-dark); }
.btn-dark {
  background: var(--charcoal);
  color: var(--limestone);
}
.btn-dark:hover { background: var(--charcoal-soft); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--limestone); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.08rem; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(33,31,28,0.92) 0%, rgba(33,31,28,0.55) 42%, rgba(33,31,28,0.05) 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 0 48px;
  color: var(--white);
}
.hero-tag {
  display: inline-block;
  background: var(--oxide);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius);
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero-sub { color: rgba(241,236,225,0.92); font-size: 1.15rem; max-width: 48ch; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust {
  margin-top: 30px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(241,236,225,0.85);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-trust b { color: var(--white); font-family: var(--font-display); font-size: 1.4rem; display: block; font-weight: 800; }

/* Inner-page hero (shorter, for service/location/etc pages) */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 64px 0 48px;
  position: relative;
}
.page-hero.with-image {
  background-size: cover;
  background-position: center;
}
.page-hero.with-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(33,31,28,0.94) 0%, rgba(33,31,28,0.75) 55%, rgba(33,31,28,0.4) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb { font-size: 0.85rem; color: rgba(241,236,225,0.7); margin-bottom: 14px; }
.breadcrumb a { color: rgba(241,236,225,0.85); }
.breadcrumb a:hover { color: var(--safety); }
.page-hero h1 { color: var(--white); max-width: 22ch; }
.page-hero p.lede { color: rgba(241,236,225,0.9); font-size: 1.08rem; max-width: 56ch; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.dark { background: var(--charcoal); color: var(--limestone); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(241,236,225,0.82); }
section.moss { background: var(--moss); color: var(--white); }
section.moss h2 { color: var(--white); }
section.white { background: var(--white); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--oxide);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.section-head .eyebrow-line::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--oxide);
  display: inline-block;
}
section.dark .section-head .eyebrow-line,
section.dark .section-head .eyebrow-line::before { color: var(--safety); background: var(--safety); }

/* ==========================================================================
   SERVICE / PHOTO GRID  (asymmetric, not uniform SaaS cards)
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--oxide);
  display: flex;
  flex-direction: column;
}
.svc-card .svc-img { aspect-ratio: 4/3; overflow: hidden; }
.svc-card .svc-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.svc-card-body h3 { margin-bottom: 8px; }
.svc-card-body p { font-size: 0.95rem; color: var(--steel); flex: 1; }
.svc-card-body .svc-link { margin-top: 10px; font-weight: 700; color: var(--oxide); font-size: 0.92rem; }
.svc-card-body .svc-link:hover { color: var(--safety-dark); }

/* Photo masonry (gallery) */
.gallery-grid {
  columns: 3 260px;
  column-gap: 18px;
}
.gallery-grid figure {
  margin: 0 0 18px;
  break-inside: avoid;
  border: 1px solid var(--line);
  background: var(--white);
}
.gallery-grid img { width: 100%; }
.gallery-grid figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel);
}

/* City/location grid */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.city-tile {
  border: 1px solid var(--line-light);
  padding: 18px 18px;
  background: rgba(255,255,255,0.03);
}
section.dark .city-tile { border-color: rgba(255,255,255,0.16); }
.city-tile h3 { font-size: 1.05rem; margin-bottom: 6px; }
.city-tile a { font-weight: 700; color: var(--safety); font-size: 0.88rem; }

/* Steps (legit sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--oxide);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

/* Two-column feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split img { border: 1px solid var(--line); }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.reverse .split-img { order: 2; }

/* Stat row */
.stat-row { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 24px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: var(--oxide); }
.stat span { font-size: 0.88rem; color: var(--steel); font-weight: 600; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--charcoal);
}
.faq-q .icon { font-size: 1.3rem; color: var(--oxide); flex-shrink: 0; margin-left: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 4px 20px; color: var(--steel); }

/* CTA band */
.cta-band {
  background: var(--oxide);
  color: var(--white);
  padding: 54px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0 auto 26px; }
.cta-band .btn-dark { background: var(--charcoal); }

/* Testimonial / honest-review-state block */
.review-note {
  border: 2px dashed var(--line);
  padding: 28px;
  text-align: center;
  color: var(--steel);
  font-size: 0.95rem;
}

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--limestone);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.82rem; color: var(--steel); margin-top: 14px; }
.form-status { display: none; padding: 14px 16px; margin-top: 16px; font-weight: 600; }
.form-status.ok { display: block; background: rgba(84,95,62,0.14); color: var(--moss); }
.form-status.err { display: block; background: rgba(168,70,31,0.12); color: var(--oxide-dark); }

/* Service area info card (no map pin — city list instead) */
.area-card { border: 1px solid var(--line); background: var(--white); padding: 26px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer { background: var(--charcoal); color: rgba(241,236,225,0.85); padding-top: 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(241,236,225,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--safety); }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 46px; width: auto; }
.footer-phone { font-size: 1.4rem; font-weight: 800; color: var(--safety); font-family: var(--font-display); margin: 10px 0; display: block; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.footer-social a:hover { transform: translateY(-2px); opacity: 0.88; }
.footer-social svg { width: 100%; height: 100%; }
.social-inline { display: flex; gap: 10px; }
.social-inline a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, opacity 0.15s ease; }
.social-inline a:hover { transform: translateY(-2px); opacity: 0.88; }
.social-inline svg { width: 100%; height: 100%; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: rgba(241,236,225,0.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(241,236,225,0.75); }
.footer-bottom a:hover { color: var(--safety); }
.credit { color: rgba(241,236,225,0.45); font-weight: 400; }
.credit a { color: rgba(241,236,225,0.55); font-weight: 400; }
.credit a:hover { color: var(--safety); }

/* Trust badge (licensed & insured, etc.) */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--white);
  padding: 8px 14px; font-size: 0.85rem; font-weight: 700; color: var(--charcoal);
}
section.dark .badge { border-color: rgba(255,255,255,0.25); background: transparent; color: var(--white); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }

/* ==========================================================================
   SERVICE AREA MAP (custom illustration — no address pin, city-level only)
   ========================================================================== */
.map-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px;
  margin-top: 10px;
}
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-city-dot circle { fill: var(--oxide); }
.map-city-dot text { font-family: var(--font-body); font-weight: 700; fill: var(--charcoal); font-size: 13px; }
.map-city-dot.featured circle { fill: var(--safety); }
.map-legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-size: 0.85rem; color: var(--steel); align-items: center; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Sticky mobile call bar */
.sticky-call {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--safety);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-weight: 800;
  font-size: 1.05rem;
  z-index: 300;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.2);
}

/* ==========================================================================
   POPUP GATE (base44-style two-button)
   ========================================================================== */
.gate-overlay {
  position: fixed; inset: 0;
  background: rgba(33,31,28,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.gate-overlay.show { display: flex; }
.gate-card {
  background: var(--white);
  max-width: 440px;
  width: 100%;
  padding: 38px 32px;
  text-align: center;
  border-top: 6px solid var(--safety);
  position: relative;
}
.gate-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--steel);
}
.gate-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.gate-card p { color: var(--steel); margin: 0 auto 26px; }
.gate-actions { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--white); border: 1px solid var(--line); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blog-card-body { padding: 20px 22px; }
.blog-card-body .blog-date { font-size: 0.8rem; color: var(--oxide); font-weight: 700; margin-bottom: 8px; display: block; }
.blog-card-body h3 { font-size: 1.15rem; }
article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin-top: 1.4em; }
article.post .direct-answer {
  background: var(--limestone-dim);
  border-left: 4px solid var(--oxide);
  padding: 18px 22px;
  font-weight: 600;
  margin: 24px 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  nav.primary-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .header-cta .phone-pill span.label { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .sticky-call { display: flex; }
  body { padding-bottom: 58px; }
  .field-row { grid-template-columns: 1fr; }

  nav.primary-nav.mobile-open {
    display: block;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--limestone);
    z-index: 250;
    padding: 90px 24px 24px;
    overflow-y: auto;
  }
  nav.primary-nav.mobile-open > ul { flex-direction: column; align-items: stretch; }
  nav.primary-nav.mobile-open > ul > li > a,
  nav.primary-nav.mobile-open > ul > li > button.nav-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 1.15rem;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
  }
  nav.primary-nav.mobile-open .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  nav.primary-nav.mobile-open li.open .dropdown { display: block; }
  .dropdown-cols { columns: 1; }
  .mobile-close {
    position: fixed; top: 18px; right: 24px;
    background: var(--charcoal); color: var(--white);
    border: none; width: 40px; height: 40px;
    font-size: 1.2rem; z-index: 260; cursor: pointer;
    display: none;
  }
  nav.primary-nav.mobile-open ~ .mobile-close,
  body.nav-open .mobile-close { display: block; }
}
