/* ========================================================
   Barrett Roofing – Hero & Header Styles (brr-hero.css)
   ======================================================== */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --brr-yellow:    #F5C518;
  --brr-yellow-dk: #e0b000;
  --brr-dark:      #1a2332;
  --brr-dark2:     #222d3a;
  --brr-white:     #ffffff;
  --brr-text:      #444;
  --brr-gray:      #f7f7f7;
  --brr-radius:    6px;
  --brr-transition: 0.3s ease;
}

/* ────────────────────────────────────────────────────────
   HEADER
   ──────────────────────────────────────────────────────── */
.brr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.brr-header.scrolled {
  background: var(--brr-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.brr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  height: 72px;
  gap: 12px;
}

/* Many nav items: tighten spacing on laptop widths */
@media (min-width: 992px) and (max-width: 1399px) {
  .brr-nav-list > li > a {
    font-size: 14px;
    padding: 6px 8px;
  }

  .brr-phone-btn {
    font-size: 12px;
    padding: 8px 12px;
  }

  .brr-logo img {
    height: 46px;
  }
}

/* Logo */
.brr-logo a {
  display: flex;
  align-items: center;
}
.brr-logo img {
  height: 52px;
  width: auto;
  transition: opacity var(--brr-transition);
}
.brr-logo-dark { display: none; }
.brr-logo-white { display: block; }

.brr-header.scrolled .brr-logo-white { display: none; }
.brr-header.scrolled .brr-logo-dark  { display: block; }

/* Nav list */
.brr-nav { display: flex; }
.brr-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.brr-nav-list > li > a {
  color: var(--brr-white);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--brr-radius);
  text-decoration: none;
  transition: color var(--brr-transition), background var(--brr-transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.brr-nav-list > li > a:hover,
.brr-nav-list > li > a.active {
  color: var(--brr-white);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.brr-header.scrolled .brr-nav-list > li > a {
  color: var(--brr-dark);
}
.brr-header.scrolled .brr-nav-list > li > a:hover,
.brr-header.scrolled .brr-nav-list > li > a.active {
  color: #f5c518;
}

/* ── Dropdown ─────────────────────────────────────────── */
.brr-dropdown { position: relative; }

.brr-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--brr-white);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 40px rgba(10,18,35,.16);
  min-width: 270px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  /* Yellow accent bar on top */
  border-top: 3px solid var(--brr-yellow);
  overflow: hidden;
}

/* Invisible hover bridge so cursor can travel into dropdown */
.brr-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

/* Small label header inside dropdown */
/* .brr-dropdown-menu::after {
  content: 'Our Services';
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(10,18,35,.35);
  padding: 12px 20px 6px;
  border-bottom: 1px solid #f0f0f0;
} */

.brr-dropdown:hover .brr-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Each dropdown item */
.brr-dropdown-menu li {
  border-bottom: 1px solid #ccc;
}
.brr-dropdown-menu li:last-child {
  border-bottom: none;
}

.brr-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 16;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

/* Yellow left-border indicator on hover */
.brr-dropdown-menu li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--brr-yellow);
  transform: scaleY(0);
  transition: transform 0.2s ease;
  transform-origin: center;
}

/* Arrow icon per item */
.brr-dropdown-menu li a::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  margin-left: auto;
  color: #ccc;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brr-dropdown-menu li a:hover {
  background: #fffbf2;
  color: #c96a00;
  padding-left: 26px;
}
.brr-dropdown-menu li a:hover::before {
  transform: scaleY(1);
}
.brr-dropdown-menu li a:hover::after {
  color: var(--brr-yellow);
  transform: translateX(3px);
}

.brr-dropdown-menu li a.active,
.brr-dropdown-menu li.current-menu-item > a {
  background: #fffbf2;
  color: #c96a00;
  padding-left: 26px;
}
.brr-dropdown-menu li a.active::before,
.brr-dropdown-menu li.current-menu-item > a::before {
  transform: scaleY(1);
}
.brr-dropdown-menu li a.active::after,
.brr-dropdown-menu li.current-menu-item > a::after {
  color: var(--brr-yellow);
  transform: translateX(3px);
}

.brr-mobile-nav-list a.active {
  color: #c96a00;
  font-weight: 600;
}

/* Phone CTA button */
.brr-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brr-yellow);
  color: var(--brr-dark) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--brr-radius);
  text-decoration: none !important;
  transition: background var(--brr-transition), transform var(--brr-transition);
  white-space: nowrap;
}
.brr-phone-btn:hover {
  background: var(--brr-yellow-dk);
  transform: translateY(-1px);
}
.brr-phone-btn i { font-size: 13px; }

