/*
Theme Name: Mercury HM
Template: twentytwentyfive
Description: Motyw potomny strony MERCURY HM (recykling kabli, granulat miedzi). Treść z bloków Gutenberga, PL/DE/EN przez Polylang, formularze przez Contact Form 7.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: mercury-hm
*/

/* ---------- ogólne ---------- */
html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #e5443f; outline-offset: 2px; border-radius: 3px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.mhm-main > .entry-content > * , main.mhm-main .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.mhm-skip { position: fixed; left: 1rem; top: .75rem; z-index: 1000; padding: .75rem 1.25rem; border-radius: 6px; background: #1c2024; color: #fff; font-weight: 700; transform: translateY(-200%); }
.mhm-skip:focus { transform: none; }

/* ---------- sekcje (blok Grupa / Okładka na całą szerokość) ---------- */
.mhm-section { padding-block: clamp(3.5rem, 7vw, 5rem); }
.mhm-section > * + *, .mhm-cover .wp-block-cover__inner-container > * + * { margin-block-start: 1.25rem; }
.mhm-cover { padding-block: clamp(3.5rem, 7vw, 5rem) !important; min-height: 0 !important; align-items: center; }
.mhm-cover .wp-block-cover__inner-container { color: #1c2024; }
.mhm-text { max-width: 42rem; }
/* w Okładce kolumna tekstu stoi po lewej, równo z logo (jak w wersji React), a nie na środku */
.mhm-cover .wp-block-cover__inner-container > .mhm-text, .mhm-cover .wp-block-cover__inner-container > .mhm-text-wide { margin-left: max(0px, calc((100% - 1152px) / 2)) !important; margin-right: auto !important; }
.mhm-text-wide { max-width: 48rem; }
.mhm-cardtitle { font-size: 1.25rem !important; font-weight: 700; line-height: 1.35; }
.mhm-logos { max-width: 48rem; margin-inline: auto !important; }
.mhm-center { text-align: center; }
.mhm-lead { font-size: 1.125rem; line-height: 1.7; color: #1c2024cc; }
.mhm-muted { color: #1c2024a6; }
.mhm-small { font-size: .875rem; }
.mhm-strong { font-weight: 600; font-size: 1.125rem; }

/* hasła bez kropek: osobne akapity obok siebie (Grupa w układzie poziomym) */
.mhm-kicker p { margin: 0; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #2e7d4f; }
.mhm-motto { column-gap: .75rem !important; row-gap: .25rem !important; }
.mhm-motto p { margin: 0; font-family: Archivo, system-ui, sans-serif; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.5rem); color: #b5652f; line-height: 1.25; white-space: nowrap; }
.mhm-motto p + p::before { content: "·"; margin-right: .75rem; }
@media (min-width: 1024px) { .mhm-motto { flex-wrap: nowrap !important; } }
.mhm-subtitle { font-family: Archivo, system-ui, sans-serif; font-weight: 600; font-size: clamp(1.25rem, 2.5vw, 1.5rem); color: #1c2024d9; }

/* liczby i hasła z kalendarza */
.mhm-stat { text-align: center; }
.mhm-stat p:first-child { margin: 0; font-family: Archivo, system-ui, sans-serif; font-weight: 800; font-size: 2.25rem; color: #b5652f; }
.mhm-stat p:last-child { margin: .25rem 0 0; color: #1c2024a6; }
.mhm-usp { border-left: 4px solid #b5652f; padding-left: 1rem; }
.mhm-usp p { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.mhm-usp p strong { display: block; font-family: Archivo, system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; text-transform: uppercase; }
.mhm-divider { border-top: 1px solid #1c20241a; padding-top: 2.5rem; margin-top: 3rem !important; }

/* karty i linie nad kolumnami */
.mhm-card { border: 1px solid #1c202426; border-radius: 12px; padding: 1.25rem; background: #fff; }
@media (min-width: 640px) { .mhm-card.mhm-card-lg { padding: 2rem; } }
.mhm-topline { border-top: 4px solid #e5443f; padding-top: 1rem; }
.mhm-topline.mhm-copper { border-top-color: #b5652f; }
.mhm-topline > * { margin-block: 0; }
.mhm-topline > * + * { margin-block-start: .5rem; }
.mhm-year { font-family: Archivo, system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; color: #b5652f; }
.mhm-badge { font-size: .875rem; font-weight: 700; color: #2e7d4f; }
.mhm-badge-dark { display: inline-block; background: #1c2024; color: #fff; border-radius: 8px; padding: .25rem .75rem; font-size: .875rem; font-weight: 700; }
.mhm-amount-lead strong:first-child, .mhm-amount strong:last-child { font-family: Archivo, system-ui, sans-serif; font-weight: 800; font-size: 1.5rem; }
.mhm-facts p { margin: 0; color: #1c2024a6; font-size: .875rem; }
.mhm-facts p strong { display: block; color: #1c2024; font-size: 1rem; }
.mhm-label { margin-bottom: 0 !important; font-size: .875rem; font-weight: 700; color: #b5652f; }
.mhm-label + p { margin-top: .125rem !important; font-size: 1.125rem; }
.mhm-logos img { border-radius: 0 !important; }
.mhm-scan img { border: 1px solid #1c202426; border-radius: 8px !important; }

/* przyciski: wariant z obramowaniem ma białe tło */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid #1c2024; background: #fff; color: #1c2024; padding: calc(.75rem - 2px) calc(1.5rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #1c2024; color: #fff; }
.mhm-dark .wp-block-button.is-style-outline > .wp-block-button__link { border-color: #fff; }
.wp-block-button__link { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 639px) { .wp-block-buttons.mhm-stack { flex-direction: column; align-items: stretch; } .wp-block-buttons.mhm-stack > .wp-block-button { width: 100%; } .wp-block-buttons.mhm-stack .wp-block-button__link { width: 100%; } }

/* ciemna sekcja CTA */
.mhm-dark { color: #fff; }
.mhm-dark h2 { color: #fff; }
.mhm-dark p { color: #ffffffcc; }
.mhm-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link.mhm-light, .mhm-light > .wp-block-button__link { background: #fff; color: #1c2024; }

/* wideo w hero */
.mhm-video video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: #1c2024; }

/* mapa */
.mhm-map iframe { display: block; width: 100%; height: 20rem; border: 0; border-radius: 12px; }
@media (min-width: 768px) { .mhm-map iframe { height: 28rem; } }

/* ---------- nagłówek ---------- */
.mhm-header { background: #fff; border-bottom: 1px solid #1c20241a; position: relative; z-index: 50; }
.mhm-header__in { max-width: 1152px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mhm-logo { display: inline-flex; align-items: center; background: #e5443f; padding: .375rem .75rem; box-shadow: 0 1px 2px #0000001a; text-decoration: none !important; }
.mhm-logo span { font-family: Archivo, system-ui, sans-serif; font-style: italic; font-weight: 900; font-size: 1.45rem; line-height: 1; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.mhm-logo span b { font-weight: 900; font-size: 1.15em; }
.mhm-nav { display: none; gap: 1.25rem; }
.mhm-nav a, .mhm-mobile a { font-weight: 600; text-decoration: none; color: #1c2024; white-space: nowrap; }
.mhm-nav a:hover, .mhm-mobile a:hover, .mhm-nav a[aria-current], .mhm-mobile a[aria-current] { color: #b8302c; }
.mhm-tools { display: flex; align-items: center; gap: .75rem; }
.mhm-langs { display: flex; gap: .5rem; font-size: .875rem; font-weight: 700; }
.mhm-langs a { padding: .5rem .25rem; text-transform: uppercase; text-decoration: none; color: #1c20247f; }
.mhm-langs a[aria-current] { color: #1c2024; text-decoration: underline; text-underline-offset: 4px; }
.mhm-burger { position: static; }
.mhm-burger > summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; }
.mhm-burger > summary::-webkit-details-marker { display: none; }
.mhm-burger .mhm-x { display: none; }
.mhm-burger[open] .mhm-x { display: inline; }
.mhm-burger[open] .mhm-bars { display: none; }
.mhm-mobile { position: absolute; left: 0; right: 0; top: 4rem; background: #fff; border-bottom: 1px solid #1c20241a; padding: 0 clamp(16px, 4vw, 24px) .75rem; }
.mhm-mobile a { display: block; padding: .75rem 0; }
@media (min-width: 1280px) { .mhm-nav { display: flex; } .mhm-burger { display: none; } }

/* ---------- pasek z hasłem i stopka ---------- */
.mhm-slogan { background: #2e7d4f; color: #fff; text-align: center; padding: 1.5rem clamp(16px, 4vw, 24px); }
.mhm-slogan p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 1rem; font-family: Archivo, system-ui, sans-serif; font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.875rem); }
.mhm-slogan span { white-space: nowrap; }
.mhm-slogan span + span::before { content: "—"; margin-right: 1rem; }
.mhm-footer { background: #1c2024; color: #ffffffcc; font-size: .875rem; }
.mhm-footer a { color: #fff; }
.mhm-footer__in { max-width: 1152px; margin: 0 auto; padding: 3rem clamp(16px, 4vw, 24px); display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .mhm-footer__in { grid-template-columns: repeat(3, 1fr); } }
.mhm-footer h2 { margin: 0 0 .75rem; font-family: Archivo, system-ui, sans-serif; font-size: .875rem; font-weight: 700; color: #e0a26f; }
.mhm-footer ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.mhm-footer li { margin: .25rem 0; }
.mhm-footer li a { color: #ffffffcc; text-decoration: none; }
.mhm-footer li a:hover { color: #fff; }
.mhm-footer address { font-style: normal; }
.mhm-footer address > div + div { margin-top: 1.5rem; }
.mhm-footer .mhm-big { font-size: 1rem; font-weight: 600; text-decoration: none; word-break: break-all; }
.mhm-footer .mhm-reg { color: #ffffff99; margin-top: .75rem; }
.mhm-footer iframe { display: block; width: 100%; height: 15rem; border: 0; border-radius: 12px; }
.mhm-footer__bottom { border-top: 1px solid #ffffff1a; padding: 1.25rem clamp(16px, 4vw, 24px); text-align: center; font-size: .75rem; color: #ffffff99; }
.mhm-footer__bottom a { color: #ffffff99; }

/* ---------- formularz Contact Form 7 ---------- */
.wpcf7 p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-size: .875rem; font-weight: 600; }
.wpcf7 label .mhm-opt { font-weight: 400; color: #1c20248c; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { display: block; width: 100%; margin-top: .25rem; border: 1px solid #1c202440; border-radius: 8px; background: #fff; padding: .75rem; font: inherit; font-size: 1rem; box-sizing: border-box; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #b8302c; }
.wpcf7 input[type=submit] { min-height: 3rem; border: 0; border-radius: 8px; background: #b8302c; color: #fff; font: inherit; font-weight: 600; padding: .75rem 2rem; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: #9a2622; }
@media (max-width: 639px) { .wpcf7 input[type=submit] { width: 100%; } }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
