/* BRAND COLORS */
:root {
    --brand: #552630;
    --brand-light: #704050;
    --text-dark: #222;
    --text-light: #fff;
    --bg-light: #f5f5f5;
    --max-width: 1200px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
    color: var(--text-dark);
    line-height: 1.6;
}

.pair-wrapper img {
    width: 75% !important;
    height: 250px !important;
}
img {
    width: 100%;
    border-radius: 6px;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.center {
    text-align: center;
}

/* HEADER */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
    /*backdrop-filter: blur(10px);*/
    /*background: rgba(255,255,255,0.85);*/
}

.logo img {
    height: 155px;
    width: auto;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul {
    display: flex;
    gap: 32px;
    list-style-type: none;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
}

/* Animated Underline */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active,
.nav a:hover {
    color: var(--brand);
}

/* FINANCING BADGE */
.financing-badge {
    background: var(--brand);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: 0.3s;
}

.financing-badge:hover {
    background: var(--brand-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.8rem;
    border: none;
    cursor: pointer;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 0;
}

.mobile-nav a:hover {
    color: var(--brand);
}

/* HERO */
.hero {
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0)) , url("Images-2025/basement1-after.jpg") center/cover no-repeat;
    padding: 160px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15); /* adjust 0.45 → darker/lighter */
    z-index: 1;
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.45);
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 25px;
    text-shadow: 0 3px 6px rgba(0,0,0,0.45);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn.primary {
    background: var(--brand);
    color: #fff;
}

.btn.primary:hover {
    background: var(--brand-light);
}

.btn.outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn.outline:hover {
    background: #fff;
    color: var(--brand);
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.alt-bg {
    background: var(--bg-light);
}

/* PROJECT GRID */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--brand);
}

.project-card img {
    height: 300px;
}

/* FEATURES GRID (Services + Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature h3 {
    color: var(--brand);
    margin-bottom: 10px;
}

/* FINANCING SECTION */
.financing {
    background: #f9f2f4;
    border-top: 3px solid var(--brand);
    border-bottom: 3px solid var(--brand);
}

/* TESTIMONIALS */
.testimonials {
    background: var(--brand);
    color: #fff;
}

.section-title.light {
    color: #fff;
}

.testimonial-grid {
    display: grid;
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 6px;
}

.testimonial span {
    display: block;
    margin-top: 10px;
    font-style: italic;
}

/* AREAS SERVED */
.areas-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    line-height: 2;
}

.areas-list li {
    color: var(--brand);
    font-weight: 600;
}

/* FOOTER */
.footer {
    background: #111;
    color: #ccc;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer h3,
.footer h4 {
    color: #fff;
    margin-bottom: 10px;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.copyright {
    margin-bottom: 8px;
    text-align: center;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
}

.filter-group {
    padding-top: 20px;
}
/* Desktop RESPONSIVE */
@media (min-width: 769px) {
    .pair-item {
        display: inline-block;
        
    }
    #filterButtons {
        padding-top: 20px;
    }
    .mobile {
        display: none;
    }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .img-nav {
        position: absolute;
        top: 80% !important;
        font-size: 55px;
        color: white;
        cursor: pointer;
        padding: 10px 18px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 4px;
        transform: translateY(-50%);
        user-select: none;
        z-index: 1000;
        transition: background 0.3s ease;
    }
    .img-modal-content {
        margin: auto;
        margin-top: 24% !important;
        display: block;
        max-width: 75%;
        max-height: 80vh;
        border-radius: 4px;
        transition: transform 0.25s ease;
        transform-origin: center center;
    }
    .filter-btn {
        width: 150px;
    }
    #filterButtons {
        padding-top: 20px;
    }
    .desktop {
        display: none;
    }
    .gallery-filters {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px !important;
        flex-direction: row;
        text-align: center;
        align-items: center;
    }
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .financing-badge {
        display: none;
    }

    .hero {
        padding: 120px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* SUB-HERO FOR SERVICES PAGE */
.sub-hero {
    padding: 50px 0;
    text-align: center;
    color: var(--brand);
    position: relative;
}

.sub-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

.sub-hero h1, 
.sub-hero p {
    position: relative;
    z-index: 2;
}

.sub-hero p {
    color: white;
}

/* SERVICE CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 25px;
    background: white;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* DETAILED SERVICE SECTIONS */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.service-detail img {
    width: 100%;
    border-radius: 10px;
}

.service-detail h2 {
    color: var(--brand);
    margin-bottom: 15px;
}

.service-detail ul {
    margin-top: 15px;
    padding-left: 20px;
}

.service-detail ul li {
    margin-bottom: 8px;
}

/* MOBILE */
@media (max-width: 768px) {
    .service-detail {
        grid-template-columns: 1fr;
    }
}

/* BEFORE & AFTER — SIDE BY SIDE */
.side-by-side-pair {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: start;
}

.pair-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    height: 500px;
}

.pair-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--brand);
    margin-bottom: 10px;
    text-align: left;
}

