/*
Theme Name: poistimsi.sk
Theme URI: https://poistimsi.sk
Author: poistimsi.sk
Author URI: https://poistimsi.sk
Description: Moderná, rýchla a dôveryhodná klasická WordPress téma pre online poistenie na Slovensku. Jednotlivé typy poistenia sa pridávajú ako stránky so šablónou „Typ poistenia" a automaticky sa zobrazia na úvodnej stránke v prehľadných kartách.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: poistimsi
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. Základ / tokeny
   ========================================================= */
:root {
	--navy: #0c2d48;
	--navy-deep: #082137;
	--ink: #22334a;
	--muted: #5b7089;
	--blue: #1467b3;
	--blue-dark: #0f548f;
	--sky: #eaf3fb;
	--sky-soft: #f5faff;
	--amber: #f6a821;
	--amber-dark: #d98d07;
	--green: #1fa97a;
	--line: #dbe6f1;
	--white: #ffffff;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(12, 45, 72, 0.10);
	--shadow-soft: 0 4px 14px rgba(12, 45, 72, 0.08);
	--font-display: "Sora", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 0.55em;
	letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--navy);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 2px;
	border-radius: 4px;
}

/* =========================================================
   2. Tlačidlá
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	padding: 14px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
	background: var(--amber);
	color: var(--navy-deep);
	box-shadow: 0 6px 18px rgba(246, 168, 33, 0.35);
}
.btn-primary:hover { background: #ffb63a; color: var(--navy-deep); }

.btn-outline {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light {
	background: #fff;
	color: var(--navy);
	box-shadow: var(--shadow-soft);
}
.btn-light:hover { color: var(--blue-dark); }

/* =========================================================
   3. Hlavička
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { max-height: 44px; width: auto; }
.custom-logo { max-height: 44px; width: auto; }

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 500;
	font-size: 0.98rem;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	background: var(--sky);
	color: var(--blue-dark);
}

.header-cta { white-space: nowrap; }
.header-cta .btn { padding: 11px 20px; font-size: 0.95rem; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	width: 46px;
	height: 46px;
	cursor: pointer;
	padding: 10px;
	border-radius: 10px;
}
.nav-toggle span {
	display: block;
	height: 2.5px;
	background: var(--navy);
	border-radius: 2px;
	margin: 5px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   4. Hero
   ========================================================= */
.hero {
	background: linear-gradient(160deg, var(--sky-soft) 0%, var(--sky) 55%, #dcecfa 100%);
	overflow: hidden;
	position: relative;
}
.hero-inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
	padding: 72px 0 84px;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--blue-dark);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 7px 14px;
	border-radius: 999px;
	margin-bottom: 20px;
	box-shadow: var(--shadow-soft);
}
.hero-eyebrow .dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--green);
}
.hero p.lead {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 34em;
	margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	padding: 0;
	margin: 0;
	list-style: none;
}
.hero-trust li {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--navy);
}
.hero-trust svg { flex: 0 0 auto; }

.hero-art { position: relative; }
.hero-art img { display: block; width: 100%; }

/* =========================================================
   5. Sekcie
   ========================================================= */
.section { padding: 80px 0; }
.section-alt { background: var(--sky-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-eyebrow {
	display: block;
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--blue);
	margin-bottom: 10px;
}

/* Karty poistenia */
.insurance-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.insurance-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 28px 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.insurance-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
	border-color: #c3d8ec;
}
.insurance-card .card-icon {
	width: 64px;
	height: 64px;
	border-radius: 18px;
	background: var(--sky);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(-3deg);
	transition: transform 0.18s ease;
}
.insurance-card:hover .card-icon { transform: rotate(0deg) scale(1.05); }
.insurance-card .card-icon img { width: 38px; height: 38px; }
.insurance-card h3 { margin: 0; }
.insurance-card h3 a { color: var(--navy); }
.insurance-card h3 a::after { content: ""; position: absolute; inset: 0; }
.insurance-card p { margin: 0; color: var(--muted); font-size: 0.97rem; flex: 1; }
.insurance-card .card-link {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--blue);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.insurance-card:hover .card-link { color: var(--blue-dark); gap: 10px; }
.insurance-card .card-link { transition: gap 0.18s ease; }

.insurance-empty {
	background: var(--sky-soft);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: 34px;
	color: var(--muted);
}

/* Ako to funguje */
.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	counter-reset: krok;
}
.step {
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	padding: 30px 28px;
	position: relative;
}
.step::before {
	counter-increment: krok;
	content: counter(krok, decimal-leading-zero);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--blue-dark);
	background: var(--sky);
	border-radius: 999px;
	padding: 6px 14px;
	display: inline-block;
	margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Prečo my */
