/*
Theme Name: Privat Banker
Theme URI: https://privatbanker.eu
Author: IF MEDIA s.r.o.
Author URI: https://ifmedia.eu
Description: Vlastná ľahká téma pre privatbanker.eu. Nahrádza The7 + WPBakery + Ultimate Addons, bez page buildera a bez jQuery závislostí témy.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: privatbanker
*/

/* ---------- Premenné (hodnoty odčítané zo živého webu) ---------- */
:root {
	--pb-blue: #3b8ced;      /* akcent: horná lišta, odkazy, tlačidlá */
	--pb-blue-h3: #008adb;   /* modrý nadpis "Konzultácia!" */
	--pb-text: #72777d;
	--pb-head: #3c3e45;
	--pb-red: #de5034;       /* časová os */
	--pb-line: #d0d0d0;
	--pb-wrap: 1300px;
	--pb-pad: 50px;
	--pb-header-h: 90px;
	--pb-font: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
	--pb-font-head: Roboto, "Open Sans", Helvetica, Arial, sans-serif;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/26px var(--pb-font); color: var(--pb-text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--pb-blue); }
a:hover { color: var(--pb-head); }
p { margin: 0 0 10px; }
h1, h2, h3, h4 { color: var(--pb-head); font-weight: 400; margin: 0 0 10px; }
h3 { font-size: 20px; line-height: 28px; }
h4 { font-size: 20px; line-height: 28px; }
:focus-visible { outline: 2px solid var(--pb-blue); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pb-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 16px; z-index: 1000; }
.pb-skip:focus { left: 8px; top: 8px; }
.pb-wrap { width: 100%; max-width: var(--pb-wrap); margin: 0 auto; padding: 0 var(--pb-pad); }
.pb-ico { vertical-align: -0.15em; }

/* ---------- Horná lišta ---------- */
.pb-topbar { background: var(--pb-blue); color: #fff; font-size: 12px; font-weight: 700; line-height: 26px; }
.pb-topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 35px; gap: 20px; }
.pb-topbar__left, .pb-topbar__right { display: flex; align-items: center; gap: 22px; }
.pb-topbar a { color: #fff; text-decoration: none; }
.pb-topbar a:hover { opacity: .8; }
.pb-topbar .pb-ico { font-size: 15px; margin-right: 6px; }
.pb-cart { position: relative; }
.pb-cart__count { background: #fff; color: var(--pb-blue); border-radius: 2px; padding: 0 5px; margin-left: 6px; font-size: 11px; }
.pb-soc .pb-ico { margin: 0; }

/* ---------- Hlavička ---------- */
.pb-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .07); }
.admin-bar .pb-header { top: 32px; }
.pb-header__in { display: flex; align-items: center; min-height: var(--pb-header-h); gap: 30px; }
.pb-logo { flex: 0 0 auto; line-height: 0; }
.pb-logo img { width: 250px; height: auto; max-height: 60px; object-fit: contain; }
.pb-nav { margin-left: auto; }
.pb-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 34px; }
.pb-menu li { position: relative; }
.pb-menu a { display: block; padding: 10px 0; font-size: 16px; line-height: 20px; text-transform: uppercase; text-decoration: none; color: var(--pb-head); }
.pb-menu a:hover, .pb-menu .current-menu-item > a { color: var(--pb-blue); }
.pb-menu ul { position: absolute; top: 100%; left: -15px; min-width: 220px; margin: 0; padding: 10px 15px; list-style: none; background: #fff; box-shadow: 0 4px 15px rgba(0, 0, 0, .12); display: none; }
.pb-menu li:hover > ul, .pb-menu li:focus-within > ul { display: block; }
.pb-menu ul a { font-size: 14px; text-transform: none; padding: 6px 0; }
.pb-search-toggle, .pb-burger { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--pb-head); }
.pb-search-toggle { font-size: 22px; line-height: 0; }
.pb-burger { display: none; width: 40px; height: 40px; }
.pb-burger span { display: block; height: 2px; margin: 5px 0; background: var(--pb-head); }
.pb-search { border-top: 1px solid #eee; padding: 12px 0; background: #fff; }
.pb-mobile-nav { position: fixed; inset: 0 auto 0 0; width: min(330px, 86vw); background: #fff; z-index: 200; padding: 80px 30px 30px; overflow-y: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .25); }
.pb-mobile-menu { list-style: none; margin: 0; padding: 0; }
.pb-mobile-menu ul { list-style: none; padding-left: 15px; }
.pb-mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 16px; text-transform: uppercase; color: var(--pb-head); text-decoration: none; }

/* ---------- Vyhľadávací formulár ---------- */
.pb-searchform { position: relative; }
.pb-searchform input[type="search"] { width: 100%; height: 38px; padding: 5px 40px 5px 15px; border: 1px solid rgba(173, 176, 182, .3); background: #fcfcfc; color: #787d85; font: inherit; border-radius: 0; }
.pb-searchform button { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; background: none; color: var(--pb-text); font-size: 18px; cursor: pointer; }

/* ---------- Sekcie úvodky ---------- */
.pb-section { position: relative; padding: 35px 0 0; background-position: 50% 50%; scroll-margin-top: var(--pb-header-h); }
.pb-section--grad { background: linear-gradient(to bottom, #dbdbdb 0%, #fff 100%); }
.pb-section > span[id] { position: absolute; top: 0; scroll-margin-top: var(--pb-header-h); }
.pb-h3-blue { font: 900 26px/32px var(--pb-font-head); color: var(--pb-blue-h3); }

/* Oddeľovač s nadpisom */
.pb-sep { display: flex; align-items: center; gap: 16px; min-height: 60px; margin: 0 0 35px; }
.pb-sep__line { flex: 1 1 0; height: 1px; background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12)); box-shadow: 0 0 8px 2px rgba(255, 255, 255, .9); }
.pb-sep__line:last-child { background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12)); }
.pb-sep__icon { font-size: 30px; line-height: 0; color: #2a2a2a; }
.pb-sep__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 400; color: var(--pb-head); }