/* Divider between pairs */
.pair-divider {
    border: none;
    border-top: 2px solid #ddd;
    margin: 40px 0;
}

/* MOBILE — STACKED */
@media (max-width: 768px) {
    .side-by-side-pair {
        grid-template-columns: 1fr;
    }

    .pair-label {
        text-align: center;
    }
}


/* REGULAR GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    height: 250px;
    object-fit: cover;
}

/* MOBILE VERSION (STACKED BEFORE/AFTER) */
@media (max-width: 768px) {
    .ba-wrapper {
        height: auto;
    }

    .ba-after-container,
    .ba-handle {
        display: none;
    }

    .before-img,
    .after-img {
        position: static;
        height: auto;
        width: 100%;
        margin-bottom: 10px;
    }

    .ba-label {
        display: none; /* alternative: keep them if you prefer */
    }
}
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 18px;
    background: #eee;
    border: 2px solid var(--brand);
    color: var(--brand);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#filterButtons {
    padding-bottom: 0;
}
.filter-btn:hover {
    background: var(--brand);
    color: #fff;
}

.filter-btn.active {
    background: var(--brand);
    color: #fff;
}
.page-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 15px;
    color: #552630;
}

.intro-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 40px;
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.icon-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: transform .2s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #552630;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 10px;
}

/* Callouts */
.callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.callout-box {
    border-left: 5px solid #552630;
    padding: 20px 25px;
    background: #f7f7f7;
    border-radius: 6px;
}

.callout-box h3 {
    margin-bottom: 8px;
    color: #552630;
}

