/* ==========================================================================
   SNAPSHOT WEDDINGS - MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Colors - Luxury Palette */
    --color-primary: #111111;
    --color-secondary: #d4af37; /* Metallic Gold accent */
    --color-secondary-dark: #b8962e;
    --color-bg-light: #ffffff;
    --color-bg-dark: #000000;
    --color-text-main: #222222;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-glass: rgba(255, 255, 255, 0.98);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 15px 45px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(10px);
    
    /* Spacing */
    --container-width: 120rem;
    --section-padding: 8rem;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-main);
    background: linear-gradient(135deg, #ffffff 0%, #fffaf0 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- REUSABLE COMPONENTS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 3.2rem;
}

.grid {
    display: grid;
    gap: 6.4rem;
}

.grid--2-cols { grid-template-columns: repeat(2, 1fr); }
.grid--3-cols { grid-template-columns: repeat(3, 1fr); }
.grid--4-cols { grid-template-columns: repeat(4, 1fr); }

.u-margin-bottom-small { margin-bottom: 2.4rem; }
.u-margin-bottom-medium { margin-bottom: 3.2rem; }
.u-margin-bottom-large { margin-bottom: 5.4rem; }
.u-text-center { text-align: center; }
.u-items-center { align-items: center; }

.heading-secondary {
    font-family: var(--font-heading);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2.4rem;
    color: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: 1.6rem 3.2rem;
    border-radius: 100px;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    transition: all 0.3s;
}

.btn--primary:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn--secondary {
    border: 2px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    transition: all 0.3s;
}

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

.btn--full {
    width: 100%;
    padding: 1.8rem;
    font-size: 1.8rem;
    border-radius: 4px;
}

.contact__info .heading-secondary {
    font-size: 5.2rem;
    margin-bottom: 4rem;
}

.section-text {
    font-size: 1.8rem;
    line-height: 1.8;
}

.contact__location-link {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: all 0.3s;
}

.contact__location-link:hover {
    color: var(--color-secondary-dark);
}

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

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000; /* Ensure navbar is above everything including overlay */
    padding: 2.4rem 4.8rem;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar--scrolled {
    padding: 1.6rem 4.8rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.container--nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 140rem;
    margin: 0 auto;
}

.navbar__logo img { 
    height: 5.5rem; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0) invert(1); /* Sharp white logo */
    image-rendering: -webkit-optimize-contrast;
}

.navbar--scrolled .navbar__logo img {
    height: 4.8rem;
    filter: brightness(0); /* Sharp black logo on white background */
}

.navbar__list {
    display: flex;
    gap: 3.2rem;
}

.navbar__link {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    transition: color 0.3s;
}

.navbar--scrolled .navbar__link {
    color: var(--color-primary);
}

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

.navbar__link:hover::after { width: 100%; }

.navbar__close { display: none; }

.navbar__toggle { 
    display: none; 
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 1rem;
    z-index: 5000; /* Ensure this is the absolute top */
}

.navbar__toggle-icon {
    display: block;
    width: 2.8rem;
    height: 2px;
    background-color: #fff;
    position: relative;
    transition: all 0.3s;
}

.navbar--scrolled .navbar__toggle-icon {
    background-color: var(--color-primary);
}

.navbar__toggle-icon::before,
.navbar__toggle-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: inherit;
    left: 0;
    transition: all 0.3s;
}

.navbar__toggle-icon::before { top: -8px; }
.navbar__toggle-icon::after { top: 8px; }

.navbar__toggle.active .navbar__toggle-icon { background-color: transparent; }
.navbar__toggle.active .navbar__toggle-icon::before,
.navbar__toggle.active .navbar__toggle-icon::after {
    background-color: var(--color-primary) !important;
}
.navbar__toggle.active .navbar__toggle-icon::before { transform: rotate(45deg); top: 0; }
.navbar__toggle.active .navbar__toggle-icon::after { transform: rotate(-45deg); top: 0; }

/* --- HERO --- */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 7.4rem;
    line-height: 1.1;
    margin-bottom: 2.4rem;
}

.hero__subtitle {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-white); /* Changed to white for better visibility */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 3.2rem;
}

.hero__cta { display: flex; gap: 2.4rem; }

.hero__awards {
    display: flex;
    gap: 4.8rem;
}

.award-item {
    text-align: center;
}

.award-item__icon {
    width: 6.4rem;
    filter: invert(1);
    margin-bottom: 1.2rem;
}

