/*
Theme Name: STARS Premium Child
Theme URI: https://starspremium.sk
Description: Divi child téma pre STARS PREMIUM — exkluzívne nehnuteľnosti, diskrétny prístup. Tmavý luxusný dizajn portovaný z Lovable prototypu (Playfair Display + Inter, čierno-zlatá paleta).
Author: Michal Ochránek
Author URI: https://michalochranek.sk
Template: Divi
Version: 1.0.0
*/

:root {
	--sp-bg: #121416;
	--sp-card: #1C1E22;
	--sp-secondary: #26282C;
	--sp-muted: #2A2D32;
	--sp-muted-fg: #838995;
	--sp-border: #2F3237;
	--sp-fg: #F2F2F2;
	--sp-fg-soft: #D9D9D9;
	--sp-gold: #C9A240;
	--sp-gold-light: #D8BB74;
	--sp-gold-dark: #9F7F2D;
	--sp-heading: 'Playfair Display', serif;
	--sp-body: 'Inter', sans-serif;
}

/* ==================== zaklad (tmavy web) ==================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* viditeľné zvýraznenie pri ovládaní klávesnicou */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--sp-gold);
	outline-offset: 3px;
}

body, body.et_divi_theme {
	font-family: var(--sp-body) !important;
	font-size: 16px;
	color: var(--sp-fg);
	background-color: var(--sp-bg) !important;
	-webkit-font-smoothing: antialiased;
}
#page-container, #et-main-area, #main-content { background-color: var(--sp-bg) !important; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sp-heading) !important; color: var(--sp-fg); font-weight: 500; }
p { line-height: 1.7; }
a { transition: color .4s ease; }
.sp-anchor { scroll-margin-top: 90px; }
.sp-gold { color: var(--sp-gold); }
.sp-italic { font-style: italic; }

/* ==================== tlacidla ==================== */
body .et_pb_button, body a.et_pb_button {
	border-radius: 0 !important;
	font-family: var(--sp-body) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: .15em;
	text-transform: uppercase;
	padding: 16px 40px !important;
	line-height: 1.4 !important;
	transition: background-color .5s ease, color .5s ease, border-color .5s ease;
	border: 1px solid transparent;
}
body .et_pb_button:after { display: none !important; }
body .et_pb_button:hover { padding: 16px 40px !important; }

body .sp-btn, body .sp-btn.et_pb_button {
	background-color: var(--sp-gold) !important;
	color: var(--sp-bg) !important;
	border-color: var(--sp-gold) !important;
}
body .sp-btn:hover, body .sp-btn.et_pb_button:hover {
	background-color: var(--sp-gold-light) !important;
	border-color: var(--sp-gold-light) !important;
	color: var(--sp-bg) !important;
}

/* ==================== hlavicka ==================== */
#main-header {
	background-color: transparent !important;
	box-shadow: none !important;
	transition: background-color .5s ease, backdrop-filter .5s ease;
	border-bottom: 1px solid transparent;
}
.et-fixed-header#main-header,
#main-header.sp-scrolled {
	background-color: rgba(18,20,22,.94) !important;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--sp-border);
}
#page-container { padding-top: 0 !important; }
#logo { max-height: 22px !important; }
.et_header_style_left #et-top-navigation { padding-top: 24px !important; }
#top-menu a {
	color: var(--sp-muted-fg) !important;
	font-family: var(--sp-body) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: .18em;
	text-transform: uppercase;
}
#top-menu a:hover { color: var(--sp-gold) !important; opacity: 1; }
#top-menu li.current-menu-item > a { color: var(--sp-muted-fg) !important; }
#top-menu li.sp-menu-cta > a {
	border: 1px solid var(--sp-gold);
	color: var(--sp-gold) !important;
	padding: 9px 20px !important;
}
#top-menu li.sp-menu-cta > a:hover { background-color: var(--sp-gold); color: var(--sp-bg) !important; }
#et_top_search, #et_search_icon { display: none !important; }