.callout-box p {
    margin-bottom: 10px;
}
/* TRUST BADGES */
.trust-section {
    background: #fff;
    padding-top: 40px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.badge {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px 25px;
    width: 160px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.badge-icon {
    font-size: 30px;
    margin-bottom: 8px;
    color: #552630;
}

.badge p {
    font-weight: 600;
    margin: 0;
    color: #333;
}
.trust-bar {
    background: #552630;
    color: #fff;
    padding: 15px 0;
    font-size: 0.95rem;
    margin-top: 40px;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-weight: 600;
}

.trust-bar-inner span {
    white-space: nowrap;
}
/* GOOGLE RATING BADGE */
.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.google-icon {
    width: 32px;
    height: auto;
}

.rating-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stars {
    color: #f4b400; /* Google gold */
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.rating-text {
    color: #333;
    font-size: 0.95rem;
}

.rating-text strong {
    color: #552630; /* Bradford brand color */
    font-size: 1rem;
}
/* GOOGLE RATING BADGE */
.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.google-rating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.google-icon {
    width: 32px;
    height: auto;
}

.rating-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* STAR COLOR */
.stars {
    color: #f4b400;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* FADE-IN STAR ANIMATION */
.fade-stars {
    opacity: 0;
    animation: fadeStars 1.4s ease forwards;
}

@keyframes fadeStars {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.rating-text {
    color: #333;
    font-size: 0.95rem;
}

.rating-text strong {
    color: #552630; /* BRAND COLOR */
    font-size: 1rem;
}
.google-icon {
    width: 32px;
    height: auto;
}
/* FACEBOOK RATING BADGE */
.facebook-rating {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.facebook-rating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.facebook-icon {
    width: 28px;
    height: 28px;
}

.facebook-rating .stars {
    color: #f4b400;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Fade-in animation (shared with Google) */
.facebook-rating .fade-stars {
    opacity: 0;
    animation: fadeStars 1.4s ease forwards;
}

.facebook-rating .rating-text {
    font-size: 0.95rem;
    color: #333;
}

.facebook-rating .rating-text strong {
    color: #552630; /* your brand color */
    font-size: 1rem;
}
.review-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
/* YELP RATING BADGE */
.yelp-rating {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.yelp-rating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.yelp-icon {
    width: 28px;
    height: 28px;
}

/* Same animated stars as Google/Facebook/Nextdoor */
.yelp-rating .stars {
    color: #f4b400;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.yelp-rating .fade-stars {
    opacity: 0;
    animation: fadeStars 1.4s ease forwards;
}

.yelp-rating .rating-text {
    font-size: 0.95rem;
    color: #333;
}

.yelp-rating .rating-text strong {
    color: #552630; /* Bradford brand color */
    font-size: 1rem;
}
/* BBB ACCREDITED BADGE */
.bbb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bbb-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.bbb-icon {
    width: 32px;
    height: 32px;
}

.bbb-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: #333;
}

.bbb-text strong {
    font-size: 1rem;
    color: #552630; /* your brand color */
}

.bbb-text span {
    font-size: 0.9rem;
    color: #555;
}
.trust-badges {
    padding: 50px 0;
    background: #f9f9f9;
}

.trust-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    color: #333;
    animation: fadeIn 0.6s ease-in-out;
}

.trust-item svg {
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInStars 1s forwards;
}

.trust-item p {
    font-size: 0.9rem;
    margin: 0;
}

.trust-item a {
    text-decoration: none;
    color: #552630;
    font-weight: bold;
}

@keyframes fadeInStars {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.star {
    color: #f4b400;
    font-size: 20px;
    opacity: 0;
    transform: translateY(4px);
    display: inline-block;
}

.fade-star:nth-child(1) { animation: fadeStar 0.3s forwards; }
.fade-star:nth-child(2) { animation: fadeStar 0.5s forwards; }
.fade-star:nth-child(3) { animation: fadeStar 0.7s forwards; }
.fade-star:nth-child(4) { animation: fadeStar 0.9s forwards; }
.fade-star:nth-child(5) { animation: fadeStar 1.1s forwards; }

@keyframes fadeStar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trust-badges {
    padding: 60px 0;
    background: #fafafa;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-logo {
    width: 80px;
    margin: 0 auto 10px;
}
a:has(.trust-item) {
    text-decoration: none;
    color: inherit;
}

.trust-item a:hover {
    text-decoration: underline; /* optional */
}
#kitchen, #bathroom, #basement, #home, #closets, #open, #decks, #homeimprovement {
    scroll-margin-top: 162px;
}
.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-top: 20px;
}

.trust-badge {
    text-align: center;
    width: 150px;
}

.trust-badge svg {
    display: block;
    margin: 0 auto 8px;
}

.stars {
    font-size: 1.3rem;
    color: gold;
    letter-spacing: 3px;
}

.fade-in-stars {
    opacity: 0;
    animation: fadeStars 1.2s ease forwards;
}

@keyframes fadeStars {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------
   IMAGE MODAL LIGHTBOX
----------------------------- */
.img-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  inset: 0;
  background: rgba(0,0,0,0.98);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; } 
  to { opacity: 1; }
}

.img-modal-content {
    margin: auto;
    margin-top: 4%;
    display: block;
    max-width: 75%;
    max-height: 80vh;
    border-radius: 4px;
    transition: transform 0.25s ease;
    transform-origin: center center;
}

/* Caption */
#imgModalCaption {
  margin-top: 15px;
  color: #fff;
  text-align: center;
  font-size: 18px;
}

/* Close Button */
.img-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
}

/* Left/Right Arrows */
.img-nav {
  position: absolute;
  top: 50%;
  font-size: 55px;
  color: white;
  cursor: pointer;
  padding: 10px 18px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  transform: translateY(-50%);
  user-select: none;
  z-index: 1000;
  transition: background 0.3s ease;
}

.img-nav:hover {
  background: rgba(255,255,255,0.2);
}

.img-prev { left: 25px; }
.img-next { right: 25px; }

/* Zoom Cursor */
.img-modal-content.zoomed {
  cursor: zoom-out;
}

.img-modal-content:not(.zoomed) {
  cursor: zoom-in;
}

/* Modal image transitions */
#imgModalImg {
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

#imgModalImg.zoomed {
    cursor: grab;
}

.fade-in {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}