.why-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}
.why-item { text-align: left; }
.why-item .why-icon {
	width: 54px; height: 54px;
	border-radius: 14px;
	background: var(--sky);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 14px;
}
.why-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* CTA pás */
.cta-band {
	background: linear-gradient(135deg, var(--navy) 0%, #114a75 60%, var(--blue) 100%);
	border-radius: 24px;
	padding: 56px 48px;
	display: grid;
	grid-template-columns: 1.4fr auto;
	gap: 32px;
	align-items: center;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.cta-band::after {
	content: "";
	position: absolute;
	right: -80px;
	top: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #cfe2f3; }

/* =========================================================
   6. Podstránky / obsah
   ========================================================= */
.page-hero {
	background: linear-gradient(160deg, var(--sky-soft), var(--sky));
	padding: 56px 0;
	border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
	font-size: 0.88rem;
	color: var(--muted);
	margin-bottom: 12px;
}
.page-hero h1 { margin-bottom: 6px; }
.page-hero .page-lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin: 0; }
.page-hero-flex { display: flex; align-items: center; gap: 28px; }
.page-hero-icon {
	flex: 0 0 auto;
	width: 92px; height: 92px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-soft);
}
.page-hero-icon img { width: 54px; height: 54px; }

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	padding: 64px 0 80px;
	align-items: start;
}
.content-layout.content-single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 860px;
}

.entry-content h2 { margin-top: 1.6em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
	border-left: 4px solid var(--blue);
	background: var(--sky-soft);
	margin: 1.5em 0;
	padding: 16px 22px;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.side-card {
	position: sticky;
	top: 100px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	padding: 28px;
}
.side-card h3 { margin-bottom: 10px; }
.side-card p { color: var(--muted); font-size: 0.95rem; }
.side-card .btn { width: 100%; justify-content: center; margin-top: 8px; }
.side-card ul.checklist { list-style: none; margin: 18px 0 4px; padding: 0; }
.side-card ul.checklist li {
	display: flex; gap: 10px; align-items: flex-start;
	font-size: 0.93rem; margin-bottom: 10px; color: var(--ink);
}
.side-card ul.checklist svg { flex: 0 0 auto; margin-top: 3px; }

/* =========================================================
   7. Formulár – online poistenie
   ========================================================= */
.quote-form {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px;
	max-width: 720px;
}
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.form-field input,
.form-field select,
.form-field textarea {
	font: inherit;
	padding: 13px 15px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--sky-soft);
	color: var(--ink);
	transition: border-color 0.15s ease, background 0.15s ease;
	width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--blue);
	background: #fff;
}
.form-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.88rem;
	color: var(--muted);
	grid-column: 1 / -1;
}
.form-consent input { width: 18px; height: 18px; margin-top: 3px; }
.form-notice {
	border-radius: var(--radius-sm);
	padding: 16px 20px;
	margin-bottom: 26px;
	font-weight: 500;
}
.form-notice.success { background: #e7f7f0; color: #0d6b4c; border: 1px solid #bfe8d7; }
.form-notice.error { background: #fdeeee; color: #a33030; border: 1px solid #f2caca; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* =========================================================
   8. Blog / archív
   ========================================================= */
.post-list { display: grid; gap: 26px; padding: 64px 0 80px; }
.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px;
}
.post-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.post-card .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.pagination { display: flex; gap: 8px; justify-content: center; padding-bottom: 60px; }
.pagination .page-numbers {
	padding: 8px 15px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--navy);
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* =========================================================
   9. Pätička
   ========================================================= */
.site-footer {
	background: var(--navy-deep);
	color: #b9cbdd;
	padding: 64px 0 0;
	margin-top: 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 46px;
}
.footer-brand p { font-size: 0.94rem; max-width: 30em; }
.footer-operator {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.88rem;
}
.footer-operator strong { color: #fff; font-weight: 600; }
.footer-logo img { max-height: 40px; margin-bottom: 14px; }
.site-footer h4 {
	color: #fff;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #b9cbdd; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 0;
	font-size: 0.85rem;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* =========================================================
   10. Responzivita
   ========================================================= */
@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
	.hero-art { max-width: 560px; margin: 0 auto; }
	.insurance-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
	.why-grid { grid-template-columns: repeat(2, 1fr); }
	.content-layout { grid-template-columns: 1fr; }
	.side-card { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		display: none;
		padding: 12px 24px 20px;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { padding: 13px 14px; border-radius: 10px; font-size: 1.05rem; }
	.header-cta { display: none; }
	.steps { grid-template-columns: 1fr; }
	.cta-band { grid-template-columns: 1fr; padding: 42px 30px; text-align: left; }
}

@media (max-width: 640px) {
	.section { padding: 56px 0; }
	.insurance-grid { grid-template-columns: 1fr; }
	.why-grid { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.quote-form { padding: 26px 20px; }
	.hero-actions .btn { width: 100%; justify-content: center; }
	.page-hero-flex { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-bottom { flex-direction: column; }
}