.mobile_menu_bar:before { color: var(--sp-fg) !important; }
.et_mobile_menu {
	background-color: rgba(18,20,22,.98) !important;
	border-top: 1px solid var(--sp-border) !important;
	backdrop-filter: blur(14px);
}
.et_mobile_menu li a { color: var(--sp-muted-fg) !important; border-color: var(--sp-border) !important; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.et_mobile_menu li a:hover { color: var(--sp-gold) !important; background: transparent; }

/* ==================== hero ==================== */
.sp-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--sp-bg);
}
.sp-hero .et_pb_row, .sp-hero .et_pb_column { position: static !important; width: 100%; }
.sp-hero .et_pb_row { max-width: 896px; margin: 0 auto; }
.sp-hero-bgwrap { position: static !important; margin-bottom: 0 !important; }
/* Divi obaľuje obsah code modulu do .et_pb_code_inner, ktorý má position: relative
   a nulovú výšku — pozadie by sa naň naviazalo a zmizlo. Musí byť static, aby sa
   vrstvy pozadia natiahli na celú sekciu. */
.sp-hero .et_pb_code_inner { position: static !important; }
.sp-hero-bgs { position: absolute; inset: 0; z-index: 0; }
/* Exkluzívnejší hero: veľmi pomalý zoom fotky + vinetácia pre hĺbku.
   Pri „obmedziť pohyb" sa animácia nespustí. */
.sp-hero-photo {
	animation: spKenBurns 28s ease-out forwards;
	transform-origin: center;
	will-change: transform;
}
@keyframes spKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
.sp-hero::after {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.38) 100%);
	pointer-events: none;
	z-index: 1;
}
@media (prefers-reduced-motion: reduce) { .sp-hero-photo { animation: none; } }

.sp-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sp-hero-veil { position: absolute; inset: 0; background: rgba(18,20,22,.8); }
.sp-hero-line {
	position: absolute; bottom: 40px; left: 50%;
	transform: translateX(-50%);
	width: 1px; height: 64px;
	background: linear-gradient(to bottom, rgba(201,162,64,.6), transparent);
	z-index: 2;
}
.sp-hero-content { position: relative; z-index: 2; text-align: center; padding: 150px 8px 130px; }
.sp-eyebrow-hero {
	color: var(--sp-gold);
	font-family: var(--sp-body);
	font-size: 14px;
	letter-spacing: .35em;
	text-transform: uppercase;
	margin-bottom: 32px;
}
.sp-hero h1 {
	font-size: 72px;
	line-height: 1.15;
	font-weight: 500;
	color: var(--sp-fg) !important;
	margin-bottom: 32px;
}
.sp-hero-sub {
	font-family: var(--sp-body);
	font-size: 20px;
	line-height: 1.625;
	font-weight: 300;
	color: var(--sp-muted-fg);
	max-width: 672px;
	margin: 0 auto 48px;
}
/* vstupna animacia — pomalsie, luxusne */
.sp-hero-content .sp-eyebrow-hero, .sp-hero-content h1,
.sp-hero-content .sp-hero-sub, .sp-hero-content .et_pb_button_module_wrapper {
	opacity: 0; transform: translateY(24px); animation: spIn 1s ease forwards;
}
.sp-hero-content .sp-eyebrow-hero { animation-delay: .3s; transform: none; }
.sp-hero-content h1 { animation-delay: .6s; }
.sp-hero-content .sp-hero-sub { animation-delay: .9s; }
.sp-hero-content .et_pb_button_module_wrapper { animation-delay: 1.2s; }
@keyframes spIn { to { opacity: 1; transform: none; } }

