/* Bricks CMS theme — visual language from Fix My Roof DFW / Bricks Builder */

:root {
  --bx-orange: #f67619;
  --bx-orange-dark: #d95f08;
  --bx-ink: #212121;
  --bx-muted: #555;
  --bx-line: #e5e7eb;
  --bx-paper: #f5f5f5;
  --bx-navy: #061851;
  --bx-white: #ffffff;
  --bx-max: 1240px;
  --bx-font: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bricks-theme {
  margin: 0;
  font-family: var(--bx-font);
  color: var(--bx-ink);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bx-container {
  width: min(100% - 2rem, var(--bx-max));
  margin-inline: auto;
}

.bx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background-color: #26252a;
  color: #ffffff !important;
  font-family: var(--bx-font);
  font-weight: 700;
  font-size: 1rem;
  border: 5px solid var(--bx-orange);
  border-radius: 50px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bx-btn:hover {
  background-color: #000000;
  color: #ffffff !important;
}

.bx-btn--outline {
  background-color: transparent;
  color: #ffffff !important;
  border-color: var(--bx-orange);
}

.bx-btn--outline:hover {
  background-color: #26252a;
  color: #ffffff !important;
}

.bx-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.bx-eyebrow {
  display: inline-block;
  color: var(--bx-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.bx-sec-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--bx-ink);
}

.bx-sec-desc {
  margin: 0;
  color: var(--bx-muted);
  max-width: 42rem;
}

.bx-title-wrap {
  margin-bottom: 2rem;
}

.bx-title-wrap--center {
  text-align: center;
}

.bx-title-wrap--center .bx-sec-desc {
  margin-inline: auto;
}

.bx-section {
  padding: 4.5rem 0;
  background: transparent;
}

.bx-section--paper {
  background: var(--bx-paper);
}

/* About — light panel with source shape accent */
.bx-about-section {
  position: relative;
  background-color: #f3f3f3;
  background-image: url("../images/pattern-about-shape.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: auto;
  overflow: hidden;
}

.bx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bx-orange);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ---- Header ---- */
.bx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bx-white);
  box-shadow: 0 1px 0 var(--bx-line);
}

.bx-header-top {
  border-bottom: 1px solid var(--bx-line);
  background: var(--bx-white);
}

.bx-header-top-inner {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr minmax(200px, 240px);
  gap: 1rem;
  align-items: stretch;
  min-height: 96px;
}

.bx-logo {
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
}

.bx-logo img {
  max-height: 64px;
  width: auto;
}

.bx-header-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: center;
}

.bx-meta-block {
  padding: 0.85rem 1.1rem;
  border-right: 1px solid var(--bx-line);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bx-meta-block:last-child {
  border-right: 0;
}

.bx-meta-block h3 {
  margin: 0 0 0.25rem;
  color: var(--bx-orange);
  font-size: 1rem;
  font-weight: 700;
}

.bx-meta-block p,
.bx-meta-block a {
  margin: 0;
  color: var(--bx-ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.bx-meta-block a:hover {
  color: var(--bx-orange);
}

.bx-header-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem 0 0.75rem 0.5rem;
}

.bx-header-cta-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bx-ink);
}

.bx-header-cta-phone {
  color: var(--bx-orange);
  font-size: 1.15rem;
  font-weight: 700;
}

.bx-header-cta-phone:hover {
  color: var(--bx-orange-dark);
}

.bx-nav-bar {
  background: #061851;
  border-bottom: 0;
  box-shadow: none;
}

.bx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.bx-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.bx-nav a {
  display: inline-block;
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

.bx-nav a:hover,
.bx-nav .current > a,
.bx-nav li.current-menu-item > a {
  color: var(--bx-orange);
}

.bx-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
}

.bx-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.bx-mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bx-mobile-panel {
  width: min(88vw, 360px);
  height: 100%;
  margin-left: auto;
  background: var(--bx-white);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.bx-mobile-nav.is-open .bx-mobile-panel {
  transform: translateX(0);
}

.bx-mobile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.bx-mobile-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.bx-mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bx-line);
  font-weight: 600;
}

/* ---- Hero ---- */
.bx-hero {
  position: relative;
  min-height: clamp(520px, 72vh, 720px);
  display: flex;
  align-items: center;
  color: var(--bx-white);
  background: var(--bx-navy) center / cover no-repeat;
  overflow: hidden;
}

.bx-hero--plain {
  background: linear-gradient(120deg, #0b1a3a 0%, #162447 55%, #1f2f54 100%);
}

.bx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6, 24, 81, 0.88) 0%, rgba(6, 24, 81, 0.55) 48%, rgba(6, 24, 81, 0.25) 100%);
  z-index: 1;
}

