/*
Theme Name: Vida y Salud
Theme URI: https://vidaysalud.famx.ch
Description: Custom theme for Vida y Salud - Fusspflege & Wellness, based on www.vidaysalud.ch design
Version: 1.0
Author: Cline
Text Domain: vida-salud
*/

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Merienda+One&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; overflow-y: scroll; scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFF;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merienda One', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #9B7B64;
    font-weight: bold;
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 2.5rem; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; border-style: none; }
a { color: #7FC9FF; text-decoration: none; font-weight: normal; transition: color 0.2s; }
a:hover { color: #9B7B64; text-decoration: underline; }

/* ===== CONTAINER ===== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===== HEADER ===== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 80px;
    margin: 0 auto;
    padding: 0 80px;
    background-color: #FFF;
    position: relative;
    z-index: 20;
}

.site-logo {
    display: table-cell;
    vertical-align: middle;
    padding-right: 20px;
    line-height: 0;
    max-width: 250px;
}

.site-logo img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    display: flex;
    flex-grow: 2;
    z-index: 20;
    min-width: 81px;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    min-height: 80px;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1.1rem;
}

.main-navigation ul li {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0;
    white-space: nowrap;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.main-navigation ul li a {
    color: #000;
    display: block;
    padding: 0 1em;
    font-weight: normal;
    text-decoration: none;
    text-transform: none;
    transition: color 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: #9B7B64;
    text-decoration: underline;
}

.main-navigation ul li.current-menu-item {
    border-bottom: 3px solid transparent;
}

.main-navigation ul li.current-menu-item a {
    color: #7FC9FF;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    padding: 10px;
}

/* Sub-menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 200px;
    background: #FFF;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 100;
    flex-direction: column;
    height: auto;
    min-height: auto;
    font-size: 1rem;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    display: block;
    height: auto;
    border-bottom: none;
}

.main-navigation ul ul li a {
    padding: 0.8em 1.2em;
    line-height: 1.4;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.hero-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-slider .slide {
    position: relative;
}

.hero-slider .slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 5;
}

.hero-slider .slide-caption h2 {
    font-family: 'Merienda One', sans-serif;
    font-size: 2.5rem;
    color: #000;
    text-shadow: 1px 1px 0 #fff;
    margin-bottom: 0.5rem;
}

.hero-slider .slide-caption p {
    font-family: 'Merienda One', sans-serif;
    font-size: 1.5rem;
    color: #9B7B64;
    text-shadow: 1px 1px 0 #fff;
}

/* ===== CONTENT AREA ===== */
.site-content {
    padding: 3rem 0;
}

.site-content .container {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #161A39;
}

.site-content a {
    color: #7FC9FF;
    text-decoration: none;
}

.site-content a:hover {
    color: #9B7B64;
    text-decoration: underline;
}

.site-content h1,
.site-content h2,
.site-content h3 {
    color: #9B7B64;
}

/* ===== BUTTONS ===== */
.btn, a.button, .wp-block-button__link {
    display: inline-block;
    margin: 4px 10px 40px 0;
    padding: 8px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    text-decoration: none;
    text-align: center;
    color: #FFF;
    border: 1px solid transparent;
    border-radius: 0;
    background-color: #9B7B64;
    background-image: linear-gradient(to bottom, #a58874 0%, #9B7B64 50%);
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover, a.button:hover, .wp-block-button__link:hover {
    color: #000;
    background-color: #7FC9FF;
    background-image: linear-gradient(to bottom, #99d4ff 0%, #7FC9FF 50%);
    text-decoration: none;
}

/* ===== SECTIONS ===== */
.section-breakout {
    padding: 80px 0;
    width: 100%;
}

.section-breakout .container {
    max-width: 1350px;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 40px 65px 30px;
    background-color: #7FC9FF;
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #000;
}

.site-footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1320px;
    margin: 0 auto;
}

.site-footer .footer-logo {
    max-width: 250px;
    flex-shrink: 0;
    padding: 0 15px 10px;
}

.site-footer .footer-logo img {
    max-width: 100%;
    height: auto;
}

.site-footer .footer-links {
    text-align: center;
    padding: 0 15px 10px;
}

.site-footer .footer-links a {
    color: #000;
    text-decoration: none;
    padding: 0.25em;
}

.site-footer .footer-links a:hover {
    color: #FFF;
    text-decoration: underline;
}

.site-footer .footer-copyright {
    text-align: center;
    padding: 0 15px 10px;
    font-size: 0.9rem;
}

.site-footer .footer-copyright a {
    color: #000;
}

.site-footer .footer-copyright a:hover {
    color: #FFF;
}

.site-footer h1, .site-footer h2, .site-footer h3 {
    font-family: 'Merienda One', sans-serif;
    color: #FFF;
    font-size: 1.5rem;
}

/* ===== GUTENBERG BLOCKS ===== */
.wp-block-image img {
    border-radius: 0;
}

.wp-block-columns {
    margin-bottom: 2em;
}

.wp-block-column {
    padding: 0 15px;
}

.wp-block-group.alignfull {
    padding: 80px 0;
}

.wp-block-group.alignfull .wp-block-group__inner-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 80px;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1360px) {
    .container, .site-header {
        padding-left: 15px;
        padding-right: 15px;
    }
    h1, h2 { font-size: 2.225rem; }
    h3 { font-size: 1.335rem; }
}

@media screen and (max-width: 768px) {
    .site-header {
        padding: 0 40px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        height: auto;
        min-height: auto;
        background: #FFF;
        box-shadow: 0 0 5px rgba(0,0,0,0.2);
        padding: 0;
    }
    
    .main-navigation ul li {
        display: block;
        height: auto;
    }
    
    .main-navigation ul li a {
        padding: 1em;
        line-height: 1.4;
        color: #000;
    }
    
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        padding-left: 1em;
    }
    
    h1, h2 { font-size: 1.4rem; }
    h3 { font-size: 0.84rem; }
    
    .site-footer {
        padding: 40px 25px 30px;
    }
    
    .site-footer .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-slider .slide-caption h2 {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .container, .site-header {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== WordPress ALIGNMENT ===== */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: calc(100% + 160px); }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }

/* ===== Pagination ===== */
.nav-links {
    text-align: center;
    margin: 2em 0;
}

.nav-links a, .nav-links span {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.2em;
    background: #9B7B64;
    color: #FFF;
    text-decoration: none;
}

.nav-links a:hover { background: #7FC9FF; color: #000; }
.nav-links span.current { background: #7FC9FF; color: #000; }


/* ===== HERO CAROUSEL ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    line-height: 0;
    background: #000;
}
.hero-slider .slides-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: 100%;
}
.hero-slider .slide {
    min-width: 100%;
    flex-shrink: 0;
}
.hero-slider .slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: cover;
}
.hero-slider .slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 5;
    line-height: 1.4;
}
.hero-slider .slide-caption h2 {
    font-family: 'Merienda One', sans-serif;
    font-size: 2.5rem;
    color: #000;
    text-shadow: 2px 2px 4px #fff, -1px -1px 0 #fff;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.5);
    padding: 10px 20px;
    border-radius: 5px;
}
.hero-slider .slide-caption p {
    font-family: 'Merienda One', sans-serif;
    font-size: 1.5rem;
    color: #9B7B64;
    text-shadow: 1px 1px 2px #fff;
    background: rgba(255,255,255,0.4);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
}
.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.6);
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    color: #333;
    transition: background 0.3s;
}
.slide-prev:hover, .slide-next:hover { background: rgba(255,255,255,0.9); }
.slide-prev { left: 0; }
.slide-next { right: 0; }
.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.slide-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.slide-dots .dot.active {
    background: #9B7B64;
}

@media screen and (max-width: 768px) {
    .hero-slider .slide-caption h2 { font-size: 1.2rem; }
    .hero-slider .slide-caption p { font-size: 1rem; }
    .slide-prev, .slide-next { padding: 10px 15px; font-size: 1.5rem; }
}