/* ==================== fade-in pri scrollovani ==================== */
.sp-fade { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.sp-fade.sp-vis { opacity: 1; transform: none; }
.et_pb_column:nth-child(2) .sp-fade { transition-delay: .15s; }
.et_pb_column:nth-child(3) .sp-fade { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
	.sp-fade { opacity: 1; transform: none; transition: none; }
	.sp-hero-content .sp-eyebrow-hero, .sp-hero-content h1,
	.sp-hero-content .sp-hero-sub, .sp-hero-content .et_pb_button_module_wrapper {
		animation: none; opacity: 1; transform: none;
	}
}

/* ==================== nadpisy sekcii ==================== */
.sp-eyebrow p, p.sp-eyebrow {
	color: var(--sp-gold);
	font-family: var(--sp-body);
	font-size: 12px;
	letter-spacing: .35em;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 16px;
}
.sp-eyebrow { margin-bottom: 0 !important; }
.sp-h2 h2, h2.sp-h2 {
	font-size: 48px;
	line-height: 1.2;
	font-weight: 500;
	text-align: center;
	margin-bottom: 24px;
}
/* zlata linka pod nadpisom */
.sp-line {
	height: 1px; width: 96px;
	margin: 0 auto;
	background: linear-gradient(90deg, transparent, var(--sp-gold), transparent);
}

/* ==================== sluzby ==================== */
.sp-service { text-align: center; }
.sp-service-icon {
	width: 64px; height: 64px;
	border: 1px solid var(--sp-border);
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 32px;
	color: var(--sp-gold);
	transition: border-color .5s ease;
}
.sp-service:hover .sp-service-icon { border-color: var(--sp-gold); }
.sp-service-icon svg { width: 24px; height: 24px; stroke-width: 1.2; }
.sp-service h3 { font-size: 20px; margin-bottom: 16px; font-weight: 500; }
.sp-service p {
	font-family: var(--sp-body);
	color: var(--sp-muted-fg);
	font-size: 14px;
	line-height: 1.7;
	font-weight: 300;
	max-width: 320px;
	margin: 0 auto;
}

/* ==================== hodnoty ==================== */
.sp-value { text-align: center; max-width: 672px; margin: 0 auto 64px; }
.sp-value:last-child { margin-bottom: 0; }
.sp-value h3 { font-size: 24px; font-style: italic; margin-bottom: 12px; font-weight: 500; }
.sp-value p {
	font-family: var(--sp-body);
	color: var(--sp-muted-fg);
	font-size: 14px;
	line-height: 1.7;
	font-weight: 300;
}

/* sekcie oddelene linkou ako v origináli */
.sp-topline { border-top: 1px solid var(--sp-border); }

/* ==================== kontakt — podciarknute polia ==================== */
.sp-form .et_pb_contact_field { margin-bottom: 5%; padding: 0 !important; }
.sp-form input, .sp-form textarea {
	background-color: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--sp-border) !important;
	border-radius: 0 !important;
	color: var(--sp-fg) !important;
	font-family: var(--sp-body) !important;
	font-size: 15px !important;
	font-weight: 300 !important;
	padding: 12px 0 !important;
	transition: border-color .5s ease;
}
.sp-form input:focus, .sp-form textarea:focus { border-bottom-color: var(--sp-gold) !important; outline: none; }
.sp-form input::placeholder, .sp-form textarea::placeholder {
	color: var(--sp-muted-fg) !important; opacity: 1; font-weight: 300;
}
.sp-form textarea { resize: none; }
.sp-form .et_pb_contact_submit {
	background-color: var(--sp-gold) !important;
	border: 1px solid var(--sp-gold) !important;
	color: var(--sp-bg) !important;
	border-radius: 0 !important;
	font-family: var(--sp-body) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: .15em;
	text-transform: uppercase;
	padding: 16px 40px !important;
	transition: background-color .5s ease;
}
.sp-form .et_pb_contact_submit:hover {
	background-color: var(--sp-gold-light) !important;
	border-color: var(--sp-gold-light) !important;
}
.sp-form .et_contact_bottom_container { text-align: center; float: none; margin: 16px auto 0; }
.sp-form .et-pb-contact-message {
	color: var(--sp-gold);
	font-family: var(--sp-heading);
	font-style: italic;
	font-size: 20px;
	text-align: center;
	line-height: 1.6;
}
.sp-form .et-pb-contact-message p { color: var(--sp-gold); }
.sp-form .et_pb_contact_error_text { color: #E8A5A5; }
.sp-form-note p {
	color: var(--sp-muted-fg); font-family: var(--sp-body);
	font-size: 12px; text-align: center; margin-top: 20px; font-weight: 300;
}
.sp-form-note a { color: var(--sp-gold); text-decoration: underline; }

/* ==================== paticka ==================== */
.sp-footer { border-top: 1px solid var(--sp-border); background-color: var(--sp-bg) !important; }
.sp-footer-brand h3 {
	font-size: 18px; color: var(--sp-gold); margin-bottom: 8px; font-weight: 500;
}
.sp-footer-brand p {
	font-family: var(--sp-body); color: var(--sp-muted-fg);
	font-size: 12px; letter-spacing: .05em;
}
.sp-footer-contact p {
	font-family: var(--sp-body); color: #9AA1AE;
	font-size: 12px; text-align: center; line-height: 2;
}
.sp-footer-contact a { color: var(--sp-muted-fg); }
.sp-footer-contact a:hover { color: var(--sp-gold); }
.sp-footer-id p {
	font-family: var(--sp-body); color: #9AA1AE;
	font-size: 11.5px; line-height: 1.9; text-align: center; opacity: 1;
}
.sp-footer-id a { color: var(--sp-muted-fg); text-decoration: underline; }
.sp-footer-id a:hover { color: var(--sp-gold); }
.sp-footer-legal { display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.sp-footer-legal a { color: var(--sp-muted-fg); font-family: var(--sp-body); font-size: 12px; }
.sp-footer-legal a:hover { color: var(--sp-gold); }
.sp-footer-copy {
	border-top: 1px solid var(--sp-border);
	padding-top: 28px; text-align: center;
	font-family: var(--sp-body); color: var(--sp-muted-fg);
	font-size: 11px; opacity: .9;
}
#main-footer { display: none !important; }

/* ==================== pravne stranky ==================== */
.sp-legal-hero { border-bottom: 1px solid var(--sp-border); }
.sp-legal-head { text-align: center; }
.sp-legal-h1 { color: var(--sp-fg) !important; font-size: 44px; font-weight: 500; margin-bottom: 16px; }
.sp-legal-sub {
	font-family: var(--sp-body); color: var(--sp-muted-fg);
	font-size: 15px; font-weight: 300; max-width: 640px; margin: 0 auto; text-align: center;
}
.sp-legal h2 { font-size: 24px; margin: 42px 0 14px; font-weight: 500; }
.sp-legal h3 { font-size: 18px; margin: 26px 0 10px; font-style: italic; }
.sp-legal p, .sp-legal li {
	font-family: var(--sp-body); color: var(--sp-fg-soft);
	font-size: 15px; line-height: 1.8; font-weight: 300;
}
.sp-legal p { margin-bottom: 14px; }
.sp-legal ul { margin: 0 0 16px 22px; }
.sp-legal li { margin-bottom: 6px; }
.sp-legal a { color: var(--sp-gold); text-decoration: underline; }
.sp-legal a:hover { color: var(--sp-gold-light); }
.sp-legal em { color: var(--sp-fg); font-style: normal; font-weight: 500; }
.sp-legal strong { color: var(--sp-fg); font-weight: 500; }
.sp-legal table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 14px; }
.sp-legal th, .sp-legal td {
	border: 1px solid var(--sp-border); padding: 11px 15px; text-align: left;
	color: var(--sp-fg-soft); font-family: var(--sp-body); font-weight: 300;
}
.sp-legal th { background: var(--sp-card); color: var(--sp-fg); font-weight: 500; }

/* Divi občas nevygeneruje CSS pre niektorú sekciu a jej odsadenie spadne na
   východiskové 4 %. Držíme ho preto tu — nezávisle od Divi. */
#sluzby, #hodnoty, #contact {
	padding-top: 128px !important;
	padding-bottom: 128px !important;
}
.sp-hero { padding-top: 0 !important; padding-bottom: 0 !important; }
.sp-footer { padding: 64px 0 56px !important; }
.sp-legal-hero { padding: 150px 0 64px !important; }

