@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --blue: #294d89;
  --blue-dark: #00478d;
  --blue-ink: #244987;
  --cyan: #00aff0;
  --cyan-hover: #00a2e3;
  --ink: #161922;
  --body: #8d939d;
  --soft: #f4f7fc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 100%;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 24px;
  color: var(--blue);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a {
  overflow-wrap: break-word;
}

h1 {
  font-size: 48px;
  line-height: 50px;
}

h2 {
  font-size: 40px;
  line-height: 50px;
}

h3 {
  font-size: 25px;
  line-height: 35px;
}

h4 {
  font-size: 20px;
  line-height: 30px;
}

p {
  margin: 0 0 24px;
}

ul {
  margin: 0 0 24px;
  padding-left: 26px;
}

.container,
.section_wrapper {
  max-width: 1900px;
  margin: 0 auto;
}

#Wrapper {
  overflow: hidden;
  background: var(--white);
  max-width: 100vw;
}

#Header {
  min-height: 90px;
  background: var(--white);
  position: relative;
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

#Top_bar {
  height: 90px;
  background: var(--white);
}

#Top_bar .container {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 38px;
}

.logo {
  width: 410px;
  max-width: 31vw;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #1b1b1d;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 28px;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--blue-dark);
}

.brand-mark::before {
  top: 2px;
  width: 50px;
}

.brand-mark span {
  top: 11px;
  width: 38px;
}

.brand-mark::after {
  top: 20px;
  width: 50px;
}

.brand-text strong {
  display: block;
  color: #1b1b1d;
  font-size: 27px;
  line-height: 30px;
  font-weight: 700;
}

.brand-text {
  min-width: 0;
}

.brand-text em {
  display: block;
  color: #777a82;
  font-style: normal;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: 7px;
}

/* brand-logo image (added by brand_assets rollout) */
.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
  max-width: 320px;
}
.footer-brand .brand-logo-img {
  height: 30px;
  max-width: 260px;
}
@media (max-width: 768px) {
  .brand-logo-img {
    height: 30px;
    max-width: 230px;
  }
  .footer-brand .brand-logo-img {
    height: 26px;
  }
}

#menu {
  margin-left: auto;
}

#menu .menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu .menu > li {
  position: relative;
  border-left: 1px solid #f1f1f1;
}

#menu .menu > li > a {
  min-height: 90px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  color: #8b95a6;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  transition: color 0.2s ease;
}

#menu .menu > li.current-menu-item > a,
#menu .menu > li > a:hover {
  color: var(--blue);
}

#menu .menu li ul {
  position: absolute;
  top: 90px;
  left: 0;
  width: 260px;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  background: var(--white);
  border-top: 3px solid var(--cyan);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#menu .menu li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#menu .menu li ul a {
  display: block;
  padding: 10px 22px;
  color: #8d939d;
  font-size: 14px;
  font-weight: 600;
}

#menu .menu li ul a:hover {
  color: var(--blue);
  background: #f8fafc;
}

.top_bar_right {
  display: flex;
  align-items: center;
  gap: 26px;
  border-left: 1px solid #f1f1f1;
  padding-left: 28px;
  height: 90px;
}

.emergency-link {
  white-space: nowrap;
  color: #8b95a6;
  font-size: 14px;
  font-weight: 600;
}

.emergency-link strong {
  color: #f80000;
  font-weight: 700;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  border: 0;
  border-radius: 5px;
  background: var(--cyan);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--cyan-hover);
}

.action_button {
  background: #0089f7;
  min-width: 136px;
}

.responsive-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  color: var(--blue);
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.home-hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  background: var(--blue);
  max-width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 78px 70px 78px 150px;
  background: var(--blue);
  min-width: 0;
}

.hero-copy h1 {
  color: var(--white);
  font-size: 58px;
  line-height: 1.18;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 21px;
  line-height: 30px;
  max-width: 480px;
}

.hero-media {
  min-height: 720px;
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  position: relative;
}

.soft-section {
  background: var(--soft);
  padding: 62px 84px;
}

.white-section {
  background: var(--white);
  padding: 72px 84px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}

.service-card {
  background: var(--white);
  text-align: center;
  padding: 52px 52px 48px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(41, 77, 137, 0.12);
}

