/* Global Styles */
:root {
    --primary-color: #f7931e;
    --secondary-color: #343a40;
    --dark-accent: #212529;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --text-color-dark: #343a40;
    --text-color-light: #ffffff;
    --gradient-start-1: #1a1a1a;
    --gradient-end-1: #333333;
    --gradient-start-2: #2c3e50;
    --gradient-end-2: #4a69bd;
    --gradient-start-3: #4b0082;
    --gradient-end-3: #8a2be2;
    --teal-bg: #20c997;
    --magenta-bg: #e83e8c;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: inherit;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .site-title {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

.text-primary-accent {
    color: var(--primary-color) !important;
}

.bg-dark-accent {
    background-color: var(--dark-accent) !important;
}

.bg-light-grey {
    background-color: var(--light-grey) !important;
}

.bg-dark-grey {
    background-color: var(--secondary-color) !important;
}

.bg-teal {
    background-color: var(--teal-bg) !important;
}

.bg-magenta {
    background-color: var(--magenta-bg) !important;
}

.bg-primary-gradient {
    background: linear-gradient(90deg, var(--primary-color) 0%, #ffc107 100%);
}

.bg-subtle-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #e0811b;
    border-color: #e0811b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-light {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-light:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn.cta-button {
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--white);
}

.bg-dark-transparent {
    background-color: rgba(33, 37, 41, 0.9) !important;
    backdrop-filter: blur(5px);
    z-index: 1030;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.offcanvas.bg-dark {
    background-color: var(--dark-accent) !important;
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease-in-out;
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section.theme-1 {
    background-image: linear-gradient(135deg, var(--gradient-start-1), var(--gradient-end-1));
}

.hero-section.theme-2 {
    background-image: linear-gradient(135deg, var(--gradient-start-2), var(--gradient-end-2));
}

.hero-section.theme-3 {
    background-image: linear-gradient(135deg, var(--gradient-start-3), var(--gradient-end-3));
}

.hero-image {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.theme-switcher .theme-button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
}

.theme-switcher .theme-button:hover {
    background-color: rgba(247, 147, 30, 0.1);
}

.theme-switcher .theme-button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* About Section (Timeline) */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media (max-width: 767.98px) {
    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
        left: 0 !important;
        text-align: left !important;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }
}

/* Services Section */
.service-card {
    position: relative;
    overflow: hidden;
    color: var(--text-color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px; /* Ensures consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: 0;
}

.service-card h3, .service-card p, .service-card .service-icon {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.bg-service-1::before {
    background-image: url('img/media/full-home-remodeling-bg.jpg');
}
.bg-service-2::before {
    background-image: url('img/media/kitchen-renovation-bg.jpg');
}
.bg-service-3::before {
    background-image: url('img/media/bathroom-upgrade-bg.jpg');
}
.bg-service-4::before {
    background-image: url('img/media/painting-service-bg.jpg');
}
.bg-service-5::before {
    background-image: url('img/media/basement-finishing-bg.jpg');
}
.bg-service-6::before {
    background-image: url('img/media/custom-carpentry-bg.jpg');
}

/* Features Section */
.feature-image {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
}

.benefit-tags .badge {
    background-color: var(--primary-color);
    color: var(--dark-accent);
    padding: 0.5em 1em;
    font-weight: 600;
    border-radius: 0.3rem;
}

.benefit-tags .badge i {
    color: var(--dark-accent);
}

/* Team Section */
.founder-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.founder-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.team-member-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Portfolio Section */
.case-study-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.case-study-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.accent-bullet {
    position: relative;
    padding-left: 25px;
    color: var(--text-color-light);
}

.case-study-item.bg-white .accent-bullet {
    color: var(--text-color-dark);
}

.accent-bullet::before {
    content: '\f00c'; /* Font Awesome check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Industries Section */
.industry-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.industry-icon {
    color: var(--white);
}

.industry-item.bg-white .industry-icon {
    color: var(--primary-color);
}

/* Stats Section */
.stat-item {
    padding: 20px;
}

.stat-number {
    color: var(--primary-color);
    font-size: 4rem;
}

.stat-label {
    color: var(--white);
}

/* How It Works Section */
.step-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.step-header button {
    color: var(--text-color-dark);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background-color: var(--light-grey);
    border: none;
    border-radius: 8px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.step-header button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--white);
}

.step-header button:not(.collapsed) .step-icon {
    color: var(--white);
}

.step-header button:focus {
    box-shadow: none;
}

.step-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.step-media {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .step-media {
        max-width: 250px;
    }
}

/* Contact Section */
.contact-split-layout {
    border-radius: 1rem !important;
}

.contact-details h3, .contact-details p, .contact-details a {
    color: var(--white);
}

.contact-details a:hover {
    color: var(--primary-color) !important;
}

.email-break {
    word-break: break-all;
}

.contact-form-wrapper h3 {
    color: var(--text-color-dark);
}

.form-control, .form-select {
    border-color: #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(247, 147, 30, 0.25);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, var(--primary-color) 0%, #ffc107 100%);
    padding: 80px 0;
}

.cta-icon {
    color: var(--white);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Testimonials Section */
.masonry-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.author-info .avatar-small {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.author-name {
    color: var(--primary-color);
}

.author-title {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Footer */
.footer-section {
    background-color: var(--dark-accent);
    position: relative;
    z-index: 10;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.fab-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.fab-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* General utility classes */
.rounded {
    border-radius: 0.5rem !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Box sizing for all elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}
/*
 * Base styles for the secure terms hub container.
 * Provides padding on top and sides.
 */
.secureTermsHub {
    padding: 30px 24px; /* Top/bottom padding 30px, left/right padding 24px */
    line-height: 1.6; /* Default line height for better readability */
    font-family: sans-serif; /* Example font family, adjust as needed */
    color: #333; /* Default text color */
    margin-top: 3rem;
}

/*
 * Heading 1 styles within the secure terms hub.
 * Moderate font size and spacing.
 */
.secureTermsHub h1 {
    font-size: 1.75rem; /* Approximately 28px */
    font-weight: 700; /* Bold */
    margin-top: 2.5rem; /* Space above heading */
    margin-bottom: 1rem; /* Space below heading */
    line-height: 1.2; /* Tighter line height for headings */
    color: #222; /* Slightly darker color for main headings */
}

/*
 * Heading 2 styles within the secure terms hub.
 * Moderate font size and spacing.
 */
.secureTermsHub h2 {
    font-size: 1.5rem; /* Approximately 24px */
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.25;
    color: #222;
}

/*
 * Heading 3 styles within the secure terms hub.
 * Moderate font size and spacing.
 */
.secureTermsHub h3 {
    font-size: 1.25rem; /* Approximately 20px */
    font-weight: 600; /* Slightly less bold */
    margin-top: 1.75rem;
    margin-bottom: 0.7rem;
    line-height: 1.3;
    color: #333;
}

/*
 * Heading 4 styles within the secure terms hub.
 * Moderate font size and spacing.
 */
.secureTermsHub h4 {
    font-size: 1.125rem; /* Approximately 18px */
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    color: #333;
}

/*
 * Heading 5 styles within the secure terms hub.
 * Moderate font size and spacing.
 */
.secureTermsHub h5 {
    font-size: 1rem; /* Approximately 16px, default paragraph size */
    font-weight: 500; /* Medium weight */
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #444;
}

/*
 * Paragraph styles within the secure terms hub.
 * Standard font size and spacing.
 */
.secureTermsHub p {
    font-size: 1rem; /* Base font size, typically 16px */
    margin-bottom: 1rem; /* Space between paragraphs */
    line-height: 1.6; /* Optimal line height for readability */
}

/*
 * Unordered list styles within the secure terms hub.
 * Adds padding for bullet points and spacing.
 */
.secureTermsHub ul {
    list-style-type: disc; /* Default disc bullets */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 24px; /* Indentation for bullet points */
}

/*
 * List item styles within the secure terms hub.
 * Adds spacing between list items.
 */
.secureTermsHub li {
    margin-bottom: 0.5rem; /* Space between list items */
    line-height: 1.6; /* Inherit or explicitly set for consistency */
}


@media(max-width: 575px){
    nav{
        padding: 0 10px !important;
    }
}

.offcanvas-title{
    filter: invert(1);
    --webkit-filter: invert(1);
}

@media(max-width: 991px){
    .offcanvas-body {
        background-color: #1a1a1a;
        overflow-y: inherit;
    }

    .masonry-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

}


@media(max-width: 767px){
    
    .masonry-grid-container {
        grid-template-columns:  1fr;
    }

}

main{
    overflow: hidden !important;
}

.stat-numbers{
    color: var(--primary-color);
    font-size: 4rem;
}