/* ============================================
   BEAUTE DU DESERT — MINIMALIST DESIGN
   ============================================ */

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

:root {
    --sand: #F0E8DA;
    --light-gray: #F7F5F2;
    --charcoal: #2C2C2C;
    --gold: #C4A35A;
    --white: #FFFFFF;
    --border: #E0DCD6;
    --text-light: #6B6560;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background-color: var(--light-gray);
}

.section-title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    color: var(--charcoal);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-weight: 300;
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links li a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    transition: color 0.3s ease;
    position: relative;
}

.navbar:not(.scrolled) .nav-links li a {
    color: var(--white);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border);
    padding: 4px 12px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color 0.3s ease;
    color: var(--charcoal);
}

.navbar:not(.scrolled) .lang-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.lang-toggle:hover {
    border-color: var(--gold);
}

.lang-option {
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.lang-option.active {
    opacity: 1;
}

.lang-separator {
    opacity: 0.3;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--charcoal);
    transition: all 0.3s ease;
}

.navbar:not(.scrolled) .mobile-toggle span {
    background-color: var(--white);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    max-width: 700px;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 40px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 3.2rem;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 36px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* --- TOUR CARDS --- */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tour-card {
    border: 1px solid var(--border);
    padding: 32px 28px 28px;
    position: relative;
    background: var(--white);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-2px);
}

.tour-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--gold);
}

.tour-header {
    margin-bottom: 20px;
}

.tour-header h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.tour-duration {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tour-features {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tour-features li {
    font-size: 0.88rem;
    color: var(--text-light);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.5;
}

.tour-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 4px;
    height: 1px;
    background-color: var(--gold);
}

.tour-pricing {
    margin-top: auto;
}

.tour-pricing .price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 0.88rem;
}

.tour-pricing .price-row span:first-child {
    color: var(--text-light);
}

.tour-pricing .price {
    font-weight: 400;
    color: var(--charcoal);
}

.tour-pricing .price small {
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-light);
}

.tours-note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* --- PRICING TABLE --- */
.table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pricing-table thead th {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--charcoal);
}

.pricing-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 300;
    color: var(--charcoal);
}

.pricing-table tbody td small {
    color: var(--text-light);
    font-size: 0.78rem;
}

.pricing-table tbody tr:last-child td {
    border-bottom: 1px solid var(--charcoal);
}

/* --- PRACTICAL INFO --- */
.practical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.practical-card {
    padding: 36px 32px;
    border: 1px solid var(--border);
    background: var(--white);
}

.practical-card h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.practical-card li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 6px 0 6px 16px;
    position: relative;
    line-height: 1.5;
}

.practical-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 4px;
    height: 1px;
    background-color: var(--gold);
}

/* --- BIVOUAC --- */
.bivouac-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.bivouac-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.bivouac-details ul li {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 10px 0 10px 20px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.bivouac-details ul li:last-child {
    border-bottom: none;
}

.bivouac-details ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 6px;
    height: 1px;
    background-color: var(--gold);
}

/* --- GALLERY --- */
.gallery-grid {
    columns: 3;
    column-gap: 16px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 16px;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.85;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 200;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--charcoal);
    cursor: pointer;
    font-weight: 200;
    line-height: 1;
    padding: 12px;
    transition: color 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--charcoal);
}

.contact-item p a {
    color: var(--charcoal);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.contact-item p a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-whatsapp {
    background: transparent;
    border: 1px solid #25D366;
    color: #25D366;
    text-align: center;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: var(--white);
}

.contact-social {
    display: flex;
    gap: 20px;
}

.contact-social a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.contact-social a:hover {
    color: var(--gold);
}

/* --- CONTACT FORM --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 0.9rem;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6560' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 8px;
}

/* --- FOOTER --- */
.footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 16px;
    opacity: 0.6;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.04em;
}

/* --- SCROLL ANIMATIONS --- */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bivouac-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gallery-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .hero-logo {
        height: 60px;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.3s ease;
        box-shadow: -1px 0 0 var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li a {
        color: var(--charcoal) !important;
        font-size: 0.85rem;
    }

    .lang-toggle {
        color: var(--charcoal) !important;
        border-color: var(--border) !important;
    }

    .tours-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .practical-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    .pricing-table {
        font-size: 0.8rem;
    }

    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 10px 10px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.88rem;
        margin-bottom: 40px;
    }

    .container {
        padding: 0 16px;
    }

    .tour-card {
        padding: 24px 20px 20px;
    }

    .gallery-grid {
        columns: 1;
    }
}
