/* REME BIZCAIA - Custom Premium Styles */

:root {
    --primary-color: #2c2c2c;
    --accent-color: #c5a059;
    /* Goldish for liquor */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    /* Calculated from the JS smoothScroll offset (-96) indicating approximate header height */
    --header-height: 96px;
}

body {
    font-family: 'Open Sans', 'Raleway', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Helper for Full Viewport Height adjusted for Navbar */
.dvh-100 {
    /* Ensures the section + navbar = 100dvh */
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 40px 0;
    /* Reduced padding to fit tight constraints */
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-gold {
    color: var(--accent-color);
}

/* NAVIGATION */
.nav-container {
    background: #fff;
    z-index: 1000;
}

.logo {
    min-height: 100px;
}

/* HERO SECTION */
.hero-section {
    padding: 0;
    background: url('../img/Home.jpg') no-repeat center center scroll;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-overlay {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/Home.jpg') no-repeat center center scroll;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ABOUT SECTION - SPLIT SCREEN */
.about-section {
    padding: 0;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    /* Fits the remaining space specifically */
    min-height: calc(100dvh - var(--header-height));
}

.split-image {
    flex: 1 1 50%;
    background: url('../img/NosotrosDos.jpg') no-repeat center center;
    background-size: cover;
    min-height: inherit;
}

.split-content {
    flex: 1 1 50%;
    padding: 5% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .split-image,
    .split-content {
        flex: 1 1 100%;
        width: 100%;
    }

    .split-image {
        min-height: 50vh;
    }
}

/* PRODUCTS SECTION - CARDS */
.products-section {
    background: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-img {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-info p {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* CONTACT SECTION */
.contact-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

.contact-header-info {
    margin-bottom: 30px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100%;
    min-height: 500px;
    border: 1px solid #eee;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.contact-form-container {
    padding: 40px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-map-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.contact-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-container {
        height: 400px;
    }
}

/* FOOTER */
.footer-container {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.btn-submit {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 15px 30px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: #a38242;
}

/* Scroll adjustment for sections to account for fixed header */
section {
    scroll-margin-top: var(--header-height);
}