body {
    margin: 0;
    padding: 0;
    font-family: "Karla", sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-family: "Rubik", sans-serif;
}  

:root{
    --primary-color: #1BAE70;
    --secondary-color: #ffd763;
    --color-white: #fff;
    --color-black: #000;
}

:root {
  /* Mobile / base */
  --h1: 32px;
  --h2: 28px;
  --h3: 24px;
  --h4: 20px;
  --h5: 18px;
  --p: 17px;
}

:root {
  /* Mobile ≥768px */
    --padding-global: 40px 20px;
    --container-max-width: 1502px;
}

/* Tablet ≥768px */
@media (min-width: 768px) {
  :root {
    --h1: 48px;
    --h2: 36px;
    --h3: 28px;
    --h4: 24px;
    --h5: 20px;
    --p: 18px;
  }
  :root {
    --padding-global: 60px 20px;
    --container-max-width: 1502px;
}

}

/* Desktop ≥1024px */
@media (min-width: 1024px) {
  :root {
    --h1: 62px;
    --h2: 48px;
    --h3: 36px;
    --h4: 28px;
    --h5: 24px;
    --p: 20px;
  }
  :root {
    --padding-global: 80px 20px;
    --container-max-width: 1502px;
}
} 
        
        
        .hero-section {
            position: relative;
            background-image: url(../images/hero.webp);
            background-size: cover;
            background-position: center center;
            background-color: #1b2e3c;
            display: flex;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
            text-align: center;
            padding: 250px 0px 180px;
            width: 100%;
        }
.floor_hero {
    background-image: url(../images/living-room-floors.webp) !important; 
}
.gutter_hero {
    background-image: url(../images/gutter-overflow-damage.webp) !important; 
}
.insurance_hero {
    background-image: url(../images/home-insurance-savings.webp) !important; 
}
.windows_hero {
    background-image: url(../images/modern-home-new-windows.webp) !important; 
}
.auto_section {
    background-image: url(../images/happy-driver-hero.webp) !important; 
}
        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.62);
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 1502px;
            margin: 0 auto;
        }

        .hero-content h1 {
            font-size: var(--h1);
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 15px;
            line-height: 1.3em;
        }

        .hero-content p {
            font-size: var(--p);
            color: var(--color-white);
            margin-bottom: 15px;
            line-height: 1.75;
            max-width: 1065px;
            margin-left: auto;
            margin-right: auto;
            font-family: "Karla", sans-serif;
        }

        .hero-content p:last-of-type {
            margin-bottom: 0;
        }

        .hero-cta {
            display: -webkit-inline-box;
            display: -ms-inline-flexbox;
            display: inline-flex;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            gap: 10px;
            background-color: var(--primary-color);
            color: #ffffff !important;
            padding: 20px 40px;
            border-radius: 6px;
            font-size: 18px;
            font-weight: 700;
            margin-top: 28px;
            text-decoration: none !important;
            -webkit-transition: background-color 0.3s ease;
            -o-transition: background-color 0.3s ease;
            transition: background-color 0.3s ease;
            letter-spacing: 0.2px;
            font-family: "Karla", sans-serif;
        }

        .hero-cta:hover {
            background-color: #03bc63;
            color: #ffffff !important;
        }

        .hero-cta-icon {
            -ms-flex-negative: 0;
                flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .hero-content h1 { font-size: 28px; }
            .hero-content p  { font-size: 14px; }
            .hero-cta        { font-size: 15px; padding: 13px 24px; }
        }

        @media (max-width: 480px) {
            .hero-content h1  { font-size: 22px; }
            .hero-section     { padding: 50px 0; }
        }


/* ========================================================================
   # Before / After Comparison Slider
======================================================================== */
.cs-section {
    width: 100%;
    border-top: 3px solid var(--primary-color);
    line-height: 0;
    max-width: 1282px;
    margin: auto;
    margin-top: -100px;
    padding: 0px 0px 80px;
}

.cs-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: ew-resize;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    line-height: 0;
}

