/* New Construction Page Specific Styles - Force White Background */

html,
body,
body.new-construction-page {
    background-color: #ffffff !important;
}

.new-construction-page main,
.new-construction-page .main-content {
    background-color: #ffffff !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove ALL gaps between CTA section and footer - ABSOLUTE FIX */
.new-construction-page .nc-cta-section,
section.nc-cta-section,
.nc-cta-section.text-center {
    margin-bottom: 0 !important;
    padding-bottom: 6rem !important;
}

/* Force footer to touch CTA section */
body.new-construction-page .footer,
.new-construction-page .footer {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

/* Override ANY margin from common.css */
body.new-construction-page:not(.homepage) .footer {
    margin-top: 0 !important;
}

/* Ensure no extra spacing from ANY container or wrapper */
.new-construction-page .nc-cta-section .container,
.new-construction-page .nc-cta-section > *,
section.nc-cta-section .container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Make sure main has no bottom spacing */
.new-construction-page main::after,
.new-construction-page .main-content::after {
    content: none !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Base container styles (assuming a standard max-width container is used site-wide) */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page Sections Padding */
.nc-hero-section {
    /* Padding to clear the fixed header */
    padding-top: 180px; 
    padding-bottom: 4rem;
    background-color: var(--background-color, #fff);
}

.nc-slideshow-section,
.nc-process-section {
    padding: 4rem 0;
}

/* Typography/Titles - Inherits from common.css, but centers for this page's layout */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color, #333);
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color, #333);
}

.text-large {
    font-size: 1.2rem;
    line-height: 1.6;
}

.nc-intro {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* Slideshow Styling (Simple Scrollable Gallery) */
.slideshow-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 1rem;
    /* Optimizing for scroll/swipe behavior */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem; /* Padding for the snap to feel right */
    
    /* Hide scrollbar for aesthetics on most browsers */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slideshow-container::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 400px; /* Fixed width for slides on desktop */
    max-width: 100%;
    height: 400px; 
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--border-color, #ddd);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slide-item:hover img {
    transform: scale(1.05);
}

/* Button Styling */
.button {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-color, #FF7900);
    border: 2px solid var(--accent-color, #FF7900);
}

.btn-primary:hover {
    background-color: var(--accent-color, #FF7900);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 121, 0, 0.3);
}

/* Process Description Styling */
.long-description {
    max-width: 900px;
    margin: 0 auto;
}

.long-description h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--primary-color, #333);
    border-bottom: 2px solid var(--accent-color, #FF7900);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.long-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
}

/* Call-to-Action Section */
.nc-cta-section {
    padding: 6rem 0;
    /* Using background style from common.css (var(--light-gray)) */
    background-color: var(--light-gray, #f8f8f8); 
    margin-top: 4rem;
    margin-bottom: 0;
    border-top: 3px solid var(--accent-color, #FF7900);
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color, #333);
}

.cta-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--secondary-color, #666);
}

/* Solid Accent Button Style (used for the Questionnaire CTA) */
.btn-fill-accent {
    /* White button with orange text and outline */
    background-color: white;
    color: var(--accent-color, #FF7900);
    border: 2px solid var(--accent-color, #FF7900);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-fill-accent:hover {
    background-color: var(--accent-color, #FF7900);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-fill-accent i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-fill-accent:hover i {
    transform: translateX(3px);
}

/* Portfolio Button Style (Standard outlined button) */
.nc-portfolio-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* FAQ Section Styling */
.nc-faq-section {
    padding: 5rem 0;
    background-color: #ffffff !important;
}

.nc-faq-section .section-title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #333;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    border: 2px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 1.5rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #FF7900;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.15);
    transform: translateY(-2px);
}

.faq-item[open] {
    border-color: #FF7900;
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.2);
}

.faq-question {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1.5rem 4rem 1.5rem 1.75rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #333;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.faq-item:hover .faq-question {
    color: #FF7900;
    background-color: #fafafa;
}

.faq-item[open] .faq-question {
    color: #FF7900;
    background-color: #fff8f3;
    border-bottom: 1px solid #ffe5cc;
}

.faq-question::marker {
    display: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    color: #FF7900;
    line-height: 1;
}

.faq-item[open] > .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 1.5rem 1.75rem 1.75rem 1.75rem;
    margin-top: 0;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
    background-color: #ffffff;
}

.faq-answer strong {
    color: #333;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nc-hero-section {
        padding-top: 140px;
    }
    
    .nc-faq-section {
        padding: 3rem 0;
    }

    .nc-faq-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 3rem 1.25rem 1.25rem;
    }
    
    .faq-question::after {
        right: 1.25rem;
        font-size: 1.5rem;
    }
    
    .faq-answer {
        padding: 1.25rem 1.25rem 1.5rem 1.25rem;
        font-size: 0.95rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .text-large {
        font-size: 1rem;
    }

    .slide-item {
        flex: 0 0 80vw; /* Make slides take 80% of viewport width on mobile */
        height: 300px;
    }

    .nc-cta-section {
        padding: 4rem 0;
        margin-bottom: 0 !important;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .long-description h3 {
        font-size: 1.5rem;
    }

    .long-description p {
        font-size: 1rem;
    }
}

