/* Root Barrier Houston — logo palette: canopy, charcoal, steel blue, soil */
:root {
  --canopy: #1a7a32;
  --canopy-2: #146028;
  --canopy-soft: #e7f3ea;
  --charcoal: #1c2430;
  --steel: #1b5fa0;
  --steel-2: #164e82;
  --soil: #14171c;
  --paper: #f6f1e8;
  --paper-2: #efe8da;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #d4cbb8;
  --white: #fffcf7;
  --skyline: #9aa3ad;
  --danger: #9b2c2c;
  --shadow: 0 12px 40px rgba(28, 36, 48, 0.12);
  --header-h: 84px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
  --measure: 68ch;
  --tabbar-h: 60px;
  --adminbar: var(--wp-admin--admin-bar--height, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--canopy-2); }
:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.85rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus {
  left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9999;
}

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.wrap-narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--steel);
  margin-bottom: 0.55rem;
}
.kicker--green { color: var(--canopy-2); }

.topbar {
  background: var(--charcoal);
  color: #d7dde4;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 10px 16px;
  padding: 7px 0; align-items: center; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #b8d4f0; }

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--steel);
  position: sticky;
  top: var(--adminbar);
  z-index: 40;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 18px; min-height: var(--header-h);
}
.brand { flex: 0 1 auto; min-width: 0; }
.brand img {
  height: 52px; width: auto; max-width: min(280px, 52vw);
  object-fit: contain; object-position: left center;
}
.nav {
  display: flex; align-items: center; gap: 0;
  flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap;
}
.nav > a, .nav .drop > button {
  background: none; border: 0; font: inherit; font-weight: 600;
  color: var(--charcoal); padding: 10px 11px; cursor: pointer;
  text-decoration: none; font-size: 0.9rem; white-space: nowrap;
}
.nav > a:hover, .nav .drop > button:hover { color: var(--steel); }
.drop { position: relative; }
.drop-menu {
  display: none; position: absolute; top: calc(100% - 2px); left: 0;
  background: var(--white); min-width: 240px; max-height: min(70vh, 520px); overflow: auto;
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 0;
  z-index: 50;
}
.drop-menu--cities {
  min-width: min(640px, calc(100vw - 32px));
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 8px;
}
.drop:hover > .drop-menu,
.drop:focus-within > .drop-menu { display: block; }
.drop:hover > .drop-menu--cities,
.drop:focus-within > .drop-menu--cities { display: grid; }
.drop-menu a {
  display: block; padding: 7px 14px; color: var(--charcoal);
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
}
.drop-menu a:hover { background: var(--paper); color: var(--steel); }
.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.phone-link {
  font-weight: 800; color: var(--charcoal); text-decoration: none;
  letter-spacing: -0.02em; font-size: 1rem; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px; font-weight: 700; border: 0;
  cursor: pointer; text-decoration: none; letter-spacing: -0.01em;
  font-family: var(--sans); font-size: 0.95rem; line-height: 1.2;
}
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--steel-2); color: #fff; }
.btn-green { background: var(--canopy); color: #fff; }
.btn-green:hover { background: var(--canopy-2); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--charcoal); }
.menu-toggle {
  display: none; background: var(--white); border: 1px solid var(--line);
  width: 44px; height: 44px; cursor: pointer; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal);
}

