﻿
/* =========================================
   CAFE CORTAO' - HOMEPAGE
   HACIENDA LAS LALAS
   ========================================= */

:root {
    --home-dark: #2b1b12;
    --home-brown: #4a2c1d;
    --home-medium: #70452d;
    --home-light: #a66a3f;
    --home-cream: #f5efe4;
    --home-sand: #e8ddca;
    --home-green: #344936;
    --home-gold: #b58a4a;
}

/* GENERAL */

.home-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: var(--home-cream);
    color: var(--home-dark);
    font-family: Georgia, "Times New Roman", serif;
}

    .home-page * {
        box-sizing: border-box;
    }

    .home-page a {
        text-decoration: none;
    }

/* NAVIGATION */

.home-navigation {
    min-height: 78px;
    padding: 15px 7%;
    background: var(--home-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.home-brand {
    color: white;
    font-size: 25px;
    white-space: nowrap;
}

    .home-brand span {
        display: block;
        margin-top: 3px;
        color: #d6b77a;
        font-family: Arial, sans-serif;
        font-size: 10px;
        letter-spacing: 2px;
    }

.home-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

    .home-nav-links a {
        color: white;
        font-family: Arial, sans-serif;
        font-size: 13px;
        transition: .25s ease;
    }

        .home-nav-links a:hover {
            color: #d6b77a;
        }


    /* SHOPPING CART NAVIGATION */

    .home-nav-links .cart-navigation-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        padding: 5px;
        transition: .25s ease;
    }

        .home-nav-links .cart-navigation-link:hover {
            color: #d6b77a;
        }

.cart-navigation-link svg {
    display: block;
}

.cart-navigation-count {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: var(--home-gold);
    color: var(--home-dark);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}


/* HERO */

.home-hero {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px 10%;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    inset: 0;
}

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(35, 22, 14, .80), rgba(35, 22, 14, .48), rgba(35, 22, 14, .12) );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-label,
.home-section-label {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-label {
    color: #e8c58e;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(52px, 7vw, 88px);
    line-height: 1.05;
    font-weight: normal;
}

    .hero-content h1 span {
        color: #e5b77b;
        font-style: italic;
    }

.hero-divider {
    width: 90px;
    height: 2px;
    margin: 25px 0;
    background: var(--home-gold);
}

.hero-content p {
    font-size: 22px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-primary-button,
.hero-secondary-button,
.story-button {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    transition: .25s ease;
}

.hero-primary-button {
    background: var(--home-brown);
    color: white;
    border: 1px solid var(--home-brown);
}

    .hero-primary-button:hover {
        background: var(--home-dark);
        color: white;
    }

.hero-secondary-button {
    border: 1px solid white;
    color: white;
    background: transparent;
}

    .hero-secondary-button:hover {
        background: white;
        color: var(--home-dark);
    }

.hero-bottom-text {
    position: absolute;
    z-index: 2;
    bottom: 25px;
    right: 7%;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}

/* INTRODUCTION */

.home-introduction {
    max-width: 950px;
    margin: auto;
    padding: 100px 30px;
    text-align: center;
}

.home-section-label {
    color: var(--home-gold);
}

.home-introduction h2,
.home-story-content h2,
.home-coffee-cta h2 {
    font-size: clamp(35px, 5vw, 58px);
    line-height: 1.15;
    font-weight: normal;
    margin: 0 0 25px;
}

    .home-introduction h2 span,
    .home-coffee-cta h2 span {
        display: block;
        color: var(--home-medium);
        font-style: italic;
    }

.home-divider {
    color: var(--home-gold);
    font-size: 25px;
    margin: 25px;
}

.home-introduction p {
    max-width: 750px;
    margin: 15px auto;
    color: #5d5147;
    font-size: 18px;
    line-height: 1.8;
}

/* STORY */

.home-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--home-green);
    color: white;
}

.home-story-image {
    min-height: 550px;
}

    .home-story-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.home-story-content {
    padding: 80px 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .home-story-content .home-section-label {
        color: #d5b36d;
    }

    .home-story-content h2 {
        margin-bottom: 20px;
    }

        .home-story-content h2 span {
            color: #e5c58c;
            font-style: italic;
        }

    .home-story-content p {
        max-width: 540px;
        color: rgba(255,255,255,.85);
        font-size: 17px;
        line-height: 1.8;
    }

.home-coffee-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.25);
}

    .home-coffee-details div {
        display: flex;
        flex-direction: column;
    }

    .home-coffee-details strong {
        font-size: 26px;
        font-weight: normal;
    }

    .home-coffee-details span {
        margin-top: 5px;
        font-family: Arial, sans-serif;
        font-size: 11px;
        letter-spacing: 1px;
        color: rgba(255,255,255,.7);
    }

