/* 1. Basic Reset to remove default browser margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

/* 2. The Hero Section (Full Screen Background) */
.hero {
    height: 100vh; /* 100vh means 100% of the viewport/screen height */
    width: 100%;
    
    /* Temporary placeholder image. Swap this URL later! */
    background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 3. The Header Layout */
header {
    position: fixed; /* Changed from absolute! This makes it follow you. */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    z-index: 999; /* Forces the header to sit above all other content */
    transition: background-color 0.4s ease, padding 0.4s ease; /* Smooth fade effect */
}

/* --- THE SCROLLED STATE --- */

/* When you scroll down, the header gets a solid white background */
header.scrolled {
    background-color: #ffffff;
    padding: 20px 50px; /* Shrinks the height slightly so it takes up less screen space */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Adds a very soft shadow so it pops off the page */
}

/* Flips the logo and the navigation links to black */
header.scrolled .logo a,
header.scrolled nav a {
    color: #000000;
}

/* Flips the hamburger lines to black for mobile */
header.scrolled .hamburger .bar {
    background-color: #000000;
}

/* 4. Logo Styling */
.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 4px; /* Gives it that elegant, spaced-out look from your picture */
    text-transform: uppercase;
}

/* 5. Navigation Links */
nav ul {
    display: flex;
    list-style: none;
    gap: 40px; /* Space between the three links */
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease; /* Smooth fade effect when hovered */
}

/* --- HAMBURGER ICON STYLES --- */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    z-index: 100; /* Keeps it above the slide-down menu */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 1px;
    margin: 6px auto;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Hide the 'Home' link on desktop since the logo acts as home */
.mobile-only {
    display: none;
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #f9f8f6; /* That same soft off-white */
    width: 100%;
    padding: 25px 50px;
    
    /* If you want a subtle line at the top of the footer like the picture, uncomment the next line */
    /* border-top: 1px solid #e0e0e0; */
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Spreads the 3 items evenly across the bar */
    align-items: center;
    max-width: 1200px; /* Keeps it from stretching too far on massive monitors */
    margin: 0 auto; /* Centers the content block */
}

.footer-link, .footer-text {
    color: #333333;
    text-decoration: none;
    font-size: 0.85rem; /* Keeps it small and subtle */
    letter-spacing: 1px;
}

/* --- CENTER-OUT UNDERLINE ANIMATION --- */

/* 1. Prepare the text links to hold the line (Excluding the icon) */
nav a:not(.nav-icon-link), .footer-link {
    position: relative; 
    text-decoration: none; 
}

/* 2. Draw the invisible line */
nav a:not(.nav-icon-link)::after, .footer-link::after {
    content: ''; 
    position: absolute;
    width: 100%;
    height: 1px; 
    bottom: -4px; 
    left: 0;
    background-color: currentColor; 
    transform: scaleX(0); 
    transform-origin: center; 
    transition: transform 0.3s ease; 
}

/* 3. Trigger the line on hover */
nav a:not(.nav-icon-link):hover::after, .footer-link:hover::after {
    transform: scaleX(1); 
}

/* --- STYLING FOR THE NEW INSTAGRAM ICON --- */
.nav-icon {
    width: 20px; /* Adjust this number once you drop your icon in! */
    height: auto;
    vertical-align: middle; /* Keeps it centered with the text */
    transition: opacity 0.3s ease;
}

/* A simple fade effect for the icon since it doesn't get the underline */
.nav-icon-link:hover .nav-icon {
    opacity: 0.6; 
}

/* --- MOBILE RESPONSIVENESS (Media Query) --- */
@media (max-width: 768px) {
    
    /* 1. Show hamburger, hide standard nav layout */
    .hamburger {
        display: block;
        margin-left: auto; /* This pushes it to the far right! */
    }
    
    nav ul {
        display: flex;
    }

    .mobile-only {
        display: block;
    }

    /* 2. The Slide-Down Menu Overlay */
    .nav-menu {
        position: fixed;
        top: -120vh; /* Hides it completely off the top of the screen */
        left: 0;
        width: 100%;
        height: 40vh;
        background-color: #f9f8f6; /* The off-white from the screenshot */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: top 0.4s ease; /* The smooth sliding animation */
        gap: 25px;
        z-index: 99;
        padding-top: 50px;
    }

    /* When the menu is active, slide it down */
    .nav-menu.active {
        top: 0; 
    }

    .nav-menu a {
        color: #000000; /* Black text for the open menu */
        font-size: 1.5rem;
    }

    /* --- THE "X" ANIMATION & COLOR FLIP --- */
    
    /* When header gets the 'nav-open' class, turn logo and hamburger black */
    header.nav-open .logo a {
        color: #000000;
        position: relative;
        z-index: 100;
    }

    header.nav-open .hamburger .bar {
        background-color: #000000;
    }

    /* Animate the 3 lines into an X */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0; /* Hide the middle line */
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile Footer Adjustments */
    .footer-content {
        flex-direction: column;
        gap: 15px; /* Adds space between the stacked items */
        text-align: center;
    }
}