/* ==========================================================================
   THREE GUYS MASONRY — design system
   Palette from the trade itself: thermal bluestone, mortar, sand joints,
   and jobsite string-line orange reserved EXCLUSIVELY for estimate/call
   actions. Type: Archivo variable — expanded black for display (stamped
   stone signage), normal width for body. Signature: the running-bond
   course divider between sections.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #242b2e;
  --ink-soft: #46545a;
  --bluestone: #3e5c66;
  --bluestone-deep: #26383f;
  --bluestone-edge: #1b2a30;
  --mortar: #efece5;
  --mortar-bright: #f7f5f0;
  --sand: #d8d2c3;
  --sand-soft: #e5e0d4;
  --line: #e4572e;          /* string-line orange: focus outlines + accent marks ONLY (non-text) */
  --cta: #c2481f;            /* CTA buttons: white text passes WCAG AA (4.95:1) */
  --cta-deep: #a63c17;
  --line-deep: #c2481f;
  --on-deep: #eceade;
  --on-deep-soft: #b8c2c2;

  --radius: 3px;
  --wrap: 74rem;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* running-bond course pattern (the signature) */
  --course: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'%3E%3Cg fill='%23d8d2c3'%3E%3Crect x='0' y='0' width='33' height='6'/%3E%3Crect x='36' y='0' width='36' height='6'/%3E%3Crect x='-17' y='9' width='32' height='6'/%3E%3Crect x='18' y='9' width='34' height='6'/%3E%3Crect x='55' y='9' width='34' height='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mortar);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bluestone); text-underline-offset: 3px; }
a:hover { color: var(--bluestone-deep); }
ul { padding-left: 1.2rem; }
strong { font-weight: 700; }

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

.visually-hidden {
  position: absolute; 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: -3.5rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius); z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

/* ---------- Type scale ---------- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h1, .display {
  font-stretch: 122%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.02;
  font-size: clamp(2.2rem, 5.2vw, 3.9rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
h2 {
  font-stretch: 118%;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin: 0 0 .85rem;
}
h3 {
  font-stretch: 110%;
  font-weight: 700;
  font-size: 1.17rem;
  line-height: 1.3;
  margin: 0 0 .5rem;
}
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--bluestone);
  margin: 0 0 .8rem;
}
.on-deep .eyebrow { color: var(--sand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  text-decoration: none;
  padding: .78rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn-line { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn-line:hover { background: var(--cta-deep); border-color: var(--cta-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--mortar); }
.btn-ghost-light { background: transparent; color: var(--on-deep); border-color: var(--on-deep); }
.btn-ghost-light:hover { background: var(--on-deep); color: var(--bluestone-deep); }

/* ---------- Signature: course divider ---------- */
.course-divider {
  height: 16px;
  background-image: var(--course);
  background-repeat: repeat-x;
  opacity: .9;
}
.on-deep .course-divider, .cta-band .course-divider { opacity: .28; }

/* ---------- Header ---------- */
.site-header {
  background: var(--mortar-bright);
  border-bottom: 2px solid var(--sand);
  position: sticky; top: 0; z-index: 50;
}
.header-row {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--bluestone); display: grid; }
.brand-name {
  display: block;
  font-family: var(--display);
  font-stretch: 118%; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.05rem; line-height: 1.05;
}
.brand-sub {
  display: block; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .97rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--bluestone); color: var(--bluestone-deep); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-phone:hover { color: var(--bluestone); }

.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: .5rem .55rem; cursor: pointer; }
.nav-toggle-box { display: grid; gap: 4px; }
.nav-toggle-box span { width: 20px; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero { background: var(--bluestone-deep); color: var(--on-deep); }
.hero .wrap { padding-block: clamp(3rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-deep-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1.9rem; }
.trust-course { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: 0; margin: 0; list-style: none; }
.trust-course li {
  font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--sand); font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
}
.trust-course li::before { content: ""; width: 10px; height: 10px; background: var(--line); flex: none; }
.hero-visual { position: relative; }
.hero-photo {
  aspect-ratio: 4 / 3.2; border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(62,92,102,.55), rgba(27,42,48,.85)),
    repeating-linear-gradient(0deg, #33474f 0 44px, #26383f 44px 48px),
    repeating-linear-gradient(90deg, transparent 0 108px, #26383f 108px 114px);
  border: 2px solid var(--bluestone-edge);
  display: flex; align-items: flex-end;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.hero-photo-caption { padding: 1rem 1.1rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-deep-soft); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.section-deep { background: var(--bluestone-deep); color: var(--on-deep); }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: var(--on-deep-soft); }
.section-deep a { color: var(--sand); }
.section-sand { background: var(--sand-soft); }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }

.card {
  background: var(--mortar-bright);
  border: 1px solid var(--sand);
  border-top: 4px solid var(--bluestone);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.card-link {
  font-weight: 700; text-decoration: none; color: var(--bluestone-deep);
  font-size: .95rem; letter-spacing: .02em;
}
.card-link::after { content: " →"; }
.card-link:hover { color: var(--line-deep); }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--bluestone); }

