/* =====================================
   K. WRIGHT ROOFING
   MAIN STYLESHEET
===================================== */

:root {

  --kw-blue: #1769c2;
  --kw-blue-light: #3285dc;
  --kw-blue-dark: #0a3d78;

  --kw-navy: #071523;
  --kw-charcoal: #111820;

  --kw-white: #ffffff;
  --kw-off-white: #f4f7fa;

  --kw-grey: #66717c;
  --kw-border: #d9e0e7;

}


/* =====================================
   GLOBAL
===================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}


body {

  margin: 0;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  color:
    var(--kw-charcoal);

  background:
    var(--kw-white);

  overflow-x: hidden;

}


h1,
h2,
h3 {

  font-weight: 700;

}


p {

  line-height: 1.7;

}


a {

  text-decoration: none;

}


.section-padding {

  padding: 100px 0;

}



/* =====================================
   NAVBAR
===================================== */

.navbar {

  padding: 8px 0;

  background:
    rgba(7, 21, 35, 0.91);

  backdrop-filter:
    blur(10px);

  transition:
    padding 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;

}


.navbar.scrolled {

  padding: 5px 0;

  background:
    rgba(7, 21, 35, 0.98);

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, 0.3);

}



/* =====================================
   LOGO
===================================== */

.navbar-brand {

  padding: 0;

  margin: 0;

}


.navbar-logo {

  width: auto;

  height: 70px;

  display: block;

  object-fit: contain;

  transition:
    height 0.3s ease;

}


.navbar.scrolled
.navbar-logo {

  height: 52px;

}



/* =====================================
   NAV LINKS
===================================== */

.nav-link {

  position: relative;

  margin-left: 10px;

  color:
    rgba(255, 255, 255, 0.92)
    !important;

  font-weight: 600;

}


.nav-link::after {

  content: "";

  position: absolute;

  left: 8px;
  right: 8px;
  bottom: 1px;

  height: 2px;

  background:
    var(--kw-blue-light);

  transform:
    scaleX(0);

  transition:
    transform 0.25s ease;

}


.nav-link:hover::after {

  transform:
    scaleX(1);

}



/* =====================================
   NAV CALL BUTTON
===================================== */

.nav-call-button {

  color:
    var(--kw-white);

  background:
    var(--kw-blue);

  border:
    1px solid
    var(--kw-blue);

  font-weight: 700;

}


.nav-call-button:hover {

  color:
    var(--kw-white);

  background:
    var(--kw-blue-light);

  border-color:
    var(--kw-blue-light);

}



/* =====================================
   DROPDOWN
===================================== */

.dropdown-menu {

  padding:
    10px 0;

  border:
    1px solid
    rgba(0, 0, 0, 0.08);

  border-radius:
    8px;

  box-shadow:
    0 18px 45px
    rgba(0, 0, 0, 0.22);

}


.dropdown-item {

  padding:
    9px 20px;

}


.dropdown-item:hover {

  color:
    var(--kw-white);

  background:
    var(--kw-blue);

}

/* =====================================
   HERO
===================================== */

.hero {

  position: relative;

  min-height:
    82vh;

  display: flex;

  align-items:
    center;

  color:
    var(--kw-white);

  background:

    url("../img/roof-hero.png")
    center center /
    cover
    no-repeat;

}


.hero-overlay {

  position:
    absolute;

  inset: 0;

  background:

    linear-gradient(

      90deg,

      rgba(7, 21, 35, 0.95)
      0%,

      rgba(7, 21, 35, 0.78)
      45%,

      rgba(10, 61, 120, 0.35)
      100%

    );

}


.hero-content {

  position:
    relative;

  z-index:
    2;

}


.hero-kicker {

  color:
    #76b8ff;

  text-transform:
    uppercase;

  letter-spacing:
    2.5px;

  font-size:
    0.9rem;

  font-weight:
    700;

}