/* Mobile hamburger */
.brr-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.brr-mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--brr-white);
  border-radius: 2px;
  transition: background var(--brr-transition);
}
.brr-header.scrolled .brr-mobile-toggle span { background: var(--brr-dark); }

/* ── Mobile Nav Drawer ── */
.brr-mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 300px;
  height: 100%;
  background: var(--brr-white);
  z-index: 2000;
  transition: right var(--brr-transition);
  box-shadow: -4px 0 30px rgba(0,0,0,.15);
  overflow-y: auto;
}
.brr-mobile-nav.open { right: 0; }
.brr-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}
.brr-mobile-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--brr-dark);
}
.brr-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 16px 0;
}
.brr-mobile-nav-list li a {
  display: block;
  padding: 12px 24px;
  color: var(--brr-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color var(--brr-transition);
}
.brr-mobile-nav-list li a:hover { color: #f5c518; }

/* Overlay */
.brr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1999;
}
.brr-overlay.show { display: block; }


/* ────────────────────────────────────────────────────────
   HERO SLIDER SECTION
   ──────────────────────────────────────────────────────── */
.brr-hero {
  /* position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column; */

}

/* Slides wrapper fills the section */
.brr-slides-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Each slide is absolute, full size, crossfade */
.brr-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;

}
.brr-slide.active {
  opacity: 1;
  position: relative;  /* active slide takes up space for height */
  animation: none;     /* no zoom — clean static background */
}


/* Dark gradient overlay inside each slide */
.brr-slide .brr-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(74deg, rgb(22 32 69) 0%, rgb(11 44 85 / 62%) 55%, rgba(10, 18, 35, 0.22) 100%);
}

/* Flex container that fills each slide */
.brr-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 120px;      /* space for fixed header */
  padding-bottom: 80px;
  min-height: calc(90vh - 110px);
}

.brr-hero-content {
  flex: 0 0 60%;
  max-width: 60%;
}
/* 
@media screen and (min-width:1200px) and (max-width:1599px){
  .brr-slider-arrow {
    position: absolute;
    top: 55% !important;
  }
} */


/* Arrow buttons */
.brr-slider-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: var(--brr-white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--brr-transition), border-color var(--brr-transition), transform 0.2s;
  /* keep arrows in the slide area, not the stats bar */
  margin-top: -55px; /* shift up slightly away from stats bar */
}
.brr-slider-arrow:hover {
  background: var(--brr-yellow);
  border-color: var(--brr-yellow);
  color: var(--brr-dark);
  transform: translateY(-50%) scale(1.08);
}
.brr-slider-prev { left: 24px; }
.brr-slider-next { right: 24px; }

/* Dot navigation */
.brr-slider-dots {
  position: absolute;
  bottom: 120px;  /* sits above the stats bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.brr-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--brr-transition), border-color var(--brr-transition), width 0.3s;
}
.brr-dot.active {
  background: var(--brr-yellow);
  border-color: var(--brr-yellow);
  width: 28px;
  border-radius: 5px;
}

/* Progress bar inside active dot (optional visual) */


/* Eyebrow label */
.brr-hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brr-yellow);
  margin-bottom: 18px;
}

/* Main headline */
.brr-hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brr-white);
  margin-bottom: 20px;
  font-family: 'Jost', sans-serif;
}

/* Sub description */
.brr-hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

/* Buttons */
.brr-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.brr-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brr-yellow);
  color: var(--brr-dark) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--brr-radius);
  text-decoration: none !important;
  transition: background var(--brr-transition), transform var(--brr-transition);
}
.brr-btn-primary:hover {
  background: var(--brr-yellow-dk);
  transform: translateY(-2px);
  color: var(--brr-dark) !important;
}

.brr-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brr-white) !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--brr-radius);
  border: 2px solid rgba(255,255,255,.7);
  text-decoration: none !important;
  transition: border-color var(--brr-transition), background var(--brr-transition), color var(--brr-transition);
}
.brr-btn-outline:hover {
  border-color: var(--brr-white);
  background: rgba(255,255,255,.12);
  color: var(--brr-white) !important;
}


/* ── Stats / Feature Bar (at the bottom of hero) ───────── */
.brr-stats-bar {
  position: relative;
  z-index: 3;
  background: #182B54;
  border-top: none;
}

