/*
Theme Name: STARS Group Child
Theme URI: https://starsgroup.sk
Description: Divi child téma pre STARS GROUP — materská spoločnosť pre reality, development, nájmy a privátne poradenstvo. Dizajn portovaný z Lovable prototypu (Playfair Display + Inter, navy/zlatá paleta).
Author: Michal Ochránek
Author URI: https://michalochranek.sk
Template: Divi
Version: 1.0.0
*/

:root {
	--sg-bg: #F6F7F9;
	--sg-card: #FFFFFF;
	--sg-secondary: #E8EAEE;
	--sg-fg: #141D2E;
	--sg-muted: #6A7181;
	--sg-border: #DCDFE5;
	--sg-cream: #F7F2E8;
	--sg-gold: #D2962D;
	--sg-gold-light: #DBB470;
	--sg-gold-dark: #A5731D;
	--sg-navy: #12233F;
	--sg-navy-light: #2B4064;
	--sg-navy-dark: #0A1529;
	--sg-radius: 12px;        /* Tailwind rounded-lg = var(--radius) */
	--sg-radius-md: 10px;     /* rounded-md = calc(radius - 2px) */
	--sg-display: 'Playfair Display', serif;
	--sg-body: 'Inter', sans-serif;
	--sg-navy-grad: linear-gradient(135deg, #0A1529, #12233F 60%, #2B4064);
	--sg-gold-grad: linear-gradient(135deg, #D2962D, #DBB470);
}

/* ==================== zaklad ==================== */
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(--sg-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

body,
body.et_divi_theme {
	font-family: var(--sg-body) !important;
	font-size: 16px;
	color: var(--sg-fg);
	background-color: var(--sg-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sg-display) !important;
	color: var(--sg-fg);
	font-weight: 700;
}
p { line-height: 1.7; }
a { transition: color .3s ease; }

.sg-anchor { scroll-margin-top: 90px; }

/* zlaty gradientovy text (nadpisove akcenty) */
.sg-gold-text {
	background: var(--sg-gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--sg-gold);
}

/* ==================== tlacidla ==================== */
body .et_pb_button,
body a.et_pb_button {
	border-radius: var(--sg-radius) !important;
	font-family: var(--sg-body) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	padding: 14px 32px !important;
	line-height: 1.4 !important;
	transition: all .3s ease;
	border-width: 2px;
}
body .et_pb_button:after { display: none !important; }
body .et_pb_button:hover { padding: 14px 32px !important; }

/* plne zlate (gradient) */
body .sg-btn-gold,
body .sg-btn-gold.et_pb_button {
	background: var(--sg-gold-grad) !important;
	border: 2px solid transparent !important;
	color: #FFFFFF !important;
}
body .sg-btn-gold:hover,
body .sg-btn-gold.et_pb_button:hover {
	opacity: .9;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -8px rgba(210,150,45,.45);
}

/* obrys zlaty na tmavom (hero) */
body .sg-btn-outline,
body .sg-btn-outline.et_pb_button {
	background-color: transparent !important;
	border: 2px solid rgba(210,150,45,.6) !important;
	color: var(--sg-gold) !important;
}
body .sg-btn-outline:hover { background-color: rgba(210,150,45,.1) !important; border-color: var(--sg-gold) !important; }

/* maly obrysovy odkaz v kartach divizii */
.sg-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sg-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--sg-gold);
	border: 1px solid rgba(210,150,45,.3);
	border-radius: var(--sg-radius-md);
	padding: 9px 16px;
	transition: all .3s ease;
	width: fit-content;
}
.sg-card-link:hover {
	background-color: rgba(210,150,45,.06);
	border-color: rgba(210,150,45,.5);
	color: var(--sg-gold-dark);
}
.sg-card-link svg { transition: transform .3s ease; }
.sg-card-link:hover svg { transform: translateX(4px); }

/* ==================== hlavicka ==================== */
#main-header {
	background-color: transparent !important;
	box-shadow: none !important;
	transition: background-color .4s ease, backdrop-filter .4s ease, border-color .4s ease;
	border-bottom: 1px solid transparent;
}
.et-fixed-header#main-header,
#main-header.sg-scrolled {
	background-color: rgba(10,21,41,.95) !important;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom-color: rgba(210,150,45,.1);
}
#page-container { padding-top: 0 !important; }

