/*
Theme Name: metalsradar Fintech
Description: Motyw potomny Kadence w stylu Fintech (makiety projekty/cmo/redesign/makiety). Etap 1: nagłówek, stopka, kolory, fonty.
Template: kadence
Version: 0.6.0
Text Domain: metalsradar-fintech
*/

/* ---------- Fonty (własny hosting, OFL; bez Google Fonts) ---------- */
/* Inter Tight służy tylko do logo „metalsradar” (nagłówek, stopka): plik zawęża litery logo (1,7 KB zamiast 22,8 KB). */
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fonts/inter-tight-logo.woff2') format('woff2');
	unicode-range: U+0041, U+0044, U+0045, U+004C, U+004D, U+0052-0054, U+0061, U+0064, U+0065, U+006C, U+006D, U+0072-0074;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('assets/fonts/manrope-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny Fintech (z makiet) ---------- */
:root:root {
	--bg: #f4f6f9; --panel: #fff; --soft: #f7f9fc; --ink: #0d1726; --muted: #56637a; --faint: #8791a3; --line: #e5e9f0;
	--up: #0e9f6e; --up-deep: #07694a; --up-soft: #e2f6ee; --blue: #2f6fed; --down: #d64545;
	--chip: #eef2f7; --r: 16px;
	--shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -14px rgba(16,24,40,.14);
	--f-ui: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-logo: "Inter Tight", Manrope, system-ui, sans-serif;

	/* Paleta Kadence -> Fintech (bloki Kadence biorą kolory z tych zmiennych) */
	--global-palette1: #0e9f6e;
	--global-palette2: #07694a;
	--global-palette3: #0d1726;
	--global-palette4: #0d1726;
	--global-palette5: #56637a;
	--global-palette6: #8791a3;
	--global-palette7: #eef2f7;
	--global-palette8: #f4f6f9;
	--global-palette9: #ffffff;
	--global-palette-highlight: #0e9f6e;
	--global-palette-highlight-alt: #07694a;
	--global-palette-btn-bg: #0e9f6e;
	--global-palette-btn-bg-hover: #07694a;
	--global-palette-btn: #ffffff;
	--global-palette-btn-hover: #ffffff;
	--global-body-font-family: var(--f-ui);
	--global-heading-font-family: var(--f-ui);
}

/* ---------- Baza ---------- */
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-ui);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.wp-block-kadence-advancedheading { font-family: var(--f-ui); }
h1 { font-weight: 800; letter-spacing: -.025em; }
h2, h3 { font-weight: 800; letter-spacing: -.02em; }
a { color: var(--up); }
a:hover { color: var(--up-deep); }
.content-bg, .entry.content-bg, body.content-style-unboxed .site { background: transparent; }
.entry.loop-entry, .content-bg.loop-entry,
.woocommerce ul.products li.product .product-details,
.wp-block-kadence-column.kb-section-has-bg { border-radius: var(--r); }

/* Przyciski */
.button, button.button, .wp-block-button__link, .kb-button, .kt-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
input[type="submit"] {
	border-radius: 10px !important;
	font-family: var(--f-ui);
	font-weight: 700;
}
input[type="text"], input[type="email"], input[type="search"], input[type="number"], select, textarea {
	border-radius: 10px;
	border-color: var(--line);
	font-family: var(--f-ui);
}
table { border-radius: 12px; }

/* ---------- Nagłówek ---------- */
.mrf-header { position: relative !important; top: auto !important; z-index: 70; background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--f-ui); }
.mrf-header *, .mrf-footer * { box-sizing: border-box; }
.mrf-header a, .mrf-footer a { text-decoration: none; }
.mrf-header .wrap, .mrf-footer .wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.mrf-header .top { display: flex; align-items: center; gap: 14px; height: 72px; }
.mrf-header .logo { flex: none; font-family: var(--f-logo); font-weight: 700; font-size: 32px; letter-spacing: -.06em; line-height: 1; color: var(--ink); margin-right: 10px; }
.mrf-header .logo:hover { color: var(--ink); }

.mnav { display: flex; gap: 2px; align-items: center; margin-left: 4px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.mrf-header .top .hsearch, .mrf-header .top .mkt { flex: none; }
.mnav .mi { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; font: 600 14.5px var(--f-ui); color: var(--ink); padding: 9px 8px; border-radius: 10px; white-space: nowrap; box-shadow: none; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.mnav .mi:hover, .mnav .mi[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.mnav .mi svg { transition: transform .15s; opacity: .7; }
.mnav .mi[aria-expanded="true"] svg { transform: rotate(180deg); }

.hsearch { position: relative; display: flex; align-items: center; gap: 8px; margin: 0; border: 1px solid var(--line); background: var(--soft); border-radius: 12px; padding: 0 12px; height: 40px; width: 230px; color: var(--muted); transition: width .2s, border-color .2s; }
.hsearch:focus-within { width: 300px; border-color: var(--up); background: var(--panel); }
.hsearch input[type="search"] { flex: 1; min-width: 0; border: 0 !important; outline: none; background: transparent !important; font: 500 14px var(--f-ui); color: var(--ink); padding: 0; height: 38px; box-shadow: none !important; }

.mkt { position: relative; flex: none; }
.mkt-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--f-ui); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; }
.mkt-btn:hover, .mkt-btn[aria-expanded="true"] { color: var(--ink); background: var(--soft); border-color: var(--line); }
.mkt-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 90; }
.mkt-list a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.mkt-list a small { margin-left: auto; color: var(--muted); font-size: 12px; }
.mkt-list a:hover, .mkt-list a.on { background: var(--soft); color: var(--ink); }
.mkt-list a.on { font-weight: 700; }

