/* Global Styles */
:root {
    --primary-color: #0A192F;
    /* Deep Navy Blue */
    --secondary-color: #C5A059;
    /* Muted Gold */
    --accent-color: #E6D5B8;
    /* Light Sand/Gold */
    --text-color: #333333;
    --light-text: #F4F4F4;
    --white: #FFFFFF;
    --bg-alt: #F8F5F1;
    /* Very light warm beige */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* For absolute centering if needed, but flex gap works best */
}

.social-icons-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    fill: var(--secondary-color);
    transform: translateY(-2px);
}

.footer .social-icon {
    fill: var(--white);
    margin: 0 10px;
}

.footer .social-icons-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.logo {
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 100px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border: 2px solid var(--primary-color);
    border-radius: 0;
}

.btn-contact:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
}

.btn-contact::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 999;
    padding-top: 100px;
    transition: var(--transition);
    text-align: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list li {
    margin: 2rem 0;
}

.mobile-nav-list a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    /* Offset fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #b08d4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 1.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--bg-alt);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Component: Carousel */
.gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    /* Slight rounding for elegance */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    /* 3:2 Aspect Ratio */
}

.carousel-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Text Content */
.text-content h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.text-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.text-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

/* Testimonials */
.testimonial-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0;
    overflow: hidden;
    padding: 0 40px;
    /* Space for buttons */
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    flex: 0 0 100%;
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 10;
}

.testimonial-btn:hover {
    color: var(--primary-color);
}

.prev-test {
    left: 0;
}

.next-test {
    right: 0;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--secondary-color);
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3,
.footer h4 {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    /* Show social icons on mobile but make them compact */
    .social-icons-header {
        gap: 0.6rem;
    }

    .social-icons-header .social-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        /* Or center? Left is usually better for reading */
    }

    .section-windows .grid-layout {
        display: flex;
        flex-direction: column-reverse;
        /* Put gallery on top or keep text top? */
    }

    /* Reordering for mobile: Image then Text looks nice usually, but let's stick to simple stacking */

}

/* Gallery Grid Page Styles */
.page-hero {
    height: 50vh;
    min-height: 400px;
}

/* Project Sections */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-section {
    background: var(--bg-alt);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.project-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.gallery-category {
    margin-bottom: 1.5rem;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding-bottom: 0.2rem;
    display: inline-block;
}

.before-after-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .before-after-wrapper {
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    /* Fixed height for uniformity */
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Responsive Grid */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}