.bx-hero--plain::before {
  background: linear-gradient(105deg, rgba(6, 24, 81, 0.35) 0%, rgba(6, 24, 81, 0.15) 100%);
}

.bx-hero .bx-container {
  position: relative;
  z-index: 2;
  padding: 7rem 0 6.5rem;
}

.bx-hero-content {
  max-width: 640px;
}

.bx-hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--bx-white);
}

.bx-hero-text {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34rem;
}

/* ---- About ---- */
.bx-about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.bx-about-media {
  position: relative;
  min-height: 280px;
}

.bx-about-img-main img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  min-height: 340px;
}

.bx-about-img-float {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: min(48%, 240px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  border: 4px solid #fff;
  background: #fff;
}

.bx-about-img-float img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.bx-bullet-list {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.bx-bullet-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--bx-muted);
}

.bx-bullet-list i {
  color: var(--bx-orange);
  margin-top: 0.2rem;
}

.bx-faq-section {
  position: relative;
  width: 100%;
  background-color: #1c1b1f;
  background-image: url("../images/pattern-faq-dark.png");
  background-position: bottom right;
  background-size: auto;
  background-repeat: no-repeat;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  z-index: 2;
}

.bx-faq-section > .bx-container {
  position: relative;
  z-index: 1;
}

.bx-faq-section .bx-eyebrow {
  color: var(--bx-orange);
  margin-bottom: 0.75rem;
}

.bx-faq-section .bx-sec-title {
  color: #ffffff;
  margin: 0;
}

.bx-faq-section .bx-sec-desc {
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* eyebrow sits above; h2 top aligns with description top */
.bx-faq-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem 3rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.bx-faq-head-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bx-faq-head-desc {
  padding-top: 1.85rem; /* align with h2 under eyebrow */
}

/* ---- FAQ accordion (Bricks match) ---- */
.bx-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bx-faq-item {
  margin-bottom: 1.15rem;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
}

.bx-faq-item.is-open {
  background: #ffffff;
  box-shadow: 0 0.5rem 1rem rgba(246, 118, 25, 0.35);
}

.bx-faq-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.85rem 1.15rem;
  background-color: #f77719;
  border: 0;
  border-radius: 18px;
  color: #ffffff;
  font-family: var(--bx-font);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.bx-faq-item.is-open .bx-faq-title {
  border-radius: 18px 18px 0 0;
}

.bx-faq-title-text {
  flex: 1;
  line-height: 1.35;
}

.bx-faq-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #ffffff;
}

.bx-faq-item .bx-faq-icon--open { display: none; }
.bx-faq-item .bx-faq-icon--closed { display: inline-block; }
.bx-faq-item.is-open .bx-faq-icon--open { display: inline-block; }
.bx-faq-item.is-open .bx-faq-icon--closed { display: none; }