/* ==================== cookie lista ==================== */
#sp-cookiebar {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99999;
	background: #16181B;
	border: 1px solid var(--sp-border);
	box-shadow: 0 24px 60px rgba(0,0,0,.6);
	max-width: 960px; margin: 0 auto; padding: 24px 28px;
	display: none; gap: 20px; align-items: center; flex-wrap: wrap;
}
#sp-cookiebar.sp-show { display: flex; }
#sp-cookiebar .sp-cb-text {
	flex: 1 1 380px; color: var(--sp-muted-fg);
	font-family: var(--sp-body); font-size: 13px; line-height: 1.65; font-weight: 300;
}
#sp-cookiebar .sp-cb-text strong {
	color: var(--sp-fg); display: block; margin-bottom: 6px;
	font-family: var(--sp-heading); font-size: 16px; font-weight: 500;
}
#sp-cookiebar .sp-cb-text a { color: var(--sp-gold); text-decoration: underline; }
#sp-cookiebar .sp-cb-btns { display: flex; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }
#sp-cookiebar button {
	font-family: var(--sp-body); font-size: 12px; font-weight: 500;
	letter-spacing: .12em; text-transform: uppercase;
	padding: 12px 22px; cursor: pointer; border-radius: 0;
	transition: all .4s ease;
}
#sp-cookiebar .sp-cb-reject { background: transparent; border: 1px solid var(--sp-border); color: var(--sp-fg); }
#sp-cookiebar .sp-cb-reject:hover { border-color: var(--sp-gold); color: var(--sp-gold); }
#sp-cookiebar .sp-cb-accept { background: var(--sp-gold); border: 1px solid var(--sp-gold); color: var(--sp-bg); }
#sp-cookiebar .sp-cb-accept:hover { background: var(--sp-gold-light); border-color: var(--sp-gold-light); }