/* project gallery: sand background = mortar joints between cards */
.project-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; background: var(--sand); padding: 10px;
  border-radius: var(--radius);
}
.project-card { background: var(--mortar-bright); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.project-media { aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, var(--sand-soft) 0 14px, #ddd7c9 14px 28px); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-stretch: 115%; font-weight: 750;
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  color: var(--bluestone);
}
.project-body { padding: 1.05rem 1.1rem 1.2rem; }
.project-meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--bluestone); font-weight: 700; margin: 0 0 .4rem; }
.project-body p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.project-body h3 { margin-bottom: .35rem; }

/* ---------- Split layout (about / service body) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: start; }
.aside-panel {
  background: var(--mortar-bright); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 6rem;
}
.aside-panel .btn { width: 100%; text-align: center; margin-top: .4rem; }
.aside-panel ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.aside-panel li { padding: .45rem 0; border-top: 1px solid var(--sand-soft); font-size: .95rem; }
.aside-panel li:first-child { border-top: 0; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.5rem; position: relative; margin-bottom: .55rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 11px; height: 11px; background: var(--bluestone); }

/* ---------- Steps (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--mortar-bright); border: 1px solid var(--sand); border-radius: var(--radius); padding: 1.3rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-stretch: 122%;
  font-weight: 800; font-size: 1.6rem; color: var(--sand);
  margin-bottom: .4rem;
}
.steps h3 { font-size: 1.02rem; }
.steps p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--sand); border-radius: var(--radius);
  background: var(--mortar-bright); margin-bottom: .75rem;
}
.faq-item summary {
  cursor: pointer; padding: 1.05rem 1.2rem;
  font-family: var(--display); font-stretch: 110%; font-weight: 700;
  font-size: 1.02rem; list-style: none; position: relative; padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; color: var(--bluestone); font-weight: 400;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item div { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bluestone-deep); color: var(--on-deep); }
.cta-inner {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center;
  justify-content: space-between; padding-block: 3rem;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: var(--on-deep-soft); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bluestone-edge); color: var(--on-deep-soft); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: 3rem 2rem; }
.footer-name { font-family: var(--display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; color: #fff; font-size: 1.05rem; margin-bottom: .6rem; }
.footer-head { font-family: var(--display); font-stretch: 112%; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--sand); margin-bottom: .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--on-deep-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cred { color: var(--sand); }
.footer-towns { font-size: .85rem; line-height: 1.9; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgba(216,210,195,.2); padding-block: 1.2rem;
  font-size: .85rem;
}
.footer-legal p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; }
.contact-frame { border: 1px solid var(--sand); border-radius: var(--radius); background: var(--mortar-bright); overflow: hidden; }
.contact-frame iframe { display: block; width: 100%; border: 0; height: 1000px; }
.contact-fallback { padding: 2rem; }
.contact-card { background: var(--mortar-bright); border: 1px solid var(--sand); border-top: 4px solid var(--bluestone); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.1rem; }
.contact-card p { margin-bottom: .5rem; }
.contact-big { font-family: var(--display); font-stretch: 115%; font-weight: 750; font-size: 1.35rem; text-decoration: none; color: var(--ink); display: inline-block; }
.contact-big:hover { color: var(--bluestone); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; padding-top: 1.4rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--sand); }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------- Utility ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.2rem) 0; }
.notice {
  background: var(--sand-soft); border-left: 4px solid var(--bluestone);
  padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .97rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3, .steps, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .aside-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 56rem) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--mortar-bright); border-bottom: 2px solid var(--sand);
    margin: 0; padding: .5rem 1.25rem 1.2rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--sand-soft); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
}

@media (max-width: 40rem) {
  .grid-3, .grid-2, .steps, .review-grid { grid-template-columns: 1fr; }
  .project-grid, .project-grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  body { font-size: 1rem; }
}


/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.review-card {
  background: var(--mortar-bright); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 1.4rem; margin: 0;
  display: flex; flex-direction: column;
}
.review-card blockquote { margin: 0 0 1rem; flex: 1; }
.review-card blockquote p { font-size: 1rem; color: var(--ink); margin: 0; }
.review-card blockquote p::before { content: "\201C"; color: var(--bluestone); font-family: var(--display); font-weight: 800; margin-right: .1em; }
.review-meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bluestone); font-weight: 700; margin: 0; }

/* ---------- Utilities (replacing inline styles; keeps CSP tightenable) ---------- */
.mt-2 { margin-top: .8rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn + .btn-block { margin-top: .6rem; }
.u-small { font-size: .9rem; }
.u-muted { color: var(--ink-soft); }
.wrap-narrow { max-width: 52rem; }
.pad-bottom { padding-bottom: 4rem; }
.project-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .cta-band, .site-footer, .nav-toggle { display: none; }
}
