/*
Theme Name: RTU Lipińscy
Description: Motyw strony RTU Lipińscy – ubezpieczenia, rejestracje, tłumaczenia. Odtworzenie wyglądu poprzedniej strony bez zewnętrznych zależności.
Author: SP-Media
Author URI: https://spmedia.pl/
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: rtu-lipinscy
*/

:root {
	--blue: #3563a9;
	--blue-dark: #284d86;
	--band: #566eb4;
	--orange: #f6a75a;
	--orange-light: #ffc995;
	--ink: #333;
	--muted: #777;
	--line: #e3e3e3;
	--gray: #f4f4f4;
	--black: #0d0d0d;
	--wrap: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.7 Montserrat, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, h4 { color: #222; font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 14px; }

/* Przyciski */
.btn { display: inline-block; padding: 13px 34px; background: var(--blue); color: #fff; border: 2px solid var(--blue); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: transparent; color: var(--blue); text-decoration: none; }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover, .btn-light:focus-visible { background: #fff; color: var(--blue); }

/* Nagłówek */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(0, 0, 0, .25); transition: background .25s, box-shadow .25s; }
.site-header.is-scrolled, .nav-open .site-header { background: rgba(26, 38, 64, .96); box-shadow: 0 2px 14px rgba(0, 0, 0, .2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.brand img { display: block; width: 120px; height: auto; transition: width .25s; }
.is-scrolled .brand img { width: 96px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 16px; color: #fff; font-size: 14px; font-weight: 500; }
.main-nav a:hover, .main-nav a:focus-visible { text-decoration: none; background: rgba(255, 255, 255, .12); color: #fff; }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { color: var(--ink); padding: 8px 18px; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a:focus-visible { background: var(--blue); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* Zakładka Facebook */
.fb-tab { position: fixed; left: 0; top: 50%; z-index: 40; transform: translateY(-50%); line-height: 0; }
.fb-tab img { width: 40px; height: auto; }

/* Hero */
.hero { position: relative; min-height: clamp(520px, 88vh, 760px); display: flex; align-items: center; background: #222 center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 40, .78), rgba(10, 20, 40, .35)); }
.hero-inner { position: relative; padding-top: 88px; }
.hero-title { color: #fff; font-size: clamp(32px, 6vw, 64px); font-weight: 700; line-height: 1.15; margin-bottom: 36px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-title i { font-style: normal; color: var(--orange); font-weight: 400; }

/* Sekcje */
.sec { padding: 80px 0; }
.sec-title { font-size: 32px; margin-bottom: 36px; }
.sec-title.center { text-align: center; }
.sec-top-line { border-top: 0; }
.sec-top-line > .container:first-child::before, .divider { content: ""; display: block; width: 60%; max-width: 520px; height: 2px; margin: 0 auto 60px; border: 0; background: var(--line); }
.divider { margin: 70px auto 60px; }

/* Zakładki ubezpieczeń */
.tabs { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.tab-list { list-style: none; margin: 0; padding: 0; background: var(--gray); }
.tab-list button { width: 100%; text-align: left; border: 0; border-bottom: 1px solid #fff; background: none; padding: 14px 40px 14px 20px; font: 400 14px/1.4 Montserrat, sans-serif; color: #888; cursor: pointer; position: relative; }
.tab-list button::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border: 1px solid currentColor; transform: translateY(-50%); }
.tab-list button:hover { color: var(--blue); }
.tab-list button[aria-selected="true"] { background: var(--blue); color: #fff; }
.tab-panel { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-text blockquote { margin: 0 0 22px; padding: 0 0 0 20px; position: relative; font: italic 400 24px/1.5 Georgia, "Times New Roman", serif; color: var(--blue); }
.tab-text blockquote::before { content: "\201C"; position: absolute; left: -6px; top: -10px; font-size: 40px; }
.tab-text blockquote::after { content: "\201D"; font-size: 30px; line-height: 0; vertical-align: -10px; margin-left: 4px; }
.tab-icon { text-align: center; }
.tab-icon img { width: 200px; }
.entry ul, .entry ol { padding-left: 20px; }
.entry li { margin-bottom: 4px; }

/* Karta Dużej Rodziny */
.kdr { background: var(--band); color: #fff; overflow: hidden; }
.kdr-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 40px; }
.kdr-text { padding: 0 0 50px 80px; }
.kdr h2 { color: var(--orange); font-size: 34px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; }
.kdr h3 { color: var(--orange); font-size: 28px; font-weight: 700; margin-bottom: 18px; }
.kdr p { color: var(--orange-light); font-size: 22px; line-height: 1.45; margin: 0; }
.kdr-img { display: block; width: 256px; margin-right: 80px; }

/* Warto wiedzieć */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; padding: 0 30px; }
.card { border: 1px solid #eee; box-shadow: 0 1px 4px rgba(0, 0, 0, .04); padding: 30px 28px 26px; font-size: 14px; }
.card h3 { font-size: 18px; margin-bottom: 18px; }
.card a { display: block; margin-top: 18px; }

/* Partnerzy */
.partners { list-style: none; margin: 0 auto; padding: 0; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 40px; }
.partners li { width: 170px; display: flex; align-items: center; justify-content: center; }
.partners img { width: 170px; height: auto; filter: grayscale(.15); transition: filter .2s, transform .2s; }
.partners img:hover { filter: none; transform: scale(1.04); }

/* Rejestracje */
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.reg-grid figure { margin: 0; }
.reg-grid img { display: block; width: 100%; aspect-ratio: 270 / 260; object-fit: cover; }
.reg-grid figcaption { margin-top: 20px; font-size: 16px; line-height: 1.45; color: #333; }
.reg-grid b { font-weight: 600; }

/* Tłumaczenia */
#tlumaczenia { padding-bottom: 0; }
.tl-points { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; font-size: 16px; }
.tl-band { background: var(--gray); margin-top: 20px; }
.tl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; padding-top: 0; padding-bottom: 0; }
.tl-steps, .tl-langs { padding: 50px 0; }
.tl-steps h2, .tl-langs h2 { font-size: 30px; margin-bottom: 30px; }
.tl-steps ol { list-style: none; margin: 0; padding: 0 0 0 20px; }
.tl-steps li { display: flex; gap: 18px; align-items: center; font-size: 15px; color: #444; margin-bottom: 34px; }
.tl-steps li span { flex: none; width: 44px; height: 44px; border: 2px solid var(--blue); border-radius: 50%; display: grid; place-items: center; color: var(--blue); font-weight: 700; font-size: 18px; }
.tl-form { background: #ebeaea; padding: 34px 34px 40px; }
.tl-langs { text-align: right; }
.tl-langs ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 2.1; }

/* Formularz CF7 */
.wpcf7 label { display: block; font-size: 14px; color: #333; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 input[type="file"] { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #999; background: #fff; font: 400 14px Montserrat, sans-serif; color: #333; }
.wpcf7 textarea { height: 140px; resize: vertical; }
.wpcf7 ::placeholder { font-style: italic; color: #999; }
.wpcf7 .wpcf7-acceptance, .wpcf7 .wpcf7-acceptance label { font-size: 11px; line-height: 1.5; color: #555; }
.wpcf7 input[type="submit"] { display: block; margin: 16px auto 0; padding: 9px 26px; background: #fff; border: 1px solid #999; font: 500 14px Montserrat, sans-serif; cursor: pointer; transition: .2s; }
.wpcf7 input[type="submit"]:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.wpcf7 p { margin-bottom: 12px; }

/* Podstrony */
.inner-banner { position: relative; padding: 170px 0 70px; background: #222 center / cover no-repeat; }
.inner-banner::before { content: ""; position: absolute; inset: 0; background: rgba(15, 28, 55, .72); }
.inner-banner .container { position: relative; }
.inner-banner h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 600; margin: 0; }
.page-entry { max-width: 900px; }
.page-entry h1, .page-entry h2 { font-size: 26px; margin-top: 1.2em; color: var(--blue); }
.page-entry h1:first-child, .page-entry h2:first-child { margin-top: 0; }
.page-entry h3 { font-size: 19px; margin-top: 1.2em; }
.page-entry iframe { width: 100%; border: 0; }
.post-item { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }

/* Stopka */
.site-footer { background: var(--black); color: #aaa; font-size: 13px; }
.site-footer a { color: #4f8ee8; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid #222; }
.footer-row .addr, .footer-row .tel { color: #eee; font-size: 14px; }
.footer-bottom { padding-top: 16px; padding-bottom: 18px; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 42px; height: 42px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 18px; opacity: .85; }
.to-top:hover { opacity: 1; color: #fff; text-decoration: none; }

/* Responsywność */
@media (max-width: 1100px) {
	.kdr-text { padding-left: 0; }
	.kdr-img { margin-right: 0; }
	.cards { gap: 24px; padding: 0; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 88px 0 0; background: rgba(26, 38, 64, .98); padding: 10px 16px 40px; overflow-y: auto; display: none; }
	.nav-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav a { padding: 13px 6px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 16px; }
	.main-nav .sub-menu a { color: #cfd8ea; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.tabs { grid-template-columns: 1fr; gap: 24px; }
	.tab-list { display: flex; flex-wrap: wrap; }
	.tab-list li { flex: 1 1 50%; }
	.tab-list button { border-right: 1px solid #fff; }
	.tab-panel { grid-template-columns: 1fr; }
	.tab-icon { order: -1; text-align: left; }
	.tab-icon img { width: 110px; }
	.cards { grid-template-columns: 1fr; }
	.reg-grid { grid-template-columns: repeat(2, 1fr); }
	.tl-grid { grid-template-columns: 1fr; }
	.tl-langs { text-align: left; }
	.tl-form { margin: 0 -16px; }
	.kdr-inner { flex-direction: column; align-items: center; text-align: center; }
	.kdr-text { padding: 0; }
}
@media (max-width: 600px) {
	body { font-size: 14px; }
	.sec { padding: 56px 0; }
	.sec-title { font-size: 26px; }
	.header-inner { min-height: 72px; }
	.brand img, .is-scrolled .brand img { width: 84px; }
	.main-nav { top: 72px; }
	.fb-tab { display: none; }
	.tl-points { grid-template-columns: 1fr; gap: 0; }
	.reg-grid { grid-template-columns: 1fr; }
	.tab-list li { flex-basis: 100%; }
	.tab-text blockquote { font-size: 19px; }
	.kdr h2 { font-size: 26px; }
	.kdr h3 { font-size: 21px; }
	.kdr p { font-size: 17px; }
	.partners li, .partners img { width: 130px; }
	.footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
