/*
Theme Name: Prima Hypotéka
Theme URI: https://prima-hypoteka.cz
Author: Ing. Vlastimil Kopečný
Description: Jednostránková šablona pro hypotečního specialistu s hypoteční kalkulačkou a sběrem poptávek.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: prima-hypoteka
License: GPL-2.0-or-later
*/

:root {
	--ink: #0E2340;
	--ink-2: #0A1A31;
	--blue: #1B6FD1;
	--blue-dark: #12366B;
	--sky: #6EC1E4;
	--bg-soft: #EEF4FB;
	--line: #D6E1EE;
	--muted: #3F5170;
	--muted-2: #56677F;
	--on-dark: #B9C8DD;
	--radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--ink);
	background: #fff;
	line-height: 1.5;
	font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #fff; }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.01em; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 14px 22px; min-height: 48px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { border: 1px solid var(--blue); color: var(--blue); background: transparent; }
.btn--sky { background: var(--sky); color: var(--ink); font-size: 18px; min-height: 56px; width: 100%; }
.btn--sky:hover { background: #8fd0eb; color: var(--ink); }
.btn--link { background: transparent; color: #fff; text-decoration: underline; font-weight: 400; }

/* Hlavička */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--blue); }
.brand__name span { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--blue); }
.brand__name, .nav .btn { white-space: nowrap; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 480px) {
	.brand__name { font-size: 18px; }
	.brand svg { width: 32px; height: 32px; }
	.nav .btn { padding: 10px 14px; font-size: 15px; }
	.site-header .wrap { padding-left: 16px; padding-right: 16px; }
}

/* Hero + kalkulačka */
.hero { background: var(--bg-soft); padding: 56px 0 72px; }
.hero__head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 32px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.02em; }
.hero__lead { font-size: 19px; color: var(--muted); }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(14, 35, 64, .12); overflow: hidden; }
.calc__inputs { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 6px; border-radius: 12px; }
.tabs button { flex: 1; border: 0; border-radius: 8px; padding: 12px; min-height: 46px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; background: transparent; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14, 35, 64, .15); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.field__top label, .field__label { font-size: 16px; font-weight: 500; }
.field__value { font-size: 22px; font-weight: 700; }
.field__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); }
.field input[type=range] { width: 100%; height: 28px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.mode-panel { display: flex; flex-direction: column; gap: 28px; }
.mode-panel[hidden] { display: none; }
.fixes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fixes button { border-radius: 10px; padding: 12px 6px; min-height: 48px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid #A9BCD3; }
.fixes button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.ltv { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.ltv strong { font-size: 15px; white-space: nowrap; }
.ltv--ok { background: #E3F2EA; color: #1D5E3B; }
.ltv--mid { background: #FFF1D6; color: #7A4B00; }
.ltv--high { background: #FDE3E0; color: #8A2318; }

.calc__result { background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.calc__result [hidden] { display: none !important; }
.step { display: flex; flex-direction: column; gap: 22px; }
.result__label { font-size: 16px; color: var(--on-dark); }
.result__payment { font-size: clamp(44px, 5vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; display: block; }
.result__rate { font-size: 15px; color: var(--on-dark); }
.result__grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 0; border-top: 1px solid #2A416A; border-bottom: 1px solid #2A416A; }
.result__grid dt { font-size: 14px; color: var(--on-dark); }
.result__grid dd { margin: 0; font-size: 19px; font-weight: 600; }
.hook { display: flex; gap: 14px; align-items: flex-start; background: #17325A; border-radius: 14px; padding: 18px; color: #E4ECF6; font-size: 16px; }
.hook strong { color: #fff; }
.hook .hl { color: var(--sky); }
.result__note { font-size: 13px; color: #9FB2CC; }
.result__phone { color: #fff; text-align: center; padding: 10px; }
.result__phone:hover { color: var(--sky); }
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form h2 { font-size: 28px; }
.lead-form .muted { color: var(--on-dark); }
.summary { background: #17325A; border-radius: 12px; padding: 14px 16px; font-size: 15px; color: #E4ECF6; }
.input { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.input input, .input textarea { font: inherit; font-size: 17px; padding: 14px 16px; border-radius: 10px; border: 1px solid #A9BCD3; min-height: 50px; background: #fff; color: var(--ink); width: 100%; }
.input textarea { resize: vertical; min-height: 120px; }
.calc__result .input { color: #E4ECF6; }
.calc__result .input input { border-color: #3A5580; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.calc__result .consent { color: var(--on-dark); }
.calc__result .consent input { accent-color: var(--sky); }
.form-msg { font-size: 15px; margin: 0; }
.calc__result .form-msg { color: #FFD18A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.benefits { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); }
.benefits li { display: flex; align-items: center; gap: 8px; }

/* O mně */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; }
.about__photo { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; border-radius: 20px; object-fit: cover; background: #D9E6F4; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 24px; }
.about__text { display: flex; flex-direction: column; gap: 20px; }
.about__text p { font-size: 18px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Jak pracuji */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); }

/* Reference */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.refs figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.refs blockquote { margin: 0; color: #22355A; }
.refs figcaption { font-size: 15px; }
.refs figcaption span { color: var(--muted-2); }

/* Kontakt */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px; }
.contact .eyebrow { color: var(--sky); }
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.contact__list { display: flex; flex-direction: column; gap: 14px; font-size: 19px; }
.contact__list a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.contact__list a:hover { color: var(--sky); }
.contact__list span { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-size: 17px; }
.contact-form { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.contact-form h3 { font-size: 24px; }
.contact-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.contact-form .consent { color: var(--muted); }
.contact-form .form-msg { color: #8A2318; }
.contact-form .form-msg.ok { color: #1D5E3B; }

/* Patička */
.site-footer { background: var(--ink-2); color: #9FB2CC; padding: 28px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer a { color: var(--on-dark); }

/* Běžné stránky (např. Ochrana osobních údajů) */
.page-content { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.page-content h1 { font-size: 40px; margin-bottom: 24px; }
.page-content p, .page-content li { margin-bottom: 1em; }