#logo { max-height: 26px !important; }
.et_header_style_left #et-top-navigation { padding-top: 26px !important; }
#top-menu a {
	color: rgba(247,242,232,.75) !important;
	font-family: var(--sg-body) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}
#top-menu a:hover { color: var(--sg-cream) !important; opacity: 1; }
#top-menu li.current-menu-item > a { color: rgba(247,242,232,.75) !important; }

/* CTA v menu — obrys zlaty, zaobleny */
#top-menu li.sg-menu-cta > a {
	border: 1px solid rgba(210,150,45,.5);
	border-radius: var(--sg-radius);
	color: var(--sg-cream) !important;
	padding: 9px 20px !important;
	font-weight: 600 !important;
}
#top-menu li.sg-menu-cta > a:hover {
	border-color: var(--sg-gold);
	background-color: rgba(210,150,45,.1);
	color: var(--sg-cream) !important;
}

/* vyhladavacia ikona — original ju nema */
#et_top_search, #et_search_icon { display: none !important; }

/* mobilne menu */
.mobile_menu_bar:before { color: var(--sg-cream) !important; }
.et_mobile_menu {
	background-color: rgba(10,21,41,.98) !important;
	border-top: 1px solid rgba(210,150,45,.15) !important;
	backdrop-filter: blur(16px);
}
.et_mobile_menu li a { color: rgba(247,242,232,.8) !important; border-color: rgba(255,255,255,.06) !important; }
.et_mobile_menu li a:hover { color: var(--sg-cream) !important; background-color: transparent; }
.et_mobile_menu li.sg-menu-cta > a { color: var(--sg-gold) !important; font-weight: 600; }

/* ==================== hero ==================== */
.sg-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	background-color: var(--sg-navy);
}
.sg-hero .et_pb_row, .sg-hero .et_pb_column { position: static !important; width: 100%; }
.sg-hero .et_pb_row { max-width: 1024px; margin: 0 auto; }
.sg-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. */
.sg-hero .et_pb_code_inner { position: static !important; }
.sg-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í. */
.sg-hero-photo {
	animation: sgKenBurns 28s ease-out forwards;
	transform-origin: center;
	will-change: transform;
}
@keyframes sgKenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }
.sg-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) { .sg-hero-photo { animation: none; } }

.sg-hero-photo {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
}
.sg-hero-navy { position: absolute; inset: 0; background: var(--sg-navy-grad); opacity: .8; }
.sg-hero-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,35,63,.6), transparent); }

.sg-hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 150px 16px 110px;
}
.sg-hero h1 {
	font-size: 60px;
	line-height: 1.25;   /* Tailwind leading-tight */
	color: var(--sg-cream) !important;
	margin-bottom: 24px;
	font-weight: 700;
}
.sg-hero-sub {
	font-size: 20px;
	line-height: 1.625;   /* leading-relaxed */
	color: rgba(247,242,232,.8);
	max-width: 768px;
	margin: 0 auto 40px;
	font-family: var(--sg-body);
}
.sg-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sg-hero-btns .et_pb_button { display: inline-block; }

/* vstupna animacia */
.sg-hero-content h1, .sg-hero-content .sg-hero-sub, .sg-hero-content .sg-hero-btns {
	opacity: 0;
	transform: translateY(30px);
	animation: sgHeroIn .8s ease forwards;
}
.sg-hero-content h1 { animation-delay: .2s; }
.sg-hero-content .sg-hero-sub { animation-delay: .5s; }
.sg-hero-content .sg-hero-btns { animation-delay: .8s; }
@keyframes sgHeroIn { to { opacity: 1; transform: none; } }