/* 1. Hero */
.pb-hero { min-height: 468px; background-color: #6f6a62; background-repeat: no-repeat; background-position: 50% 0; background-size: cover; display: flex; align-items: center; }
.pb-hero__text { max-width: 50%; padding: 60px 0 100px; }
.pb-hero__title { font: 700 32px/42px var(--pb-font-head); color: #fff; margin: 0 0 25px; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.pb-hero__typed { font: 500 19px/26px var(--pb-font-head); color: #fff; min-height: 52px; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.pb-typed { margin: 0 5px; }
.pb-typed__cursor { animation: pb-blink .7s infinite; }
@keyframes pb-blink { 50% { opacity: 0; } }

/* 2. Konzultácia */
.pb-section#konzultacia { padding-bottom: 35px; }
.pb-konz { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; align-items: start; }
.pb-video { position: relative; padding-top: 56.25%; }
.pb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 3. Referencie */
.pb-refs { background-size: cover; background-color: #8fa2b5; padding-bottom: 30px; }
.pb-refs .pb-sep__title, .pb-refs .pb-sep__icon { color: var(--pb-head); }
.pb-refs .pb-sep__line { background: rgba(255, 255, 255, .85); box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8); }
.pb-slider__track { display: grid; }
.pb-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s; padding: 14px 3px; }
.pb-slide.is-active { opacity: 1; visibility: visible; }
.pb-slide h4, .pb-slide p { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.pb-slider__dots { display: flex; justify-content: center; gap: 12px; padding: 12px 0; }
.pb-slider__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #ebebeb; background: transparent; cursor: pointer; }
.pb-slider__dots button.is-active, .pb-slider__dots button:hover { background: #ebebeb; }

/* 4. Novinky */
.pb-section#novinky { padding-top: 44px; padding-bottom: 35px; }
.pb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pb-card { position: relative; display: block; aspect-ratio: 3 / 4; background: #353535 50% 50% / cover no-repeat; overflow: hidden; text-decoration: none; }
.pb-card__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 20px 30px; background: #353535; color: #fff; text-align: center; opacity: 0; transition: opacity .3s; }
.pb-card:hover .pb-card__over, .pb-card:focus-visible .pb-card__over { opacity: 1; }
.pb-card__title { font: 500 22px/1.2 var(--pb-font-head); }
.pb-card__rule { width: 45%; height: 1px; background: #fff; margin: 15px auto; }
.pb-card__text { font: 300 14px/1.3 var(--pb-font-head); }

/* 5. O mne */
.pb-about { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.pb-about__text { margin-bottom: 35px; }
.pb-about__photo { float: left; margin: 0 30px 0 0; border-radius: 50%; }
.pb-tl { position: relative; margin: 20px 0 35px; }
.pb-tl::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--pb-line); }
.pb-tl__badge { position: relative; text-align: center; margin: 30px 0; }
.pb-tl__badge span { display: inline-block; padding: 2px 7px; border: 1px solid #fff; border-radius: 5px; background: var(--pb-red); color: #fff; line-height: 21px; }
.pb-tl__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: 38px; row-gap: 20px; }
.pb-tl__item { position: relative; padding: 15px; border: 1px solid var(--pb-line); border-radius: 4px; background: #fcfcfc; font-size: 13px; }
.pb-tl__item h3 { font-size: 15px; line-height: 22.5px; margin: 0 0 7px; }
.pb-tl__item--left { grid-column: 1; grid-row: 1 / span 2; align-self: start; text-align: right; }
.pb-tl__item--right { grid-column: 2; margin-top: 40px; }
.pb-tl__item--right + .pb-tl__item--right { margin-top: 0; }
.pb-tl__item--full { grid-column: 1 / -1; text-align: center; margin-top: 15px; }
.pb-tl__dot { position: absolute; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--pb-red); border: 4px solid #fff; box-sizing: content-box; }
.pb-tl__item--left .pb-tl__dot { right: -31px; }
.pb-tl__item--right .pb-tl__dot { left: -31px; }
.pb-tl__item--full .pb-tl__dot { left: 50%; top: -27px; transform: translateX(-50%); }

/* 6. E-book */
.pb-section#ebook { padding-bottom: 60px; }
.pb-ebook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; }
.pb-ebook ol { margin: 0 0 10px; padding-left: 20px; }

/* 7. Kontakt */
.pb-kontakt { padding-top: 69px; padding-bottom: 60px; background-repeat: repeat; background-position: 50% 50%; }
.pb-kontakt__tri { position: absolute; top: 0; left: 0; width: 100%; height: 60px; display: block; }
.pb-kontakt .pb-wrap { position: relative; }
.pb-kontakt__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pb-kontakt__info { color: #000; }

/* ---------- Formuláre (Contact Form 7 a všeobecne) ---------- */
.wpcf7-form label { display: block; }
.wpcf7-form p { margin: 0 0 10px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], textarea, select {
	width: 100%; padding: 5px 15px; margin: 0 0 10px; border: 1px solid rgba(173, 176, 182, .3); background: #fcfcfc; color: #787d85; font: inherit; border-radius: 0;
}
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]) { height: 35px; }
.wpcf7-form textarea { height: 65px; resize: vertical; }
input[type="submit"], button[type="submit"]:not(.pb-searchform button), .button, .wp-element-button {
	display: inline-block; height: 43px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--pb-blue); color: #fff; font: 400 15px/43px var(--pb-font); cursor: pointer; text-decoration: none;
}
input[type="submit"]:hover, .button:hover, .wp-element-button:hover { background: #2f7bd6; color: #fff; }

/* ---------- Podstránky ---------- */
.pb-pagetitle { background: rgba(114, 119, 125, .08); padding: 24px 0 17px; min-height: 100px; }
.pb-pagetitle h1 { font-size: 26px; line-height: 32px; margin: 0; }
.pb-crumbs { font-size: 12px; line-height: 22px; color: #9ba1a8; padding: 3px 12px 2px; }
.pb-crumbs a { color: inherit; text-decoration: none; }
.pb-crumbs span { margin: 0 6px; }
.pb-crumbs > span:last-child { margin-right: 0; }
.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 27%; gap: 50px; }
.pb-main { padding: 0 0 70px; min-width: 0; }
.pb-main--full { padding-top: 50px; }
.pb-layout .pb-sidebar { padding: 50px 0 70px; }
.pb-content { overflow-wrap: break-word; }
.pb-content h2 { font-size: 24px; line-height: 32px; margin-top: 25px; }
.pb-content h3 { margin-top: 20px; }
.pb-content iframe, .pb-content video { max-width: 100%; }
.pb-content::after { content: ""; display: table; clear: both; }
.alignleft { float: left; margin: 5px 30px 15px 0; }
.alignright { float: right; margin: 5px 0 15px 30px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* Článok */
.pb-post__thumb { position: relative; margin: 0 0 30px; line-height: 0; }
.pb-post__thumb img { width: 100%; }
.pb-post__cat { position: absolute; left: 10px; top: 10px; padding: 2px 9px 1px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-decoration: none; }
.pb-post__date { position: absolute; right: 10px; top: 10px; width: 50px; height: 50px; border-radius: 50%; background: #fff; color: var(--pb-head); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pb-post__date span { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.pb-post__date strong { font-size: 18px; }
.pb-post__meta { margin: 20px 0; font-size: 12px; color: #9ba1a8; }
.pb-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.pb-postnav a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pb-head); font-size: 16px; line-height: 24px; }
.pb-postnav a:hover { color: var(--pb-blue); }
.pb-postnav small { display: block; font-size: 11px; text-transform: uppercase; color: #9ba1a8; }
.pb-postnav .pb-ico { font-size: 32px; flex: 0 0 auto; color: #c3c6ca; }
.pb-postnav__next { justify-content: flex-end; text-align: right; }
.pb-related { margin-top: 40px; }
.pb-related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 50px; margin-top: 20px; }
.pb-related article, .pb-recent li { display: flex; gap: 15px; }
.pb-related__thumb, .pb-recent__thumb { flex: 0 0 auto; width: 80px; height: 60px; background: #eee; overflow: hidden; }
.pb-related__thumb img, .pb-recent__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-related a, .pb-recent__title { color: var(--pb-head); text-decoration: none; display: block; line-height: 22px; }
.pb-related a:hover, .pb-recent__title:hover { color: var(--pb-blue); }
.pb-related time, .pb-recent time, .pb-list time { font-size: 12px; color: #9ba1a8; }

/* Bočný panel */
.pb-widget { margin: 0 0 35px; padding: 0 0 35px; border-bottom: 1px solid #eee; }
.pb-widget:last-child { border: 0; }
.pb-widget__title { font-size: 16px; font-weight: 700; }
.pb-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pb-recent__thumb { width: 40px; height: 40px; border-radius: 50%; margin-top: 4px; }

/* Výpis článkov */
.pb-list { display: grid; gap: 40px; padding-top: 50px; }
.pb-list__item { display: grid; grid-template-columns: 38% 1fr; gap: 30px; }
.pb-list__item:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.pb-list__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.pb-list h2 { font-size: 22px; line-height: 30px; margin: 0 0 5px; }
.pb-list h2 a { color: var(--pb-head); text-decoration: none; }
.pb-list h2 a:hover { color: var(--pb-blue); }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { padding: 4px 12px; border: 1px solid #eee; text-decoration: none; color: var(--pb-head); }
.nav-links .current { background: var(--pb-blue); border-color: var(--pb-blue); color: #fff; }

/* ---------- WooCommerce: len zladenie farieb, rozloženie rieši plugin ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	background: var(--pb-blue); color: #fff; border-radius: 6px; font-weight: 400; height: auto; line-height: 1.4; padding: 12px 18px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #2f7bd6; color: #fff; }
.woocommerce span.onsale { background: var(--pb-blue); }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--pb-head); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--pb-blue); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--pb-blue); }
.pb-woo h1 { font-size: 26px; line-height: 32px; }

/* ---------- Pätička ---------- */
.pb-footer { background: #fff; border-top: 1px solid #f4f4f5; font-size: 12px; line-height: 22px; }
.pb-footer__in { display: flex; justify-content: flex-end; align-items: center; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
.pb-footer p { margin: 0; }
.pb-footer a { color: inherit; }
.pb-totop { position: fixed; right: 24px; bottom: 90px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .25); color: #fff; font-size: 24px; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.pb-totop .pb-ico { transform: rotate(90deg); }
.pb-totop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responzivita ---------- */
/* Pod 1050 px: hamburger vľavo, logo v strede, lupa vpravo (rovnako ako pôvodný web pri šírke 1009 px). */
@media (max-width: 1050px) {
	:root { --pb-header-h: 80px; }
	.pb-nav { display: none; }
	.pb-burger { display: block; }
	.pb-header__in { justify-content: space-between; }
	.pb-logo img { width: 200px; }
	.pb-menu { gap: 22px; }
}
@media (max-width: 782px) {
	.admin-bar .pb-header { top: 46px; }
}
@media (max-width: 778px) {
	:root { --pb-pad: 20px; --pb-header-h: 60px; }
	.pb-topbar__left span { display: none; }
	.pb-logo img { width: 150px; }
	.pb-hero { min-height: 380px; background-position: 68% 0; }
	.pb-hero__text { max-width: 70%; padding: 40px 0; }
	.pb-hero__title { font-size: 24px; line-height: 32px; }
	.pb-hero__title br { display: none; }
	.pb-konz, .pb-cards, .pb-about, .pb-ebook, .pb-kontakt__cols, .pb-layout, .pb-related__grid, .pb-list__item { grid-template-columns: 1fr; }
	.pb-card { aspect-ratio: 4 / 3; }
	.pb-card__over { opacity: .88; }
	.pb-about__photo { float: none; display: block; margin: 0 auto 20px; }
	.pb-layout { gap: 0; }
	.pb-layout .pb-sidebar { padding-top: 0; }
	.pb-postnav { grid-template-columns: 1fr; }
	.pb-footer__in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.pb-typed__cursor { animation: none; }
	.pb-slide, .pb-card__over { transition: none; }
}