/* Hero */
.hero {
  position: relative; color: #fff; min-height: min(72vh, 720px);
  display: grid; align-items: end;
  background: var(--charcoal) center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(20,23,28,.9) 0%, rgba(20,23,28,.62) 42%, rgba(20,23,28,.28) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 56px 0 48px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 0 max(16px, calc((100% - var(--max)) / 2));
  max-width: 720px;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p.lede {
  font-family: var(--serif); font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.5;
  color: #e8edf2; max-width: 52ch; margin: 0 0 1.3rem;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; overflow-wrap: break-word; }
.crumbs a { color: var(--steel); }
.hero .crumbs { color: #c5ced6; }
.hero .crumbs a { color: #fff; }

.page-hero { min-height: 0; }
.page-hero .hero-inner { padding: 40px 0 36px; }
.page-hero h1 { max-width: 28ch; }

.trust {
  background: var(--charcoal); color: #d5dbe2;
  padding: 16px 0; border-bottom: 3px solid var(--canopy);
}
.trust ul {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 20px;
  list-style: none; margin: 0; padding: 0;
}
.trust li { font-size: 0.86rem; line-height: 1.4; }
.trust strong { display: block; color: #fff; font-size: 0.92rem; }

.section { padding: 64px 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-canopy { background: var(--canopy-soft); }
.prose {
  font-family: var(--serif); font-size: 1.08rem; line-height: 1.7;
  max-width: var(--measure); color: #2a313a; min-width: 0;
}
.prose-page,
.split .prose,
.wrap-narrow .prose { max-width: none; }
.prose h2, .prose h3 { font-family: var(--sans); }
.prose a { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0 0 0.45em; }
.prose ol.process {
  padding-left: 0;
  list-style: none;
}
.prose .form { font-family: var(--sans); max-width: none; }
.lead { font-size: 1.16rem; color: #2f3844; }

.split {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.85fr); gap: 40px;
  align-items: start;
}
.split > * { min-width: 0; }
.split-form { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr); }
.split aside,
.split-form > div:last-child {
  position: static;
}
.split aside img,
.split > div > img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  min-height: 0;
  margin-bottom: 16px;
}
.caption {
  font-size: 0.8rem; color: var(--muted); margin-top: 8px; font-style: italic;
}

.svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.svc-grid-space,
.city-grid-space { margin-top: 28px; }
.svc-card {
  background: var(--white); text-decoration: none; color: inherit;
  border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0;
}
.svc-card img { height: 168px; width: 100%; object-fit: cover; flex: 0 0 auto; }
.svc-card div { padding: 14px 16px 18px; }
.svc-card h3 { margin: 0 0 6px; font-size: 1.02rem; }
.svc-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.svc-card:hover { border-color: var(--steel); }

.city-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 16px;
  list-style: none; padding: 0; margin: 0;
}
.city-grid a {
  color: var(--charcoal); text-decoration: none; font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid var(--line); display: block;
  overflow-wrap: anywhere;
}
.city-grid a:hover { color: var(--steel); }
.city-grid .county {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.process {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-left: 3px solid var(--canopy);
  margin: 24px 0 24px 6px;
  padding: 0;
  list-style: none;
}
.process li {
  list-style: none; padding: 0 0 22px 24px; position: relative; margin: 0;
}
.process li:last-child { padding-bottom: 0; }
.process li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 11px; height: 11px; background: var(--canopy); border-radius: 50%;
}
.process strong { display: block; font-family: var(--sans); margin-bottom: 4px; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.02rem;
  font-family: var(--sans); color: var(--charcoal);
}
.faq p { margin: 10px 0 4px; font-family: var(--serif); }

.cta-band {
  background: var(--charcoal); color: #fff; padding: 48px 0;
  border-top: 3px solid var(--steel);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfd6de; max-width: 54ch; }
.cta-band .hero-actions, .cta-band p:last-child { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.form-band {
  width: min(680px, 100%);
  margin: 0 auto;
}
.form-band h2 { margin-bottom: 0.35em; }
.form-lede { color: var(--muted); margin: 0 0 1.1em; font-size: 1rem; }
.form {
  container-type: inline-size;
  position: relative;
  background: #fff;
  padding: 22px;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  max-width: 100%;
}
@container (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--charcoal);
}
.form-span { grid-column: 1 / -1; }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  background: var(--paper);
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.form input[type="hidden"] { display: none; }
.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231c2430' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.form input[type="text"]:focus,
.form input[type="tel"]:focus,
.form input[type="email"]:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--steel);
  outline-offset: 1px;
  border-color: var(--steel);
  background: #fff;
}
.form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.form .consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: var(--canopy);
  appearance: auto;
  -webkit-appearance: checkbox;
}
.form-submit {
  width: 100%;
  margin-top: 16px;
  min-height: 46px;
}
.honey {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.notice { padding: 12px 14px; margin: 0 0 16px; font-size: 0.95rem; }
.notice-ok { background: var(--canopy-soft); }
.notice-bad { background: #fde8e8; color: var(--danger); }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.blog-card {
  text-decoration: none; color: inherit; min-width: 0;
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.blog-card img { height: 168px; width: 100%; object-fit: cover; }
.blog-card .meta { padding: 12px 14px 0; }
.blog-card h3 { font-size: 1.05rem; margin: 6px 0; padding: 0 14px; }
.blog-card p { color: var(--muted); font-size: 0.9rem; margin: 0; padding: 0 14px 16px; }
.meta { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }

.interlink {
  background: var(--paper-2); padding: 18px 20px; margin: 28px 0;
  border-left: 4px solid var(--steel);
}
.interlink h2 { font-size: 1.05rem; }
.interlink ul { margin: 0; padding-left: 1.1em; }
.interlink li { margin: 6px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip {
  background: var(--paper); border: 1px solid var(--line);
  padding: 6px 10px; font-size: 0.82rem; text-decoration: none; color: var(--charcoal);
}
.chip:hover { border-color: var(--steel); color: var(--steel); }

.site-footer {
  background: var(--soil); color: #b7c0c9; padding: 48px 0 28px;
  border-top: 3px solid var(--canopy);
}
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px;
}
.site-footer h3 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer a { color: #d5dde4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; font-size: 0.9rem; }
.foot-brand img { height: 44px; width: auto; max-width: 220px; background: #fff; padding: 6px 10px; }
.legal-row {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid #2a313a;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.8rem;
}
.legal-row nav { display: flex; flex-wrap: wrap; gap: 10px 14px; }

.rbh-tabbar { display: none; }

.cookie {
  position: fixed; left: 16px; right: auto; bottom: 16px; z-index: 50;
  width: min(420px, calc(100% - 32px));
  background: var(--white); border: 1px solid var(--line); padding: 14px 16px;
  box-shadow: var(--shadow);
}
.cookie p { margin: 0 0 10px; font-size: 0.9rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cookie .btn { padding: 8px 14px; font-size: 0.85rem; }
.btn-ghost-light {
  background: var(--paper); color: var(--charcoal);
  border: 1px solid var(--line);
}
.btn-ghost-light:hover { background: var(--paper-2); color: var(--charcoal); }

.single-body { padding: 40px 0 64px; }
.single-body .prose img { margin: 18px 0; }
.pag { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pagination { margin-top: 8px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); text-decoration: none;
  color: var(--charcoal); font-weight: 700; font-size: 0.88rem;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.stat-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0;
}
.stat {
  background: var(--white); padding: 18px; border-top: 3px solid var(--steel);
}
.stat b { display: block; font-size: 1.4rem; letter-spacing: -0.03em; }
.pull {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.4;
  border-top: 2px solid var(--canopy); border-bottom: 2px solid var(--canopy);
  padding: 16px 0; margin: 24px 0; color: var(--charcoal);
}

.nbh { columns: 2; margin: 0; padding-left: 1.1em; }

.prose img, .prose figure { max-width: 100%; height: auto; }
.prose figure { margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.section-white .wrap-narrow > .crumbs { margin-bottom: 8px; }
.section-white .wrap-narrow > h1 { margin-top: 0; }

@media (max-width: 560px) {
  .form { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
}

@media (max-width: 1180px) {
  .nav > a, .nav .drop > button { padding: 10px 8px; font-size: 0.84rem; }
  .phone-link { font-size: 0.92rem; }
  .brand img { height: 46px; }
}

@media (max-width: 1023px) {
  body {
    padding-bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .header-row { min-height: 68px; }
  .brand img { height: 42px; max-width: min(210px, 58vw); }
  .phone-link { font-size: 0.88rem; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0;
    top: 100%; background: var(--white); border-bottom: 3px solid var(--steel);
    padding: 8px 16px 20px; align-items: stretch; max-height: min(70vh, 520px); overflow: auto;
    box-shadow: var(--shadow);
  }
  .nav.is-open > a, .nav.is-open .drop > button {
    text-align: left; padding: 12px 4px; white-space: normal; border-bottom: 1px solid var(--line);
  }
  .drop-menu, .drop-menu--cities {
    position: static; display: none; box-shadow: none; border: 0; min-width: 0;
    grid-template-columns: 1fr; max-height: none; padding: 0 0 8px 8px;
  }
  .drop.is-open > .drop-menu,
  .drop.is-open > .drop-menu--cities { display: block; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta .btn { display: none; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .svc-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
  .split, .split-form, .foot-grid, .stat-row { grid-template-columns: 1fr; }
  .split aside { position: static; }
  .hero { min-height: 0; }
  .hero-inner { margin-left: auto; margin-right: auto; padding: 36px 0 32px; }
  .hero h1, .page-hero h1 { max-width: none; }
  .rbh-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 2147483646; background: var(--charcoal); color: #fff;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    justify-content: space-around; align-items: stretch;
    border-top: 2px solid var(--steel);
  }
  .rbh-tabbar a {
    color: #c5ced6; text-decoration: none; flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    gap: 2px; padding: 4px 2px 0;
  }
  .rbh-tabbar a.is-active { color: #fff; }
  .rbh-tabbar .call {
    background: var(--canopy); color: #fff; margin: 6px 4px;
    border-radius: 999px; max-width: 68px; flex: 0 0 68px;
  }
  .cookie { bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 1024px) {
  .rbh-tabbar { display: none !important; }
}

@media (max-width: 700px) {
  .svc-grid, .blog-grid, .trust ul, .city-grid { grid-template-columns: 1fr; }
  .nbh { columns: 1; }
  .section { padding: 44px 0; }
  .topbar .wrap { font-size: 0.72rem; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
@media (min-width: 783px) {
  body.admin-bar .site-header { top: 32px; }
}
