/*
Theme Name: El Rebaño
Theme URI: https://elrebano.es
Author: El Rebaño Team
Author URI: https://elrebano.es
Description: Custom theme for El Rebaño cafe with modern, clean design featuring brand colors and engaging layout
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: el-rebano
*/

/* ========================================
   Custom Font - PP Editorial New
   ======================================== */
@font-face {
    font-family: 'PP Editorial New';
    src: url('assets/fonts/PPEditorialNew-Ultralight-BF644b21500d0c0.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial New';
    src: url('assets/fonts/PPEditorialNew-UltralightItalic-BF644b214ff1e9b.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial New';
    src: url('assets/fonts/PPEditorialNew-Regular-BF644b214ff145f.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial New';
    src: url('assets/fonts/PPEditorialNew-Italic-BF644b214fb0c0a.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial New';
    src: url('assets/fonts/PPEditorialNew-Ultrabold-BF644b21500840c.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Editorial New';
    src: url('assets/fonts/PPEditorialNew-UltraboldItalic-BF644b214faef01.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* ========================================
   CSS Variables - Brand Colors
   ======================================== */
:root {
    --color-primary: #1D4E40;      /* Dark green */
    --color-secondary: #F6F1DE;     /* Cream/beige */
    --color-accent: #000000;        /* Black */
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --font-primary: 'PP Editorial New', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'PP Editorial New', Georgia, serif;
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-accent);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

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

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 80px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.header-inner > div, .header-inner > nav {
    height: 100%;
}

.nav-left {
    flex: 1;
    display: flex;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-right a {
    font-weight: 700 !important;
}

.site-branding {
    flex: 0 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--color-secondary);
    display: block;
    margin-top: 0.15em;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.main-navigation a {
    color: var(--color-secondary);
    font-weight: 500;
    transition: var(--transition);
    line-height: 80px;
    padding: 0 20px;
}

.main-navigation a:hover {
    background-color: rgba(246, 241, 222, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}


/* ========================================
   Hero Section
   ======================================== */

.fs-section, #menu {
    width: 100vw;
    height: calc(100vh - 80px);
}

.hero-section {
    background: var(--color-primary);
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(246, 241, 222, 0.05) 50px,
            rgba(246, 241, 222, 0.05) 100px
        );
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.hero-text {
    color: var(--color-secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-secondary);
}

/* ========================================
   Menu Section
   ======================================== */
.menu-section {
    background-color: var(--color-secondary);
}

.menu-card {
    background: var(--color-white);
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.menu-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    text-align: center;
}

.menu-items {
    list-style: none;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.menu-item-name {
    font-weight: 500;
}

.menu-item-price {
    font-weight: 600;
    color: var(--color-primary);
}

.menu-logo {
    text-align: center;
    margin-top: 30px;
}

.menu-logo img {
    width: 80px;
    margin: 0 auto;
}

/* ========================================
   Content Sections
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.content-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.content-text h2 {
    font-family: var(--font-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* ========================================
   Product Cards
   ======================================== */
.product-section {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

.product-image {
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 25px;
    color: var(--color-accent);
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-description {
    margin-bottom: 1rem;
    color: #666;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ========================================
   Gallery Grid
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 0 30px 30px 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(246, 241, 222, 0.2);
    color: rgba(246, 241, 222, 0.6);
    font-size: 13px;
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.bg-secondary {
    background-color: var(--color-secondary);
    color: var(--color-accent);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }

.fullscreen {
    width: 100vw;
    height: 100vh;
}

.w-50 {
    width: 50%;
}

.h-100 {
    height: 100%;
}

.half-section {
    width: 50vw;
    height: 100%
}

#menu>section {
    width: 50vw;
    height: 100%;
}

.d-flex {
    display: flex;
}

.col {
    flex-direction: column;
}

.squares-bg {
    background-image: repeating-conic-gradient(
        var(--color-primary) 0deg,
        var(--color-primary) 25%,
        #fffcf3 0deg,
        #fffcf3 50%
    );
    background-position-x: 50%;
    background-position-y: center;
    background-size: calc(25vw) calc(25vw);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.bg-white {
    background-color: #fff;
}

#back-to-herd-container {
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 60%;
    top: 50%;
    left: 100%;
    transform: translate(-70%, -50%);
}

.back-to-herd-text {
    font-size: 4rem;
}


#back-to-herd-container > p {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    text-align: center;
}

#subscribe-container {
    padding: 200px 30px;
    width: 60%;
    top: 50%;
    left: -10%;
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: rotate(20deg) translate(0, -50%);
    font-size: 2em;
    font-weight: 100;
}

#coffee-cup-container {
    width: 40%;
    z-index: 11;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 50px;
    display: flex;
    flex-direction: column;
    height: 90%;
    align-items: center;
    justify-content: space-between;
}

.fw-100 {
    font-weight: 100;
}

.fw-300 {
    font-weight: 300;
}

#subscribe-container .bottom-right {
    bottom: 0;
    right: 30px;
    position: absolute;
}

.primary-bg {
    background-color: var(--color-primary);
}

.secondary-bg {
    background-color: var(--color-secondary);
}

.z-index-1000 {
    z-index: 1000;
}

.z-index-100 {
    z-index: 100;
}

.z-index-10 {
    z-index: 10;
}

.z-index-0 {
    z-index: 0;
}

.button {
    background: #000;
    color: var(--color-secondary);
    border-radius: 30px;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.size-13 {
    font-size: 1.3rem;
}

.size-18 {
    font-size: 1.8rem;
}

.font-l {
    font-size: 3rem;
}

.subscribe-button {
    padding: 40px 60px;
    border-radius: 100px;
}

#menu-coffee, #menu-pastries {
    position: absolute;
    box-shadow: -7px 15px 12px 0px rgb(0 0 0 / 26%);
}

#menu-coffee {
    transform: rotate(-10deg);
    left: 50px;
    z-index: 5;
    width: 40%;
}

#menu-pastries {
    width: 60%;
    height: auto;
    transform: translateY(-50%) rotate(5deg);
    left: -30px;
    top: 50%;
    z-index: 10;
}

.square {
    aspect-ratio: 1 / 1;
}

#quote-section {
    text-align: center;
    padding: 100px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.font-xl {
    font-size: 3.5em;
}

#quote-section .font-s {
    font-size: 1.5em;
    font-weight: 300;
}

.how-to-go-button {
    background-color: #fff;
    color: #000;
    flex-grow: 0;
    width: fit-content;
    border-radius: 30px;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

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

.color-secondary {
    color: var(--color-secondary);
}

#location-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 50px;
}

#cookies-image {
    height: 90%;
    top: 50%;
    transform: translateY(-50%);
    right: -10%;
    z-index: 100;
}

#nosotros > section, #quiosco > section {
    width: 50%;
}

#partners-section {
    background: url(assets/images/socios_el_rebano.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#first-slide-image-section {
    background: url(assets/images/cafe_de_especialidad_y_galleta.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#subscribe-herd-section {
    background: url(assets/images/sheep_herd.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#time-section {
    background: url(assets/images/cafe_de_especialidad_sirviendo.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#menu-right-section {
    background: url(assets/images/vuelve_al_rebano_cafe_decente.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#time-image-container {
    background: #fff;
    padding: 60px 40px;
    width: 70%;
    box-shadow: -3px 4px 20px 0px rgb(0 0 0 / 50%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(7deg);
}

#time-image {
    width: 90%;
    display: block;
    margin: auto;
}

.logo-footer {
    text-align: center;
    
}

#instagram-section {
    padding: 40px;
    background: var(--color-secondary);
}

.instagram-carousel-feed {
    display: flex;
    overflow-x: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.instagram-carousel-feed::-webkit-scrollbar {
    display: none;
}

.instagram-carousel-feed li {
    flex-shrink: 0;
    width: 15%;
    margin-right: 10px;
    height: auto;
}

.instagram-carousel-feed li a {
    display: block;
    height: 100%;
}

.instagram-carousel-feed li img,
.instagram-carousel-feed li video {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

#instagram-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

#instagram-section-header > h3 {
    font-size: 2rem;
    font-family: var(--font-secondary);
    font-weight: 300;
}

@media (max-width: 768px) {

    .header-inner {
        flex-wrap: wrap;
        padding: 0 15px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .site-branding {
        order: 1;
        flex: 1;
        padding: 0;
    }

    .nav-left,
    .nav-right {
        order: 4;
        flex: 0 0 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-left.active,
    .nav-right.active {
        max-height: 500px;
    }

    .main-navigation {
        width: 100%;
        background-color: var(--color-primary);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    #nav-right a {
        line-height: 60px;
    }

    .half-section {
        width: 100vw;
        height: 50%;
    }

    .fs-section, #menu {
        flex-direction: column;
    }
        
    #back-to-herd-container {
        padding: 40px;
        border-radius: 25px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        width: 70%;
        top: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #subscribe-container {
        padding: 80px 30px;
        width: 80%;
        top: 0;
        left: -10%;
        background: var(--color-primary);
        color: var(--color-secondary);
        transform: rotate(20deg) translate(0, -50%);
        font-size: 2em;
        font-weight: 100;
    }

    #coffee-cup {
        display: none;
    }

    #coffee-cup-container {
        width: 40%;
        transform: translateY(-100%);
        top: 95%;
        position: relative;
        margin: auto;
        height: auto;
        right: auto;
    }

    #menu-coffee {
        transform: rotate(-5deg);
        width: 80%;
    }

    #menu-pastries {
        width: 80%;
        transform: translateY(0) rotate(5deg);
        left: auto;
        top: auto;
    }

    #menu > section {
        width: 100vw;
        height: auto;
    }

    #menu-coffee, #menu-pastries {
        position: relative;
        box-shadow: 0px 0px 12px 0px rgb(0 0 0 / 50%);
    }

    #menu {
        height: auto;
    }

    #nosotros, #quiosco {
        flex-direction: column;
    }

    #nosotros > section, #quiosco > section {
        width: 100%;
        overflow-x: hidden;
    }

    #quote-section {
        padding: 30px;
    }

    #cookies-image {
        right: -20%;
    }

    #location-section {
        padding-left: 30px;
    }

    #instagram-section {
        padding: 20px;
    }

    #instagram-section-header {
        flex-direction: column;
    }

    #instagram-section-header h3 {
        font-size: 1.6em;
    }

    #instagram-section-header a {
        font-size: 0.8em;
        margin-top: 10px;
    }
    
    #location-section .font-l {
        font-size: 1.7em;
    }

    #quote-section .font-xl {
        font-size: 2.5em;
    }
    
    #quote-section .font-s {
        font-size: 1.3em;
    }

    .instagram-carousel-feed {
        margin-top: 20px;
    }

    .instagram-carousel-feed li {
        width: 45%;
    }

    .footer-content {
        flex-direction: column-reverse;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    #time-image-container {
        padding: 30px 20px;
        width: 80%;
    }

    .site-header {
        height: 60px;
    }

    .fs-section {
        height: calc(100vh - 60px);
    }

    .header-inner>div,
    .header-inner>nav {
        height: 60px;
    }

    #nav-left, #nav-right {
        height: auto;
    }

    .main-navigation a {
        line-height: normal;
        padding: 10px 0;
    }

    @media (max-height: 750px) {
        #subscribe-container {
            top: -15%;
        }
    }
}

