/* LES DEUX ANCRES - MAIN STRUCTURE
   Core layout, navigation and global settings
*/

@import url('components.css'); /* Imports the modular components */

:root {
    --navy: #002344;
    --white: #ffffff;
    --sand: #f4f1ea;
    --gold: #c5a059;
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Playfair Display', serif;
    --hero-overlay: rgba(0, 35, 68, 0.45);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--navy);
    overflow-x: hidden;
}

/* 2. Navigation Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: var(--white);
    padding: 12px 8%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 3. Logo */
.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo {
    height: 120px;           /* Tall enough to read clearly */
    width: auto;
    display: block;
    transition: height 0.4s ease-in-out;
}

.navbar.scrolled .nav-logo {
    height: 100px;           /* Slightly smaller on scroll */
}

/* 4. Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
}

.navbar.scrolled .nav-links a {
    color: var(--navy);
    border-color: var(--navy);
}

.lang-switch {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--white) !important;
}

/* 5. Hero Layout - Fixed for Slider & Fonts */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy); 
    overflow: hidden; /* Prevents slide overflow */
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}

/* Ensure content stays on top and keeps its original styling */
.hero-content {
    position: relative;
    z-index: 5; 
    color: var(--white);
    padding: 0 5%;
}

/* Re-asserting original font styles just in case of conflict */
.hero-content h1 {
    font-family: var(--font-title) !important;
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-family: var(--font-main);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 45px;
}

/* Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: none;
    padding: 20px;
    cursor: pointer;
    font-size: 2rem;
    transition: 0.3s;
}
/* Target Slide 3 (hero-3.jpg) */
.hero-slider .slide:nth-child(3) {
    background-position: center 90%; /* Slightly lifted */
}

/* Target Slide 4 (hero-4.jpg) */
.hero-slider .slide:nth-child(4) {
    background-position: center 30%; /* More lifted than Slide 3 */
}
.slider-arrow:hover {
    color: var(--gold);
}

.prev { left: 30px; }
.next { right: 30px; }

/* 6. Layout Sections */
.section { padding: 120px 8%; }
.container { max-width: 1200px; margin: 0 auto; }
.bg-light { background-color: var(--sand); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    text-align: left;
}

.side-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 15px 15px 0px var(--sand);
}

/* 7. Footer */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 80px 8% 40px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.footer-info a { color: var(--gold); text-decoration: none; }

.copyright {
    margin-top: 50px;
    font-size: 0.7rem;
    opacity: 0.5;
    letter-spacing: 1px;
}

/* 8. Mobile Optimization */
@media (max-width: 900px) {
    .navbar {
        padding: 12px 5%;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-logo {
        height: 100px;
    }

    .navbar.scrolled .nav-logo {
        height: 60px;
    }

    .nav-links {
        gap: 5px;
        width: 100%;
        justify-content: center;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        font-size: 0.6rem;
        padding: 6px 8px;
        border: none !important;
        white-space: nowrap;
    }

    .lang-switch {
        padding: 4px 10px !important;
        margin-left: 5px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

/* --- MOBILE SPECIFIC SLIDE ALIGNMENT --- */
@media (max-width: 600px) {

    /* Slide 2: Shift left to see the subject */
    .hero-slider .slide:nth-child(2) {
        background-position: 30% center; /* Shows more of the left side */
    }

    /* Slide 3: Shift left significantly */
    .hero-slider .slide:nth-child(3) {
        background-position: 30% 15%; /* Shifted left AND kept the vertical lift from before */
    }

    /* Slide 4: Subtle shift left */
    .hero-slider .slide:nth-child(4) {
        background-position: 30% 20%; /* Slight shift left AND kept the vertical lift */
    }
}