/*
Theme Name: Baix Montseny TV
Theme URI: https://baixmontsenytv.cat/
Author: Baix Montseny TV
Description: Tema editorial i audiovisual personalitzat per a Baix Montseny TV.
Version: 0.2.2
Text Domain: baix-montseny-tv
*/

:root { --navy:#032444; --navy-2:#061a31; --green:#06af66; --mint:#dff8ec; --paper:#f6f8fb; --ink:#10233a; --muted:#657386; --line:#dce4ea; --white:#fff; --radius:18px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Arial, Helvetica, sans-serif; line-height:1.55; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; height:auto; }
.bmtv-container { width:min(1180px, calc(100% - 40px)); margin:0 auto; }
.site-header { background:rgba(3,36,68,.98); color:#fff; position:sticky; top:0; z-index:10; box-shadow:0 3px 20px rgba(2,16,33,.18); }
.header-row { min-height:132px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; font-weight:800; letter-spacing:.02em; font-size:1.1rem; }
.custom-logo-link { display:block; width:250px; line-height:0; }
.custom-logo { display:block; width:250px !important; max-width:100%; height:auto !important; margin:0; }
.brand-mark { display:inline-grid; place-items:center; width:34px; height:34px; margin-right:10px; border:2px solid var(--green); border-radius:10px; color:var(--green); font-size:.8rem; }
.main-nav .menu { display:flex; list-style:none; margin:0; padding:0; gap:22px; font-size:.93rem; font-weight:700; }
.main-nav a { opacity:.9; }
.main-nav a:hover, .main-nav .current-menu-item a { color:#6bf0b0; opacity:1; }
.hero { color:#fff; overflow:hidden; background:radial-gradient(circle at 74% 23%, rgba(6,175,102,.38), transparent 30%), linear-gradient(120deg, var(--navy-2), var(--navy)); }
.hero-inner { min-height:500px; display:grid; grid-template-columns:1.2fr .8fr; align-items:center; gap:40px; padding:72px 0; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color:#83f2bd; text-transform:uppercase; font-weight:800; font-size:.74rem; letter-spacing:.12em; }
.eyebrow:before { content:''; width:25px; height:2px; background:var(--green); }
.hero h1 { margin:15px 0 20px; max-width:700px; font-size:clamp(2.55rem,5.8vw,5.2rem); line-height:.98; letter-spacing:-.055em; }
.hero p { max-width:640px; margin:0; font-size:1.14rem; color:#d4e0eb; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:31px; }
.button { display:inline-block; padding:13px 20px; border-radius:999px; font-size:.9rem; font-weight:800; transition:transform .2s, background .2s; }
.button:hover { transform:translateY(-2px); }
.button-primary { background:var(--green); color:#fff; }
.button-secondary { border:1px solid rgba(255,255,255,.4); color:#fff; }
.hero-card { align-self:end; padding:26px; border:1px solid rgba(255,255,255,.16); border-radius:var(--radius); background:rgba(255,255,255,.08); backdrop-filter:blur(8px); }
.hero-card .play { display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:var(--green); margin-bottom:18px; font-size:1.15rem; }
.hero-card strong { font-size:1.22rem; display:block; }
.hero-card p { margin:4px 0 0; font-size:.95rem; }
.section { padding:82px 0; }
.section-alt { background:#fff; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:31px; }
.section-heading h2 { max-width:670px; margin:6px 0 0; font-size:clamp(1.9rem,3vw,3rem); letter-spacing:-.04em; line-height:1.05; }
.section-heading p { max-width:420px; color:var(--muted); margin:0; }
.video-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.video-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 8px 22px rgba(15,45,73,.06); }
.video-thumb { position:relative; display:flex; align-items:flex-end; min-height:190px; padding:18px; background:linear-gradient(145deg, #0c426b, #043054 60%, #06af66); color:#fff; }
.video-thumb:before { content:'▶'; display:grid; place-items:center; position:absolute; top:18px; right:18px; width:43px; height:43px; border:1px solid rgba(255,255,255,.65); border-radius:50%; font-size:.85rem; }
.video-thumb span { max-width:220px; font-size:1.1rem; line-height:1.18; font-weight:800; }
.video-copy { padding:18px; }
.meta { color:var(--green); text-transform:none; letter-spacing:normal; font-size:.69rem; font-weight:800; }
.video-copy h3 { margin:7px 0 0; font-size:1.05rem; line-height:1.28; }
.municipality-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:13px; }
.municipality { display:flex; min-height:95px; padding:18px; align-items:flex-end; border-radius:14px; color:#fff; background:linear-gradient(145deg, #0b436b, #04305a); font-weight:800; }
.municipality:nth-child(2n) { background:linear-gradient(145deg, #078455, #035a51); }
.ad-slot { display:flex; align-items:center; justify-content:center; min-height:142px; margin:10px 0 0; border:2px dashed #9ddabd; border-radius:var(--radius); background:var(--mint); color:#146a45; text-align:center; }
.ad-slot small { display:block; color:#4b8466; font-weight:600; }
.project-band { background:var(--navy); color:#fff; }
.project-band .two-col { display:grid; grid-template-columns:1fr 1fr; gap:58px; align-items:center; }
.project-band h2 { font-size:clamp(2rem,3.5vw,3.2rem); margin:8px 0 16px; line-height:1.05; letter-spacing:-.04em; }
.project-band p { color:#d1e0ed; }
.checklist { list-style:none; padding:0; margin:0; }
.checklist li { padding:12px 0 12px 30px; border-bottom:1px solid rgba(255,255,255,.16); position:relative; }
.checklist li:before { content:'✓'; position:absolute; left:0; color:#66eaa9; font-weight:900; }
.site-footer { padding:50px 0 30px; background:#021a31; color:#cfdae4; }
.footer-grid { display:flex; justify-content:space-between; gap:30px; align-items:flex-start; }
.footer-title { color:#fff; font-size:1.12rem; font-weight:800; }
.footer-note { max-width:440px; margin:9px 0 0; }
.footer-bottom { margin-top:38px; padding-top:20px; border-top:1px solid rgba(255,255,255,.12); color:#9babb9; font-size:.8rem; }
.article { max-width:800px; margin:56px auto; background:#fff; padding:clamp(24px,5vw,56px); border-radius:var(--radius); }
.article h1 { line-height:1.05; letter-spacing:-.04em; }
@media (max-width:800px) { .main-nav { display:none; } .hero-inner, .project-band .two-col { grid-template-columns:1fr; } .hero-inner { min-height:auto; padding:68px 0; } .hero-card { display:none; } .video-grid { grid-template-columns:1fr; } .municipality-grid { grid-template-columns:repeat(2,1fr); } .section-heading, .footer-grid { display:block; } .section-heading p { margin-top:16px; } }

/* Editorial pages, accessible navigation and uncropped advertising. */
:focus-visible { outline:3px solid #06af66; outline-offset:4px; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:99999; background:#fff; color:var(--navy); padding:12px 18px; }
.skip-link:focus { top:40px; }
.admin-bar .site-header { top:32px; }
.header-row { gap:20px; }
.main-nav .menu { gap:18px; font-size:.87rem; flex-wrap:wrap; justify-content:flex-end; }
.custom-logo-link { flex-shrink:0; }
.custom-logo { object-fit:contain; }
.mobile-nav { display:none; }
.hero h1 { font-size:clamp(2.8rem,5.7vw,4.8rem); line-height:1.03; }
.hero-card { align-self:center; padding:32px; }
.hero-card strong { margin:16px 0 12px; font-size:1.7rem; line-height:1.18; }
.section .eyebrow, .archive-heading .eyebrow, .commercial-band .eyebrow { color:#087447; }
.project-band .eyebrow { color:#83f2bd; }
.text-link { color:#075f3d; font-weight:700; text-decoration:underline; text-underline-offset:5px; }
.section-intro { max-width:700px; color:#516276; font-size:1.06rem; }
.info-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:30px 0; }
.info-grid section { padding:24px; background:#f0f6f4; border:1px solid #d7e7df; border-radius:14px; }
.info-grid h3 { margin:8px 0 10px; font-size:1.16rem; }
.info-grid p { margin:0; color:#435669; }
.topic-grid section { background:white; padding:30px; }
.topic-number { font-size:.84rem; font-weight:800; letter-spacing:.12em; color:#087447; }
.municipality { justify-content:space-between; gap:12px; min-width:0; }
.municipality span { flex-shrink:0; color:#a9f4cf; }
.municipality:hover { box-shadow:0 6px 16px #03244426; outline:2px solid var(--green); }
.commercial-band { display:flex; gap:32px; justify-content:space-between; align-items:center; }
.commercial-band h2 { font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.15; margin:12px 0; }
.commercial-band p { color:var(--muted); }
.commercial-band .button { flex-shrink:0; }
.button-dark { background:var(--navy); color:#fff; }
.button-primary { background:#07854e; }
.page-article { max-width:1100px; }
.article h1 { font-size:clamp(2.15rem,4.5vw,3.8rem); margin:0 0 30px; }
.entry-content h2 { margin-top:38px; font-size:1.65rem; line-height:1.25; }
.entry-content h3 { line-height:1.3; }
.entry-content p, .entry-content li { line-height:1.75; }
.entry-content a:not(.button):not(.municipality) { color:#086441; text-decoration:underline; text-underline-offset:3px; }
.page-lead { color:#075f3d; font-size:1.45rem; font-weight:700; }
.work-steps { padding-left:24px; }
.work-steps li { padding:12px 0 12px 8px; }
.archive-page { padding-top:60px; padding-bottom:70px; }
.archive-heading { max-width:850px; margin-bottom:36px; }
.archive-heading h1 { font-size:clamp(2.4rem,5vw,4rem); line-height:1.1; letter-spacing:-.04em; margin:12px 0 20px; }
.archive-heading p { color:#516276; font-size:1.13rem; }
.empty-state { padding:clamp(24px,5vw,50px); border:1px solid var(--line); border-radius:18px; background:#fff; }
.empty-state h2 { font-size:1.6rem; line-height:1.25; margin-top:0; }
.empty-state p { color:#516276; margin-bottom:24px; }
.news-card { border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; }
.news-image { display:flex; align-items:center; justify-content:center; aspect-ratio:16/9; background:linear-gradient(140deg,#032444,#076749); color:#fff; }
.news-image img { display:block; width:100%; height:100%; object-fit:cover; }
.news-copy { padding:22px; }
.news-copy h2 { font-size:1.3rem; line-height:1.25; margin:10px 0; }
.news-copy h2 a:hover { text-decoration:underline; }
.news-copy p { color:#516276; font-size:.94rem; }
.news-copy .meta, .single-article .meta { color:#087447; }
.article-image { display:block; margin:28px auto; max-width:100%; height:auto; object-fit:contain; }
.post-categories { margin-bottom:24px; color:#087447; }
.entry-content iframe { max-width:100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { width:100%; height:auto; aspect-ratio:16/9; border:0; }
.entry-content video { width:100%; height:auto; }
.entry-content img { max-width:100%; height:auto; }
.navigation.pagination { margin:36px 0 0; }
.page-numbers { display:inline-block; padding:8px 14px; background:#fff; margin:3px; border:1px solid var(--line); border-radius:6px; }
.page-numbers.current { background:var(--navy); color:#fff; }
.advertisement { margin:32px auto; text-align:center; width:100%; max-width:1180px; }
.advertisement small { display:block; margin-bottom:8px; color:#657386; font-size:.72rem; }
.advertisement img { display:block; width:auto; max-width:100%; height:auto; max-height:300px; object-fit:contain; margin:0 auto; }
.footer-nav .menu { display:flex; flex-wrap:wrap; gap:12px 24px; list-style:none; padding:0; margin:30px 0 0; }
.footer-nav a:hover { color:#83f2bd; }
.footer-contact { min-width:0; }
.footer-contact ul { list-style:none; padding:0; margin:14px 0; }
.footer-contact li { margin:0 0 14px; }
.footer-contact li span { display:block; color:#aabbc9; font-size:.8rem; }
.footer-contact a { overflow-wrap:anywhere; }
.footer-contact a:hover { color:#83f2bd; text-decoration:underline; }
.footer-contact-more { display:inline-block; text-decoration:underline; text-underline-offset:4px; }
.contact-grid section { display:flex; flex-direction:column; min-width:0; }
.entry-content .contact-grid h2 { margin:12px 0 16px; font-size:1.3rem; line-height:1.25; }
.contact-grid section p:last-child { margin-top:auto; padding-top:20px; }
.contact-grid a { overflow-wrap:anywhere; font-weight:700; font-size:.94rem; }
.contact-callout { padding:clamp(22px,4vw,36px); margin:30px 0; background:#eff8f3; border:1px solid #cde5d8; border-left:4px solid #07854e; border-radius:14px; }
.entry-content .contact-callout h2 { margin:10px 0 14px; }
.contact-callout .contact-email { display:inline-block; font-size:clamp(1rem,2.4vw,1.55rem); font-weight:700; overflow-wrap:anywhere; max-width:100%; }
.contact-callout p:last-child { margin-bottom:0; font-size:.92rem; color:#516276; }
@media(max-width:1050px) {
 .main-nav { display:none; }
 .mobile-nav { display:block; }
 .mobile-nav summary { cursor:pointer; font-weight:700; padding:12px; list-style:none; border:1px solid #ffffff55; border-radius:8px; }
 .mobile-nav summary span { margin-left:12px; }
 .mobile-nav[open] nav { position:absolute; left:0; right:0; top:100%; background:var(--navy); border-top:1px solid #ffffff33; box-shadow:0 14px 24px #00162b33; }
 .mobile-nav .menu { list-style:none; margin:0; padding:12px 20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .mobile-nav a { display:block; padding:14px 12px; }
 .mobile-nav a:hover { background:#ffffff12; }
 .page-article .municipality-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:800px) {
 .info-grid { grid-template-columns:1fr; }
 .commercial-band { display:block; }
 .commercial-band .button { margin-top:16px; }
 .hero-inner { padding:54px 0; }
 .section { padding:54px 0; }
 .header-row { min-height:108px; }
 .custom-logo-link { width:205px; }
 .custom-logo { width:205px!important; }
 .footer-grid>div+div { margin-top:28px; }
 .section-heading .text-link { display:inline-block; margin-top:22px; }
 .page-article { margin:28px auto; padding:28px 20px; }
 .archive-page { padding-top:40px; }
}
@media(max-width:782px) { .admin-bar .site-header { top:46px; } }
@media(max-width:600px) { .admin-bar .site-header { top:0; } }
@media(max-width:380px) { .custom-logo-link { width:175px; } .custom-logo { width:175px!important; } .header-row { gap:8px; } .municipality-grid, .page-article .municipality-grid { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .button { transition:none; } }
