/*
Theme Name: Prismoptic
Theme URI: https://prismoptic.cz/
Author: RA Computer s.r.o.
Description: Šablona pro oční optiku a ordinaci PRISM optic podle vizuální identity (Pixla, 2021). Bez page builderu, údaje se upravují ve Vzhled → Přizpůsobit → Prismoptic.
Version: 2.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: prismoptic
*/

/* Písmo: Figtree jako volně dostupná náhrada za TT Chocolates z manuálu */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-display: swap;
	font-weight: 300 900;
	src: url("assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-display: swap;
	font-weight: 300 900;
	src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barvy z manuálu vizuální identity */
:root {
	--dark: #302a30;          /* Dark Purple */
	--grey: #aaa7ae;          /* Purple Grey – jen dekor, ne text */
	--white: #ffffff;
	--holo-1: #b3aec7;
	--holo-2: #abcbcf;
	--holo-3: #b2c4d1;
	--holo-4: #dec0cd;
	--holo-5: #e5e0cc;
	--holo: linear-gradient(115deg, var(--holo-1) 0%, var(--holo-2) 26%, var(--holo-3) 48%, var(--holo-4) 74%, var(--holo-5) 100%);

	--ink: var(--dark);
	--muted: #66606a;         /* text 5.6:1 na bílé */
	--on-dark-muted: #c9c5cd;
	--line: #e6e4e8;
	--soft: #f6f5f7;
	--radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--white);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-underline-offset: 3px; }
a:hover { color: #5b4f5c; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
section[id], article[id] { scroll-margin-top: 96px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Popisky ve stylu „O P T I C“ */
.label {
	font-size: 13px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}

/* Holografický proužek */
.holo-bar { height: 4px; background: var(--holo); }

/* Tlačítka */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 14px 28px; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: .01em;
	border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--holo { background: var(--holo); color: var(--dark); }
.btn--holo:hover { color: var(--dark); box-shadow: 0 8px 24px rgba(179, 174, 199, .35); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #463d46; color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* Hlavička */
.site-header { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; font-size: 15px; font-weight: 500; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.nav a:not(.btn) { color: #fff; text-decoration: none; letter-spacing: .02em; }
.nav a:not(.btn):hover { color: var(--holo-2); }

/* Hero */
.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero .label { color: var(--on-dark-muted); }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; font-weight: 600; }
.hero h1 em { font-style: normal; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--on-dark-muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero__media { flex: 1 1 440px; min-width: 0; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
	width: 100%; height: 100%; background: var(--holo);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px;
	position: relative;
}
.hero__card::after { /* jemný lesk jako holografická fólie */
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(200deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%, rgba(255,255,255,0) 62%, rgba(255,255,255,.35) 100%);
	pointer-events: none;
}
.hero__card img { width: min(72%, 380px); height: auto; position: relative; z-index: 1; }
.hero__card .tagline { position: relative; z-index: 1; font-size: 15px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--dark); }

/* Světlá varianta úvodu a hlavičky (Přizpůsobit → Obecné → Vzhled úvodu) */
.site-header--light { background: #fff; }
.site-header--light .nav a:not(.btn) { color: var(--dark); }
.site-header--light .nav a:not(.btn):hover { color: #5b4f5c; }
.hero--light { background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); color: var(--dark); position: relative; }
.hero--light::before { /* jemná holografická záře v pozadí */
	content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%;
	background: var(--holo); opacity: .22; filter: blur(80px); border-radius: 50%; pointer-events: none;
}
.hero--light .wrap { position: relative; }
.hero--light .label { color: var(--muted); }
.hero--light .hero__lead { color: var(--muted); }
.hero--light h1 em { /* pastelový text by na bílé nebyl čitelný – holografické podtržení */
	color: var(--dark); -webkit-background-clip: border-box; background-clip: border-box;
	background-repeat: no-repeat; background-size: 100% .3em; background-position: 0 88%;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero--light .btn--holo { box-shadow: 0 6px 20px rgba(179, 174, 199, .35); }
.hero--light .btn--ghost { border-color: var(--dark); color: var(--dark); }
.hero--light .btn--ghost:hover { background: var(--dark); color: #fff; }
.hero--light .hero__media { box-shadow: 0 24px 60px rgba(48, 42, 48, .14); }

/* Rychlé info */
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact__value { font-size: 18px; font-weight: 600; }
.fact__value a { text-decoration: none; }

/* Sekce */
.section { padding-top: 96px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 44px; }
.section--pad { padding-top: 80px; padding-bottom: 80px; }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section h2, .contact h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }

.service { background: var(--soft); border-radius: var(--radius); padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--holo); }
.service__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--holo); display: flex; align-items: center; justify-content: center; }
.service h3 { font-size: 28px; }
.service p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.service li { display: flex; gap: 12px; align-items: baseline; }
.service li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--holo); transform: translateY(-2px); }
.service__link { font-weight: 600; margin-top: auto; padding-top: 10px; }

/* Pobočka */
.branch { display: flex; flex-wrap: wrap; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; }
.branch__body { flex: 1 1 400px; min-width: 0; padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.branch .label { color: var(--on-dark-muted); }
.branch h3 { font-size: 30px; }
.branch__addr { font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); }
.branch__media { flex: 1 1 400px; min-width: 0; min-height: 320px; background: var(--holo); position: relative; }
.branch__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.branch__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.branch__placeholder img { position: static; width: min(60%, 300px); height: auto; }
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 0; }
.hours div { display: flex; flex-direction: column; gap: 6px; }
.hours dt { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.hours dd { margin: 0; font-weight: 500; white-space: pre-line; line-height: 1.7; }
.branch__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* O nás */
.about { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; padding-bottom: 0; }
.about__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about__text h2 { margin-bottom: 6px; }
.about__text p:not(.label) { font-size: 18px; line-height: 1.7; color: var(--muted); }
.about__media { flex: 1 1 440px; min-width: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 4px; background: var(--holo); border-radius: 4px 4px 0 0; }
.about__placeholder { width: 100%; height: 100%; background: var(--holo); display: flex; align-items: center; justify-content: center; }
.about__placeholder .tagline { font-size: 15px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--dark); }