.card-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  color: var(--blue-dark);
}

.real-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #0077ce);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 71, 141, 0.16);
}

.real-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.service-card h3,
.flat-box h3 {
  color: var(--blue);
  font-size: 22px;
  line-height: 30px;
  margin-bottom: 18px;
}

.service-card p {
  color: var(--body);
  font-size: 17px;
  line-height: 28px;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 72px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.copy-block h2 {
  color: var(--blue);
  margin-bottom: 62px;
}

.copy-block p {
  font-size: 17px;
  line-height: 29px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.who-section {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.who-section .copy-block h2 {
  margin-bottom: 24px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.inline-actions a {
  color: var(--blue);
  border-bottom: 2px solid var(--cyan);
  font-weight: 700;
}

.who-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(22, 25, 34, 0.12);
}

.who-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.who-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 22px 24px;
  background: rgba(0, 71, 141, 0.92);
  color: var(--white);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 6px;
  align-items: stretch;
}

.image-stack img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.image-stack img:first-child {
  height: 526px;
}

.image-stack .stack-side {
  display: grid;
  gap: 6px;
}

.blue-band {
  background: linear-gradient(rgba(0, 36, 76, 0.88), rgba(0, 71, 141, 0.88)), var(--blue);
  color: var(--white);
  padding: 72px 84px;
}

.blue-band h2,
.blue-band h3 {
  color: var(--white);
}

.blue-band .section-title {
  text-align: center;
  margin-bottom: 52px;
}

.commitment-band .commit-card {
  min-height: 285px;
  border: 1px solid rgba(0, 175, 240, 0.18);
}

.commitment-band .commit-card .real-icon {
  margin-left: auto;
  margin-right: auto;
}

.commit-card {
  background: var(--white);
  color: var(--body);
  text-align: center;
  padding: 42px 48px;
  min-height: 250px;
}

.commit-card h3 {
  margin-top: 18px;
  margin-bottom: 18px;
}

.flat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.flat-box {
  background: var(--white);
  overflow: hidden;
  color: var(--body);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.flat-box img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.flat-box .desc_wrapper {
  padding: 28px 30px 34px;
  background: var(--white);
  min-height: 185px;
}

.flat-box .desc_wrapper h3 {
  color: var(--blue);
  background: var(--white);
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.locations-showcase {
  padding: 84px 84px 88px;
  background: #071f3a;
  color: var(--white);
  overflow: hidden;
}

.locations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.locations-head h2 {
  color: var(--white);
  max-width: 760px;
  margin: 0;
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.location-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 26vw);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
}

.location-slide {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
  padding: 28px;
  scroll-snap-align: start;
}

.location-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 22, 45, 0.08), rgba(2, 22, 45, 0.84));
}

.location-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.location-slide:hover img {
  transform: scale(1.05);
}

.location-slide span,
.location-slide p {
  position: relative;
  z-index: 2;
}

.location-slide span {
  display: block;
  color: var(--white);
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.location-slide p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 15px;
  line-height: 24px;
}

.theme-label {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

.subheader {
  min-height: 150px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(1, 20, 44, 0.92), rgba(0, 71, 141, 0.88)), url("/images/hero/hero-commercial-roofing-waco-tx-04.jpg") center/cover;
}

.subheader h1 {
  color: var(--white);
  margin: 0;
  padding: 0 84px;
}

.interior-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.interior-split .split-image img {
  width: 100%;
  height: 100%;
  min-height: 710px;
  object-fit: cover;
}

.interior-split .split-copy {
  padding: 74px 72px;
  max-width: 520px;
}

.interior-split .split-copy h2 {
  margin-bottom: 20px;
}

.index-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  padding: 52px 76px 76px;
}

.listing {
  display: grid;
  gap: 78px;
}

.list-item {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.list-item img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.list-item h2 {
  font-size: 28px;
  line-height: 36px;
  margin-bottom: 24px;
}

.list-item p {
  font-size: 17px;
  line-height: 29px;
}

.read-more {
  min-width: 152px;
  margin-top: 14px;
}

.quote-sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
}

.quote-sidebar h3 {
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 18px;
}

