/* General Body & Layout Styles */
body {
    font-family: 'Inter', sans-serif;
    overflow: hidden; /* Prevent vertical scrollbar */
    background-color: #E5E7EB; /* Light Gray - gray-200 */
}

#main-content {
    display: flex;
    width: 800vw; /* 100vw per section * 8 sections */
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.page {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    padding-left: 280px; /* Space for the side nav */
    padding-right: 5vw;
    padding-top: 5vh;
    padding-bottom: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Allow vertical scroll within a page if content overflows */
}

/* Side Navigation */
#side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #6B7280; /* 50% Gray - gray-500 */
    color: #F3F4F6; /* gray-100 */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

#side-nav .nav-header {
    margin-bottom: 3rem;
}

#side-nav .nav-header a {
    color: white;
    line-height: 1.1;
}

#side-nav .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

#side-nav .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #D1D5DB; /* gray-300 */
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

#side-nav .nav-link:hover {
    color: white;
    padding-left: 0.5rem;
}

#side-nav .nav-link.active {
    color: #DC2626; /* Red Accent - red-600 */
    font-weight: 700;
}


/* Page Specific Styles */
.page-content,
.page-content-centered,
.page-content-split {
    width: 100%;
    max-width: 1200px;
}

/* Mobile-first: single column layout */
.page-content-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #DC2626; /* Red Accent */
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1.1rem;
    color: #4B5563; /* gray-600 */
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border-bottom: 3px solid #DC2626; /* Red Accent */
}

/* --- Hero Slideshow --- */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slideshow-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}
.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}
.slide-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}
.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
.indicator.active {
    background-color: white;
}


/* Components */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background-color: #DC2626;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #B91C1C; /* Darker Red */
}

.cta-button-outline {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    border: 2px solid #DC2626;
    color: #DC2626;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button-outline:hover {
    background-color: #DC2626;
    color: white;
}


.service-card, .blog-post {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover, .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

/* --- Popup / Modal --- */
#popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.8); /* gray-900 with opacity */
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
#popup-overlay.hidden {
    display: none;
}
#popup-content {
    position: relative;
    background: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
#popup-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 2.5rem;
    line-height: 1;
    border: none;
    background: none;
    cursor: pointer;
    color: #9CA3AF; /* gray-400 */
    transition: color 0.3s;
}
#popup-close:hover {
    color: #1F2937; /* gray-800 */
}
#popup-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #DC2626;
}
#popup-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #DC2626;
    margin-bottom: 1rem;
}
#popup-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #4B5563; /* gray-600 */
}


/* --- Responsive Design --- */

/* Desktop Layout */
@media (min-width: 1024px) {
    .page-content-split {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Tablet & Mobile Layout */
@media (max-width: 1023px) {
    #side-nav {
        transform: translateX(-100%); /* Hide nav off-screen */
    }
    .page {
        padding-left: 5vw; /* Adjust padding since nav is hidden */
        align-items: flex-start; /* Align content to the top */
        padding-top: 10vh; /* Add some space from the top */
    }
    .page-title {
        font-size: 2.5rem;
    }
    .text-content p {
        font-size: 1rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

