/*
Theme Name: LaBeSoc
Theme URI: https://labesoc.cat
Author: Grup GATS
Description: Tema de LaBeSoc (laboratori d'economia solidària del Prat de Llobregat). Còpia neta del disseny de labesoc.cat (2021), feta amb blocs de WordPress. Primera web del grup GATS a WordPress.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: labesoc
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
.lb-section-title { text-transform: uppercase; letter-spacing: .12em; font-size: 30px; text-align: center; margin: 0; }
.lb-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; margin: 0; }

/* ---------- Capçalera ---------- */
.lb-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.admin-bar .lb-header { top: 32px; }
.lb-header .wp-block-site-logo img { width: 165px; height: auto; }
.lb-header .wp-block-navigation { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lb-header .wp-block-navigation a { color: #333; }
.lb-header .wp-block-navigation a:hover, .lb-header .wp-block-navigation .lb-active a { color: var(--wp--preset--color--primary); }

/* ---------- Portada (vídeo) ---------- */
.lb-hero { min-height: calc(100vh - 90px) !important; }
.lb-hero h1 { color: #fff; font-size: clamp(44px, 5.2vw, 72px); line-height: 1.1; margin: .4em 0 .6em; }
.lb-hero p { color: #fff; }
.lb-hero .lb-hero-text { font-size: clamp(18px, 1.8vw, 26px); max-width: 600px; line-height: 1.4; }
.lb-hero .wp-block-cover__inner-container { max-width: 1170px; margin: 0 auto; }

/* ---------- Com ho fem ---------- */
.lb-step { padding: 90px 20px; }
.lb-step h3 { font-size: 30px; }
.lb-step p { font-size: 15px; }
.lb-step strong { font-weight: 500; }
.lb-step .wp-block-image img { width: 200px; height: auto; }
.lb-step--light { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cg fill='%23f5f5f7'%3E%3Ccircle cx='-40' cy='107' r='60'/%3E%3Ccircle cx='39' cy='112' r='51'/%3E%3Ccircle cx='145' cy='102' r='70'/%3E%3Ccircle cx='235' cy='110' r='54'/%3E%3Ccircle cx='300' cy='113' r='49'/%3E%3Ccircle cx='361' cy='102' r='70'/%3E%3Ccircle cx='456' cy='105' r='63'/%3E%3Ccircle cx='564' cy='114' r='48'/%3E%3Ccircle cx='638' cy='97' r='78'/%3E%3Ccircle cx='732' cy='103' r='68'/%3E%3Ccircle cx='809' cy='88' r='94'/%3E%3Ccircle cx='880' cy='112' r='51'/%3E%3Ccircle cx='956' cy='108' r='58'/%3E%3Ccircle cx='1017' cy='93' r='86'/%3E%3Ccircle cx='1093' cy='106' r='62'/%3E%3Ccircle cx='1165' cy='110' r='55'/%3E%3Ccircle cx='1244' cy='105' r='63'/%3E%3Ccircle cx='1344' cy='90' r='91'/%3E%3Ccircle cx='1427' cy='112' r='50'/%3E%3Crect y='110' width='1440' height='30'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 140px no-repeat; }
.lb-step--orange { background: #e9963a; color: #fff; }
.lb-step--orange h3, .lb-step--orange p, .lb-step--orange strong { color: #fff; }

/* ---------- Projectes (targetes que giren) ---------- */
.lb-projects { gap: 0 !important; margin: 0 !important; }
.lb-projects > .wp-block-column { margin: 0 !important; }
.lb-flip { min-height: 450px !important; padding: 30px !important; overflow: hidden; }
.lb-flip h3 { color: #fff; text-transform: uppercase; letter-spacing: .2em; font-size: 24px; text-align: center; transition: transform .4s ease; }
.lb-flip .wp-block-cover__background { transition: background-color .4s ease, opacity .4s ease; }
.lb-flip ul { list-style: none; padding: 0; margin: 0; text-align: center; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .4s ease, max-height .4s ease; }
.lb-flip li { margin: 2px 0; font-size: 15px; font-weight: 500; }
.lb-flip li a { color: #fff; text-decoration: none; }
.lb-flip li a:hover { text-decoration: underline; color: #fff; }
.lb-flip:hover .wp-block-cover__background, .lb-flip:focus-within .wp-block-cover__background { background-color: #f09220 !important; opacity: .94 !important; }
.lb-flip:hover ul, .lb-flip:focus-within ul { max-height: 1200px; opacity: 1; }
.lb-flip:hover h3, .lb-flip:focus-within h3 { transform: translateY(-6px); font-size: 18px; }

/* ---------- Cita i vídeos ---------- */
.lb-quote p { font-size: 22px; color: #9a9a9a; text-align: center; max-width: 760px; margin: 0 auto; }
.lb-videos { gap: 0 !important; margin: 0 !important; }
.lb-videos .wp-block-embed { margin: 0; }
.lb-videos > .wp-block-column { margin: 0 !important; }

/* ---------- Equip ---------- */
.lb-team .wp-block-image img { width: 250px; height: 250px; object-fit: cover; border-radius: 50%; }
.lb-team h4 { font-size: 20px; margin: 20px 0 10px; }
.lb-team p { margin: 0; font-size: 15px; }
.lb-team .lb-mail { color: var(--wp--preset--color--secondary); }

/* ---------- Valors ---------- */
.lb-values { background: #333 linear-gradient(160deg, transparent 55%, rgba(0,0,0,.18) 55%) !important; }
.lb-values .wp-block-image img { width: 90px; height: auto; }
.lb-values p { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 16px; }

/* ---------- Logos ---------- */
.lb-logos { justify-content: center; gap: 20px 50px !important; }
.lb-logos .wp-block-image img { max-width: 150px; height: auto; filter: grayscale(1); opacity: .85; transition: filter .3s, opacity .3s; }
.lb-logos .wp-block-image img:hover { filter: none; opacity: 1; }

/* ---------- Xifres ---------- */
.lb-numbers { background: #e9963a !important; }
.lb-numbers .lb-counter { font-size: 56px; font-weight: 700; color: #fff; margin: 0; line-height: 1; }
.lb-numbers .lb-counter-label { color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; margin: 10px 0 0; }

/* ---------- Contacte ---------- */
.lb-map iframe { width: 100%; height: 450px; border: 0; display: block; }
.lb-contact h2 { text-transform: uppercase; letter-spacing: .1em; font-size: 30px; }

/* ---------- Peu ---------- */
.lb-footer { font-size: 14px; }
.lb-footer a { color: var(--wp--preset--color--secondary); }
.lb-footer .lb-footer-title { font-weight: 700; margin-bottom: 4px; }

/* ---------- Avís de galetes ---------- */
#lb-cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.12); padding: 16px 30px; display: flex; gap: 20px; align-items: center; justify-content: space-between; font-size: 14px; }
#lb-cookies button { background: #ccc; color: #fff; border: 0; padding: 12px 34px; letter-spacing: .2em; font-weight: 700; font-size: 11px; cursor: pointer; text-transform: uppercase; }
#lb-cookies button:hover { background: var(--wp--preset--color--secondary); }

/* ---------- Mòbil ---------- */
@media (max-width: 781px) {
	.lb-step { padding: 60px 20px; text-align: center; }
	.lb-step .wp-block-image { text-align: center; }
	.lb-step--orange .wp-block-columns { flex-direction: column-reverse; }
	.lb-flip { min-height: 320px !important; }
	.lb-flip ul { max-height: 600px; opacity: 1; }
	.lb-flip .wp-block-cover__background { background-color: #000 !important; opacity: .55 !important; }
	#lb-cookies { flex-direction: column; text-align: center; }
}

/* Sense separació entre seccions a la portada */
.home .wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0; }
.lb-team a, .lb-footer a, .lb-contact a { text-decoration: none; }
.lb-team a:hover, .lb-footer a:hover, .lb-contact a:hover { text-decoration: underline; }

/* ---------- Selector d'idioma i crèdit del peu ---------- */
.lb-header .wp-block-navigation .lb-lang a { font-weight: 500; opacity: .55; letter-spacing: .08em; }
.lb-header .wp-block-navigation .lb-lang a[aria-current="true"] { opacity: 1; font-weight: 700; color: var(--wp--preset--color--primary); }
.lb-header .wp-block-navigation .lb-lang-first { margin-left: 18px; padding-left: 22px; border-left: 1px solid rgba(0,0,0,.15); }
@media (max-width: 599px) { .lb-header .wp-block-navigation .lb-lang-first { margin-left: 0; padding-left: 0; border-left: 0; } }
.lb-footer-credit { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 13px; opacity: .85; }
.lb-hero h1 .lb-hero-sub { display: block; font-size: .5em; line-height: 1.2; font-weight: 500; margin-top: .35em; max-width: 14em; }
.lb-flip li.lb-new { font-size: 14px; }