/* Both image wrappers */
.cs-img-wrap {
    display: block;
    width: 100%;
    position: relative;
    line-height: 0;
}

.cs-img-wrap img {
    display: block;
    width: 100%;
    height: 622px;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Before image — absolute full-size, clipped from the right */
.cs-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-clip-path: inset(0 50% 0 0);
    clip-path: inset(0 50% 0 0);
}

.cs-img-before img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* Labels */
.cs-label {
    position: absolute;
    top: 16px;
    padding: 8px 16px;
    background: var(--color-white);
    color: var(--color-black);
    font-family: "Rubik", sans-serif;
    font-size: 20px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 3;
    box-shadow: 7px 8px 20px 0 #8080806b;
}

.cs-label-before { left: 16px; }
.cs-label-after  { right: 16px; }

/* Divider line */
.cs-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

/* Handle circle */
.cs-handle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0;
    -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    color: #333333;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cs-img-wrap img  { height: 320px; }
    .cs-label         { font-size: 13px; padding: 5px 12px; top: 12px; }
}

@media (max-width: 480px) {
    .cs-img-wrap img  { height: 220px; }
    .cs-label         { font-size: 11px; padding: 4px 10px; top: 8px; }
    .cs-handle        { width: 38px; height: 38px; }
}




/* ========================================================================
   # Bathroom Remodeling Section
======================================================================== */


.remodel-section{
    background:#1fa971;
    color:#fff;
}

.main_container{
    max-width:1502px;
    margin:auto;
}

.remodel-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.remodel-content h2{
    font-size: var(--h2);
    font-weight:700;
    margin-bottom:15px;
    line-height:1.2;
    color: var(--color-white);
}

.remodel-content p{
    font-size: var(--p);
    line-height:1.7;
    margin-bottom:18px;
    opacity:0.95;
    color: var(--color-white);
}

.remodel-content h4{
    margin-top:25px;
    margin-bottom:10px;
    font-weight:700;
    color: var(--color-white);
}

.feature-box{
    background:#f2f2f2;
    border-radius:12px;
    padding:30px;
    margin-top:25px;
}

.feature-box ul{
    list-style:none;
    padding:0;
    margin:0;
}

.feature-box li{
    color:var(--color-black);
    font-size: var(--p);
    display:flex;
    align-items:center;
    gap:12px;
    text-align: left;
}
.feature-box li:not(:last-child){
    margin-bottom:18px;
}
.remodel-image img {
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.check img{
    width:35px;

}

.remodel-image img{
    width:100%;
    border-radius:6px;
}
.last_check_para {
    margin-top: 20px;
}

/* ========================================================================
   # Testimonial Section
======================================================================== */

.main_container{
max-width: var(--container-max-width);
margin:auto;
padding:var(--padding-global);
}

.testimonial-section{
background: var(--color-white);
text-align:center;
}

.section-header h2{
font-size: var(--h2);
font-weight:700;
margin-bottom:15px;
color: var(--color-black);
}

.section-header p{
max-width:900px;
margin:auto;
color: var(--color-black);
font-size: var(--p);
line-height:1.6;
margin-bottom:30px;
}

.testimonial-grid{
display:flex;
gap:10px;
justify-content: center;
}

.testimonial-card{
background:#F8FAFC;
padding:25px 30px;
border-radius:18px;
border:1px solid #e2e2e2;
position:relative;
text-align:left;
width: 32%;
}

.stars{
color:var(--primary-color);
font-size:25px;
margin-bottom:5px;
}

.review{
color:#333;
line-height:1.7;
font-size:16px;
margin-bottom:30px;
margin-top: 0px;
max-width: 85%;
font-weight: 400;
}

.user{
display:flex;
align-items:center;
gap:12px;
}

.avatar{
width:42px;
height:42px;
border-radius:50%;
background:#1fa971;
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-weight:700;
}

.user h4{
margin:0;
font-size:15px;
}

.user span{
font-size:13px;
color:var(--color-text);
}

.quote img{
position:absolute;
top:20px;
right:25px;
width: 50px;
}

.cta-wrapper a{
margin-top:40px !important;
display: flex;
align-items: center;
gap: 10px;
justify-content: center;
width: 308px;
margin: auto;
}
.cta-wrapper img {
    width: 20px;
    margin-top: 5px;
}

.cta-btn{
background:var(--primary-color);
color:var(--color-white);
padding:18px 10px;
border-radius:0px;
font-size:18px;
font-weight:600;
text-decoration:none;
display:inline-block;
transition:0.3s;
}

.cta-btn:hover{
background:var(--secondary-color);
color: var(--color-white);
}


/* ========================================================================
   # Last Banner Section
======================================================================== */


.alert-section{
position:relative;
background:url(../images/banner-bg.webp) center/cover no-repeat;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
color:#fff;
padding:var(--padding-global);
}

.alert-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.55);
}