.bx-faq-content {
  padding: 1.15rem 1.25rem 1.35rem;
  color: #222222;
  line-height: 1.7;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.bx-faq-content p {
  margin: 0 0 0.85rem;
  color: #333333;
}

.bx-faq-content p:last-child {
  margin-bottom: 0;
}

.bx-faq-content ul {
  margin: 0.5rem 0 0.85rem 1.2rem;
  padding: 0;
  list-style: disc;
  color: #333333;
}

.bx-faq-content li {
  margin-bottom: 0.35rem;
  display: list-item;
}

.bx-faq-content[hidden] {
  display: none !important;
}

/* ---- Services (dark patterned section only) ---- */
.bx-services-section {
  position: relative;
  background-color: #2b2b2b;
  background-image: url("../images/pattern-services-dark.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  z-index: 1;
}

.bx-services-section > .bx-container {
  position: relative;
  z-index: 1;
}

.bx-services-section .bx-eyebrow {
  color: var(--bx-orange);
}

.bx-services-section .bx-sec-title {
  color: #ffffff;
}

.bx-services-section .bx-sec-desc {
  color: rgba(255, 255, 255, 0.88);
}

.bx-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bx-service-card {
  background: var(--bx-white);
  border: 1px solid var(--bx-line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bx-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.bx-service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.bx-service-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.bx-service-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.bx-service-body h3 a:hover {
  color: var(--bx-orange);
}

.bx-service-body p {
  margin: 0;
  color: var(--bx-muted);
  font-size: 0.95rem;
}

/* ---- Why / Promise ---- */
.bx-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.bx-why-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.bx-why-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bx-paper);
  border-radius: 6px;
}

.bx-why-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bx-orange);
  color: var(--bx-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bx-why-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.bx-why-card p {
  margin: 0;
  color: var(--bx-muted);
  font-size: 0.9rem;
}

/* ---- CTA (light on WP — not a dark section) ---- */
.bx-cta {
  background: #ffffff;
  color: var(--bx-ink);
  position: relative;
  border-top: 1px solid var(--bx-line);
  border-bottom: 1px solid var(--bx-line);
}

.bx-cta .bx-sec-title {
  color: var(--bx-ink);
}

.bx-cta .bx-eyebrow {
  color: var(--bx-orange);
}

.bx-cta p {
  color: var(--bx-muted);
  max-width: 36rem;
  margin: 0;
}

.bx-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ---- Testimonials (dark patterned section only) ---- */
.bx-testimonials-section {
  position: relative;
  background-color: #1c1b1f;
  background-image: url("../images/pattern-testimonial-dark.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}

.bx-testimonials-section > .bx-container {
  position: relative;
  z-index: 1;
}

.bx-testimonials-section .bx-eyebrow {
  color: var(--bx-orange);
}

.bx-testimonials-section .bx-sec-title {
  color: #ffffff;
}

.bx-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.bx-testimonial-card {
  background: var(--bx-white);
  border-radius: 8px;
  padding: 1.35rem;
  border: 1px solid var(--bx-line);
}

.bx-testimonial-card p {
  margin: 0 0 1rem;
  color: var(--bx-muted);
}

.bx-testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bx-testimonial-user img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.bx-testimonial-user h4 {
  margin: 0;
  font-size: 0.95rem;
}

.bx-testimonial-user span {
  color: var(--bx-muted);
  font-size: 0.8rem;
}

/* ---- Blog ---- */
.bx-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.bx-blog-card {
  background: var(--bx-white);
  border: 1px solid var(--bx-line);
  border-radius: 8px;
  overflow: hidden;
}

.bx-blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.bx-blog-body {
  padding: 1.15rem;
}

.bx-blog-tag {
  display: inline-block;
  color: var(--bx-orange);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.bx-blog-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.bx-blog-body p {
  margin: 0;
  color: var(--bx-muted);
  font-size: 0.92rem;
}

/* ---- Inner pages ---- */
.bx-page-content {
  padding: 3rem 0 4rem;
}

/* ---- Footer ---- */
.bx-footer {
  background-color: #1c1b1f;
  background-image: url("../images/footer-bg.png");
  background-position: bottom center;
  background-size: auto;
  background-repeat: no-repeat;
  color: rgba(255, 255, 255, 0.88);
  padding: 3.5rem 0 1.5rem;
  border-top: 5px solid var(--bx-orange);
}

.bx-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.bx-footer .bx-logo img {
  max-height: 56px;
  margin-bottom: 1rem;
}

.bx-footer h4 {
  margin: 0 0 1rem;
  color: var(--bx-white);
  font-size: 1.05rem;
}

.bx-footer-links a,
.bx-footer-contact a,
.bx-footer-contact span {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.bx-footer-links a:hover,
.bx-footer-contact a:hover {
  color: var(--bx-orange);
}

.bx-footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
}

.bx-footer-contact i {
  color: var(--bx-orange);
  margin-top: 0.3rem;
}

.bx-footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.bx-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.bx-footer-social a:hover {
  background: var(--bx-orange);
  border-color: var(--bx-orange);
}

.bx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .bx-header-top-inner {
    grid-template-columns: 140px 1fr;
  }

  .bx-header-cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 0;
    padding-bottom: 1rem;
  }

  .bx-services-grid,
  .bx-testimonial-grid,
  .bx-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .bx-about-grid,
  .bx-why-grid {
    grid-template-columns: 1fr;
  }

  .bx-faq-head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bx-faq-head-desc {
    padding-top: 0;
  }

  .bx-faq-section {
    padding: 3.5rem 0 4rem;
  }

  .bx-about-img-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(70%, 260px);
    margin: -2.5rem 0 0 auto;
  }

  .bx-nav {
    display: none;
  }

  .bx-nav-toggle {
    display: inline-flex;
  }

  .bx-header-meta {
    grid-template-columns: 1fr;
  }

  .bx-meta-block {
    border-right: 0;
    border-bottom: 1px solid var(--bx-line);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .bx-header-top-inner {
    grid-template-columns: 1fr;
  }

  .bx-services-grid,
  .bx-testimonial-grid,
  .bx-blog-grid,
  .bx-footer-grid {
    grid-template-columns: 1fr;
  }

  .bx-hero {
    min-height: 480px;
  }

  .bx-hero .bx-container {
    padding: 5.5rem 0 4.5rem;
  }

  .bx-faq-title {
    font-size: 0.875rem;
  }
}