.mbtn { display: none; flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 10px; width: 42px; height: 40px; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; box-shadow: none; }
.mbtn:hover { background: var(--soft); color: var(--ink); }

.mega { position: absolute; left: 0; right: 0; top: 72px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(16,24,40,.28); z-index: 75; }
.mega[hidden] { display: none; }
.mega-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-top: 24px; padding-bottom: 26px; }
/* .mrf-header .wrap (padding: 0 16px) wygrywa z .mega-in: odstępy panelu muszą mieć ten sam priorytet. */
.mrf-header .mega-in { padding-top: 24px; padding-bottom: 26px; }
/* Menu bez kolumn kategorii (np. Platyna): mała karta pod przyciskiem zamiast pustego panelu na całą szerokość. */
.mega.mega-sm { right: auto; width: max-content; min-width: 240px; max-width: 320px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.mrf-header .mega.mega-sm .mega-in { display: block; padding: 16px 18px 18px; }
.mcol .mh { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.mlist { display: flex; flex-direction: column; }
.mlist.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.mlist a { padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.mlist a:hover { color: var(--up); }
.mall { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--up); }

.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(13,23,38,.45); }
.drawer[hidden] { display: none; }
.dr-in { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--panel); overflow: auto; padding: 14px 16px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.dr-top { display: flex; justify-content: space-between; align-items: center; }
.dr-top .logo { font-size: 28px; margin: 0; }
.dr-top .mbtn { display: inline-block; }
.drawer .hsearch.dr-s { width: auto; margin: 6px 0 4px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 2px; font-weight: 800; font-size: 17px; color: var(--ink); }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; color: var(--up); font-size: 20px; }
.drawer details[open] summary::after { content: "−"; }
.drawer .dl { display: flex; flex-direction: column; padding: 0 2px 12px; }
.drawer .dl a { padding: 8px 0; font-size: 15px; color: var(--ink); }
.drawer .dl a.dl-h { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.drawer .dl.flat a { font-weight: 700; font-size: 17px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.drawer .mkt.dr-mkt { margin-top: 8px; }
.drawer .mkt.dr-mkt .mkt-list { position: static; box-shadow: none; margin-top: 6px; }

@media (max-width: 1500px) {
	.mrf-header .top .hsearch { width: 44px; padding: 0 13px; cursor: text; }
	.mrf-header .top .hsearch input[type="search"] { opacity: 0; width: 0; }
	.mrf-header .top .hsearch:focus-within { width: 260px; }
	.mrf-header .top .hsearch:focus-within input[type="search"] { opacity: 1; width: auto; }
}
@media (max-width: 1240px) {
	.mrf-header .logo { font-size: 30px; }
	.mnav .mi { padding: 9px 8px; font-size: 14px; }
	.mkt-btn { padding: 0 10px; }
}
@media (max-width: 1060px) {
	.mrf-header .top .hsearch { width: 44px; padding: 0 13px; }
	.mrf-header .top .hsearch input[type="search"] { opacity: 0; width: 0; }
	.mrf-header .top .hsearch:focus-within { width: 220px; }
	.mrf-header .top .hsearch:focus-within input[type="search"] { opacity: 1; width: auto; }
}
@media (max-width: 1120px) {
	.mrf-header .top { height: 64px; }
	.mega { top: 64px; }
	.mrf-header .top .mnav, .mrf-header .top .hsearch, .mrf-header .top .mkt { display: none; }
	.mbtn { display: inline-block; margin-left: auto; }
	.mega { display: none !important; }
}
@media (max-width: 640px) {
	.mrf-header .logo { font-size: 28px; }
}

/* ---------- Stopka ---------- */
.mrf-footer { background: var(--panel); color: var(--muted); border-top: 1px solid var(--line); font-size: 13.5px; padding: 36px 0 24px; margin-top: 48px; font-family: var(--f-ui); }
.mrf-footer .fcols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.mrf-footer .flogo { display: inline-block; font-family: var(--f-logo); font-weight: 700; font-size: 26px; letter-spacing: -.055em; color: var(--ink); margin-bottom: 8px; }
.mrf-footer p { margin: 0 0 8px; line-height: 1.55; }
.mrf-footer .fh { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.mrf-footer .fcol a { display: block; color: var(--ink); padding: 4px 0; font-weight: 500; }
.mrf-footer .fcol a:hover { color: var(--up); }
.mrf-footer .fnews { margin-top: 18px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.mrf-footer .fnews .fh { color: var(--ink); text-transform: none; letter-spacing: -.01em; font-size: 15px; }
.mrf-footer .fnews form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mrf-footer .fnews .kb-form-field, .mrf-footer .fnews .kadence-blocks-form-field { flex: 1 1 160px; margin: 0 !important; padding: 0 !important; width: auto !important; }
.mrf-footer .fnews label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mrf-footer .fnews input[type="email"], .mrf-footer .fnews input[type="text"] { width: 100%; height: 42px; border: 1px solid var(--line) !important; border-radius: 10px !important; background: var(--panel) !important; padding: 0 12px !important; font: 500 14px var(--f-ui); color: var(--ink) !important; }
.mrf-footer .fnews { position: relative; }
.mrf-footer .fnews .kb-submit-field { position: static !important; flex: none; margin: 0 !important; padding: 0 !important; width: auto !important; inset: auto !important; transform: none !important; }
.mrf-footer .fnews button, .mrf-footer .fnews .kb-forms-submit { height: 42px; display: inline-flex !important; align-items: center !important; justify-content: center; line-height: 1 !important; padding: 0 16px !important; border: 0 !important; border-radius: 10px !important; background: var(--up) !important; color: #fff !important; font: 700 14px var(--f-ui) !important; cursor: pointer; }
.mrf-footer .fnews button:hover { background: var(--up-deep) !important; }
.mrf-footer .fnews small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.mrf-footer .fbot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 12px; color: var(--faint); }
/* Kolumna marki (logo, opis, newsletter) wyżej, żeby dół zrównał się z kolumnami linków */
@media (min-width: 981px) { .mrf-footer .fbrand { margin-top: -16px; } }
.mrf-footer .flogo { line-height: 1.1; }
.mrf-footer .fnews { margin-top: 12px; }
@media (max-width: 980px) {
	.mrf-footer .fcols { grid-template-columns: 1fr 1fr; }
	.mrf-footer .fbrand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.mrf-footer .fcols { grid-template-columns: 1fr; }
}

/* Przyciski wtyczki Directories (katalog dealerów USA, przechowywanie) */
.drts-bs-btn-warning, .drts-bs-btn-primary, .drts-bs-btn-success {
	background: var(--up) !important; border-color: var(--up) !important; color: #fff !important; border-radius: 10px !important; font-family: var(--f-ui); font-weight: 700;
}
.drts-bs-btn-warning:hover, .drts-bs-btn-primary:hover, .drts-bs-btn-success:hover { background: var(--up-deep) !important; border-color: var(--up-deep) !important; }

/* Stopniowe dopasowanie menu do szerokości (klasy z header.js): fit-1 sama flaga rynku, fit-2 krótkie etykiety, is-compact ☰. */
.mnav .mi .short { display: none; }
.mrf-header.fit-1 .mkt-lbl { display: none; }
.mrf-header.fit-2 .mnav .mi .full { display: none; }
.mrf-header.fit-2 .mnav .mi .short { display: inline; }
.mrf-header.is-compact .top .mnav, .mrf-header.is-compact .top .hsearch, .mrf-header.is-compact .top .mkt { display: none; }
.mrf-header.is-compact .mbtn { display: inline-block; margin-left: auto; }
.mrf-header.is-compact .mega { display: none !important; }
/* Na stronach z formularzem Kadence (np. kontakt) jego CSS dodaje 20 px nad przyciskiem i wyrównuje do dołu. */
.mrf-footer .fnews form.kb-form { align-items: center !important; }
.mrf-footer .fnews form.kb-form .kadence-blocks-form-field.kb-submit-field { padding: 0 !important; margin: 0 !important; }

/* Podpowiedzi wyszukiwarki (assets/js/search.js) */
.hs-drop { position: absolute; top: calc(100% + 6px); right: 0; width: max(100%, 380px); max-width: calc(100vw - 32px); max-height: min(70vh, 520px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(13, 23, 38, .14); padding: 6px; z-index: 90; text-align: left; }
.hs-drop[hidden] { display: none; }
.hs-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.hs-opt img, .hs-opt .hs-ph { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 8px; background: var(--soft); }
.hs-opt span { display: flex; flex-direction: column; min-width: 0; }
.hs-opt b { font: 600 14px/1.3 var(--f-ui); color: var(--ink); }
.hs-opt small { font-size: 12px; color: var(--muted); margin-top: 1px; }
.hs-opt:hover, .hs-opt.on { background: var(--up-soft); }
.hs-none { padding: 12px 10px; font-size: 14px; color: var(--muted); }
.hs-all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid var(--line); font: 700 13.5px var(--f-ui); color: var(--up); text-decoration: none; border-radius: 0 0 10px 10px; }
.hs-all:hover { background: var(--soft); }
.drawer .hsearch.dr-s .hs-drop { left: 0; right: 0; width: auto; max-width: none; max-height: 60vh; }
.mrf-home form.search { position: relative; }
.mrf-home form.search .hs-drop { left: 0; right: auto; width: 100%; max-width: none; }