.hero h1 {

  max-width:
    900px;

  margin:
    15px 0 25px;

  font-size:
    clamp(3rem, 7vw, 6rem);

  line-height:
    0.98;

  text-shadow:
    0 4px 20px
    rgba(0, 0, 0, 0.35);

}


.hero-intro {

  max-width:
    720px;

  font-size:
    1.25rem;

  line-height:
    1.7;

  color:
    #edf5ff;

}


.hero-actions {

  margin-top:
    35px;

}


.hero-actions .btn {

  margin-right:
    10px;

  margin-bottom:
    10px;

}


.hero-kicker {

  max-width: 330px;

  margin: 0 auto;

  padding: 0;

  color: #8fc8ff;

  font-size: 0.82rem;

  line-height: 1.55;

  letter-spacing: 2px;

  text-align: center;

}

@media (min-width: 768px) {

  .hero-kicker {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

}


/* =====================================
   HERO â€” MOBILE HEIGHT
===================================== */

@media (max-width: 767.98px) {

  .hero {

    min-height:
      50vh;

  }

}
/* =====================================
   KW BUTTON
===================================== */

.btn-kw-primary {

  color:
    var(--kw-white);

  background:
    var(--kw-blue);

  border:
    1px solid
    var(--kw-blue);

  font-weight:
    700;

}


.btn-kw-primary:hover {

  color:
    var(--kw-white);

  background:
    var(--kw-blue-light);

  border-color:
    var(--kw-blue-light);

}


.btn-outline-kw {

  color:
    var(--kw-blue);

  border:
    2px solid
    var(--kw-blue);

  font-weight:
    700;

}


.btn-outline-kw:hover {

  color:
    var(--kw-white);

  background:
    var(--kw-blue);

}



/* =====================================
   TRUST STRIP
===================================== */

.trust-strip {

  padding:
    45px 0;

  color:
    var(--kw-white);

  background:
    var(--kw-charcoal);

  border-top:
    3px solid
    var(--kw-blue);

}


.trust-icon {

  display:
    inline-flex;

  width:
    32px;

  height:
    32px;

  margin-bottom:
    12px;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    50%;

  color:
    var(--kw-white);

  background:
    var(--kw-blue);

  font-weight:
    700;

}


.trust-title {

  margin-bottom:
    8px;

  font-size:
    1.2rem;

}


.trust-strip p {

  margin:
    0;

  color:
    #bac4ce;

}



/* =====================================
   SECTION HEADINGS
===================================== */

.section-heading {

  max-width:
    760px;

  margin:
    0 auto 55px;

}


.section-label {

  color:
    var(--kw-blue);

  text-transform:
    uppercase;

  letter-spacing:
    2px;

  font-size:
    0.85rem;

  font-weight:
    700;

}


.section-label-light {

  color:
    #76b8ff;

}


.section-heading h2,
.about-section h2,
.contact-section h2 {

  margin:
    10px 0 18px;

  font-size:
    clamp(2rem, 4vw, 3.5rem);

  color:
    var(--kw-navy);

}



/* =====================================
   ABOUT
===================================== */

.about-section {

  background:
    var(--kw-off-white);

}


.image-frame {

  position:
    relative;

}


.image-frame::before {

  content:
    "";

  position:
    absolute;

  left:
    -12px;

  top:
    -12px;

  width:
    70%;

  height:
    70%;

  background:
    var(--kw-blue);

  z-index:
    0;

}


.about-image {

  position:
    relative;

  z-index:
    1;

  width:
    100%;

  height:
    520px;

  object-fit:
    cover;

}



/* =====================================
   SERVICES
===================================== */

.services-section {

  background:
    var(--kw-white);

}


.service-card {

  position:
    relative;

  height:
    100%;

  padding:
    36px;

  overflow:
    hidden;

  background:
    var(--kw-off-white);

  border:
    1px solid
    var(--kw-border);

  border-radius:
    8px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

}


.service-card::before {

  content:
    "";

  position:
    absolute;

  left:
    0;

  top:
    0;

  width:
    5px;

  height:
    100%;

  background:
    var(--kw-blue);

}


.service-card:hover {

  transform:
    translateY(-8px);

  border-color:
    var(--kw-blue);

  box-shadow:
    0 20px 45px
    rgba(7, 21, 35, 0.14);

}


.service-card h3 {

  margin-bottom:
    16px;

  color:
    var(--kw-navy);

  font-size:
    1.35rem;

}


.service-card p {

  color:
    #505b65;

}


.service-card a {

  color:
    var(--kw-blue-dark);

  font-weight:
    700;

}



/* =====================================
   WORK
===================================== */

.work-section {

  background:
    var(--kw-navy);

  color:
    var(--kw-white);

}


.work-section
.section-heading h2 {

  color:
    var(--kw-white);

}


.work-section
.section-heading p {

  color:
    #b9c7d5;

}


.work-section
.section-label {

  color:
    #76b8ff;

}


.project-card {

  position:
    relative;

  margin:
    0;

  overflow:
    hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

}


.project-card img {

  width:
    100%;

  height:
    420px;

  object-fit:
    cover;

  transition:
    transform 0.5s ease;

}


.project-card:hover img {

  transform:
    scale(1.06);

}


.project-card figcaption {

  position:
    absolute;

  left:
    20px;

  bottom:
    20px;

  padding:
    11px 18px;

  color:
    var(--kw-white);

  background:
    rgba(7, 21, 35, 0.9);

  border-left:
    4px solid
    var(--kw-blue-light);

  font-weight:
    700;

}


/* =====================================
   REVIEWS
===================================== */

.reviews-section {
    padding: 90px 0;
    background: var(--kw-white);
}


/* =====================================
   HEADING
===================================== */

.reviews-heading {
    margin-bottom: 40px;
}

.reviews-heading .section-label {
    display: block;
    margin-bottom: 10px;

    color: var(--kw-blue);

    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.reviews-heading h2 {
    margin: 0;

    color: var(--kw-navy);

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
}


/* =====================================
   BOOTSTRAP REVIEW CAROUSEL
===================================== */

.reviews-carousel {
    position: relative;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


/*
   Give every Bootstrap slide the same
   amount of room so the page doesn't
   jump between short and long reviews.
*/

.reviews-carousel .carousel-inner {
    min-height: 390px;
}

.reviews-carousel .carousel-item {
    min-height: 390px;
}


/* =====================================
   REVIEW CARD
===================================== */

.reviews-carousel .review-card {
    min-height: 390px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    margin: 0;
    padding: 45px 75px;

    background: var(--kw-off-white);

    border-left: 5px solid var(--kw-blue);

    box-shadow:
        0 15px 40px
        rgba(7, 21, 35, 0.1);
}


/* =====================================
   RECOMMENDATION
===================================== */

.review-recommend {
    margin-bottom: 20px;

    color: var(--kw-blue);

    font-size: 0.95rem;
    font-weight: 700;
}


/* =====================================
   REVIEW TEXT
===================================== */

.review-card blockquote {
    margin: 0 0 25px;

    color: var(--kw-navy);

    font-size: 1.15rem;
    line-height: 1.65;

    white-space: pre-line;
}


/* =====================================
   CUSTOMER
===================================== */

.review-author {
    color: var(--kw-navy);

    font-size: 1rem;
    font-weight: 700;
}

.review-source {
    margin-top: 3px;

    color: var(--kw-grey);

    font-size: 0.85rem;
}


/* =====================================
   BOOTSTRAP CAROUSEL ARROWS
===================================== */

.reviews-carousel .carousel-control-prev,
.reviews-carousel .carousel-control-next {
    width: 55px;

    opacity: 1;
}


.reviews-carousel .carousel-control-prev {
    left: 5px;
}

.reviews-carousel .carousel-control-next {
    right: 5px;
}


.reviews-carousel .carousel-control-prev-icon,
.reviews-carousel .carousel-control-next-icon {
    width: 42px;
    height: 42px;

    padding: 10px;

    background-color: var(--kw-blue);
    background-size: 50% 50%;

    border-radius: 50%;
}


/* =====================================
   BOOTSTRAP INDICATORS
===================================== */

.reviews-indicators {
    position: relative;

    margin: 25px 0 0;

    gap: 7px;
}


.reviews-indicators [data-bs-target] {
    width: 9px;
    height: 9px;

    margin: 0;

    background-color: #aeb8c2;

    border: 0;
    border-radius: 50%;

    opacity: 1;
}


.reviews-indicators .active {
    background-color: var(--kw-blue);

    transform: scale(1.3);
}


/* =====================================
   FACEBOOK BUTTON
===================================== */

.reviews-facebook {
    margin-top: 25px;

    text-align: center;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .reviews-section {
        padding: 65px 0;
    }

    .reviews-heading {
        margin-bottom: 30px;
    }

    .reviews-carousel {
        width: calc(100% - 20px);
    }

    .reviews-carousel .carousel-inner,
    .reviews-carousel .carousel-item,
    .reviews-carousel .review-card {
        min-height: 520px;
    }

    .reviews-carousel .review-card {
        padding: 35px 50px;
    }

    .review-card blockquote {
        font-size: 1rem;
        line-height: 1.55;
    }

    .reviews-carousel .carousel-control-prev,
    .reviews-carousel .carousel-control-next {
        width: 42px;
    }

    .reviews-carousel .carousel-control-prev {
        left: 0;
    }

    .reviews-carousel .carousel-control-next {
        right: 0;
    }

    .reviews-carousel .carousel-control-prev-icon,
    .reviews-carousel .carousel-control-next-icon {
        width: 34px;
        height: 34px;
    }

}


@media (max-width: 576px) {

    .reviews-carousel .carousel-inner,
    .reviews-carousel .carousel-item,
    .reviews-carousel .review-card {
        min-height: 620px;
    }

    .reviews-carousel .review-card {
        padding: 30px 42px;
    }

}
/* =====================================
   CTA
===================================== */



.cta-section {

    position: relative;
  padding: 65px 0 45px;

    color: var(--kw-white);

   background:
    linear-gradient(
        135deg,
        var(--kw-blue-dark),
        var(--kw-navy)
    );
}

.cta-section .container {
    padding-top: 60px;
}

.cta-slogan {
    position: absolute;
    top: 40px;
    left: 0;

    width: 100%;
    height: 25%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Kaushan Script", cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1;
    color: #fff;
    text-align: center;

    padding: 0 20px;
    box-sizing: border-box;
}




.cta-section h2 {

  margin-top:
    10px;

  font-size:
    clamp(2rem, 4vw, 3.5rem);

}


.cta-section p {

  color:
    #d7e7f8;

  font-size:
    1.15rem;

}


.cta-buttons {

  margin-top:
    30px;

}


.cta-buttons .btn {

  margin:
    5px;

}



/* =====================================
   CONTACT
===================================== */

.contact-section {

  background:
    var(--kw-off-white);

}


.contact-item {

  margin-top:
    26px;

}


.contact-item strong {

  display:
    block;

  margin-bottom:
    4px;

  color:
    var(--kw-navy);

}


.contact-item a {

  color:
    var(--kw-blue);

  font-weight:
    700;

}


.contact-form {

  padding:
    38px;

  background:
    var(--kw-white);

  border:
    1px solid
    var(--kw-border);

  border-top:
    5px solid
    var(--kw-blue);

  border-radius:
    8px;

  box-shadow:
    0 15px 40px
    rgba(7, 21, 35, 0.08);

}


.form-control {

  padding:
    13px 15px;

  border:
    1px solid
    #cbd4dc;

  border-radius:
    4px;

}


.form-control:focus {

  border-color:
    var(--kw-blue);

  box-shadow:
    0 0 0 0.25rem
    rgba(23, 105, 194, 0.14);

}



/* =====================================
   FOOTER
===================================== */

.site-footer {

  padding:
    45px 0;

  color:
    #9cabb9;

  background:
    #050d15;

  border-top:
    3px solid
    var(--kw-blue);

}


.footer-logo {

  width:
    auto;

  height:
    70px;

}


.site-footer a {

  color:
    var(--kw-white);

  font-weight:
    700;

}



/* =====================================
   MOBILE
===================================== */

@media
(max-width: 991px) {

  .navbar-collapse {

    padding:
      20px;

    margin-top:
      8px;

    background:
      var(--kw-navy);

    border-radius:
      8px;

  }


  .nav-link {

    margin-left:
      0;

  }


  .nav-call-button {

    margin-top:
      10px;

  }


  .hero {

    min-height:
      720px;

  }


  .hero-overlay {

    background:
      rgba(7, 21, 35, 0.82);

  }


  .about-image {

    height:
      420px;

  }

}



@media
(max-width: 768px) {

  .navbar-logo {

    height:
      50px;

  }


  .navbar.scrolled
  .navbar-logo {

    height:
      44px;

  }

}



@media
(max-width: 576px) {

  .section-padding {

    padding:
      70px 0;

  }


  .hero h1 {

    font-size:
      3rem;

  }


  .hero-intro {

    font-size:
      1.05rem;

  }


  .hero-actions .btn {

    display:
      block;

    width:
      100%;

  }


  .service-card {

    padding:
      30px;

  }


  .review-card {

    padding:
      30px;

  }


  .contact-form {

    padding:
      24px;

  }


  .footer-logo {

    height:
      55px;

  }

}

/* =====================================
   MOBILE FLOATING CTA - FIX
===================================== */

.mobile-floating-cta {
    display: none;
}

@media (max-width: 767.98px) {

    .mobile-floating-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;

        z-index: 99999;

        display: flex;
        gap: 10px;

        padding: 10px 14px;
        background: #071725;

        transform: translateY(110%);
        opacity: 0;
        visibility: hidden;

        transition:
            transform 0.35s ease,
            opacity 0.35s ease,
            visibility 0.35s ease;
    }

    .mobile-floating-cta.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-floating-cta a {
        flex: 1;
        display: block;
        padding: 13px 8px;

        text-align: center;
        text-decoration: none;
        font-weight: 700;
        border-radius: 8px;
    }

    .mobile-cta-contact {
        background: #2475c9;
        color: #fff;
    }

    .mobile-cta-call {
        background: transparent;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* =====================================
   MOBILE - HIDE HERO CTA BUTTONS
===================================== */

@media (max-width: 767.98px) {

  .hero-actions {
    display: none;
  }

}

/* =====================================
   MOBILE HERO - FINAL
===================================== */

@media (max-width: 767.98px) {

    .hero {
        min-height: 72vh;

        align-items: flex-start;

        background:
            url("../img/9.jpg")
            center top / cover
            no-repeat;
    }


    /* Lighter overlay so the roof shows through */
    .hero-overlay {
        background:
            rgba(7, 21, 35, 0.58);
    }


    /* Move the whole text area towards the top */
    .hero-content {
        width: 100%;
        padding-top: 115px;
        text-align: center;
    }


    /* Make Bootstrap's column full width on mobile */
    .hero-content .row {
        justify-content: center;
    }

    .hero-content .col-lg-8 {
        width: 100%;
    }


    /* Main heading */
    .hero h1 {
        max-width: 520px;

        margin:
            0 auto 30px;

        font-size:
            clamp(3.2rem, 13vw, 4.5rem);

        line-height: 0.98;

        letter-spacing: -0.03em;

        text-align: center;

        text-shadow:
            0 4px 20px
            rgba(0, 0, 0, 0.45);
    }


    /* Fully insured / free quotes line */
    .hero-kicker {
        max-width: 440px;

        margin:
            0 auto;

        color: #76b8ff;

        font-size: 0.95rem;

        line-height: 1.55;

        letter-spacing: 2.5px;

        text-align: center;
    }


    /* Original hero buttons stay hidden on mobile */
    .hero-actions {
        display: none;
    }

}

/* =====================================
   MOBILE SECTION ORDER - DEV
===================================== */

@media (max-width: 767.98px) {

    /*
     * Turn MAIN into a flex column so we can
     * change the visual order on mobile only.
     */

    main {
        display: flex;
        flex-direction: column;
    }


    /*
     * MOBILE ORDER
     *
     * 1. Hero
     * 2. Services
     * 3. Recent Work
     * 4. Testimonials
     * 5. Trust Bar
     * 6. CTA
     * 7. Contact
     */

    .hero {
        order: 1;
    }

    .services-section {
        order: 2;
    }

    .work-section {
        order: 3;
    }

    .reviews-section {
        order: 4;
    }

    .trust-strip {
        order: 5;
    }

    .cta-section {
        order: 6;
    }

    .contact-section {
        order: 7;
    }


    /*
     * ABOUT
     *
     * Keep it on desktop, remove it from
     * the mobile journey.
     */

    .about-section {
        display: none;
    }


    /*
     * CTA SECTION BUTTONS
     *
     * The section stays, but its normal buttons
     * disappear on mobile because our floating
     * CTA bar now handles Get in Touch / Call.
     */

    .cta-section .cta-buttons {
        display: none;
    }

}

/* =====================================
   MOBILE HERO IMAGE TEST
   Desktop untouched
===================================== */

@media (max-width: 767.98px) {

    .hero {
        background-image: url("../img/chimney stack.png");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

}

@media (max-width: 767.98px) {

    .hero {
        background-image: url("../img/chimney stack.png");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero h1 {
        max-width: 350px;
        margin: 0 auto 22px;
        font-size: 3rem;
        line-height: 1.02;
        letter-spacing: -0.03em;
        text-align: center;
    }

}

.hero-kicker {
    max-width: 330px;
    margin: 0 auto;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.55;
    letter-spacing: 2px;
    text-align: center;
}

.hero-content {
    transform: translateY(-75px);
}

@media (min-width: 768px) {
  .hero .hero-kicker {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
    .hero {
        height: 680px;
        min-height: 680px;
    }
}

/* =====================================
   RECENT WORK - BEFORE / AFTER LABELS
===================================== */

.recent-work-carousel .carousel-item {
  position: relative !important;
}

.recent-work-carousel .work-label {
  position: absolute !important;
  top: 20px !important;
  left: 20px !important;
  bottom: auto !important;

  z-index: 20 !important;

  display: block !important;
  width: auto !important;
  min-width: 210px;

  padding: 11px 18px 10px;

  background: rgba(7, 21, 35, 0.78) !important;
  color: #fff !important;

  border-radius: 8px;
  text-align: center;

  pointer-events: none;
}

.recent-work-carousel .work-label-title {
  display: block;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.recent-work-carousel .work-label-status {
  display: block;

  margin-top: 7px;
  padding-top: 6px;

  border-top: 1px solid rgba(255, 255, 255, 0.55);

  font-size: 0.88rem;
  line-height: 1;
}


/* MOBILE */

@media (max-width: 767.98px) {

  .recent-work-carousel .work-label {
    top: 12px !important;
    left: 12px !important;

    min-width: 165px;
    padding: 9px 13px 8px;
  }

  .recent-work-carousel .work-label-title {
    font-size: 0.8rem;
  }

  .recent-work-carousel .work-label-status {
    font-size: 0.75rem;
  }

}