/* /assets/css/style.css */

@font-face {
    font-family: 'Pieta';
    src: url('../../02. FONTS/Pieta-Light.woff') format('woff'),
        url('../../02. FONTS/Pieta-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pieta';
    src: url('../../02. FONTS/Pieta.woff') format('woff'),
        url('../../02. FONTS/Pieta.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pieta';
    src: url('../../02. FONTS/Pieta-Medium.woff') format('woff'),
        url('../../02. FONTS/Pieta-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Pieta';
    src: url('../../02. FONTS/Pieta-Bold.woff') format('woff'),
        url('../../02. FONTS/Pieta-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --verde-bosque: #475f40;
    --dorado-tierra: #b49a23;
    --crema-off-white: #eee8e3;
    --blanco: #ffffff;
    --texto-oscuro: #333333;
}

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

body {
    font-family: 'Pieta', sans-serif;
    background-color: var(--crema-off-white);
    color: var(--texto-oscuro);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--verde-bosque);
    font-weight: 700;
}

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

a:hover {
    color: var(--dorado-tierra);
}

.btn-primary {
    display: inline-block;
    background-color: var(--verde-bosque);
    color: var(--blanco);
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--dorado-tierra);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid var(--dorado-tierra);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--dorado-tierra);
    color: var(--blanco);
}

/* Header & Navbar */
header {
    background-color: var(--verde-bosque);
    padding: 0;
    /* padding moved to content */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* Hide waves spilling out */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: relative;
    z-index: 2;
}

/* Header Waves Animation */
.header-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.waves {
    position: absolute;
    bottom: -15px;
    width: 100%;
    height: 150px;
    /* Tall enough to cover the background nicely */
}

/* Animation */
.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.logo img {
    height: 70px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--blanco);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav a:hover {
    color: var(--dorado-tierra);
}

/* Home Slider Area */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.slide.active {
    opacity: 1;
}

/* Add an overlay to make text and reservation panel pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--blanco);
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    transform: translateY(-40px);
}

.hero-content h1 {
    color: var(--blanco);
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Reservation Panel Widget */
.reservation-panel-wrapper {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

.reservation-panel {
    background-color: var(--blanco);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
    width: 100%;
}

.reservation-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--verde-bosque);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Pieta', sans-serif;
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

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

.reservation-form button {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--dorado-tierra);
}

/* Value Proposition */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--blanco);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--dorado-tierra);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--verde-bosque);
    color: var(--blanco);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

footer a {
    color: var(--dorado-tierra);
}

/* Floating Social Media Sidebar */
.floating-socials {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--verde-bosque);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-btn:hover {
    background-color: var(--dorado-tierra);
    color: var(--blanco);
    transform: scale(1.1) translateX(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

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

    .reservation-form {
        flex-direction: column;
        align-items: stretch;
    }

    .reservation-panel {
        width: 100%;
    }
}

/* ==========================================================================
   Responsive Design / Mobile Optimization
   ========================================================================== */

@media (max-width: 992px) {

    /* Header / Nav */
    .header-content {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block !important;
    }

    #nav-menu {
        position: fixed;
        top: 70px;
        /* Height of header approx */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--verde-bosque);
        flex-direction: column;
        transition: 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    #nav-menu.active {
        left: 0;
    }

    #nav-menu ul.nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 40px 0;
        gap: 15px;
    }

    #nav-menu ul.nav-links li {
        margin: 10px 0;
    }

    #nav-menu ul.nav-links a {
        font-size: 1.2rem;
    }

    /* Hero & Reservation Form */
    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .form-group {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 10px;
    }

    .form-group:last-of-type {
        border-bottom: none;
    }

    /* Grids */
    .catalog-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Floating Socials */
    .floating-socials {
        display: flex;
        flex-direction: row;
        top: auto;
        bottom: 15px;
        right: 15px;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        gap: 10px;
        z-index: 90;
    }

    .floating-socials .social-btn {
        width: 40px;
        height: 40px;
        background-color: var(--verde-bosque);
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

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

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}