.award-item__text {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* --- SECTION GENERAL --- */
.section { padding: var(--section-padding) 0; }

/* --- ABOUT --- */
.about__img {
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.about__features {
    margin-top: 3.2rem;
}

.about__features li {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.about__features li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: bold;
}

/* --- GALLERY --- */
.gallery { background-color: #f8f8f8; }

.gallery__filters {
    display: flex;
    justify-content: center;
    gap: 2.4rem;
    margin-bottom: 4.8rem;
    flex-wrap: wrap;
}

.gallery__filter-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.gallery__filter-btn.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 1.6rem;
    transition: opacity 0.4s ease;
}

.gallery__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1/1) {
    .gallery__item {
        height: 0;
        padding-top: 100%;
    }
    .gallery__item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s;
}

.gallery__item:hover img { transform: scale(1.1); }

.gallery__item:hover .gallery__overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery__title { font-family: var(--font-heading); font-size: 2rem; color: #fff; }
.gallery__category { font-size: 1.2rem; color: var(--color-secondary); text-transform: uppercase; }

/* --- CONTACT --- */
.contact { background-color: var(--color-bg-dark); color: var(--color-white); }
.contact .heading-secondary { color: var(--color-white); }

.contact__heading {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 2.4rem;
    color: var(--color-secondary);
}

.contact__details p {
    font-size: 1.8rem; /* Matches section-text size */
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.contact__details a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact__form {
    display: grid;
    gap: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.4rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--color-white);
    font-family: var(--font-body); /* Changed back to body font */
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255,255,255,0.07);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    font-family: var(--font-body); /* Changed back to body font */
    font-style: normal; /* Removed italic */
    font-size: 1.6rem;
    color: rgba(255,255,255,0.3);
}

.contact__map {
    height: 100%;
    min-height: 250px;
}

/* --- FOOTER --- */
.footer {
    padding: 5rem 0 0 0;
    background-color: #080808;
    color: #ffffff;
}

.footer__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4.8rem;
    padding-bottom: 3.2rem;
}

.footer__logo-img {
    height: 6rem;
    margin-bottom: 2.4rem;
    transition: all 0.3s;
    filter: brightness(0) invert(1); 
    image-rendering: -webkit-optimize-contrast;
}

.footer__description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #888;
    max-width: 35rem;
}

.footer__heading {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.4rem;
    color: #ffffff;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.footer__links a {
    color: #777;
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

.footer__social-links {
    display: flex;
    gap: 2rem;
}

.footer__social-links a {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.22rem;
    color: #ffffff;
    transition: all 0.3s;
}

.footer__social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.02);
    padding: 2.4rem 0;
}

.footer__bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    text-align: center;
}

.footer__copy {
    font-size: 1.3rem;
    color: #555;
}

.footer__attribution {
    font-size: 1.3rem;
    color: #555;
}

.footer__attribution-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer__attribution-link:hover {
    text-decoration: underline;
}

/* --- MODAL --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000; /* Higher than navbar (5000) to avoid overlap */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.modal.active { opacity: 1; visibility: visible; }

.modal__container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4.8rem;
}

.modal__close {
    position: absolute;
    top: 3.2rem;
    right: 4.8rem;
    font-size: 4rem;
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 2100;
    transition: all 0.3s;
}

.modal__close:hover {
    background: #ff4d4d;
    transform: rotate(90deg);
}

.modal__content {
    max-width: 120rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    align-items: center;
}

.modal__img {
    max-height: 70vh;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal__details {
    text-align: center;
    color: #fff;
}

.modal__title { font-family: var(--font-heading); font-size: 3.2rem; margin-bottom: 0.8rem; }
.modal__description { font-size: 1.6rem; line-height: 1.6; color: #ccc; max-width: 60rem; }

.modal__controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 3.2rem;
    pointer-events: none;
}

.modal__nav {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.4rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.modal__nav:hover { 
    background: var(--color-secondary); 
    border-color: var(--color-secondary);
    transform: scale(1.1);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 75em) { /* 1200px */
    .hero__title { font-size: 6.2rem; }
    .grid--2-cols { gap: 4.8rem; }
}

@media (max-width: 59em) { /* 944px */
    .grid--2-cols, .grid--3-cols { grid-template-columns: 1fr; }
    .hero__content { flex-direction: column; align-items: flex-start; gap: 4.8rem; }
    
    .navbar__toggle { display: block; }
    
    .navbar__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 30rem;
        max-width: 85%;
        height: 100vh;
        background: #ffffff; /* Explicit sharp white */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        padding: 10rem 4rem;
    }

    .navbar__menu.active { right: 0; }

    /* Hide the extra close button - we will use the transforming toggle only */
    .navbar__close {
        display: none !important;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.1); /* Very light dark tint */
        backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
        z-index: 4000; /* Behind navbar (5000) but above content */
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .navbar__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        width: 100%;
    }

    .navbar__link {
        color: var(--color-primary);
        font-size: 2.4rem;
        font-family: var(--font-heading); /* Playfair Display for classier look */
        font-weight: 600;
        letter-spacing: 1px;
    }

    .navbar__link::after {
        display: none; /* Cleaner on mobile */
    }

    .navbar__link {
        color: var(--color-primary);
        font-size: 2.2rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__social-links {
        justify-content: center;
    }
}

@media (max-width: 37em) { /* 592px */
    .container { padding: 0 1.6rem; }
    .navbar, .navbar--scrolled { padding: 1.6rem 2.4rem; }

    .hero__title { font-size: 3.8rem; }
    .hero__subtitle { font-size: 1.4rem; letter-spacing: 2px; }
    .hero__cta { flex-direction: column; gap: 1.6rem; }
    .btn { width: 100%; text-align: center; }

    .section { padding: 6rem 0; }
    .heading-secondary { font-size: 3.2rem; }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .gallery__overlay { padding: 1.6rem; }
    .gallery__title { font-size: 1.4rem; }
    .gallery__category { font-size: 1rem; }
    
    .about__img { width: 100%; height: 30rem; object-fit: cover; }

    .modal__container { padding: 2rem; }
    .modal__close { top: 1rem; right: 1rem; width: 4.4rem; height: 4.4rem; font-size: 3rem; }
    .modal__nav { width: 4.4rem; height: 4.4rem; font-size: 20px; }
    .modal__controls { padding: 0 1rem; }
}