.quote-form {
  display: grid;
  gap: 22px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #f1f1f1;
  background: var(--white);
  color: var(--blue);
  font: inherit;
  padding: 14px 13px;
  min-height: 43px;
  outline: none;
}

.quote-form textarea {
  min-height: 160px;
  resize: vertical;
}

.quote-form .check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 16px;
  color: var(--body);
  font-size: 15px;
  line-height: 22px;
}

.quote-form label {
  display: flex;
  gap: 6px;
  align-items: center;
}

.quote-form button {
  width: 100%;
  background: var(--blue);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.detail-main > img {
  width: 100%;
  min-height: 620px;
  height: 68vh;
  object-fit: cover;
}

.detail-copy {
  max-width: 610px;
}

.detail-copy h2 {
  font-size: 28px;
  line-height: 36px;
  margin-bottom: 22px;
}

.detail-copy h3,
.detail-copy strong {
  color: var(--cyan);
}

.detail-copy li {
  margin-bottom: 6px;
}

.polished-detail {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.polished-detail .taxonomy-copy,
.polished-detail .roof-copy {
  max-width: 900px;
}

.polished-detail .taxonomy-copy p:first-child,
.polished-detail .roof-copy p:first-child {
  padding: 28px 32px;
  border-left: 5px solid var(--cyan);
  background: #f4f9ff;
  color: var(--blue);
  font-size: 20px;
  line-height: 32px;
}

.related-links {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid #edf1f6;
}

.related-links a {
  display: inline-block;
  margin: 0 10px 10px 0;
  padding: 9px 13px;
  background: var(--soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.archive-card {
  background: var(--white);
  padding: 34px 32px;
  min-height: 235px;
  border-top: 4px solid var(--cyan);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(41, 77, 137, 0.13);
}

.archive-card h3 {
  font-size: 20px;
  line-height: 29px;
  margin-bottom: 16px;
}

.archive-card p {
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 20px;
}

.archive-card .card-link {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.polished-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  padding: 76px 84px;
  background: var(--soft);
}

.polished-contact-page {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 46%, #f7fbff 100%);
}

.contact-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 34px;
}

.contact-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
}

.contact-hero p {
  max-width: 720px;
  font-size: 20px;
  line-height: 32px;
}

.contact-panel {
  background: var(--soft);
  padding: 108px 72px;
}

.contact-card,
.contact-form-panel {
  background: var(--white);
  padding: 42px;
  box-shadow: 0 16px 40px rgba(41, 77, 137, 0.09);
}

.contact-card h2,
.contact-form-panel h2 {
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #f8fbff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-map,
.footer-map {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-map {
  margin-top: 24px;
  border-color: #dbe5f0;
}

.contact-map iframe,
.footer-map iframe {
  display: block;
  width: 100%;
  height: 230px;
  border: 0;
}

.contact-panel h3 {
  margin-bottom: 10px;
}

.contact-panel a {
  color: var(--blue);
}

.contact-image img {
  width: 100%;
  height: 100%;
  min-height: 735px;
  object-fit: cover;
}

#Footer {
  background: var(--blue);
  color: var(--white);
}

#Footer .widgets_wrapper {
  padding: 78px 32px 72px;
}

#Footer .footer-columns {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(170px, 1fr));
  gap: 34px;
  max-width: 1220px;
  margin: 0 auto;
}

#Footer h4 {
  color: var(--white);
  margin-bottom: 22px;
}

#Footer p,
#Footer li {
  color: var(--white);
  font-size: 16px;
  line-height: 28px;
}

#Footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#Footer li {
  margin-bottom: 9px;
}

#Footer li a::before {
  content: "→";
  color: var(--cyan);
  font-size: 17px;
  margin-right: 10px;
  vertical-align: -1px;
}

#Footer a {
  color: var(--white);
}

.footer-about p a {
  font-weight: 700;
}

.footer-map {
  margin-top: 22px;
}

.footer-map iframe {
  height: 190px;
  filter: grayscale(1) contrast(1.05);
}

.footer_copy {
  background: var(--blue);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
}

.footer-brand .brand-mark::before,
.footer-brand .brand-mark::after,
.footer-brand .brand-mark span {
  background: var(--white);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  font-weight: 600;
}

.footer-social a {
  color: var(--white);
}

