/*
Theme Name: Angkor Sofie
Theme URI: https://angkorsofiesalon.cz/
Author: Jakub Caha
Author URI: https://jakubcaha.com/
Description: Šablona na míru pro masážní salon Angkor Sofie v Berouně. Rychlá, bez page builderu, se zabudovaným SEO (titulky, popisky, Open Graph, strukturovaná data LocalBusiness, drobečková navigace). Obsah, ceník, kontakty a otevírací doba se upravují v menu „Angkor Sofie“.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angkor-sofie
*/

/* ---------- Základ ---------- */
:root {
	--c-bg: #ffffff;
	--c-soft: #f4f4f4;
	--c-text: #2b2b2b;
	--c-muted: #6e6e6e;
	--c-accent: #a69a7e;
	--c-dark: #120c09;
	--c-line: rgba(0, 0, 0, .1);
	--f-head: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--w-head: 700;
	--f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--w: 1200px;
	--gap: clamp(1rem, 3vw, 2.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font: 400 1.0625rem/1.75 var(--f-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-underline-offset: .2em; }
a:hover { color: var(--c-text); }
h1, h2, h3, h4 {
	font-family: var(--f-head);
	font-weight: var(--w-head);
	line-height: 1.05;
	margin: 0 0 .5em;
	color: var(--c-text);
	text-transform: uppercase;
	letter-spacing: .005em;
}
h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
p { margin: 0 0 1.1em; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--c-dark); color: #fff; padding: .6rem 1rem; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.wrap { width: min(var(--w), 100% - 2 * clamp(1rem, 5vw, 3rem)); margin-inline: auto; }
.narrow { max-width: 58rem; margin-inline: auto; }
.center { text-align: center; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--soft { background: var(--c-soft); }
.section--dark { background: var(--c-dark); color: #e9e4dc; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: clamp(2rem, 5vw, 4rem); }
.lead { font-size: 1.15rem; color: var(--c-muted); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; }

/* ---------- Tlačítka ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 3.2rem; padding: .8rem 1.9rem; border-radius: 0;
	font: 600 1rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	background: var(--c-accent); color: #fff; border: 1px solid var(--c-accent);
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.btn--light { background: linear-gradient(#fff, #e9e5df); color: var(--c-dark); border-color: #fff; font-weight: 700; }
.btn--light:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--c-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 5.5rem; }
.site-logo { display: flex; align-items: center; text-decoration: none; color: var(--c-text); font: var(--w-head) 1.6rem/1 var(--f-head); text-transform: uppercase; }
.site-logo img { max-height: 4.2rem; width: auto; }
.nav { margin-inline: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.4rem; }
.nav li { position: relative; }
.nav a { color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 1.12rem; padding-block: .4rem; display: inline-block; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a, .nav a[aria-current="page"] { color: var(--c-accent); }
.nav .sub-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 16rem; background: #fff; border: 1px solid var(--c-line); padding: .5rem 0; flex-direction: column; gap: 0; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.nav .sub-menu a { display: block; padding: .45rem 1rem; font-size: 1rem; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.header-cta { white-space: nowrap; font-weight: 400; letter-spacing: .02em; font-size: 1.05rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--c-line); width: 2.9rem; height: 2.9rem; cursor: pointer; color: var(--c-text); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.2rem; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.site-header__inner { gap: .75rem; min-height: 4.5rem; }
	.site-logo img { max-height: 3.2rem; }
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); padding: 1rem clamp(1rem, 5vw, 3rem) 1.5rem; margin: 0; }
	.nav-open .nav { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { padding-block: .7rem; }
	.nav .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.header-cta { order: 3; min-height: 2.9rem; padding: .5rem 1rem; font-size: .9rem; }
}

/* ---------- Hero (úvod) ---------- */
.hero { position: relative; color: #fff; background: var(--c-dark); overflow: hidden; min-height: min(88vh, 54rem); display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.25) 70%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); }
.hero .wrap { position: relative; z-index: 2; }
.hero__inner { padding-block: clamp(6rem, 14vw, 10rem) clamp(7rem, 12vw, 11rem); max-width: 58rem; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 52rem; }
.hero .btn-row { margin-top: 2rem; }

/* ---------- Výhody (dlaždice) ---------- */
.benefits { position: relative; z-index: 3; margin-top: clamp(-6rem, -8vw, -3rem); }
.benefits__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.benefit { padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); text-align: center; color: #fff; background: var(--c-accent); }
.benefit:nth-child(2) { background: color-mix(in srgb, var(--c-accent) 80%, #2a241a); }
.benefit:nth-child(3) { background: color-mix(in srgb, var(--c-accent) 62%, #2a241a); }
.benefit .icon { font-size: 4.4rem; margin-bottom: 1.2rem; }
.benefit h3 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: .6em; }
.benefit p { margin: 0; color: rgba(255,255,255,.95); }
.intro { padding-top: clamp(3.5rem, 7vw, 6rem); }
.intro .lead { max-width: 48rem; margin-inline: auto; }

/* ---------- Karty masáží s fotkou ---------- */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 760px) { .mgrid { grid-template-columns: 1fr; } }
.mcard { position: relative; display: flex; flex-direction: column; }
.mcard__img { aspect-ratio: 1 / 1.07; overflow: hidden; background: var(--c-soft); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mcard:hover .mcard__img img { transform: scale(1.03); }
.mcard__box { background: #fff; text-align: center; padding: clamp(1.5rem, 3vw, 2.8rem) clamp(1.2rem, 3vw, 2.5rem); }
.mcard--img .mcard__box { position: absolute; left: 5%; right: 5%; bottom: 5%; }
.mcard--noimg .mcard__box { border: 1px solid var(--c-line); flex: 1; }
.mcard h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: .45em; }
.mcard h3 a { color: inherit; text-decoration: none; }
.mcard p { color: var(--c-muted); margin-bottom: .8em; }
.mcard__price { font-weight: 600; color: var(--c-accent); font-size: .98rem; letter-spacing: .02em; }
.mcard__price a { margin-left: .8rem; }
@media (max-width: 560px) {
	.mcard--img .mcard__box { position: relative; left: auto; right: auto; bottom: auto; margin: -4rem 6% 0; }
}
.more-link { text-align: center; margin-top: 2.5rem; }

/* ---------- Ceník ---------- */
.pricelist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 6vw, 6rem); }
@media (max-width: 820px) { .pricelist { grid-template-columns: 1fr; } }
.price-item h2 { display: flex; align-items: center; gap: 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .3em; }
.price-item h2::after { content: ""; flex: 1; min-width: 2rem; border-bottom: 2px dashed rgba(0,0,0,.35); transform: translateY(-.1em); }
.price-item p { color: var(--c-muted); font-size: 1.1rem; margin-bottom: 1.2rem; }
.price-lines { list-style: none; margin: 0 0 .8rem; padding: 0; max-width: 24rem; font-size: 1.15rem; color: var(--c-muted); }
.price-lines li { display: flex; align-items: baseline; gap: .3rem; }
.price-lines li::after { content: ""; order: 2; flex: 1; border-bottom: 2px dotted rgba(0,0,0,.3); transform: translateY(-.25em); }
.price-lines span { order: 1; }
.price-lines strong { order: 3; color: var(--c-text); white-space: nowrap; }

/* ---------- Recenze ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--gap); }
.review { margin: 0; background: var(--c-soft); padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 1.4rem; font-style: italic; flex: 1; color: #444; }
.review blockquote::before { content: "“"; display: block; font: 400 4rem/.7 Georgia, serif; color: var(--c-accent); margin-bottom: .6rem; }
.review figcaption { font: var(--w-head) 1.5rem/1.1 var(--f-head); text-transform: uppercase; }
.review figcaption span { display: block; font: 400 .9rem/1.5 var(--f-body); text-transform: none; color: var(--c-muted); }

/* ---------- CTA box ---------- */
.cta-box { position: relative; background: var(--c-dark); color: #fff; text-align: center; overflow: hidden; padding: clamp(4rem, 9vw, 7.5rem) 1.5rem; }
.cta-box__bg { position: absolute; inset: 0; }
.cta-box__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-box::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.55); }
.cta-box > *:not(.cta-box__bg) { position: relative; z-index: 2; }
.cta-box h2 { color: #fff; margin-bottom: .3em; }
.cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; }
.cta-box .btn-row { justify-content: center; }
.cta-section { padding-block: clamp(3rem, 6vw, 5rem) 0; position: relative; }
.cta-section::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #000; z-index: -1; }
.cta-section .wrap { position: relative; }

/* ---------- Záhlaví podstránek ---------- */
.page-hero { position: relative; color: #fff; background: var(--c-dark); text-align: center; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.5); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(6rem, 13vw, 11rem); }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero .lead { color: rgba(255,255,255,.9); max-width: 46rem; margin: 0 auto; }
.page-hero__sub { font: var(--w-head) clamp(1.3rem, 2.4vw, 2.1rem)/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .12em; margin: .6em 0 0; }
.page-hero__sub a { color: #fff; text-decoration: none; }
.breadcrumbs { font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 1.4rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .6rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- O nás ---------- */
.stats-band { background: var(--c-accent); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--gap); text-align: center; padding-block: clamp(4rem, 9vw, 8rem); }
.stat strong { display: block; font: var(--w-head) clamp(3.4rem, 6vw, 5rem)/1 var(--f-head); }
.stat span { font: var(--w-head) clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--f-head); text-transform: uppercase; }
.photo-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; max-width: 56rem; margin: 3rem auto 0; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 1rem; }
.faq details { background: var(--c-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 1.6rem 4rem 1.6rem 2rem; position: relative; font: var(--w-head) clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--f-head); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2rem; top: 50%; width: .7rem; height: .7rem; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details > div { padding: 0 2rem 1.6rem; }

/* ---------- Kontakt ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); }
.info-card { background: #fff; text-align: center; padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem; color: var(--c-accent); }
.info-card .icon { font-size: 4.2rem; margin-bottom: 1.2rem; }
.info-card h2 { color: var(--c-accent); font-size: clamp(1.9rem, 3vw, 2.5rem); }
.info-card p { margin: 0; font-size: 1.1rem; }
.info-card a { color: inherit; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.hours-long { text-transform: uppercase; }
.booking { position: relative; color: #fff; background: var(--c-dark); overflow: hidden; }
.booking__bg { position: absolute; inset: 0; }
.booking__bg img { width: 100%; height: 100%; object-fit: cover; }
.booking::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.72); }
.booking .wrap { position: relative; z-index: 2; }
.booking h2 { color: #fff; text-align: center; }
.booking__text { text-align: center; max-width: 38rem; margin: 0 auto 2.5rem; }
.map { border: 0; width: 100%; height: clamp(18rem, 40vw, 28rem); display: block; filter: grayscale(.3); }

/* Formuláře (WPForms, Contact Form 7) na tmavém pozadí – podtržená pole jako na původním webu */
.booking label, .booking .wpforms-field-label { color: #fff !important; font-weight: 600; }
.booking input[type="text"], .booking input[type="email"], .booking input[type="tel"], .booking input[type="date"], .booking input[type="time"], .booking input[type="number"], .booking select, .booking textarea {
	width: 100% !important; max-width: none !important; background: transparent !important; color: #fff !important;
	border: 0 !important; border-bottom: 2px solid rgba(255,255,255,.85) !important; border-radius: 0 !important;
	padding: .7rem 0 !important; font: inherit !important; box-shadow: none !important;
}
.booking select option { color: #000; }
.booking ::placeholder { color: rgba(255,255,255,.65) !important; }
.booking button[type="submit"], .booking input[type="submit"], .booking .wpforms-submit {
	background: var(--c-accent) !important; color: #fff !important; border: 0 !important; border-radius: 0 !important;
	padding: 1.1rem 3rem !important; font: 600 1.05rem/1 var(--f-body) !important; cursor: pointer; height: auto !important;
}
.booking .wpforms-submit-container { text-align: center; }

/* ---------- Obsah stránek z editoru ---------- */
.entry { max-width: 48rem; }
.entry h2 { margin-top: 1.4em; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.entry h3 { margin-top: 1.3em; }
.entry ul, .entry ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.entry li { margin-bottom: .35em; }
.entry .wp-block-image, .entry figure { margin: 1.6em 0; }
.entry blockquote { margin: 1.6em 0; padding-left: 1.2rem; border-left: 3px solid var(--c-accent); font-style: italic; }
.entry table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
.entry th, .entry td { border-bottom: 1px solid var(--c-line); padding: .5rem .25rem; text-align: left; }
.layout-aside { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
.layout-aside aside { position: sticky; top: 8rem; }
@media (max-width: 900px) { .layout-aside { grid-template-columns: 1fr; } .layout-aside aside { position: static; } }
.aside-box { background: var(--c-soft); padding: 2rem; }
.aside-box h2 { font-size: 2.2rem; }
.aside-box .price-lines { margin-bottom: 1.6rem; }
.aside-box .btn { width: 100%; }
.other-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.other-list a { display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); background: #fff; }
.other-list a:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- Patička ---------- */
.site-footer { background: linear-gradient(180deg, #000 0%, #2b2724 35%, #8f8a84 80%, #d6d2cc 100%); color: #fff; padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.8rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; margin-bottom: 3rem; align-items: start; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: 1.6rem; color: #fff; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-logo { display: inline-block; font: var(--w-head) 2rem/1.1 var(--f-head); color: #fff; text-transform: uppercase; }
.footer-logo img { max-height: 9rem; width: auto; }
.footer-logo--invert img { filter: brightness(0) invert(1); }
.site-footer address { font-style: normal; font-weight: 600; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours th, .hours td { text-align: left; padding: .3rem 0; font-weight: 400; border-bottom: 1px solid rgba(255,255,255,.15); }
.hours td { text-align: right; }
.footer-bottom { text-align: center; font-size: .9rem; color: rgba(255,255,255,.75); display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.footer-bottom, .footer-bottom a { color: #4a4642; }

/* ---------- Mobilní tlačítko ---------- */
.mobile-call { display: none; }
@media (max-width: 640px) {
	.mobile-call { display: flex; position: fixed; z-index: 40; left: 1rem; right: 1rem; bottom: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
	body { padding-bottom: 5rem; }
}

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