/* Tři pilíře */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; padding-top: 72px; padding-bottom: 8px; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.pillar__num { font-size: 15px; font-weight: 700; letter-spacing: .1em; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; filter: saturate(1.6) brightness(.85); }
.pillar h3 { font-size: 22px; }
.pillar p { color: var(--muted); line-height: 1.65; }

/* Fotky v kartách služeb */
.service__media { margin: -44px -40px 8px; aspect-ratio: 16 / 9; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__media + .service__icon { margin-top: -50px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--soft); }
.service::before { z-index: 2; }

/* Galerie */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery--4 figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--4 figure:nth-child(4) { grid-column: span 2; }
.gallery--3 figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--3 figure { grid-column: span 2; }
.gallery--2 figure { grid-column: span 2; grid-row: span 2; }
.gallery--1 figure { grid-column: 1 / -1; grid-row: span 2; }
@media (max-width: 760px) {
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
	.gallery figure, .gallery--3 figure, .gallery--4 figure:nth-child(4) { grid-column: span 1; grid-row: span 1; }
	.gallery figure:first-child { grid-column: 1 / -1; grid-row: span 2; }
}

/* Platby */
.payments { background: var(--soft); }
.payments .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 48px; }
.payments h2 { font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 500; }

/* Kontakt */
.contact { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 96px; padding-bottom: 104px; }
.contact__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact__block { display: flex; flex-direction: column; gap: 6px; }
.contact__phone { font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact__phone:hover { color: #5b4f5c; }

.form { flex: 1 1 460px; min-width: 0; background: var(--soft); border-radius: var(--radius); padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--holo); }
.form h3 { font-size: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px;
	border: 1px solid #cdc9d1; border-radius: 12px; background: #fff; min-height: 48px; width: 100%; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--dark); outline-offset: 1px; border-color: var(--dark); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; }
.form__hp { position: absolute !important; left: -9999px !important; }
.form__consent { font-size: 13px; color: var(--muted); }
.notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.notice--ok { background: #e6f2ef; color: #1f4d43; }
.notice--err { background: #f8e8ec; color: #6b1f33; }

/* Patička */
.site-footer { background: var(--dark); color: var(--on-dark-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; align-items: flex-end; padding-top: 56px; padding-bottom: 40px; font-size: 14px; line-height: 1.7; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--holo-2); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Obecné stránky (GDPR apod.) */
.page-content { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.page-content h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.page-content .entry { font-size: 17px; line-height: 1.75; }
.page-content .entry p { margin: 0 0 1em; }

@media (max-width: 640px) {
	.site-header { position: static; }
	.site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
	.nav, .nav ul { gap: 8px 20px; font-size: 15px; }
	.brand img { height: 36px; }
	.hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
	.section { padding-top: 64px; }
	.service, .form { padding: 32px 26px; }
	.service__media { margin: -32px -26px 8px; }
	.branch__body { padding: 32px 26px; }
	.branch__media { min-height: 220px; }
	.contact { padding-top: 64px; padding-bottom: 72px; }
}
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }
