/* Construction Authority, LLC — static site styles */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
}

:root {
  --slate-950: #101418;
  --slate-900: #161b22;
  --slate-850: #1a2129;
  --slate-800: #222a33;
  --slate-700: #2e3844;
  --slate-600: #44505e;
  --concrete-100: #f5f3ef;
  --concrete-200: #e8e5df;
  --concrete-300: #cfcbc3;
  --concrete-400: #a9a49c;
  --concrete-500: #8a8680;
  --accent: #e8792b;
  --accent-hover: #f18b42;
  --accent-dark: #c45f16;
  --brand-blue: #165dcc;
  --text: #1c2128;
  --text-dark: #f4f2ee;
  --muted: #5a6068;
  --muted-dark: #b7b3ab;
  --line: #d9d5ce;
  --line-dark: #323b46;
  --focus: #e8792b;
  --header-h: 4.25rem;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(16, 20, 24, 0.12);
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --space: 1.25rem;
  --max: 72rem;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--concrete-100);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { top: 0; color: #fff; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--slate-900);
  color: var(--text-dark);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1 1 auto;
}
.logo img {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 12.5rem;
}
.logo-llc {
  font-size: 0.62rem;
  color: var(--concrete-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.12rem;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--slate-600);
  background: var(--slate-800);
  cursor: pointer;
  border-radius: 4px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--slate-850);
  border-bottom: 1px solid var(--line-dark);
  padding: 0.5rem 0 1rem;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-family: var(--display);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-call {
  display: inline-flex;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 0.5rem 0.6rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: #fff; color: var(--slate-900); border-color: #fff; }
.btn-dark {
  background: var(--slate-900);
  color: #fff;
  border-color: var(--slate-900);
}
.btn-dark:hover { background: var(--slate-700); border-color: var(--slate-700); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--slate-900);
  border-color: var(--slate-900);
}
.btn-outline:hover { background: var(--slate-900); color: #fff; }
.btn-call {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-size: 0.88rem;
  padding: 0.6rem 0.9rem;
}
.btn-call:hover { background: var(--accent-hover); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  min-height: 32rem;
  display: flex;
  align-items: flex-end;
  background: var(--slate-950) center / cover no-repeat;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,20,24,0.25) 0%, rgba(16,20,24,0.55) 45%, rgba(16,20,24,0.88) 100%),
    linear-gradient(90deg, rgba(16,20,24,0.72) 0%, rgba(16,20,24,0.2) 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-lead {
  font-size: 1.05rem;
  max-width: 40rem;
  color: var(--concrete-200);
  margin: 0 0 1.5rem;
}
.hero-lead strong { color: #fff; font-weight: 600; }

/* Trust bar */
.trust {
  background: var(--slate-800);
  color: var(--text-dark);
  border-top: 1px solid var(--line-dark);
}
.trust-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.trust-item strong { display: block; font-size: 1.05rem; }
.trust-item span { color: var(--muted-dark); font-size: 0.88rem; }
.stars { color: var(--accent); letter-spacing: 0.08em; font-size: 1.05rem; }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: #fff; }
.section-dark {
  background: var(--slate-900);
  color: var(--text-dark);
}
.section-head { margin-bottom: 1.75rem; }
.section-head h2,
.page-hero h1,
.prose h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.65rem;
}
.lede { font-size: 1.12rem; color: var(--muted); margin: 0; max-width: 46rem; }
.section-dark .lede { color: var(--muted-dark); }

/* Page hero (inner pages) */
.page-hero {
  background: var(--slate-900);
  color: #fff;
  padding: 2.4rem 0 2rem;
  border-bottom: 3px solid var(--accent);
}
.page-hero p { color: var(--concrete-300); margin: 0; max-width: 44rem; }

/* Service lists / cards */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 0.95rem 1.1rem;
  box-shadow: 0 1px 0 rgba(16,20,24,0.04);
}
.service-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.service-groups {
  display: grid;
  gap: 2rem;
}
.service-group h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.service-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.service-group li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
}
.service-group li::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  transform: translateY(-50%);
}

/* Reviews */
.reviews-panel {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
.rating-big {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rating-value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.reviews-note {
  color: var(--muted);
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.98rem;
}

/* Forms */
.quote-form,
.form-card {
  background: var(--slate-800);
  color: var(--text-dark);
  padding: 1.5rem 1.15rem;
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.form-card h2 { color: #fff; }
.form-note {
  color: var(--muted-dark);
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}
.form-grid {
  display: grid;
  gap: 0.85rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--slate-600);
  border-radius: 4px;
  background: var(--slate-950);
  color: #fff;
  width: 100%;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--muted-dark); }
.form-status {
  margin: 0.8rem 0 0;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-error { color: #ffb4a8; }
.form-status.is-ok { color: #b7e3b0; }

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

/* Gallery */
.gallery-note {
  background: var(--concrete-200);
  border-left: 4px solid var(--slate-700);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.98rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  background: var(--slate-900);
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.gallery-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--slate-800);
}
.gallery-item figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.25rem 0.45rem;
  background: var(--slate-900);
  color: #fff;
}
.badge-after { background: var(--accent); }
.badge-archive {
  background: var(--brand-blue);
  right: 0.7rem;
  left: auto;
}
.pair-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.pair-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 12, 16, 0.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0.75rem;
}
.lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}
.lightbox button {
  background: var(--slate-800);
  color: #fff;
  border: 1px solid var(--slate-600);
  border-radius: 4px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
}

/* About layout */
.split {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.split img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}
.nap p { margin: 0.25rem 0; }
.nap a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.nap a:hover { text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.social-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-links a { font-weight: 600; }

/* Privacy / prose */
.prose { padding: 2.5rem 0 3.5rem; }
.prose h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.45rem;
  margin: 2rem 0 0.6rem;
}
.prose p { margin: 0 0 1rem; color: #333; }

/* Footer */
.site-footer {
  background: var(--slate-950);
  color: var(--concrete-300);
  padding: 2.5rem 0 6.5rem;
  border-top: 3px solid var(--accent);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
.site-footer h2 {
  font-family: var(--display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
  color: var(--concrete-500);
  font-size: 0.85rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; list-style: none; margin: 0; padding: 0; }

/* Sticky mobile call bar */
.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}
.mobile-call-bar:hover { color: #fff; background: var(--accent-hover); }

@media (min-width: 640px) {
  .trust-inner { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pair-grid { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.two .full { grid-column: 1 / -1; }
  .quote-form, .form-card { padding: 2rem; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-call { display: inline-flex; font-size: 0.88rem; padding: 0.6rem 0.9rem; }
  .logo-name { font-size: 1.2rem; max-width: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .site-nav ul { display: flex; align-items: center; gap: 0.15rem; }
  .site-nav a { padding: 0.5rem 0.7rem; }
  .logo { flex: 0 1 auto; }
  .hero { min-height: 38rem; align-items: center; }
  .hero-content { padding: 6.5rem 0 5rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .reviews-panel { grid-template-columns: auto 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .site-footer { padding-bottom: 2.5rem; }
  .mobile-call-bar { display: none; }
  .service-groups { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (min-width: 1100px) {
  .gallery-grid.tight { grid-template-columns: repeat(4, 1fr); }
}