/* ==================== fade-up pri scrollovani ==================== */
.sg-fade {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .7s ease, transform .7s ease;
}
.sg-fade.sg-vis { opacity: 1; transform: none; }
.et_pb_column:nth-child(2) .sg-fade { transition-delay: .1s; }
.et_pb_column:nth-child(3) .sg-fade { transition-delay: .2s; }
.et_pb_column:nth-child(4) .sg-fade { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
	.sg-fade { opacity: 1; transform: none; transition: none; }
	.sg-hero-content h1, .sg-hero-content .sg-hero-sub, .sg-hero-content .sg-hero-btns {
		animation: none; opacity: 1; transform: none;
	}
}

/* ==================== nadpisy sekcii ==================== */
.sg-eyebrow p, p.sg-eyebrow {
	color: var(--sg-gold);
	font-family: var(--sg-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .1em;   /* tracking-widest */
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 12px;
}
.sg-eyebrow { margin-bottom: 0 !important; }
.sg-h2 h2, h2.sg-h2 {
	font-size: 36px;        /* text-4xl */
	line-height: 1.25;      /* leading-tight */
	text-align: center;
	margin-bottom: 16px;
}
.sg-sub p, p.sg-sub {
	color: var(--sg-muted);
	font-size: 18px;
	line-height: 1.625;
	text-align: center;
	max-width: 672px;
	margin: 0 auto;
}
.sg-about-text p {
	color: var(--sg-muted);
	font-size: 18px;
	line-height: 1.625;
	text-align: center;
}

/* ==================== karty divizii ==================== */
.sg-card {
	border-radius: var(--sg-radius);
	border: 1px solid var(--sg-border);
	background-color: var(--sg-card);
	padding: 40px !important;
	box-shadow: 0 4px 20px -4px rgba(18,35,63,.06);
	transition: all .5s cubic-bezier(.4,0,.2,1);
	height: 100%;
	display: flex;
	flex-direction: column;
}
.sg-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px -12px rgba(210,150,45,.15), 0 8px 20px -8px rgba(18,35,63,.1);
	border-color: rgba(210,150,45,.3);
}
.sg-card-icon {
	width: 48px; height: 48px;
	border-radius: var(--sg-radius);
	background: var(--sg-gold-grad);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 20px;
	color: #FFFFFF;
}
.sg-card-icon svg { width: 24px; height: 24px; }
.sg-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: .01em;
}
.sg-card p {
	color: var(--sg-muted);
	font-size: 14px;
	line-height: 1.625;
	font-family: var(--sg-body);
	margin-bottom: 20px;
	flex: 1;
}

/* ==================== vyhody ==================== */
.sg-benefit { text-align: center; }
.sg-benefit-icon {
	width: 56px; height: 56px;
	border-radius: 50%;
	background-color: rgba(210,150,45,.1);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 16px;
	color: var(--sg-gold);
	transition: background-color .3s ease;
}
.sg-benefit:hover .sg-benefit-icon { background-color: rgba(210,150,45,.18); }
.sg-benefit-icon svg { width: 26px; height: 26px; }
.sg-benefit h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.sg-benefit p { color: var(--sg-muted); font-size: 14px; line-height: 1.625; font-family: var(--sg-body); }

/* divizie: 4 v rade od 1280px, 2 v rade na tablete (ako xl:grid-cols-4 v origináli) */
@media (min-width: 981px) and (max-width: 1279px) {
	.sg-divisions .et_pb_column { width: 47% !important; margin-right: 6% !important; }
	.sg-divisions .et_pb_column:nth-child(2n) { margin-right: 0 !important; }
	.sg-divisions .et_pb_column:nth-child(n+3) { margin-top: 24px !important; }
}

