/* --- RESET & VARIABLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #333333;
    --accent-color: #C5A059; /* Gold */
    --light-grey: #f4f4f4;
    --font-heading: 'Playfair Display', serif;
        --font-body: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--primary-color);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-heading); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}
/* Little gold line under titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}
.text-white { color: white; }

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: white;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Space between logo and text */
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none; /* In case you wrap it in an anchor */
    color: var(--primary-color);
}

.logo-img {
    height: 50px; /* Adjust size as needed */
}

.logo-text span { color: var(--accent-color); }

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover { color: var(--accent-color); }

.btn-contact {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white !important;
    border-radius: 4px;
}

.burger {
    display: none; /* Hidden on desktop */
}


/* --- HERO SECTION WITH SLIDER --- */
header {
    height: 100vh;
    position: relative; /* Needed to anchor the absolute elements inside */
    overflow: hidden;
}

/* The container for the images */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits behind the text */
}

/* Individual Slides */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 1.5s ease-in-out; /* Smooth fade duration */
}

/* Dark overlay so text is readable on any image */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% Black tint */
}

/* The class JS will add to make a slide visible */
.slide.active {
    opacity: 1;
}

/* The Text Content */
.hero-content {
    position: absolute;
    z-index: 2; /* Sits on top of images */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfectly centered */
    text-align: center;
    color: white;
    width: 90%; /* Prevent text hitting edges on mobile */
}

.hero-content h1 { 
    font-size: 4rem; 
    margin-bottom: 1rem; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p { 
    font-size: 1.2rem; 
    margin-bottom: 2rem; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Mobile text adjustment */
@media screen and (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
}



.cta-button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s;
}
.cta-button:hover { transform: scale(1.05); }

/* --- SECTIONS GENERAL --- */
.section-pad { padding: 5rem 5%; }
.bg-light { background-color: var(--light-grey); }
.bg-dark { background-color: var(--primary-color); }
.container { max-width: 1200px; margin: 0 auto; }

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-image img { width: 100%; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* --- SERVICES --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.card {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-10px); }
.card h3 { margin-bottom: 1rem; }

/* --- GALLERY GRID (MASONRY LOOK) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    overflow: hidden;
    cursor: pointer;
    height: 300px; /* Fixed height for uniformity */
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.1); }
.subtitle { text-align: center; margin-bottom: 2rem; color: #777; }

/* --- Gallery Album Styles --- */
.gallery-item {
    position: relative; /* Required for overlay positioning */
    cursor: pointer;
    overflow: hidden;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease; /* Smooth fade for hover effect */
}

/* On hover, fade out the overlay to show the image */
.gallery-item:hover .gallery-item-overlay {
    opacity: 0;
}

.gallery-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
}

/* --- Lightbox Navigation and Caption --- */
.lightbox .prev,
.lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
}

.lightbox .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    font-family: inherit;
}
.contact-form button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}
footer {
    text-align: center;
    padding: 2rem;
    background: #222;
    color: #888;
}

/* --- LIGHTBOX (POPUP) --- */
.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); 
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid white;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}

#caption {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    padding: 10px 0;
}


/* --- MOBILE RESPONSIVE --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh; /* A bit less than full screen */
        top: 8vh; /* Position below navbar */
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.5s ease-in;
    }
    .nav-links li {
        opacity: 0; /* Hidden for animation */
        margin: 1rem 0;
    }
    .nav-links li a {
        margin-left: 0; /* Reset margin for vertical layout */
    }
    .nav-active {
        transform: translateX(0%); /* Slide in */
    }

    .contact-badge {
        display: none;
    }

    .burger {
        display: block; /* Show burger on mobile */
        cursor: pointer;
    }
    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px;
        transition: all 0.3s ease;
    }
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .hero-content h1 { font-size: 2.5rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- SUB-PAGE HEADER --- */
.page-header {
    height: 50vh; /* Half height of home page */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.header-title {
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* --- LUXE CONTACT BADGE IN NAVBAR --- */
.logo {
    /* Ensures the logo text and the new badge can sit next to each other */
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between logo parts and the badge */
}

.contact-badge {
    /* Base styling for the "sticker" look */
    background-color: var(--accent-color); /* Gold color */
    color: var(--primary-color); /* Dark text on gold */
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 5px; /* Slightly rounded edges */
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap; /* Prevents the number from wrapping */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle lift */
    transition: background-color 0.3s;
}

.contact-badge:hover {
    background-color: #d8b45f; /* Slightly lighter gold on hover */
}

/* Media Query to hide the badge on standard mobile phones
   We'll let it show on tablets/desktops where there is enough room */
@media screen and (max-width: 768px) {
    .contact-badge {
        display: none; /* Hide the number when space is limited for the mobile menu */
    }
}