/*
Theme Name: Blocksy Child – Studio Sawadee
Template: blocksy
Description: Dětská šablona Blocksy pro web Studio Sawadee. Obsahuje vzory bloků (Přidat blok → Vzory → Studio Sawadee), styly tlačítek a barevnou paletu.
Version: 1.0.10
Author: miloszacek.cz
Text Domain: blocksy-child-sawadee
*/

/* ------------------------------------------------------------------
   Proměnné
------------------------------------------------------------------ */
:root {
	--sw-purple: #5D1A81;
	--sw-crimson: #C4004F;
	--sw-ink: #2B1538;
	--sw-muted: #675575;
	--sw-tint: #F3EAF8;
	--sw-bg: #FBF7FD;
	--sw-line: #E4D5EE;
	--sw-dark: #2A0D3A;
	--sw-font-heading: 'Cormorant Garamond', Georgia, serif;
}

/*
   Písma: nastavte je v Blocksy (Přizpůsobit → Typografie), nebo je hostujte lokálně:
   stáhněte soubory woff2 do složky fonts/ této šablony a odkomentujte.

@font-face {
	font-family: 'Cormorant Garamond';
	src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'Nunito Sans';
	src: url('fonts/nunito-sans-400.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}
*/

/* Nadpisy ve vzorech */
:is(.sw-hero, .sw-section, .sw-band, .sw-card, .sw-tile, .sw-point, .sw-step, .sw-package) :is(h1, h2, h3, h4) {
	font-family: var(--sw-font-heading);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Sekce
------------------------------------------------------------------ */
.sw-section {
	background: var(--sw-bg);
	color: var(--sw-ink);
	padding: 88px 32px;
}
.sw-section--tint { background: var(--sw-tint); }
.sw-section--tiles { padding-top: 72px; padding-bottom: 24px; }
.sw-section > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
.sw-section h2 {
	color: var(--sw-purple);
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.1;
	margin-top: 0;
	margin-bottom: 12px;
}
.sw-section .sw-lead {
	color: var(--sw-muted);
	max-width: 680px;
	margin-bottom: 44px;
}
.sw-eyebrow {
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--sw-crimson);
	margin-bottom: 10px;
}
.sw-eyebrow--light { color: #F3D3E2; }

.sw-section .wp-block-columns,
.sw-intro .wp-block-columns { gap: 24px; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.sw-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 600px;
	background: var(--sw-purple);
	color: #fff;
	padding: 0;
}
.sw-hero .photo-slider {
	aspect-ratio: auto;
	margin: 0;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: auto;
	min-height: 0;
}
.sw-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 96px 32px 120px;
	box-sizing: border-box;
}
.sw-hero h1 {
	color: #fff;
	font-size: clamp(40px, 6vw, 66px);
	line-height: 1.04;
	max-width: 760px;
	margin: 0 0 20px;
}
.sw-hero .sw-lead {
	font-size: 20px;
	color: #F4EAF9;
	max-width: 560px;
	margin: 0 0 36px;
}

/* ------------------------------------------------------------------
   Dlaždice (3 odkazy pod sliderem)
------------------------------------------------------------------ */
.sw-tile {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--sw-line);
	border-radius: 16px;
	padding: 32px;
}
.sw-tile::before {
	content: "";
	display: block;
	width: 250px; /* ikona 250 × 250 px */
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 auto 16px;
	background: center / contain no-repeat;
}
.sw-tile--masaze::before { background-image: url("/wp-content/uploads/2026/11/masaze_6.png"); }
.sw-tile--poukazy::before { background-image: url("/wp-content/uploads/2026/11/darkove_poukazy_6.png"); }
.sw-tile--rezervace::before { background-image: url("/wp-content/uploads/2026/11/rezervace_6.png"); }
.sw-tile h2,
.sw-tile h3 {
	font-size: 32px;
	line-height: 1.15;
	margin: 0 0 12px;
}
.sw-tile a {
	color: var(--sw-purple);
	text-decoration: none;
}
.sw-tile a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
.sw-tile p { margin: 0 0 12px; color: var(--sw-muted); }
.sw-tile .sw-tile__more { color: var(--sw-crimson); font-weight: 700; margin-bottom: 0; }
.sw-tile:hover { border-color: var(--sw-purple); }
.sw-tile:focus-within { outline: 3px solid var(--sw-crimson); outline-offset: 2px; }

/* ------------------------------------------------------------------
   Body „Proč my“
------------------------------------------------------------------ */
.sw-point {
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	border-top: 4px solid var(--sw-crimson);
	border-radius: 0 0 12px 12px;
	padding: 28px 28px 32px;
}
.sw-point h3 { color: var(--sw-purple); font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
.sw-point p { margin: 0; color: var(--sw-muted); }

/* ------------------------------------------------------------------
   Karty masáží a informací
------------------------------------------------------------------ */
.sw-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--sw-line);
	border-radius: 16px;
	padding: 28px;
}
.sw-card > * { margin: 0; }
.sw-card h3 { color: var(--sw-purple); font-size: 28px; line-height: 1.15; }
.sw-card p { color: var(--sw-muted); }
.sw-card .sw-card__meta { font-size: 14px; }
.sw-card .sw-card__price {
	margin-top: auto;
	font-family: var(--sw-font-heading);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sw-crimson);
}
.sw-section .sw-cta { margin-top: 36px; }

/* ------------------------------------------------------------------
   Pruh dárkových poukazů
------------------------------------------------------------------ */
.sw-band {
	background: var(--sw-crimson);
	color: #fff;
	padding: 64px 32px;
}
.sw-band > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}
.sw-band h2 {
	color: #fff;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.1;
	margin: 0 0 10px;
}
.sw-band p { font-size: 18px; margin: 0; }
.sw-band .wp-block-columns { align-items: center; gap: 28px 48px; }