/* ==================== paticka / kontakt ==================== */
/* Padding riešime v CSS — Divi negeneruje štýly pre sekciu bez background_color. */
.sg-footer {
	background: var(--sg-navy-grad) !important;
	padding: 80px 0 !important;
}
.sg-legal-hero { padding: 150px 0 60px !important; }

/* 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. */
#about, #divisions, #why-us {
	padding-top: 112px !important;
	padding-bottom: 112px !important;
}
.sg-hero { padding-top: 0 !important; padding-bottom: 0 !important; }
.sg-footer h3, .sg-footer h4 { color: var(--sg-cream); }
.sg-footer-brand h3 { font-size: 26px; margin-bottom: 16px; }
.sg-footer-brand p { color: rgba(247,242,232,.7); font-size: 14px; line-height: 1.7; font-family: var(--sg-body); }
.sg-footer h4 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.sg-footer ul { list-style: none; margin: 0 !important; padding: 0 !important; }
.sg-footer li {
	color: rgba(247,242,232,.8);
	font-size: 14px;
	font-family: var(--sg-body);
	padding: 0 0 12px !important;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}
.sg-footer li svg { width: 16px; height: 16px; color: var(--sg-gold); flex: none; margin-top: 3px; }
.sg-footer a { color: rgba(247,242,232,.8); }
.sg-footer a:hover { color: var(--sg-cream); }
.sg-footer-links li { padding-bottom: 10px !important; }
.sg-footer-links a:hover { color: var(--sg-gold); }

.sg-footer-id p {
	color: rgba(247,242,232,.62);
	font-size: 12.5px;
	line-height: 1.8;
	font-family: var(--sg-body);
}
.sg-footer-id a { color: rgba(247,242,232,.75); text-decoration: underline; }
.sg-footer-id a:hover { color: var(--sg-gold); }
.sg-footer-legal {
	display: flex; gap: 8px 26px; flex-wrap: wrap;
	margin-top: 14px;
}
.sg-footer-legal a { color: rgba(247,242,232,.75); font-size: 13px; font-family: var(--sg-body); }
.sg-footer-legal a:hover { color: var(--sg-gold); }
.sg-footer-copy {
	border-top: 1px solid rgba(247,242,232,.15);
	padding-top: 32px;
	text-align: center;
	color: rgba(247,242,232,.65);
	font-size: 12px;
	font-family: var(--sg-body);
}
.sg-footer-divider { border-top: 1px solid rgba(247,242,232,.15); padding-top: 28px; }

/* Divi vlastnu paticku nepouzivame */
#main-footer { display: none !important; }

/* ==================== pravne stranky ==================== */
.sg-legal-head { text-align: center; }
.sg-legal-h1 { color: var(--sg-cream) !important; font-size: 42px; margin-bottom: 12px; }
.sg-legal-sub { color: rgba(247,242,232,.65); font-size: 16px; max-width: 640px; margin: 0 auto; text-align: center; font-family: var(--sg-body); }
.sg-legal-hero { background: var(--sg-navy-grad) !important; }
.sg-legal h2 { font-size: 25px; margin: 42px 0 14px; }
.sg-legal h3 { font-size: 18px; margin: 26px 0 10px; font-family: var(--sg-display) !important; }
.sg-legal p, .sg-legal li { color: #4B5261; font-size: 15.5px; line-height: 1.78; font-family: var(--sg-body); }
.sg-legal p { margin-bottom: 14px; }
.sg-legal ul { margin: 0 0 16px 22px; }
.sg-legal li { margin-bottom: 6px; }
.sg-legal a { color: var(--sg-gold-dark); text-decoration: underline; }
.sg-legal a:hover { color: var(--sg-gold); }
.sg-legal em { color: var(--sg-fg); font-style: normal; font-weight: 600; }
.sg-legal table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0 20px;
	font-size: 14.5px;
	border-radius: var(--sg-radius);
	overflow: hidden;
}
.sg-legal th, .sg-legal td {
	border: 1px solid var(--sg-border);
	padding: 11px 15px;
	text-align: left;
	color: #4B5261;
	font-family: var(--sg-body);
}
.sg-legal th { background: var(--sg-secondary); color: var(--sg-fg); font-weight: 600; font-size: 14px; }