.styled-faq {
  padding: 72px 84px;
  background: #f8fbff;
}

.styled-faq .section-heading {
  max-width: 780px;
  margin-bottom: 26px;
}

.styled-faq details {
  max-width: 940px;
  margin: 0 auto 14px;
  background: var(--white);
  border: 1px solid #e2ebf5;
  box-shadow: 0 10px 30px rgba(41, 77, 137, 0.06);
}

.styled-faq summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
  padding: 22px 26px;
}

.styled-faq details p {
  padding: 0 26px 24px;
  margin: 0;
}

.about-depth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 72px 84px;
  background: var(--soft);
}

.about-depth > div {
  background: var(--white);
  padding: 34px;
  border-top: 4px solid var(--cyan);
  box-shadow: 0 12px 32px rgba(41, 77, 137, 0.08);
}

#back_to_top {
  width: 42px;
  height: 42px;
  padding: 0;
  min-height: 42px;
  margin-left: 16px;
}

#Side_slide {
  position: fixed;
  right: -270px;
  top: 0;
  width: 250px;
  height: 100vh;
  z-index: 60;
  background: #191919;
  color: #a6a6a6;
  padding: 28px 24px;
  transition: right 0.25s ease;
}

#Side_slide .close {
  display: block;
  color: var(--white);
  font-size: 26px;
  text-align: right;
  margin-bottom: 20px;
}

#Side_slide ul {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

#Side_slide a {
  color: #a6a6a6;
  display: block;
  padding: 9px 0;
  font-weight: 600;
}

#Side_slide a:hover {
  color: var(--white);
}

#body_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.mobile-menu-open #Side_slide {
  right: 0;
}

.mobile-menu-open #body_overlay {
  display: block;
}

.not-found {
  min-height: 530px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 30px;
}

@media (max-width: 1240px) {
  #menu,
  .top_bar_right {
    display: none;
  }

  .responsive-menu-toggle {
    display: flex;
  }

  .logo {
    max-width: none;
    width: auto;
  }

  .hero-copy {
    padding-left: 70px;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 36px;
    line-height: 38px;
  }

  h2 {
    font-size: 30px;
    line-height: 38px;
  }

  #Header,
  #Top_bar,
  #Top_bar .container {
    height: 60px;
    min-height: 60px;
  }

  #Top_bar .container {
    padding: 0 20px;
  }

  .brand-mark {
    width: 46px;
    transform: scale(0.78);
    transform-origin: left center;
  }

  .brand-text strong {
    font-size: 20px;
    line-height: 22px;
    max-width: 232px;
    white-space: normal;
  }

  .brand-text em {
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 5px;
  }

  .home-hero {
    min-height: 289px;
    grid-template-columns: 56% 44%;
  }

  .hero-copy {
    min-height: 289px;
    padding: 34px 20px;
  }

  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-copy p {
    font-size: 10px;
    line-height: 16px;
    margin-bottom: 14px;
  }

  .hero-copy .button {
    min-height: 31px;
    padding: 8px 13px;
    font-size: 10px;
    width: max-content;
  }

  .hero-media {
    min-height: 289px;
  }

  .soft-section,
  .white-section,
  .blue-band {
    padding: 58px 32px;
  }

  .card-grid,
  .flat-grid,
  .archive-grid,
  .two-col,
  .two-col.reverse,
  .interior-split,
  .index-layout,
  .detail-layout,
  .detail-main,
  .contact-split {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 42px 28px;
    overflow: hidden;
  }

  .service-card h3,
  .service-card p {
    max-width: 100%;
  }

  .copy-block h2 {
    margin-bottom: 34px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:first-child {
    height: 235px;
  }

  .subheader {
    min-height: 150px;
  }

  .subheader h1 {
    padding: 0 32px;
    font-size: 38px;
    line-height: 42px;
  }

  .interior-split .split-image img,
  .contact-image img,
  .detail-main > img {
    min-height: 320px;
    height: 320px;
  }

  .interior-split .split-copy,
  .contact-panel {
    padding: 54px 32px;
    max-width: none;
  }

  .index-layout,
  .detail-layout {
    padding: 46px 32px 60px;
    gap: 48px;
  }

  .quote-sidebar {
    position: static;
  }

  .list-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #Footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 32px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }

  .brand-logo {
    gap: 8px;
    max-width: calc(100vw - 80px);
  }

  .brand-mark {
    width: 36px;
  }

  .brand-text strong {
    font-size: 20px;
    line-height: 22px;
    max-width: 232px;
  }

  .brand-text em {
    letter-spacing: 5px;
  }

  .responsive-menu-toggle {
    width: 36px;
  }

  .home-hero {
    grid-template-columns: 56% 44%;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .card-grid,
  .flat-grid,
  .archive-grid {
    gap: 22px;
  }
}

/* ==========================================================================
   PASS B — Detail-page styling + mobile optimization + functional hamburger
   (theme-preserving: blue/cyan palette, Poppins; improve, don't redesign)
   ========================================================================== */

/* ---- Headless detail pages (services / locations / project-types etc.) ---- */
.waco-site {
  background: var(--white);
  max-width: 100%;
  overflow-x: hidden;
}

.waco-site .eyebrow {
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 14px;
}

.detail-hero {
  background: linear-gradient(90deg, rgba(1, 20, 44, 0.92), rgba(0, 71, 141, 0.9)),
    url("/images/hero/hero-commercial-roofing-waco-tx-04.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 78px 0;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.detail-hero .eyebrow {
  color: var(--cyan);
}

.detail-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 22ch;
}

.detail-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 28px;
  max-width: 60ch;
  margin: 0 0 26px;
}