/* ------------------------------------------------------------------
   Stránka objednávek poukazů
------------------------------------------------------------------ */
.sw-step {
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--sw-line);
	border-radius: 14px;
	padding: 22px 24px;
}
.sw-step .sw-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 0 12px;
	border-radius: 50%;
	background: var(--sw-crimson);
	color: #fff;
	font-weight: 700;
}
.sw-step h3 { font-size: 22px; margin: 0 0 6px; color: var(--sw-ink); }
.sw-step p { margin: 0; color: var(--sw-muted); font-size: 16px; }
.sw-notes {
	margin-top: 24px;
	background: var(--sw-tint);
	border-radius: 14px;
	padding: 24px 28px;
	font-size: 16px;
}
.sw-notes p { margin: 0; }
.sw-notes strong { color: var(--sw-purple); }
.sw-package {
	margin-top: 32px;
	background: #fff;
	border: 2px solid var(--sw-crimson);
	border-radius: 16px;
	padding: 24px 28px;
}
.sw-package .wp-block-columns { align-items: center; gap: 16px 28px; }
.sw-package h3 { font-size: 30px; line-height: 1.15; color: var(--sw-purple); margin: 0 0 4px; }
.sw-package p { margin: 0; color: var(--sw-muted); font-size: 16px; }

/* ------------------------------------------------------------------
   Tlačítka ve vzorech (styly: Obrys, Bílé, Fialové)
------------------------------------------------------------------ */
:is(.sw-hero, .sw-section, .sw-band, .sw-package) .wp-block-button__link {
	background: var(--sw-crimson);
	color: #fff;
	border: 2px solid var(--sw-crimson);
	border-radius: 999px;
	padding: 14px 32px;
	font-weight: 700;
	text-decoration: none;
}
:is(.sw-hero, .sw-section, .sw-band, .sw-package) .is-style-sw-outline .wp-block-button__link {
	background: transparent;
	color: #fff;
	border-color: #fff;
}
:is(.sw-hero, .sw-section, .sw-band, .sw-package) .is-style-sw-white .wp-block-button__link {
	background: #fff;
	color: var(--sw-crimson);
	border-color: #fff;
}
:is(.sw-hero, .sw-section, .sw-band, .sw-package) .is-style-sw-purple .wp-block-button__link {
	background: var(--sw-purple);
	color: #fff;
	border-color: var(--sw-purple);
}
:is(.sw-hero, .sw-section, .sw-band, .sw-package) .wp-block-button__link:focus-visible,
.sw-tile a:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--sw-crimson);
}

/* Zarovnání s kontejnerem Blocksy (hlavička, patička) */
.sw-section .sw-lead { margin-left: max(0px, calc((100% - var(--theme-normal-container-max-width, 1290px)) / 2)); margin-right: auto; }
.sw-section, .sw-band { padding-left: 5vw; padding-right: 5vw; }
.sw-section > *, .sw-band > * { max-width: var(--theme-normal-container-max-width, 1290px); }
.sw-hero__content { width: 90vw; max-width: var(--theme-normal-container-max-width, 1290px); padding-left: 0; padding-right: 0; }
.sw-section h2 + .wp-block-columns { margin-top: 32px; }

@media (max-width: 781px) {
	.sw-section { padding: 56px 5vw; }
	.sw-band { padding: 48px 5vw; }
	.sw-hero { min-height: 520px; }
	.sw-hero__content { padding: 64px 0 112px; }
}

/* ------------------------------------------------------------------
   Hlavička (Header Builder): horní lišta z prvků HTML
   Použití: obal obsah prvku HTML do <div class="sw-topbar">…</div>
------------------------------------------------------------------ */
.sw-topbar {
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
}
.sw-topbar a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.sw-topbar a:hover,
.sw-topbar a:focus-visible {
	text-decoration: underline;
}
.sw-topbar a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.sw-topbar__sep {
	margin: 0 8px;
	opacity: 0.7;
}

/* ------------------------------------------------------------------
   Patička: do prvku HTML ve Footer Builderu vlož obsah footer-html.html
------------------------------------------------------------------ */
.sw-footer { --sw-footer-bg: #2A2A2A; color: #fff; font-size: 18px; line-height: 1.5; }
.sw-footer a { color: #fff; text-decoration: none; }
.sw-footer p a:hover, .sw-footer__legal a:hover { text-decoration: underline; }
.sw-footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 32px 48px; align-items: start; }
.sw-footer p { margin: 0 0 20px; }
.sw-footer h3 { margin: 0 0 20px; font-size: 20px; color: #fff; }
.sw-footer__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sw-footer__tags a { display: block; padding: 8px 14px; border-radius: 4px; background: var(--sw-purple); font-size: 15px; }
.sw-footer__tags a:hover, .sw-footer__tags a:focus-visible { background: var(--sw-crimson); }
.sw-footer__legal, .sw-footer__pay { font-size: 14px; text-align: center; }
.sw-footer .sw-footer__legal { margin: 32px 0 0; }
.sw-footer .sw-footer__pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 24px 0 0; color: #C9C9C9; }
.sw-footer__pay img { display: block; width: auto; max-width: 100%; height: auto; }
@media (max-width: 999px) { .sw-footer__grid { grid-template-columns: 1fr 1fr; } .sw-footer__tags { grid-column: 1 / -1; } }
@media (max-width: 599px) { .sw-footer__grid { grid-template-columns: 1fr; } .sw-footer { font-size: 16px; } }