/* ==================== mobil ==================== */
@media (max-width: 980px) {
	.sp-hero h1 { font-size: 52px; }
	.sp-h2 h2, h2.sp-h2 { font-size: 36px; }
}
@media (max-width: 767px) {
	.sp-hero h1 { font-size: 34px; }
	.sp-hero-sub { font-size: 17px; }
	.sp-hero-content { padding: 120px 4px 110px; }
	.sp-eyebrow-hero { font-size: 12px; letter-spacing: .25em; }
	.sp-h2 h2, h2.sp-h2 { font-size: 28px; }
	.sp-legal-h1 { font-size: 30px; }
	.sp-value { margin-bottom: 48px; }
	.et_pb_section { padding: 80px 0; }
	#sluzby, #hodnoty, #contact {
		padding-top: 80px !important;
		padding-bottom: 80px !important;
	}
	.sp-footer { padding: 56px 0 48px !important; }
	.sp-legal-hero { padding: 110px 0 48px !important; }
	/* pohodlnejšie dotykové ciele */
	.sp-footer li a, .sp-footer-legal a {
		display: inline-flex; align-items: center; min-height: 40px;
	}
	#sp-cookiebar { padding: 18px; }
	#sp-cookiebar .sp-cb-btns { width: 100%; }
	#sp-cookiebar button { flex: 1 1 45%; padding: 12px 8px; }
}

::selection { background: var(--sp-gold); color: var(--sp-bg); }
