/* =====================================================================
   Porodní dům U čápa – nový vzhled 2026 (vzdušný, responzivní)
   Čisté HTML5 + CSS bez knihoven; barvy odvozené od původního webu.
   Soubor se načítá PO StylyCAP.css (ten dál nese třídy A10–A36 pro texty).
   Úpravy barev: oranžová #d9480f (tlačítka), světlá #fde1b3 / #fff1dc, text #2b2430.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body.site {
	margin: 0;
	background: #fbf6ee;
	color: #2b2430;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-text-size-adjust: 100%;
}

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: #d9480f; color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { left: 12px; color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Záhlaví ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 #f0e2cc, 0 6px 24px rgba(120, 80, 30, .07); }

.topbar { background: #fde1b3; font-size: 13.5px; line-height: 1.3; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #5b2a14; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #d9480f; text-decoration: underline; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: 4px 20px; }
/* tlačítko v horní liště (počítač); na mobilu je tlačítko ve výsunutém menu */
.topright { display: flex; align-items: center; gap: 14px; }
.topbar .cta-top { margin: 0; padding: 6px 16px; font-size: 13.5px; color: #fff; box-shadow: none; }
.topbar .cta-top:hover { color: #fff; text-decoration: none; }
.cta-nav { display: none !important; }
#google_translate_element { text-align: right; padding: 0; width: auto; font-size: 11px !important; color: #5b2a14 !important; }
#google_translate_element select { width: auto; max-width: 160px; font-size: 12px; padding: 2px 6px; border-radius: 8px; border: 1px solid #e2bd94; }
#google_translate_element span { display: inline !important; }

.mainbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: 0 0 auto; background: #fde1b3; border-radius: 20px; padding: 6px 14px 6px 10px; margin: 8px 0; }
.brand img { display: block; height: auto; border: 0; }
.brand .logo { width: 60px; }
.brand .wordmark { width: 232px; }

/* ---------- Hlavní menu (počítač) ---------- */
.site-nav { display: flex; align-items: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 2px; }
.site-nav > ul > li { position: static; margin: 0; }
.nav-link, .sub-toggle {
	display: inline-flex; align-items: center; gap: 6px;
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
	color: #2b2430; background: transparent; border: 0; border-radius: 999px;
	padding: 10px 12px; cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: none;
	transition: background-color .15s, color .15s;
}
.nav-link:hover, .sub-toggle:hover, li.open > .sub-toggle { background: #fff1dc; color: #d9480f; text-decoration: none; }
.sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
li.open > .sub-toggle::after { transform: translateY(1px) rotate(225deg); }
li.has-current > .sub-toggle, .nav-link.is-current { background: #fde1b3; color: #7a1f5c; }
.nav-link:focus-visible, .sub-toggle:focus-visible, .dropdown a:focus-visible, .cta:focus-visible, .nav-toggle:focus-visible { outline: 3px solid #ff8a5c; outline-offset: 2px; }

.cta, .site-nav a.cta {
	display: inline-block; margin-left: 8px; white-space: nowrap;
	background: #d9480f; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2;
	padding: 11px 20px; border-radius: 999px; text-decoration: none;
	box-shadow: 0 4px 12px rgba(217, 72, 15, .3); transition: background-color .15s, transform .15s;
}
.cta:hover, .site-nav a.cta:hover { background: #b83c0a; color: #fff; text-decoration: none; transform: translateY(-1px); }

.dropdown {
	display: none; position: absolute; left: 24px; right: 24px; top: 100%;
	background: #fff; border: 1px solid #f3e6d2; border-radius: 22px;
	box-shadow: 0 24px 60px rgba(60, 30, 10, .18); padding: 22px 26px 26px;
	max-height: calc(100vh - 150px); overflow-y: auto;
}
li.open > .dropdown { display: block; }
.dropdown.narrow { left: auto; right: auto; min-width: 340px; max-width: 460px; }
li.has-sub.narrow-host { position: relative; }
.dropdown a { display: block; padding: 7px 12px; border-radius: 10px; color: #2b2430; text-decoration: none; font-size: 15px; line-height: 1.4; }
.dropdown a:hover { background: #fff1dc; color: #d9480f; }
.dropdown a.is-current { background: #fde1b3; color: #7a1f5c; font-weight: 700; }
.dropdown .lead { margin: 0 0 12px; padding: 0 12px; font-size: 14px; color: #6b5a55; line-height: 1.5; }
.dropdown .label { display: block; padding: 8px 12px 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a1f5c; }
.mega { columns: 3; column-gap: 32px; }
.mega .group { break-inside: avoid; margin-bottom: 14px; }
.group-title { display: block; width: 100%; margin: 6px 0 2px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a1f5c; background: none; border: 0; text-align: left; cursor: default; }
.two-col { columns: 2; column-gap: 24px; }
.two-col a { break-inside: avoid; }

.nav-toggle { display: none; }

/* ---------- Obsah ---------- */
.site-main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 56px; }
.site-main .page-content {
	max-width: 940px; margin: 0 auto; background: #fff; border: 1px solid #f3e6d2; border-radius: 26px;
	padding: 44px 52px; box-shadow: 0 8px 36px rgba(120, 80, 30, .08);
	font-size: 16px; line-height: 1.7; text-align: left; overflow-wrap: break-word;
}
.page-content p { margin: 0 0 1em; }
.page-content h1, .page-content h2, .page-content h3 { line-height: 1.25; }
.page-content ul { padding-left: 1.4em; list-style-type: disc; text-align: left; }
.page-content li { margin-bottom: 6px; }
.page-content li::marker { color: #ff6633; }
.page-content a:link { color: #2b4fcf; }
.page-content a:visited { color: #6b4fa0; }
.page-content a:hover, .page-content a:active, .page-content a:focus { color: #d9480f !important; }
.page-content img { max-width: 100%; height: auto; }
.page-content table { max-width: 100%; line-height: 1.5; }
.page-content td, .page-content th { padding-top: 4px; padding-bottom: 4px; }
.page-content td[style*="text-align:right"] { white-space: nowrap; }
.page-content hr { border: 0; border-top: 1px solid #f0e2cc; margin: 2em 0; }
.page-content [class^="A10"] { font-size: 13.5px; line-height: 1.5; }
.page-content [class^="A11"] { font-size: 14px;   line-height: 1.5; }
.page-content [class^="A12"] { font-size: 15px;   line-height: 1.55; }
.page-content [class^="A13"] { font-size: 15.5px; line-height: 1.6; }
.page-content [class^="A14"], .page-content [class^="A15"] { font-size: 16px; line-height: 1.65; }
.page-content [class^="A18"], .page-content [class^="A20"], .page-content [class^="A22"], .page-content [class^="A24"] { line-height: 1.3; }
.page-content [style*="margin-left:220px"] { margin-left: 0 !important; text-align: center; }
.page-content .profil { border-radius: 18px; margin-left: 0; margin-right: 0; }
.page-content input[type="text"], .page-content input[type="email"], .page-content input[type="tel"], .page-content textarea, .page-content select { border-radius: 12px; border: 1px solid #dcc39a; padding: 9px 13px; font: inherit; background: #fffdf9; }
.page-content input[type="text"]:focus, .page-content input[type="email"]:focus, .page-content input[type="tel"]:focus, .page-content textarea:focus, .page-content select:focus { outline: 3px solid #ffb497; outline-offset: 1px; border-color: #ff6633; }
.page-content input[type="submit"], .page-content input[type="button"], .page-content button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 12px 28px; color: #fff; background: #d9480f; cursor: pointer; box-shadow: 0 4px 12px rgba(217, 72, 15, .3); }
.page-content input[type="submit"]:hover, .page-content input[type="button"]:hover, .page-content button:hover { background: #b83c0a; }

/* ---------- Patička ---------- */
.site-footer { margin-top: 24px; background: #fdebd0; border-radius: 36px 36px 0 0; padding: 52px 0 26px; font-size: 15px; line-height: 1.6; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px 48px; }
.site-footer h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a1f5c; }
.site-footer p { margin: 0 0 .6em; }
.site-footer a { color: #2b2430; text-decoration: none; }
.site-footer a:hover { color: #d9480f; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer .phone { font-size: 22px; font-weight: 700; color: #7a1f5c; }
.site-footer .note { font-size: 13.5px; color: #8a2a1a; font-style: italic; }
.site-footer .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.site-footer .badges img { display: block; border-radius: 6px; }
.site-footer .copy { grid-column: 1 / -1; margin-top: 8px; padding-top: 20px; border-top: 1px solid #f0d7ae; font-size: 13.5px; color: #6b5a55; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Tablet a mobil ---------- */
@media (max-width: 1100px) {
	.mainbar .wrap { min-height: 64px; }
	.brand .wordmark { width: 200px; }
	.brand .logo { width: 56px; }
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
		font: inherit; font-size: 16px; font-weight: 700; color: #7a1f5c; background: #fff1dc;
		border: 1px solid #f0d7ae; border-radius: 999px; padding: 10px 18px; cursor: pointer;
	}
	.nav-toggle::before { content: "\2630"; font-size: 18px; line-height: 1; }
	.nav-toggle[aria-expanded="true"]::before { content: "\2715"; }

	.site-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #f0e2cc; box-shadow: 0 24px 40px rgba(60, 30, 10, .2); max-height: calc(100vh - 110px); overflow-y: auto; padding: 8px 16px 20px; }
	.site-nav.open { display: flex; }
	.site-nav > ul { display: block; }
	.site-nav > ul > li { border-bottom: 1px solid #f6ead6; }
	.nav-link, .sub-toggle { display: flex; width: 100%; justify-content: space-between; border-radius: 12px; padding: 15px 12px; font-size: 17px; }
	.dropdown, .dropdown.narrow { position: static; display: none; min-width: 0; max-width: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 12px; background: transparent; }
	li.open > .dropdown { display: block; }
	.mega { columns: 1; }
	.two-col { columns: 1; }
	.dropdown a { padding: 11px 12px; font-size: 16px; }
	.group-title { cursor: pointer; padding: 12px; font-size: 13px; background: #fff7ea; border-radius: 10px; margin: 6px 0; display: flex; justify-content: space-between; align-items: center; }
	.group-title::after { content: "+"; font-size: 18px; font-weight: 400; }
	.group.open .group-title::after { content: "\2212"; }
	.group .group-links { display: none; }
	.group.open .group-links { display: block; }
	.topbar .cta-top { display: none; }
	.cta-nav { display: block !important; }
	.cta, .site-nav a.cta { display: block; margin: 16px 0 0; text-align: center; padding: 15px 20px; font-size: 17px; }

	.site-main { padding: 20px 12px 40px; }
	.site-main .page-content { padding: 22px 18px; border-radius: 20px; font-size: 16.5px; }
	.site-footer { border-radius: 28px 28px 0 0; padding: 40px 0 22px; }
	.site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.topbar .contact span.addr { display: none; }
	.brand .wordmark { width: 150px; }
	.brand .logo { width: 48px; }
	.site-footer .wrap { grid-template-columns: 1fr; }
	.page-content [class^="A10"], .page-content [class^="A11"] { font-size: 14.5px !important; }
	.page-content [class^="A12"], .page-content [class^="A13"] { font-size: 15.5px !important; }
	.page-content [class^="A14"], .page-content [class^="A15"] { font-size: 16.5px !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
