/* 1. Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Page Setup */
body, html {
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: white;
    /* CHANGED: Allows vertical scrolling for the footer while locking horizontal layout */
    overflow-x: hidden; 
}

/* NEW: Layout Wrapper to cleanly stack full-screen grid + footer */
.homepage-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 3. The 2x2 Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100vh;
    width: 100vw;
    gap: 20px;
    padding: 20px;
    position: relative;
    /* ADDED: Ensures the grid wrapper layout doesn't shrink */
    flex-shrink: 0; 
}

/* 4. Grid Items (The Curved Windows) */
.grid-item {
    position: relative;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 5. Image Styling */
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px; 
}

/* 6. Translucent 'Glass' Buttons */
.grid-btn {
    position: absolute;
    z-index: 10;
    padding: 16px 32px;
    background-color: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    text-transform: lowercase;
    font-size: 14px;
    letter-spacing: 0.12em;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.grid-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* 7. Center Logo - The Luxury Framed Anchor */
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background-color: white; 
    padding: 24px 70px; 
    border-radius: 12px; 
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Black Inner Outline */
.center-logo::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #000;
    border-radius: 8px;
}

.center-logo h1 {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase; 
    font-weight: 600; 
    font-size: 26px; 
    letter-spacing: 0.3em; 
    color: #000;
    white-space: nowrap;
    line-height: 1;
    margin-right: -0.3em; 
    position: relative;
    z-index: 2;
}

/* 8. Global Cleaned Footer Styles (Matching Weddings Exactly) */
.site-footer {
    display: block !important;
    position: relative; 
    z-index: 10; 
    background-color: #1a1a1a; 
    color: #b0b0b0; 
    padding: 20px 15px !important; /* Shaves the height right back down */
    font-size: 0.85rem; 
    font-family: sans-serif;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

/* Styled credit line */
.footer-credits {
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.3px;
    color: #b0b0b0; /* Base color */
}

/* This subtly accents the label 'Visuals by:' */
.footer-credits::first-line {
    color: #ffffff !important; 
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #ffffff;
}

.copyright {
    margin: 0;
}

/* Desktop alignment for a clean side-by-side row */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-bottom {
        flex-direction: row;
        width: auto;
        gap: 20px;
    }
}