@media (max-width: 400px) {
    #instagram-section-header h3 {
        font-size: 1.4em;
    }

    #instagram-section-header a {
        font-size: 1em;
    }

    #location-section .font-l {
        font-size: 1.7em;
    }

    #quote-section .font-xl {
        font-size: 2.5em;
    }

    #quote-section .font-s {
        font-size: 1.1em;
    }
}

@media (max-width: 950px) {
    #location-section .font-l {
        font-size: 2em;
    }

    #instagram-section-header h3 {
        font-size: 1.4em;
    }

    #instagram-section-header a {
        font-size: 0.9em;
    }

    #quote-section .font-xl {
        font-size: 2.5em;
    }

    #quote-section .font-s {
        font-size: 1.1em;
    }
}

@media (max-width: 1200px) {
    #primary {
        overflow-x: hidden;
    }

    #subscribe-container {
        width: 80%;
    }

    #menu-pastries {
        width: 80%;
        left: auto;
    }

}

@media (max-width: 1450px) {
    #primary {
        overflow-x: hidden;
    }
    #location-section .font-l {
        font-size: 2em;
    }

    #instagram-section-header h3 {
        font-size: 1.4em;
    }

    #quote-section .font-xl {
        font-size: 2.5em;
    }

    #quote-section .font-s {
        font-size: 1.1em;
    }
}


