/* --- Global Styles & Variables --- */
:root {
    --primary-yellow: #FFB300; 
    --text-white: #FFFFFF;
    --bg-dark: #000000;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth; /* Makes the scrolling glide nicely */
    scroll-padding-top: 120px; /* Stops the scroll early so header doesn't cover titles */
}

body {
    font-family: var(--font-main);
    color: var(--text-white);
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/background.jpg');
    background-attachment: fixed;
    background-size: cover;
}

/* --- Header / Navigation --- */
header {
    background-color: white;
    color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Reduced padding to make the header hug the content tighter */
    padding: 0px 30px; 
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
}

.logo-img {
    /* Reduced to 45px to shrink the header. (Crop the image file if letters are too small!) */
    height: 90px; 
    width: auto;
    display: block;
}

nav a {
    color: black;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 700; 
    font-size: 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-yellow);
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/gallery-8.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    text-align: left; 
    padding-right: 5%; 
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.highlight {
    color: var(--primary-yellow);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    /* THIS KEEPS THE BUTTONS LEFT-ALIGNED UNDER THE TEXT */
    justify-content: flex-start; 
}

.highlight {
    color: var(--primary-yellow);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    /* Made buttons chunkier and text bigger to match your screenshot */
    padding: 15px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-outline {
    background: rgba(0,0,0,0.6);
    color: white;
    border: 2px solid white;
}

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

.btn-solid {
    background: var(--primary-yellow);
    color: black;
    border: 2px solid var(--primary-yellow);
}

.btn-solid:hover {
    background: #e6a200;
    border-color: #e6a200;
}

/* --- Section Dividers --- */
.section-divider {
    background-color: var(--bg-dark);
    padding: 20px 0;
    text-align: center;
    margin: 40px 0;
}

.section-divider h2 {
    color: var(--primary-yellow);
    font-size: 2rem;
    font-weight: 700;
}

/* --- Shared Section text --- */
.section-intro, .section-outro {
    text-align: center;
    background-color: rgba(0,0,0,0.7);
    display: table;
    margin: 0 auto 30px auto;
    padding: 10px 20px;
    border-radius: 5px;
    max-width: 800px;
    font-size: 1.2rem; 
}
.section-outro {
    margin-top: 50px; /* Pushes the bottom text away from the cards */
}

/* --- Services / Oferta --- */
.services {
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    max-width: 1100px; 
    margin: 0 auto;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    background-color: black;
    border: 3px solid white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-icon {
    width: 80px; 
    height: 80px; 
    margin-bottom: 20px;
    object-fit: contain; 
}

.card h3 {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.card p {
    font-size: 1.1rem; 
    line-height: 1.5;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.2); 
}

/* --- About Us --- */
.about {
    padding: 0 20px;
    display: flex;
    justify-content: center; /* Centers the whole block on the page */
}

.about-content {
    display: flex;
    align-items: center; /* Vertically aligns text and image */
    justify-content: space-between;
    max-width: 1000px; /* Limits how wide the section gets */
    gap: 40px; /* Space between text and image */
}

.about-text {
    background-color: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 10px;
    line-height: 1.6;
    font-size: 1.3rem;
    flex: 1; /* Tells the text to take up the remaining space */
}

.mountain-img {
    width: 100%;
    max-width: 400px; /* You can change this to make the image bigger/smaller */
    height: auto;
    border-radius: 10px; 
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

/* --- Contact Section --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 24px;
}

.contact-form {
    background-color: transparent;
    width: 100%;
    max-width: 500px;
}

.form-title {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .half {
    width: 50%;
}

label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 5px;
    margin-left: 10px;
}

input, textarea {
    width: 100%;
    background-color: #4a4a4a;
    border: none;
    border-radius: 20px;
    padding: 12px 20px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
}

textarea {
    border-radius: 15px;
    resize: vertical;
}

input:focus, textarea:focus {
    outline: 2px solid var(--primary-yellow);
}

.submit-btn {
    background-color: var(--primary-yellow);
    color: black;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    display: block;
    margin-top: 20px;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #e6a200;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  
    html {
        scroll-padding-top: 240px; 
    }

    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    .form-row {
        flex-direction: column;
    }
    .form-row .half {
        width: 100%;
    }
    .about-content {
        flex-direction: column; /* Stacks them on top of each other on phones */
        text-align: center;
    }
}
/* --- Image Modal (Lightbox Pop-up) --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; /* Sits on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9); /* Black background */
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    /* Tiny zoom animation when opened */
    animation-name: zoomIn;
    animation-duration: 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-yellow);
}

/* Adds a hover effect to gallery images so users know they are clickable */
.gallery-grid img {
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03); /* Zooms the image slightly when hovered */
    border-color: var(--primary-yellow); /* Turns border yellow on hover */
}

/* --- Lightbox Arrows --- */
.prev-arrow, .next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 15px 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 5px;
    /* This stops the user from accidentally highlighting the arrow text */
    user-select: none; 
    -webkit-user-select: none;
}

/* Position left arrow */
.prev-arrow {
    left: 20px;
}

/* Position right arrow */
.next-arrow {
    right: 20px;
}

/* Hover effect for arrows */
.prev-arrow:hover, .next-arrow:hover {
    color: var(--primary-yellow);
    background-color: rgba(0,0,0,0.6);
}

/* Make arrows slightly smaller on mobile phones */
@media (max-width: 768px) {
    .prev-arrow, .next-arrow {
        font-size: 25px;
        padding: 10px 15px;
    }
    .prev-arrow { left: 5px; }
    .next-arrow { right: 5px; }
}