/*
Theme Name: Sugartouch
Theme URI: https://sugartouch.sk/
Author: Sugartouch
Description: Ľahká bloková téma na mieru pre onepage web Sugartouch – sugaring Bratislava. Sekcie sú pripravené ako vzory (patterns) pre editor WordPressu.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 6.9
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: sugartouch
*/

/* ---------- Základ ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-block-post-content > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

.st-eyebrow { font-size: 13px !important; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; margin: 0; }
.st-quote { font-family: var(--wp--preset--font-family--accent); font-style: italic; }
.st-muted { color: var(--wp--preset--color--text-muted); }
.st-sec { padding-top: clamp(72px, 9vw, 128px) !important; padding-bottom: clamp(72px, 9vw, 128px) !important; }
.st-sec-tight-top { padding-top: clamp(48px, 6vw, 88px) !important; }
.st-sec-tight-bottom { padding-bottom: clamp(40px, 5vw, 72px) !important; }

/* Tlačidlá */
.wp-block-button__link { transition: transform .25s ease, background-color .25s ease; white-space: nowrap; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: inherit; border: 1px solid currentColor; padding: 15px 27px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(212,166,90,.12); color: inherit; }

/* Jemné objavovanie pri skrolovaní */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		body:not(.editor-styles-wrapper) .st-rv { animation: st-rv ease-out both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
	}
}
@keyframes st-rv { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ---------- Hlavička ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.st-header { min-height: 76px; background: rgba(17,13,9,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(212,166,90,.16); }
.st-header > .st-header-in { min-height: 76px; }
.st-logo { margin: 0 !important; }
.st-logo img { height: 30px !important; width: auto !important; display: block; }
.st-nav { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.st-nav .wp-block-navigation-item__content { text-decoration: none; }
.st-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--dark) !important; color: var(--wp--preset--color--text-light) !important; font-size: 20px; }
.st-header-btn .wp-block-button__link { padding: 12px 22px; font-size: 14px; }
.wp-block-post-content > .st-hero:first-child { margin-top: -77px; }

/* ---------- Úvod (hero) ---------- */
.st-hero.wp-block-cover { min-height: clamp(640px, 58vw, 880px) !important; padding-top: 140px; padding-bottom: 80px; }
.st-hero .wp-block-cover__image-background { object-position: 35% center; }
.st-hero-a .wp-block-cover__image-background { transform: scaleX(-1); object-position: 38% center; }
.st-hero h1 { margin: 0; }
.st-hero-a .st-hero-text > * { max-width: 600px; }
.st-hero-a .st-hero-text p:not(.st-eyebrow) { max-width: 480px; }
.st-hero-lead { font-size: 19px !important; color: #E4D9C8; }
.st-hero-logo img { width: min(460px, 78vw) !important; height: auto !important; }
.st-hero-b .st-hero-lead { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Zoznámte sa ---------- */
.st-motto { max-width: 900px; margin: 0 auto clamp(64px, 8vw, 112px) !important; text-align: center; }
.st-motto p.st-quote { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.3; margin: 0; }
.st-motto .st-eyebrow { margin-top: 20px; letter-spacing: .18em; }
.st-cite { margin-top: 8px !important; padding-top: 22px; border-top: 1px solid rgba(26,20,14,.15); font-size: 21px !important; line-height: 1.45; color: var(--wp--preset--color--text-brown); }
.st-arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% center; border-radius: 999px 999px 28px 28px; display: block; }
.st-round img { width: 100%; object-fit: cover; border-radius: 28px; display: block; }
.st-round-16 img { aspect-ratio: 16 / 10; }
.st-round-45 img { aspect-ratio: 4 / 5; object-position: center 55%; }
.wp-block-columns.st-cols-gap { gap: 40px clamp(40px, 6vw, 96px); }

/* ---------- Zloženie ---------- */
.st-head { gap: 20px 48px; margin-bottom: clamp(32px, 4vw, 52px) !important; }
.st-head p:not(.st-eyebrow) { max-width: 460px; }
.st-ing-row { gap: clamp(14px, 2vw, 24px) !important; }
.st-ing.wp-block-cover { min-height: 0 !important; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; align-items: flex-end; padding: clamp(22px, 2.6vw, 36px); }
.st-ing .wp-block-cover__inner-container { width: 100%; }
.st-ing h3 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: 0 0 10px; }
.st-ing p { font-size: 15px; line-height: 1.55; margin: 0; }
.st-ing-1 .wp-block-cover__image-background { object-position: center 35%; }
.st-ing-2 .wp-block-cover__image-background { object-position: center 42%; }
.st-ing-3 .wp-block-cover__image-background { object-position: center 40%; }

/* ---------- Prečo sugaring ---------- */
.st-bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(212,166,90,.22); border: 1px solid rgba(212,166,90,.22); border-radius: 24px; overflow: hidden; }
.st-bgrid > * { margin: 0 !important; }
.st-bcard { background: var(--wp--preset--color--dark); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.st-bcard > * { margin: 0 !important; }
.st-bcard p { font-size: 20px; line-height: 1.4; font-weight: 400; max-width: 280px; }
.st-icon img { width: 46px !important; height: 46px !important; display: block; }
.st-icon-sm img { width: 34px !important; height: 34px !important; display: block; }

/* ---------- Ako to funguje ---------- */
.st-note { border-radius: 24px; padding: clamp(22px, 2.6vw, 32px) !important; }
.st-note > * { margin: 0 !important; }
.st-note > * + * { margin-top: 10px !important; }
.st-note .st-note-title { font-family: var(--wp--preset--font-family--heading); font-size: 22px; }
.st-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; margin-top: clamp(40px, 5vw, 64px) !important; }
.st-steps > * { margin: 0 !important; }
.st-step { border-radius: 24px; padding: 30px 28px !important; display: flex; flex-direction: column; gap: 14px; }
.st-step > * { margin: 0 !important; }
.st-step p:not(.st-num) { font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--text-brown); }
.st-step h3 { font-size: 22px; }
.st-num { width: 44px; height: 44px; border-radius: 999px; background: var(--wp--preset--color--dark-2); color: var(--wp--preset--color--gold-light); display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--heading); font-size: 19px !important; }