.quote-link,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 26px;
  border-radius: 5px;
  background: var(--cyan);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quote-link:hover,
.cta-button:hover {
  background: var(--cyan-hover);
}

/* .detail-layout grid is already defined above; tune detail children here. */
.taxonomy-copy,
.article-body {
  max-width: 760px;
  min-width: 0;
}

/* Long-form prose pages (no .detail-layout grid) get a centered column. */
.waco-site > .article-body {
  width: min(820px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 44px 0 56px;
}

.waco-site > .article-body h2 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.22;
  margin: 34px 0 18px;
}

.waco-site > .article-body .qeexi-h-breadcrumbs {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.taxonomy-copy p,
.article-body p {
  font-size: 17px;
  line-height: 29px;
  color: var(--body);
}

.taxonomy-copy h2,
.taxonomy-copy h3,
.article-body h2,
.article-body h3 {
  color: var(--blue);
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 24px;
  background: var(--soft);
  border-top: 4px solid var(--cyan);
  padding: 32px 30px;
}

.detail-side h2 {
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 14px;
}

.detail-side p {
  font-size: 16px;
  line-height: 26px;
  color: var(--body);
  margin-bottom: 18px;
}

.side-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.side-phone:hover {
  background: var(--blue-dark);
}

.faq-block {
  width: min(1180px, calc(100% - 48px));
  margin: 8px auto 56px;
}

.faq-block .section-heading,
.faq .section-heading {
  color: var(--blue);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  margin-bottom: 26px;
}

.faq-block details,
.faq details {
  border-bottom: 1px solid #e6ebf3;
  padding: 6px 0;
}

.faq-block summary,
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 40px 16px 0;
  position: relative;
  color: var(--blue);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
}

.faq-block summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}

.faq-block summary::after,
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 26px;
  line-height: 1;
}

.faq-block details[open] summary::after,
.faq details[open] summary::after {
  content: "–";
}

.faq-block details p,
.faq details p,
.faq-block details dd,
.faq details dd {
  color: var(--body);
  font-size: 16px;
  line-height: 27px;
  margin: 0 0 16px;
}

.faq dt {
  color: var(--blue);
  font-weight: 600;
  margin-top: 14px;
}

