/* --- CSS Variables --- */
:root {
    /* Blue and Red theme */
    /*--primary-color: #0d47a1;
    --secondary-color: #c62828;*/

    /* Green and brown theme */
    /*--primary-color: #2E7D32;
    --secondary-color: #8D6E63;*/

    /*Purple and silver*/
    --primary-color: #703090;
    --secondary-color: #a541d5;;

    --dark-gray: #333;
    --light-gray: #f4f4f4;
    --white-color: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- General & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white-color);
}

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--primary-color); }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }

section {
    padding: 60px 0;
}

/* --- Utility Classes --- */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c169ec;
}

/* --- Header --- */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex; /* Aligns image and text side-by-side */
    align-items: center; /* Vertically centers the image with the text block */
    gap: 0.75em; /* Creates space between the image and the text */
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.1rem; /* Adjust base font size as needed */
    color: var(--dark-gray);
    font-weight: 700;
}

.logo img {
    height: 45px; /* Set the height of your SVG logo */
    width: auto;
}

.logo-text-wrapper {
    line-height: 1.2;
}

.logo-sub {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
}

/* Hamburger Menu Styles */
.nav-toggle {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
}

.nav__list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav__item {
    margin-left: 2rem;
}

.nav__link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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


/* Mobile Styles (up to 767px) */
@media (max-width: 767px) {
    
    .nav {
        position: fixed;
        background: var(--dark-gray);
        color: var(--white-color);
        top: 0;
        right: 0;
        bottom: 0;
        left: 30%;
        z-index: 100;
        
        transform: translateX(100%);
        transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
    }
    
    .nav__list {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
        width: 100%;
    }
    
    .nav__item {
        margin: 0;
    }
    
    .nav__link {
        font-size: 1.5rem;
        color: var(--white-color);
    }

    .nav-open .nav {
        transform: translateX(0);
    }
    
    /* Hamburger Icon */
    .nav-toggle {
        display: block;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: .5em;
        position: absolute;
        right: 1em;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .hamburger {
        display: block;
        position: relative;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background: var(--primary-color);
        width: 2em;
        height: 3px;
        border-radius: 1em;
        transition: transform 250ms ease-in-out;
    }
    
    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
    }
    
    .hamburger::before { top: 6px; }
    .hamburger::after { bottom: 6px; }
    
    /* Hamburger animation to 'X' */
    .nav-open .hamburger {
        transform: rotate(.625turn);
    }
    
    .nav-open .hamburger::before {
        transform: rotate(90deg) translateX(-6px);
    }
    
    .nav-open .hamburger::after {
        opacity: 0;
    }
}

/* --- Hero Section --- */
/* Remove your old #hero styles and replace them with this entire block */
#hero {
    position: relative; /* Needed for positioning slides and content */
    height: 90vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden; /* Ensures slides don't spill out */
}

/* Adds the dark overlay so text is always readable */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1; 
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* All slides are invisible by default */
    transition: opacity 1.5s ease-in-out; /* The cross-fade effect */
}

.slide.active {
    opacity: 1; /* The active slide is visible */
}

.hero-content {
    position: relative; /* Keeps content on top of the overlay */
    z-index: 2;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* --- About Section --- */
#about {
    background-color: var(--light-gray);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

/* --- Services Section --- */
#services {
    text-align: center;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card h3 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* --- Contact Section --- */
#contact {
    background-color: var(--light-gray);
}

#contact h2, #contact p {
    text-align: center;
}

#contact form {
    max-width: 700px;
    margin: 30px auto 0;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact form button {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    #hero h1 { font-size: 2.8rem; }

    header .container {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul {
        padding: 0;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header nav ul li {
        margin-left: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Additions for New Sections --- */

/* Utility class for centered text */
.text-center {
    text-align: center;
}

/* --- Photo Gallery Section --- */
#gallery {
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

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

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white-color);
    padding: 20px 15px 15px;
    font-weight: 500;
    font-size: 1.1rem;
}


/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--primary-color);
    color: var(--white-color);
}

#testimonials h2 {
    color: var(--white-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
}

/* --- FAQ Section --- */
#faq {
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white-color);
    border-bottom: 1px solid #ddd;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 20px;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hide for Chrome/Safari */
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.7;
}

.faq-item:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.faq-item:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}