/* --- Google Fonts & Icons --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* --- CSS Variables --- */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #F0F8FF; /* Light Alice Blue */
    --dark-color: #2c3e50; /* Dark Slate Gray */
    --light-color: #ffffff;
    --gray-color: #7f8c8d;
    --success-color: #27ae60; /* Green for CTA */
    --font-family: 'Poppins', sans-serif;
}

/* --- Global Resets & Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
}

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

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    color: var(--light-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.1rem; /* Increased for better legibility */
}

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

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--success-color);
    color: var(--light-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: #2ecc71;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Header & Navigation (UPDATED) --- */
.main-header {
    background-color: transparent; /* Start transparent */
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent scrolled background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--light-color);
    transition: color 0.3s ease;
    z-index: 1002;
}

.main-header.scrolled .nav-toggle {
    color: var(--dark-color);
}

.nav-toggle:hover {
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.header-contact a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.main-header.scrolled .header-contact a {
    color: var(--dark-color);
}

.header-contact a:hover {
    color: var(--primary-color);
}

/* --- Mobile Navigation Overlay (NEW) --- */
.mobile-nav-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 30, 50, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-nav-overlay.active {
    display: flex;
    opacity: 1;
}

.nav-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.mobile-main-nav ul {
    list-style: none;
    text-align: center;
}

.mobile-main-nav ul li {
    margin: 25px 0;
}

.mobile-main-nav ul li a {
    color: var(--light-color);
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-main-nav ul li a:hover {
    color: var(--primary-color);
}


/* --- Hero Section (UPDATED & FIXED) --- */
#home {
    min-height: 100vh;
    background-image: url('images/hero2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start; /* EDITED: Changed from center to fix positioning */
    justify-content: center;
    text-align: center;
    padding: 350px 20px 60px; /* EDITED: Changed top padding for robust spacing */
    transition: padding-top 0.3s ease; /* Added for smooth transition on resize */
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 30, 50, 0.35);
    z-index: 1;
}

.hero-logo-container {
    position: absolute;
    top: 100px; /* Positioned below the header */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.35);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    visibility: visible;
}

.hero-logo-container.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -200%); /* Moves it up and out of view */
}

.hero-logo-container img {
    width: 600px;
    max-width: 80vw;
    height: auto;
    display: block;

}

#home .hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 40px;
    margin-top: 0; /* EDITED: Removed margin-top, now controlled by parent padding */
    background: rgba(10, 30, 50, 0.65);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(50px);
}

#home .subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--light-color);
    opacity: 0.9;
    margin-bottom: 30px;
}

#home .description {
    font-size: 1.2rem;
    color: var(--light-color);
    opacity: 0.8;
    margin-bottom: 40px;
}

#home .opening-hours {
    margin-top: 40px;
    font-weight: 600;
    color: var(--light-color);
}


/* --- Services Section (Combined) --- */
#services {
    background-color: var(--secondary-color);
}

.services-subsection {
    padding: 50px 0;
    border-bottom: 1px solid #e0e0e0;
}

#services .container > .services-subsection:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

#services .container > .services-subsection:first-of-type {
    padding-top: 20px;
}

.services-subsection h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-align: left;
}

.services-subsection h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.before-after-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.image-box {
    text-align: center;
    flex: 1;
    min-width: 280px;
}
.image-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.image-box h4 {
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark-color);
}
.service-options-list {
    list-style: none;
    padding-left: 0;
    font-size: 1.1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.service-options-list li {
    padding: 15px;
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-options-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.service-options-list .fa-check {
    color: var(--success-color);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* --- About Section --- */
#about { background-color: var(--light-color); }
.about-content { max-width: 900px; margin: 0 auto; text-align: center; }

.partners {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-color);
}

.partners p {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.logo-container img {
    max-height: 50px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Gallery Section --- */
#gallery { background-color: var(--secondary-color); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Added for clickability indication */
    aspect-ratio: 4 / 3; /* Enforces a consistent 4:3 aspect ratio */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.1); }


/* --- Contact Section --- */
#contact { background-color: var(--light-color); }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: flex-start; }
.contact-form h3, .contact-info h3 { font-size: 1.8rem; color: var(--dark-color); margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info .info-item { margin-bottom: 25px; display: flex; align-items: flex-start; }
.contact-info .icon { font-size: 1.5rem; color: var(--primary-color); margin-right: 20px; width: 30px; text-align: center; }
.contact-info .info-details h4 { margin-bottom: 5px; font-size: 1.1rem; color: var(--dark-color); font-weight: 600; }
.contact-info .info-details p, .contact-info .info-details a { color: var(--gray-color); margin-bottom: 0; line-height: 1.5; }
.contact-info .info-details a:hover { color: var(--primary-color); }

/* --- Map Section --- */
#map-section {
    padding: 0;
    width: 100%;
    height: 450px;
}
#map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* --- Image Modal Styles (Lightbox) --- */
.image-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
}

.modal-image-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    animation-name: zoomIn;
    animation-duration: 0.5s;
}

@keyframes zoomIn {
    from { transform: scale(0.2); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
    z-index: 2001;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: #bbb;
    text-decoration: none;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color); /* UPDATED */
    color: var(--light-color);
    padding: 60px 0 30px;
    text-align: center;
}
.footer-logo img {
    width: 220px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1); /* UPDATED: Makes dark logo white */
}
.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}
.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
    display: inline-block;
}
.footer-section p, .footer-section a {
    color: var(--light-color);
    opacity: 0.9;
    margin-bottom: 8px;
    display: block;
    transition: all 0.3s ease;
}
.footer-section a:hover {
    color: #81c7d9; /* UPDATED: Better contrast on dark background */
    opacity: 1;
}
.copyright {
    margin-top: 0;
    padding-top: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7); /* UPDATED */
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 10px;
}
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--light-color);
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Responsive Design (UPDATED & FIXED) --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    #home .hero-content {
        margin-top: 0; /* EDITED */
    }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    #map-section { height: 350px; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-section { text-align: center; }
    .social-icons { justify-content: center; }

    .header-contact {
        gap: 10px;
        font-size: 0.8rem; /* Make contact info smaller */
    }
    .header-contact .fas {
        display: none; /* Hide icons on small screens to save space */
    }
    
    #home {
        padding-top: 280px; /* EDITED: Adjust padding for smaller logo on mobile */
    }

    #home .hero-content {
        margin-top: 0; /* EDITED */
        padding: 20px;
    }
}