/* --- COLOR PALETTE & RESET --- */
:root {
    --bg-primary: #FAF9F6; /* Alabaster Off-White */
    --bg-secondary: #EAE6DF; /* Oat Milk */
    --text-color: #2C2C2C; /* Soft Charcoal */
    --accent-color: #B5A898; /* Warm Mocha */
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- PREMIUM PRE-LOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Stays above everything */
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 1.5rem;
    letter-spacing: 5px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--text-color);
    animation: pulseFade 2s infinite ease-in-out;
}

.loader-bar {
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    margin: 0 auto;
    animation: growBar 1.5s forwards ease-in-out;
}

/* Animations */
@keyframes pulseFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes growBar {
    from { width: 0; }
    to { width: 150px; }
}

/* Class to hide the loader via JS */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- STICKY NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Soft shadow for depth */
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.brand-link {
    font-weight: bold;
    border-bottom: 1px solid var(--accent-color);
}

/* --- HAMBURGER ICON (Hidden on Desktop) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes text left, image right */
    gap: 40px; /* Space between text and image */
    background-color: var(--bg-secondary);
    padding: 60px 5%; /* Adds breathing room */
}

.hero-content {
    flex: 1; /* Takes up half the space */
    max-width: 500px;
    text-align: left; /* Left-aligned text feels very editorial */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.cta-btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--text-color);
    color: var(--bg-primary);
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px); /* Slight lift effect */
}

.hero-image {
    flex: 1; /* Takes up the other half of the space */
    display: flex;
    justify-content: flex-end; /* Pushes the image to the far right */
}

.hero-image img {
    max-width: 100%;
    max-height: 65vh; /* Prevents the image from becoming massively tall */
    object-fit: cover;
    border-radius: 8px; /* Soft, premium corners */
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* A beautiful, soft drop shadow */
}

/* --- MOBILE RESPONSIVENESS FOR HERO --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column-reverse; /* Stacks image on top of text on phones */
        text-align: center;
        margin-top: 20px;
    }

    .hero-content {
        text-align: center; /* Centers text for mobile readability */
    }

    .hero h1 {
        font-size: 2.5rem; /* Slightly smaller for mobile screens */
    }

    .hero-image {
        justify-content: center;
        width: 100%;
    }
}

/* --- SECTIONS SPACING --- */
section {
    padding: 80px 5%;
    text-align: center;
}

section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

/* --- YOUTUBE HUB --- */
.video-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* This ensures they drop to the next line on mobile phones */
    margin-top: 30px;
    max-width: 1200px; /* Wider max-width to fit 3 videos side-by-side */
    margin-left: auto;
    margin-right: auto;
}

.video-item {
    flex: 1 1 300px; /* Tells the video to grow/shrink, but try to stay around 300px wide */
    max-width: 400px;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16/9; /* Keeps the perfect YouTube rectangle */
    border: none;
    border-radius: 8px; /* Soft rounded corners for a premium UI feel */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Very soft shadow behind the video */
}

/* --- LIFESTYLE GALLERY (FLEXBOX) --- */
.gallery-section {
    background-color: var(--bg-secondary);
}

.flex-gallery {
    display: flex;
    flex-wrap: wrap; /* Allows images to drop to the next line on small screens */
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 300px; /* Grow, shrink, base width 300px */
    max-width: 400px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02); /* Slight zoom on hover for a premium feel */
}

/* --- CONTACT FORM --- */
.booking-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-form input, .booking-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: transparent;
    font-family: var(--font-main);
}

.booking-form input:focus, .booking-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Show the hamburger icon */
    .menu-toggle {
        display: flex; 
    }

    /* 2. Turn the nav links into a slide-out menu */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Pushes it exactly below the navbar */
        left: -100%; /* Hides it off the left side of the screen */
        width: 100%;
        background-color: var(--bg-primary);
        text-align: center;
        transition: left 0.4s ease; /* Smooth sliding animation */
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    /* 3. When the 'active' class is added by JS, slide it in */
    .nav-links.active {
        left: 0; 
    }

    /* Space out the links so they are easy to tap on a phone */
    .nav-links li {
        margin: 15px 0;
    }

    /* Hero adjustments from earlier */
    .hero {
        flex-direction: column-reverse; 
        text-align: center;
        margin-top: 20px;
    }

    .hero-content {
        text-align: center; 
    }

    .hero h1 {
        font-size: 2.5rem; 
    }

    .hero-image {
        justify-content: center;
        width: 100%;
    }
}

/* --- FOOTER & SOCIALS --- */
.footer {
    background-color: var(--bg-primary);
    padding: 60px 5% 40px;
    text-align: center;
    border-top: 1px solid var(--bg-secondary);
}

.footer h3  {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.social-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--text-color); /* Makes the SVGs match your dark charcoal text color */
    transition: fill 0.3s ease, transform 0.3s ease; /* Smooth animation setup */
}

/* The smooth hover animation */
.social-icon:hover svg {
    fill: var(--accent-color);
    transform: translateY(-4px); /* Gently pushes the icon upward on hover */
}

.copyright {
    font-size: 0.85rem;
    color: #888;
    margin-top: 20px;
}

.copyright a {
    text-decoration: none; /* Removes the ugly default underline */
    color: inherit; /* Makes the link the same color as the text initially */
    transition: color 0.3s ease; /* Smooth transition for the hover effect */
}

.copyright span {
    font-weight: 500; /* Makes your studio name slightly bolder */
    color: var(--text-color); /* Uses your soft charcoal color */
    border-bottom: 1px solid transparent; /* Prepare for a custom underline on hover */
    padding-bottom: 2px;
}

/* --- HOVER EFFECT FOR YOUR BRAND --- */
.copyright a:hover span {
    color: var(--accent-color); /* Changes to your warm mocha color on hover */
    border-bottom: 1px solid var(--accent-color); /* Adds a thin, elegant underline */
}

/* --- PAGINATION CONTROLS --- */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 24px;
    background-color: var(--text-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
}

/* Grays out the button when there are no more pages */
.page-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#page-info {
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.95rem;
}