.story-button {
    align-self: flex-start;
    margin-top: 30px;
    background: var(--home-gold);
    color: var(--home-dark);
}

/* COFFEE CTA */

.home-coffee-cta {
    padding: 90px 25px;
    text-align: center;
    background: var(--home-sand);
}

    .home-coffee-cta h2 {
        margin-bottom: 20px;
    }

    .home-coffee-cta p {
        max-width: 650px;
        margin: 0 auto 30px;
        font-size: 17px;
        line-height: 1.8;
        color: #655448;
    }

/* MESSAGE */

.home-message {
    padding: 100px 25px;
    background: var(--home-cream);
}

.home-message-card {
    max-width: 820px;
    margin: auto;
    padding: clamp(20px, 5vw, 48px);
    background: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(43,27,18,.10);
}

    .home-message-card h2 {
        font-size: 36px;
        font-weight: normal;
    }

    .home-message-card > p {
        color: #6a5b4e;
        font-size: 16px;
        line-height: 1.8;
    }

/* Keep compatibility with existing message form */

.home-message .coffee-form {
    margin-top: 30px;
    text-align: left;
}

.home-message .contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.contact-wide { grid-column: 1 / -1; }
.home-message .contact-form label { display: block; margin-bottom: 5px; font-size: .95rem; font-weight: 700; }
.contact-form label span { font-weight: 400; }
.home-message .contact-form .coffee-input { min-height: 44px; padding: 10px 12px; border-radius: 7px; color: #38271e; }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-count, .contact-privacy { margin: 5px 0 0; color: #67584a; font-size: .85rem; }
.contact-errors, .contact-form .field-validation-error { color: #862b22; }
.contact-errors ul { padding: 9px 14px; list-style: none; margin: 8px 0; background: #f9eae5; border-radius: 7px; }
.contact-errors.validation-summary-valid { display: none; }
.home-message .contact-form .coffee-button { border-radius: 7px; margin-top: 0; }
.contact-unavailable { padding: 10px; background: #f5eee2; border-radius: 7px; }
#mensaje { scroll-margin-top: 90px; }
@media (max-width: 650px) {
    .home-message .contact-form { grid-template-columns: minmax(0, 1fr); }
}

.home-message .coffee-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #d8cbb9;
    background: #fcfaf6;
}

.home-message .coffee-button {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    border: none;
    background: var(--home-brown);
    color: white;
    cursor: pointer;
}

/* FOOTER */

.home-footer {
    padding: 70px 20px;
    text-align: center;
    background: var(--home-dark);
    color: white;
}

.home-footer-symbol {
    font-size: 35px;
    margin-bottom: 10px;
}

.home-footer h3 {
    font-size: 30px;
    font-weight: normal;
    margin: 0;
}

.home-footer p {
    color: rgba(255,255,255,.7);
    font-size: 14px;
}

.home-footer-line {
    width: 50px;
    height: 1px;
    background: var(--home-gold);
    margin: 25px auto;
}

.home-footer small {
    color: rgba(255,255,255,.6);
    font-style: italic;
    line-height: 1.8;
}

/* RESPONSIVE DESIGN */

@media (max-width: 850px) {

    .home-navigation {
        flex-direction: column;
        padding: 22px;
    }

    .home-nav-links {
        justify-content: center;
        gap: 15px 20px;
    }

    .home-story {
        grid-template-columns: 1fr;
    }

    .home-story-image {
        min-height: 380px;
    }

    .home-story-content {
        padding: 60px 30px;
    }
}

@media (max-width: 600px) {

    .home-hero {
        min-height: 580px;
        padding: 50px 25px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-bottom-text {
        font-size: 9px;
        right: 15px;
    }

    .home-introduction {
        padding: 70px 25px;
    }

    .home-message-card {
        padding: 35px 22px;
    }

    .home-coffee-details {
        gap: 22px;
    }
}
