:root{
    --bg:#0b1710;
    --bg-light:#14241a;
    --card:#1b3022;
    --primary:#5a8f61;
    --primary-hover:#74ab7a;
    --text:#f3f4ef;
    --muted:#b6bdb7;
    --border:#314a39;
    --shadow:0 10px 30px rgba(0,0,0,.35);
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Segoe UI",sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
}

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

a{
    color:inherit;
    text-decoration:none;
}

.container{
    width:min(1200px,90%);
    margin:auto;
}

/* HERO */

.hero{
    min-height:100vh;
    background:
    linear-gradient(
        rgba(8,20,14,.65),
        rgba(8,20,14,.80)
    ),
    url("images/trava-les.jpg");

    background-size:cover;
    background-position:center center;
    background-attachment:fixed;

    display:flex;
    flex-direction:column;
}

.hero-content{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;

    padding:120px 20px;
}

.hero-content h1{
    font-size:clamp(3rem,8vw,6rem);
    margin-bottom:1rem;
    text-shadow:0 3px 15px rgba(0,0,0,.5);
}

.hero-text{
    font-size:1.3rem;
    max-width:700px;
    color:var(--muted);
}

.hero-buttons{
    display:flex;
    gap:20px;
    margin-top:40px;
    flex-wrap:wrap;
}

/* NAV */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 5%;

    background:rgba(11,23,16,.85);
    backdrop-filter:blur(10px);

    z-index:999;
}

.logo{
    font-size:1.3rem;
    font-weight:700;
    letter-spacing:1px;
}

.menu{
    display:flex;
    list-style:none;
    gap:30px;
}

.menu a{
    transition:0.3s;
}

.menu a:hover{
    color:var(--primary);
}

.hamburger{
    display:none;
    font-size:28px;
    border:none;
    background:none;
    color:white;
    cursor:pointer;
}

/* BUTTONS */

.btn{
    display:inline-block;
    padding:14px 28px;

    border-radius:30px;

    background:var(--primary);
    color:white;
    font-weight:600;

    transition:0.3s;
}

.btn:hover{
    background:var(--primary-hover);
    transform:translateY(-2px);
}

.btn-secondary{
    background:transparent;
    border:2px solid white;
}

.btn-secondary:hover{
    background:white;
    color:black;
}

/* CONTENT */

.section{
    padding:100px 0;
}

.dark{
    background:var(--bg-light);
}

.section h2{
    font-size:2.5rem;
    margin-bottom:30px;
    text-align:center;
}

.section p{
    margin-bottom:20px;
    color:#d8ddd8;
}

/* WOOD */

.wood-card{
    background:var(--card);
    border:1px solid var(--border);

    border-radius:20px;

    padding:40px;

    max-width:700px;

    margin:auto;

    box-shadow:var(--shadow);
}

.wood-card h3{
    margin-bottom:25px;
}

.wood-card ul{
    margin-bottom:30px;
    padding-left:25px;
}

.wood-card li{
    margin-bottom:12px;
}

/* GALLERY */

.gallery{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:25px;
}

.gallery img{
    height:260px;
    width:100%;
    object-fit:cover;

    border-radius:18px;
    cursor:pointer;

    transition:.4s;

    box-shadow:var(--shadow);
}

.gallery img:hover{
    transform:scale(1.03);
}

/* CONTACT */

.contact-grid{
    display:grid;
    grid-template-columns:
        1fr 1.2fr;

    gap:50px;
}

.contact-map{
    margin-top:40px;
}

.contact-map iframe{
    display:block;
    width:100%;
    height:380px;
    border:0;
    border-radius:12px;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.contact-form input,
.contact-form textarea,
.contact-form select{

    background:#162419;
    color:white;

    border:1px solid var(--border);

    border-radius:10px;

    padding:15px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus{
    outline:none;
    border-color:var(--primary);
}

/* FOOTER */

footer{
    background:#08110c;
    text-align:center;
    padding:40px 20px;

    border-top:1px solid #1e2f24;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0e1811;
}

::-webkit-scrollbar-thumb{
    background:#3f6644;
    border-radius:10px;
}

/* MOBILE */

@media(max-width:900px){

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

    .menu{
        display:none;
        position:absolute;

        top:80px;
        right:20px;

        flex-direction:column;

        background:#122117;
        padding:25px;

        border-radius:15px;
        box-shadow:var(--shadow);
    }

    .menu.active{
        display:flex;
    }

    .hamburger{
        display:block;
    }

    .hero{
        background-attachment:scroll;
    }
}

@media(max-width:600px){

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

    .hero-text{
        font-size:1rem;
    }

    .section{
        padding:80px 0;
    }

    .gallery img{
        height:220px;
    }
}

/* ========================= */
/* SCROLL ANIMATIONS */
/* ========================= */

.section {

    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.section.show {

    opacity: 1;
    transform: translateY(0);
}


/* ========================= */
/* LIGHTBOX */
/* ========================= */

#lightbox {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,.92);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;
}

#lightbox.open {

    display: flex;
}

#lightbox-image {

    max-width: 90%;
    max-height: 90%;

    border-radius: 12px;
}

#lightbox-close {

    position: absolute;

    top: 20px;
    right: 35px;

    color: white;

    font-size: 50px;

    cursor: pointer;
}