.cta-band {
  background: linear-gradient(rgba(0, 36, 76, 0.92), rgba(0, 71, 141, 0.92)), var(--blue);
  color: var(--white);
  padding: 54px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.cta-band > div {
  max-width: 640px;
}

.cta-band .eyebrow {
  color: var(--cyan);
}

.cta-band h2 {
  color: var(--white);
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.cta-band .cta-button {
  background: var(--cyan);
  flex: 0 0 auto;
}

/* ---- Hamburger toggle (only visible on mobile via existing breakpoints) ---- */
.responsive-menu-toggle {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ---- Mobile slide-in drawer (#Side_slide): readable, spaced, on-theme ---- */
#Side_slide {
  width: min(86vw, 320px);
  right: -100%;
  padding: 24px 26px calc(24px + env(safe-area-inset-bottom));
  background: #15264a; /* deep navy, on-theme + solid so text is always legible */
  color: #cdd6e6;
  box-shadow: -14px 0 34px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

#Side_slide .close-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

#Side_slide .close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

#Side_slide .close:hover {
  background: var(--cyan);
}

#Side_slide > .button.action_button,
#Side_slide a.action_button {
  display: inline-flex;
  width: 100%;
  margin: 6px 0 18px;
  background: var(--cyan);
  min-height: 50px;
}

#Side_slide ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#Side_slide li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#Side_slide a {
  display: block;
  padding: 15px 4px;
  color: #d6deec;
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  min-height: 44px;
}

#Side_slide a:hover {
  color: var(--white);
}

#body_overlay {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ---- Global mobile safety + readability + tap targets ---- */
@media (max-width: 768px) {
  img,
  iframe,
  video,
  table {
    max-width: 100%;
  }

  iframe {
    height: auto;
  }

  .detail-hero {
    padding: 52px 0;
  }

  .detail-hero-inner,
  .faq-block {
    width: calc(100% - 32px);
  }

  /* detail-layout already stacks to 1col at <=900px; ensure side is not sticky */
  .detail-side {
    position: static;
  }

  .taxonomy-copy,
  .roof-copy,
  .article-body {
    max-width: 100%;
  }

  .cta-band {
    padding: 42px 24px;
    flex-direction: column;
    gap: 22px;
  }

  /* Tap targets: links, buttons, fields comfortably tappable */
  .button,
  button,
  input[type="submit"],
  .quote-link,
  .cta-button,
  .side-phone {
    min-height: 48px;
  }

  .qeexi-h-contact-form input,
  .qeexi-h-contact-form select,
  .qeexi-h-contact-form textarea {
    min-height: 48px;
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 12px 14px;
  }

  .qeexi-h-contact-form textarea {
    min-height: 130px;
  }

  /* Readability: body copy stays >= 16px, comfortable padding */
  body {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Phone/small-tablet: stack the home hero + restore legible hero subcopy/CTA sizes */
@media (max-width: 768px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-media {
    min-height: 220px;
    order: -1;
  }

  .hero-copy {
    min-height: 0;
    padding: 34px 22px 40px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.12;
    max-width: 100%;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 24px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-copy .button {
    min-height: 48px;
    padding: 13px 22px;
    font-size: 16px;
  }

  .subheader h1 {
    padding: 0 22px;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
  }

  .soft-section,
  .white-section,
  .blue-band {
    padding: 44px 22px;
  }

  .detail-hero p,
  .taxonomy-copy p,
  .article-body p {
    font-size: 16px;
    line-height: 26px;
  }

  .footer-bottom,
  #Footer .footer-columns {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 900px) {
  .locations-showcase {
    padding: 44px 18px;
  }

  .locations-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .locations-head h2 {
    font-size: clamp(28px, 9vw, 44px);
  }

  .location-track {
    gap: 16px;
    padding-bottom: 12px;
  }

  .location-slide {
    flex-basis: min(82vw, 360px);
    min-height: 390px;
  }

  .who-section .two-col,
  .about-hero-split {
    grid-template-columns: 1fr;
  }

  .who-media,
  .split-image {
    min-height: 300px;
  }

  .commitment-band .card-grid {
    grid-template-columns: 1fr;
  }

  .polished-contact {
    grid-template-columns: 1fr;
    padding: 44px 18px;
    width: 100%;
    margin: 0 auto 44px;
  }

  .contact-hero {
    width: calc(100% - 36px);
    padding: 44px 0 20px;
  }

  .contact-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .contact-card,
  .contact-form-panel {
    padding: 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-card h2,
  .contact-form-panel h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .about-depth {
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .styled-faq {
    padding: 26px;
  }

  .polished-detail {
    row-gap: 26px;
  }

  .footer-seo .footer-columns,
  #Footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-social {
    width: 100%;
    flex-wrap: wrap;
  }

  .footer-social a {
    min-height: 42px;
  }
}
