/* Mercat Municipal de Manlleu — Tipografies i estils propis sobre YOOtheme Pro (UIkit 3) */

@font-face {
    font-family: 'theserifbold';
    src: url('../fonts/theserif-7-bold-webfont.woff2') format('woff2'),
         url('../fonts/theserif-7-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'thesans_5-regularregular';
    src: url('../fonts/thesans-5-regular-webfont.woff2') format('woff2'),
         url('../fonts/thesans-5-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'thesansregular_italic';
    src: url('../fonts/thesans-5-regularita-webfont.woff2') format('woff2'),
         url('../fonts/thesans-5-regularita-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'themix_5-regularregular';
    src: url('../fonts/themix-5-regular-webfont.woff2') format('woff2'),
         url('../fonts/themix-5-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'themixbold';
    src: url('../fonts/themix-7-bold-webfont.woff2') format('woff2'),
         url('../fonts/themix-7-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Tipografia heretada de styles/mmm/css/custom.css */
html,
body {
    font-family: 'thesans_5-regularregular', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #666666;
}

em,
i {
    font-family: 'thesansregular_italic', sans-serif;
}

h2, .uk-h2,
h3, .uk-h3,
h4, .uk-h4,
h5, .uk-h5,
h6, .uk-h6 {
    font-family: 'theserifbold', Georgia, serif;
}

h1, .uk-h1,
strong, b {
    font-family: 'themixbold', Georgia, serif;
}

.uk-button,
.uk-navbar-nav > li > a,
.uk-navbar-dropdown-nav > li > a,
.uk-nav > li > a {
    font-family: 'themix_5-regularregular', Georgia, serif;
}

/* Capçalera i navegació (aspecte Gusto/mmm) */
.tm-header .uk-navbar-container {
    background: #ffffff;
    border-bottom: 1px solid #e9e9e9;
}
.tm-header .uk-navbar-nav > li > a {
    color: #555555;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.tm-header .uk-navbar-nav > li.uk-active > a,
.tm-header .uk-navbar-nav > li > a:hover {
    color: #cd202c;
}
.tm-header .uk-navbar-toggle,
.tm-header a[uk-search-icon],
.tm-header .uk-search-toggle {
    background-color: #eeaf30;
    color: #222222;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}
.tm-header a[uk-search-icon]:hover,
.tm-header .uk-search-toggle:hover {
    background-color: #dfa024;
    color: #222222;
}

/* Paleta de marca: vermell #cd202c, groc #eeaf30, verd Aula Mercat #0D981A */
a {
    color: #cd202c;
}
a:hover {
    color: #8b151e;
}

.uk-button-primary {
    background-color: #eeaf30;
    color: #ffffff;
    border-radius: 0;
}
.uk-button-primary:hover,
.uk-button-primary:focus {
    background-color: #dfa024;
    color: #ffffff;
}

/* Banda pre-peu (equivalent a .tm-block-bottom-e de Gusto) */
.mmm-bottom-meta {
    background-color: #f0f0f0;
    color: #222222;
}
.mmm-bottom-meta a,
.mmm-bottom-meta .uk-icon {
    color: #222222;
}
.mmm-bottom-meta .uk-h3,
.mmm-bottom-meta .uk-h4,
.mmm-bottom-meta h3 {
    position: relative;
    padding-bottom: 10px;
}
.mmm-bottom-meta .uk-h3::after,
.mmm-bottom-meta .uk-h4::after,
.mmm-bottom-meta h3::after {
    content: "";
    display: block;
    width: 40px;
    border-bottom: 2px solid currentColor;
    margin-top: 8px;
}

/* Portada (page-id-1480): banda vermella amb text, enllaços i icones en blanc */
.page-id-1480 .mmm-bottom-meta,
.page-id-1700 .mmm-bottom-meta {
    background-color: #cd202c;
    color: #ffffff;
}
.page-id-1480 .mmm-bottom-meta *,
.page-id-1700 .mmm-bottom-meta * {
    color: #ffffff !important;
}

/* L'aula Mercat (page-id-1503): banda verda amb text, enllaços i icones en blanc */
.page-id-1503 .mmm-bottom-meta {
    background-color: #0D981A;
    color: #ffffff;
}
.page-id-1503 .mmm-bottom-meta * {
    color: #ffffff !important;
}

/* Peu blanc amb logos de suport */
.mmm-footer-logos {
    background-color: #ffffff;
    padding: 20px 0;
}

/* Imatges flotades a mòbil */
@media (max-width: 639px) {
    img[style*="float"] {
        float: none !important;
        display: block;
        margin: 0 auto 16px !important;
        max-width: 100%;
        height: auto;
    }
}

/* Iframes responsius (YouTube, Vimeo, Maps) */
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 25px;
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Formulari Contact Form 7 adaptat a UIkit 3 */
.wpcf7-form .uk-form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #333333;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8d8d8;
    padding: 10px 12px;
    background: #ffffff;
    color: #333333;
}
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
    cursor: pointer;
    margin-top: 10px;
    background-color: #eeaf30 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 28px;
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover {
    background-color: #dfa024 !important;
}

/* Fitxa de recepta (ACF Pro + YOOtheme Pro) */
.mmm-recipe-meta-bar {
    border-top: 1px solid #e9e9e9;
    border-bottom: 1px solid #e9e9e9;
    padding: 16px 0;
}
ul.mmm-recipe-ingredients > li {
    padding: 6px 0;
}
ol.mmm-recipe-steps {
    counter-reset: recipe-step;
    list-style: none;
    padding-left: 0;
}
ol.mmm-recipe-steps > li {
    counter-increment: recipe-step;
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
}
ol.mmm-recipe-steps > li::before {
    content: counter(recipe-step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background: #cd202c;
    color: #ffffff;
    font-family: 'themixbold', sans-serif;
    font-size: 13px;
}