.alert-container{
position:relative;
max-width:1502px;
z-index:2;
}

.alert-container h2{
font-size:60px;
font-weight:700;
line-height:1.2;
margin-bottom: 20px;
color: var(--color-white);
}

.alert-text{
font-size:var(--p);
line-height:1.7;
margin-bottom:15px;
color:var(--color-white);
margin-top: 0;
}

.flex_points ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    row-gap: 20px;
}
.flex_points ul li {
    font-size: var(--p);
    color: var(--color-white);
    list-style: disc;
}
.flex_points ul li{
    font-size: var(--p);
    color: var(--color-white);
}

.alert-container h4 {
    font-size: var(--h4);
    margin: 30px 0px 20px;
}
.cta_down_text {
       margin-top: 20px; 
}


/*================Accordian Section===================*/


.faq-section{
  padding:var(--padding-global);
  background:#f7f7f7;
}

.faq-container{
  max-width:900px;
  margin:auto;
}

.faq-title{
  text-align:center;
  font-size:var(--h2);
  margin-bottom:40px;
  color: var(--color-black);
}

.faq-item{
  border-bottom:1px solid #ddd;
}

.faq-question{
  width:100%;
  background:none;
  border:none;
  text-align:left;
  padding:20px;
  font-size:20px;
  font-weight:600;
  cursor:pointer;
  position:relative;
  color: var(--color-black);
}
.faq-item.active .faq-question {
    color: var(--primary-color);
}
.faq-question::after{
  content:"+";
  position:absolute;
  right:20px;
  font-size:22px;
}

.faq-item.active .faq-question::after{
  content:"-";
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:0.3s ease;
  padding:0 20px;
}

.faq-answer p{
  padding-bottom:20px;
  color:#555;
}


/*==========Error==============*/

.error_hero p {
    font-size: 40px;
    margin: 0 !important;
    font-weight: 500;
    line-height: 1.2em;
}


/*==============Media Quiries=================*/
@media (max-width: 1024px) {

.remodel-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
}
.remodel-image img {
max-width: 400px;
}
.remodel-content {
    text-align: center;
}
.testimonial-grid{
display:flex;
gap:10px;
flex-wrap: wrap;
justify-content: center;
}
.testimonial-card {
    width: 38%;
}
.cs-section {
    padding: 0px 0px 60px;
}
.speciality_remodel_grid {
    flex-direction: column;
}
.alert-container h2{
font-size:var(--h2);
}
.cs-img-wrap img {
    height: 500px;
}
.hero-section {
    padding: 200px 0px 100px;
}
.faq-question{
   font-size:18px;
}

.error_hero p {
    font-size: 30px;
}

}


@media (max-width: 767px) {

.testimonial-card {
    width: 100%;
}
.cs-section {
    padding: 0px 0px 40px;
}
.alert-container h2{
font-size:var(--h2);
}
.hero-section {
    padding: 180px 0px 60px;
}
.cs-img-wrap img {
    height: 400px;
}
.faq-question{
  font-size:17px;
}
.error_hero p {
    font-size: 24px;
}
}