/* ==================== cookie lista ==================== */
#sg-cookiebar {
	position: fixed;
	left: 16px; right: 16px; bottom: 16px;
	z-index: 99999;
	background: #0E1B31;
	border: 1px solid rgba(210,150,45,.3);
	border-radius: var(--sg-radius);
	box-shadow: 0 24px 60px rgba(0,0,0,.45);
	max-width: 960px;
	margin: 0 auto;
	padding: 22px 26px;
	display: none;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}
#sg-cookiebar.sg-show { display: flex; }
#sg-cookiebar .sg-cb-text {
	flex: 1 1 380px;
	color: rgba(247,242,232,.75);
	font-size: 13.5px;
	line-height: 1.6;
	font-family: var(--sg-body);
}
#sg-cookiebar .sg-cb-text strong {
	color: var(--sg-cream);
	display: block;
	margin-bottom: 4px;
	font-family: var(--sg-display);
	font-size: 16px;
}
#sg-cookiebar .sg-cb-text a { color: var(--sg-gold); text-decoration: underline; }
#sg-cookiebar .sg-cb-btns { display: flex; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }
#sg-cookiebar button {
	font-family: var(--sg-body);
	font-size: 14px;
	font-weight: 600;
	padding: 11px 24px;
	cursor: pointer;
	transition: all .3s ease;
	border-radius: var(--sg-radius-sm);
}
#sg-cookiebar .sg-cb-reject {
	background: transparent;
	border: 1px solid rgba(210,150,45,.5);
	color: var(--sg-cream);
}
#sg-cookiebar .sg-cb-reject:hover { background: rgba(210,150,45,.1); border-color: var(--sg-gold); }
#sg-cookiebar .sg-cb-accept {
	background: var(--sg-gold-grad);
	border: 1px solid transparent;
	color: #FFFFFF;
}
#sg-cookiebar .sg-cb-accept:hover { opacity: .9; }

/* ==================== mobil ==================== */
@media (max-width: 980px) {
	.sg-hero h1 { font-size: 44px; }
	.sg-h2 h2, h2.sg-h2 { font-size: 34px; }
	.sg-card { padding: 32px !important; }
}
@media (max-width: 767px) {
	.sg-hero h1 { font-size: 32px; }
	.sg-hero-sub { font-size: 16px; }
	.sg-hero-content { padding: 120px 6px 90px; }
	.sg-hero-btns { flex-direction: column; align-items: stretch; }
	.sg-hero-btns .et_pb_button { display: block; text-align: center; }
	.sg-h2 h2, h2.sg-h2 { font-size: 26px; }
	.sg-sub p, p.sg-sub, .sg-about-text p { font-size: 16px; }
	.sg-legal-h1 { font-size: 30px; }
	.sg-footer-legal { justify-content: center; }
	.et_pb_section { padding: 64px 0; }
	#about, #divisions, #why-us {
		padding-top: 64px !important;
		padding-bottom: 64px !important;
	}
	.sg-footer { padding: 64px 0 !important; }
	.sg-legal-hero { padding: 110px 0 48px !important; }
	/* pohodlnejšie dotykové ciele */
	.sg-footer li a, .sg-footer-legal a {
		display: inline-flex; align-items: center; min-height: 40px;
	}
	#sg-cookiebar { padding: 18px; }
	#sg-cookiebar .sg-cb-btns { width: 100%; }
	#sg-cookiebar button { flex: 1 1 45%; padding: 12px 10px; }
}

::selection { background: var(--sg-gold); color: #FFFFFF; }