.brr-stats-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.brr-stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
  flex: 1;
}

.brr-stat-divider {
  width: 1px;
  background: rgba(255,255,255,.12);
  margin: 18px 0;
}

.brr-stat-icon {
  font-size: 30px;
  color: var(--brr-yellow);
  flex-shrink: 0;
  line-height: 1;
}

.brr-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brr-stat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brr-white);
  line-height: 1.3;
}

.brr-stat-sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
}







/* About Section */
.br-about-section {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    padding: 0;
}

.br-about-section .container-fluid {
    padding-left: 3.2%;
    padding-right: 0;
}

.br-about-content {
    position: relative;
    z-index: 2;
    padding: 45px 35px 45px 0;
}

.br-about-subtitle {
    display: inline-block;
    color: #f9c62e;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.br-about-content h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.br-about-content p {
    color: #535d6d;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 27px;
}

.br-about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #ffca32;
    color: #172238;
    padding: 15px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.br-about-btn:hover {
    background-color: #efb91e;
    color: #172238;
}

.br-about-btn span {
    font-size: 25px;
    line-height: 1;
}


.br-about-image-col {
    padding: 0;
    align-self: stretch;
}

.br-about-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    background-color: #ffca32;
    clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

.br-about-image {
    position: absolute;
    top: 6px;
    border-radius: 10px;
    right: 0;
    bottom: 0;
    left: 6px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    display: block;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(
        22% 0,
        100% 0,
        100% 100%,
        0 100%
    );
}

@media (max-width: 767px) {
    .br-about-image-wrapper {
        height: 300px;
        min-height: 300px;
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    }

    .br-about-image {
        clip-path: polygon(
            12% 0,
            100% 0,
            100% 100%,
            0 100%
        );
    }
}




/* ────────────────────────────────────────────────────────
   HERO BOTTOM / ABOUT PREVIEW SECTION
   ──────────────────────────────────────────────────────── */
.brr-about-preview {
  padding: 80px 0;
  background: var(--brr-white);
}

.brr-about-preview-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.brr-about-preview-content {
  flex: 0 0 45%;
  max-width: 45%;
}

.brr-about-preview-image {
  flex: 0 0 50%;
  max-width: 50%;
  margin-left: auto;
}

/* Eyebrow label */
.brr-about-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f5c518;
  margin-bottom: 14px;
}

.brr-about-title {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brr-dark);
  margin-bottom: 18px;
  font-family: 'Jost', sans-serif;
}

.brr-about-desc {
  font-size: 15.5px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 30px;
}

/* Image wrapper with yellow accent */
.brr-about-img-wrapper {
  position: relative;
  border-radius: 0 60px 0 0; /* top-right accent corner */
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
.brr-about-img-wrapper img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

/* Yellow diagonal accent strip */
.brr-about-img-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: var(--brr-yellow);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: .85;
}


/* ────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  /* Header */
  .brr-nav, .brr-header-cta { display: none; }
  .brr-mobile-toggle { display: flex; }

  /* Slider arrows */
  .brr-slider-arrow { width: 40px; height: 40px; font-size: 13px; }
  .brr-slider-prev { left: 12px; }
  .brr-slider-next { right: 12px; }
  .brr-slider-dots { bottom: 100px; }

  /* Hero container */
  .brr-hero-container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 110px;
    padding-bottom: 40px;
    min-height: 500px;
  }
  .brr-hero-content {
    flex: none;
    max-width: 100%;
  }
  .brr-slide.active { min-height: 580px; }

  /* Stats bar */
  .brr-stats-inner { flex-wrap: wrap; }
  .brr-stat-item { flex: 0 0 45%; padding: 22px 16px; }
  .brr-stat-divider { display: none; }

  /* About preview */
  .brr-about-preview-inner {
    flex-direction: column;
    gap: 40px;
  }
  .brr-about-preview-content,
  .brr-about-preview-image {
    flex: none;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .brr-hero-title { font-size: 34px; }
  .brr-hero-desc { font-size: 14px; }
  .brr-hero-btns { flex-direction: column; width: 100%; }
  .brr-btn-primary, .brr-btn-outline { justify-content: center; width: 100%; }
  .brr-slide.active { min-height: 500px; }

  .brr-stat-item { flex: 0 0 100%; }

  .brr-about-img-wrapper img { height: 260px; }

  .br-about-section { padding-left: 0; padding-right: 0; }
  .br-about-content h2 { font-size: clamp(24px, 7vw, 32px); }
}