/* ---------- Po depilácii ---------- */
.st-care { list-style: none; margin: 0; padding: 0; }
.st-care li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(26,20,14,.14); font-size: 16px; line-height: 1.6; }
.st-care li strong { flex: none; min-width: 64px; font-family: var(--wp--preset--font-family--heading); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--wp--preset--color--gold-dark); }

/* ---------- Prečo práve Sugartouch ---------- */
.st-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.st-bento > * { margin: 0 !important; }
.st-vcard { border-radius: 24px; padding: clamp(28px, 3vw, 44px) !important; min-height: 260px; display: flex; flex-direction: column; gap: 18px; }
.st-vcard > * { margin: 0 !important; }
.st-vcard h3 { margin-top: 6px !important; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2; max-width: 360px; }
.st-vcard p { font-size: 16px; line-height: 1.55; color: #3A2E22; max-width: 380px; }
.st-bento > :nth-child(3) { grid-column: 3; grid-row: 1 / span 2; justify-content: flex-end; }
.st-bento > :nth-child(4) { grid-column: 1 / span 2; grid-row: 2; min-height: 280px; }
.st-bento > :nth-child(4) img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; border-radius: 24px; display: block; }

/* ---------- Cenník ---------- */
.st-tabs { padding: 5px; border-radius: 999px; border: 1px solid rgba(212,166,90,.35); gap: 0 !important; }
.st-tabs .wp-block-button__link { background: transparent; color: var(--wp--preset--color--text-light); padding: 11px 26px; min-height: 44px; box-sizing: border-box; font-size: 15px; }
.st-tabs .wp-block-button__link:hover { transform: none; color: var(--wp--preset--color--gold-light); }
.st-tabs .wp-block-button.is-active .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--dark); }
.st-price { margin: 0 !important; }
.st-price table { border: 0; width: 100%; }
.st-price tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); column-gap: 72px; }
.st-price tr { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid rgba(244,238,228,.1); }
.st-price td { border: 0; padding: 0; }
.st-price td:first-child { flex: 1; display: flex; align-items: baseline; gap: 12px; font-size: 17px; font-weight: 400; }
.st-price td:first-child::after { content: ""; flex: 1; min-width: 16px; border-bottom: 1px dotted rgba(212,166,90,.45); transform: translateY(-4px); }
.st-price td:last-child { white-space: nowrap; font-size: 18px; font-weight: 500; color: var(--wp--preset--color--gold-light); text-align: right; }
.st-combo-title { font-family: var(--wp--preset--font-family--heading); font-size: 26px !important; color: var(--wp--preset--color--gold-light); margin: 48px 0 8px !important; }
.st-band { position: relative; margin: 0 !important; height: clamp(200px, 22vw, 340px); overflow: hidden; }
.st-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.st-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,13,9,.1) 0%, rgba(17,13,9,.35) 60%, #110D09 100%); pointer-events: none; }

/* ---------- Referencie ---------- */
.st-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.st-reviews > * { margin: 0 !important; }
.st-review { border-radius: 24px; padding: 32px 28px !important; display: flex; flex-direction: column; gap: 18px; }
.st-review > * { margin: 0 !important; }
.st-stars { color: #B8801F; letter-spacing: 4px; }
.st-review-who { font-size: 14px !important; color: #6B5840; }
.st-ref-quote { font-size: 22px !important; line-height: 1.45; color: var(--wp--preset--color--text-brown); }

/* ---------- Galéria ---------- */
.st-gal-wrap { border-top: 1px solid rgba(26,20,14,.1); padding-top: clamp(40px, 5vw, 64px) !important; padding-bottom: clamp(56px, 6vw, 88px) !important; }
.st-gal-head { margin-bottom: 28px !important; }
.st-gal-head p { font-size: 14px; letter-spacing: .24em; text-transform: uppercase; margin: 0; }
.st-gal-head a { text-decoration: none; font-weight: 500; }
.st-gal { display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.st-gal::-webkit-scrollbar { display: none; }
.st-gal > * { margin: 0 !important; flex: 0 0 clamp(200px, 22vw, 330px); scroll-snap-align: start; }
.st-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; display: block; }

/* ---------- Pätička ---------- */
.st-footer { padding-top: clamp(64px, 8vw, 104px) !important; padding-bottom: 28px !important; }
.st-footer h2 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.08; margin-top: 16px !important; }
.st-footer .wp-block-separator { border: 0; border-top: 1px solid rgba(244,238,228,.14); opacity: 1; margin: clamp(40px, 5vw, 64px) 0 !important; }
.st-footer .st-label { font-size: 13px !important; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--wp--preset--color--gold); margin: 0 0 12px !important; }
.st-fcol p { margin: 0; font-size: 18px; line-height: 1.75; }
.st-fcol p.st-small { font-size: 15px; color: #A89A86; }
.st-fcol a { text-decoration: none; }
.st-fcol .st-gold a, .st-gold a { color: var(--wp--preset--color--gold); }
.st-flogo { margin: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px) !important; }
.st-flogo img { width: 100% !important; height: auto !important; display: block; }
.st-fbottom { font-size: 15px; color: #A89A86; padding-top: 24px; }
.st-fbottom p { margin: 0; }
.st-fbottom a { text-decoration: none; }
.st-footer .wp-block-social-links { gap: 14px; margin-top: 10px; }

/* ---------- Mobilná lišta ---------- */
.st-mbar { display: none !important; }

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
	/* hamburger menu už od tabletu */
	.st-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.st-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
}
@media (max-width: 860px) {
	.st-header-btn { display: none; }
	.st-hero-a .wp-block-cover__background { background: linear-gradient(180deg, rgba(17,13,9,.45) 0%, rgba(17,13,9,.82) 70%, #110D09 100%) !important; }
	.st-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-mbar { display: flex !important; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; padding: 8px 8px 8px 20px !important; border-radius: 999px; background: rgba(26,20,14,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(212,166,90,.35); align-items: center; justify-content: space-between; gap: 12px; }
	.st-mbar p { margin: 0; font-size: 14px; color: #CFC3B1; }
	.st-mbar .wp-block-button__link { padding: 13px 22px; font-size: 15px; }
	body { padding-bottom: 84px; }
}
@media (max-width: 760px) {
	.st-bento { grid-template-columns: 1fr; }
	.st-bento > * { grid-column: auto !important; grid-row: auto !important; }
	.st-bento > :nth-child(4) { min-height: 0; }
	.st-bento > :nth-child(4) img { aspect-ratio: 16 / 10; height: auto; }
	.st-ing.wp-block-cover { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
	.st-bgrid { grid-template-columns: 1fr; }
	.st-care li { gap: 14px; }
}
.st-footer .wp-block-separator.st-sep-flat { margin: 0 !important; }
.st-hero-logo { margin-bottom: 8px !important; }

/* ---------- Právne stránky ---------- */
.st-legal h2 { font-size: clamp(24px, 2.4vw, 30px); margin-top: 48px !important; margin-bottom: 0; }
.st-legal p, .st-legal li { font-size: 17px; color: var(--wp--preset--color--text-brown); }
.st-legal strong { color: var(--wp--preset--color--ink); font-weight: 500; }
.st-legal ul { padding-left: 1.2em; }
.st-legal li { margin-bottom: 6px; }
.st-legal a { color: var(--wp--preset--color--gold-dark); }
