/*
Theme Name: Stolár OnePage
Theme URI: #
Author: Antigravity
Author URI: #
Description: Prémiová one-page šablóna pre stolára, pripravená na WordPress.
Version: 1.0.0
Text Domain: stolar
*/

/* ==========================================================================
   Typography - Local Fonts
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/woff2/Inter-VariableFont_opsz,wght.woff2') format('woff2-variations'),
        url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: auto;
    font-display: swap;
}

/* Fallback pre Inter – minimalizuje reflow (CLS) */
@font-face {
    font-family: 'Inter-fallback';
    src: local('Arial');
    font-weight: 100 900;
    ascent-override: 90%;
    descent-override: 22.5%;
    line-gap-override: 0%;
    size-adjust: 107%;
    /* Prispôsobenie veľkosti Arialu k Interu */
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display/woff2/PlayfairDisplay-VariableFont_wght.woff2') format('woff2-variations'),
        url('../fonts/playfair-display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: auto;
    font-display: optional;
}

/* Fallback pre Playfair Display – zachová priestor pred načítaním fontu */
@font-face {
    font-family: 'Playfair-fallback';
    src: local('Georgia');
    font-weight: 400 900;
    ascent-override: 108%;
    descent-override: 28%;
    line-gap-override: 0%;
    size-adjust: 105%;
    /* Prispôsobenie veľkosti Georgia k Playfair */
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/outfit/Outfit-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: auto;
    font-display: swap;
}

:root {
    /* Colors */
    --primary: #805b38;
    --primary-rgb: 128, 91, 56;
    --primary-dark: #6d4d31;
    --secondary: #2c2825;
    --secondary-rgb: 44, 40, 37;
    --tertiary: #1f7f4a;
    --tertiary-dark: #1f6f43;
    --accent: #e8d8c8;
    --bg-light: #fbf9f6;
    --bg-light-rgb: 251, 249, 246;
    --text-main: #4a443e;
    --text-light: #6d645b;
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --header-bg: transparent;
    --header-scrolled-bg: rgba(var(--white-rgb), 0.95);

    /* Typography */
    --font-heading: 'Playfair Display', 'Playfair-fallback', Georgia, serif;
    --font-body: 'Inter', 'Inter-fallback', Arial, sans-serif;

    /* Layout & Effects */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(var(--secondary-rgb), 0.05);
    --shadow-md: 0 10px 30px rgba(var(--secondary-rgb), 0.08);
    --shadow-lg: 0 20px 40px rgba(var(--secondary-rgb), 0.12);
    --radius: 6px;
    --section-padding: 100px 0;

    /* Z-Index Scale */
    --z-bg: -1;
    --z-base: 1;
    --z-content: 2;
    --z-above: 10;
    --z-header: 100;
    --z-modal: 1000;
    --z-toast: 9999;
}

[data-theme="dark"] {
    --primary: #d4a77d;
    --primary-rgb: 212, 167, 125;
    --primary-dark: #c2956e;
    --secondary: #fbf9f6;
    --secondary-rgb: 251, 249, 246;
    --bg-light: #1a1817;
    /* Dark espresso */
    --bg-light-rgb: 26, 24, 23;
    --text-main: #e2dcd5;
    --text-light: #b0a59a;
    --white: #2c2825;
    /* Surfaces become dark */
    --white-rgb: 44, 40, 37;
    --accent: #3d3834;
    --header-scrolled-bg: rgba(26, 24, 23, 0.95);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Theme Lock for Hero and Footer */
[data-theme="dark"] .hero,
[data-theme="dark"] .site-footer {
    --secondary: #2c2825;
    --secondary-rgb: 44, 40, 37;
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --text-main: #ffffff;
    --text-light: rgba(255, 255, 255, 0.7);
    --bg-light: #2c2825;
}

[data-theme="dark"] .hero h1 {
    color: #ffffff;
}

[data-theme="dark"] .footer-widget h4 {
    color: #ffffff;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Zachovanie odrážok pre zoznamy v textovom obsahu (bez tried) */
.policy-section ul,
.policy-section ol,
.content-text ul,
.content-text ol {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.policy-section ol,
.content-text ol {
    list-style: decimal;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32'%3E%3Cdefs%3E%3Cstyle%3E.st0%7Bfill:none;stroke:%23010101;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px%7D.st1%7Bfill:%23fff%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='st1' points='7.7 2.8 4.5 5.9 5.6 7.5 7.5 8.1 7.1 10.3 9.1 10.8 8.7 12.4 10.6 13.6 10.3 15.2 12.1 15.9 11.9 18 13.8 18.7 13.3 20.8 15.8 23.2 15.8 26.4 19.5 29.7 20.6 29.1 24.3 25.3 26.6 24.7 27.5 23.7 27.6 22.7 27.3 21.6 8.3 3 7.7 2.8'/%3E%3Cpath class='st0' d='M22,16.7l-6.5,6.2v3.6l3.4,2.9c.5.4,1.1.3,1.5,0l3.7-4h.8c1.5,0,2.8-1.2,2.8-2.8h0S7.7,2.5,7.7,2.5l-3.5,3.5,1.2,1.3,2.1.6-.5,2.1,2.1.6-.5,2.1,2.1.6-.5,2.1,2.1.6-.5,2.1,2.1.6-.5,2.1,2.3,2'/%3E%3Cline class='st0' x1='18.4' y1='16.4' x2='14.9' y2='12.9'/%3E%3Crect class='st0' x='17.9' y='22.2' width='6.3' height='2.6' rx='.8' ry='.8' transform='translate(-10.4 21.8) rotate(-45)'/%3E%3C/svg%3E") 7 2, auto;
}

a,
button,
[role="button"],
input[type="submit"],
.btn,
label[for],
select,
.mobile-menu-btn {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32'%3E%3Cdefs%3E%3Cstyle%3E.st0%7Bfill:none;stroke:%23010101;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px%7D.st1%7Bfill:%23fff%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='st1' points='7.7 2.8 4.5 5.9 5.6 7.5 7.5 8.1 7.1 10.3 9.1 10.8 8.7 12.4 10.6 13.6 10.3 15.2 12.1 15.9 11.9 18 13.8 18.7 13.3 20.8 15.8 23.2 15.8 26.4 19.5 29.7 20.6 29.1 24.3 25.3 26.6 24.7 27.5 23.7 27.6 22.7 27.3 21.6 8.3 3 7.7 2.8'/%3E%3Cpath class='st0' d='M22,16.7l-6.5,6.2v3.6l3.4,2.9c.5.4,1.1.3,1.5,0l3.7-4h.8c1.5,0,2.8-1.2,2.8-2.8h0S7.7,2.5,7.7,2.5l-3.5,3.5,1.2,1.3,2.1.6-.5,2.1,2.1.6-.5,2.1,2.1.6-.5,2.1,2.1.6-.5,2.1,2.1.6-.5,2.1,2.3,2'/%3E%3Cline class='st0' x1='18.4' y1='16.4' x2='14.9' y2='12.9'/%3E%3Crect class='st0' x='17.9' y='22.2' width='6.3' height='2.6' rx='.8' ry='.8' transform='translate(-10.4 21.8) rotate(-45)'/%3E%3C/svg%3E") 7 2, pointer;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.1rem;
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding);
}

section[id] {
    scroll-margin-top: 45px;
}

/* Breadcrumbs */
.breadcrumbs-section {
    padding: 15px 0;
    border-bottom: 1px solid rgba(var(--secondary-rgb), 0.05);
    background: var(--bg-light);
}

.breadcrumb-nav ol {
    display: flex;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    gap: 8px;
}


.breadcrumb-nav li {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumb-nav li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-light);
    opacity: 0.4;
}

.breadcrumb-nav a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav li[aria-current="page"] {
    color: var(--text-main);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    /* Always white text on primary button */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

/* ==========================================================================
   Theme Switch V4 - Ultra-Realistic Wall Switch
   ========================================================================== */
.theme-switch-v4 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 1001;
}

/* Desktop placement (Hero) */
.hero .theme-switch-v4 {
    position: absolute;
    top: 100px;
    right: 30px;
}

@media (max-width: 991px) {
    .hero .theme-switch-v4 {
        display: none;
    }
}

/* Mobile placement - Pill Switch */
.mobile-theme-toggle {
    display: none;
}

@media (max-width: 991px) {
    .main-nav .theme-switch-v4 {
        display: none !important;
    }

    .mobile-theme-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: rgba(var(--white-rgb), 0.1);
        border-radius: 12px;
        margin-top: 30px;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(var(--primary-rgb), 0.15);
    }

    .mobile-theme-toggle span {
        font-weight: 600;
        color: var(--text-main);
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

.pill-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.pill-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pill-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pill-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pill-switch input:checked+.pill-slider {
    background-color: var(--primary);
}

.pill-switch input:checked+.pill-slider:before {
    transform: translateX(22px);
}

.switch-plate {
    position: relative;
    width: 55px;
    height: 85px;
    /*background-color: #fdfdfc;*/
    border-radius: 6px;
    /*border: 1px solid #e2e2dd;*/
    /*box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.05);*/
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    perspective: 500px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.switch-plate input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
}

.plate-base {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Screws */
.screw {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-screw {
    top: 5px;
}

.bottom-screw {
    bottom: 5px;
}

.screw-groove {
    width: 100%;
    height: 1px;
    background-color: #4b5563;
    opacity: 0.7;
}

.top-screw .screw-groove {
    transform: rotate(45deg);
}

.bottom-screw .screw-groove {
    transform: rotate(-15deg);
}

/* Rocker Klapka */
.rocker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 65px;
    background-color: #fcfcfb;
    border-radius: 8px;
    border: 1px solid #e8e8e3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rocker-face-top,
.rocker-face-bottom {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sun-svg,
.moon-svg {
    width: 20px;
    height: 20px;
    transition: all 0.4s ease;
    stroke-width: 2;
}

/* Default State (Light / OFF) */
.switch-plate input:not(:checked)+.plate-base .rocker {
    transform: translate(-50%, -50%) rotateX(18deg);
    box-shadow:
        inset 0 4px 4px rgba(0, 0, 0, 0.05),
        inset 0 -6px 6px rgba(255, 255, 255, 0.9),
        0 -6px 4px rgba(0, 0, 0, 0.1);
}

.switch-plate input:not(:checked)+.plate-base .sun-svg {
    color: #f1c40f;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(241, 196, 15, 0.5));
    transform: scale(1.1);
}

.switch-plate input:not(:checked)+.plate-base .moon-svg {
    color: #aaa;
    opacity: 0.3;
}

/* Active State (Dark / ON) */
.switch-plate input:checked+.plate-base .rocker {
    transform: translate(-50%, -50%) rotateX(-18deg);
    box-shadow:
        inset 0 6px 6px rgba(255, 255, 255, 0.9),
        inset 0 -4px 4px rgba(0, 0, 0, 0.1),
        0 6px 4px rgba(0, 0, 0, 0.15);
}

.switch-plate input:checked+.plate-base .moon-svg {
    color: #00ceff;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(0, 206, 255, 0.6));
    transform: scale(1.1);
}

.switch-plate input:checked+.plate-base .sun-svg {
    color: #888;
    opacity: 0.25;
}

.switch-plate:active .rocker {
    filter: brightness(0.95);
}

input:focus+.plate-base {
    outline: none;
}

/* Accessibility: only show outline for keyboard users if necessary, otherwise keep clean */
input:focus-visible+.plate-base {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 8px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    background: var(--header-bg);
}

.site-header.scrolled {
    background: var(--header-scrolled-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    height: 80px;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
    text-decoration: none;
}

.logo-slogan {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--primary);
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-top: 2px;
}

.logo-slogan span {
    display: block;
}

.logo img {
    height: 35px;
    /* Adjust height as needed */
    width: auto;
    transition: var(--transition);
}

.logo-black {
    display: none;
}

.site-header.scrolled .logo-white {
    display: none;
}

.site-header.scrolled .logo-black {
    display: block;
}

/* Dark Theme Logo Override */
[data-theme="dark"] .logo-black {
    display: none !important;
}

[data-theme="dark"] .logo-white {
    display: block !important;
}

/* Dark Mode Navigation Fixes */
[data-theme="dark"] .site-header.scrolled {
    background: rgba(var(--bg-light-rgb), 0.95);
}

[data-theme="dark"] .main-nav a {
    color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .site-header.scrolled .main-nav a {
    color: #ffffff;
}

/* Subpage header always showing black logo (except when scrolled might be handled differently) */
.subpage-header:not(.scrolled) .logo-white {
    display: none;
}

.subpage-header:not(.scrolled) .logo-black {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.site-header.scrolled .main-nav a {
    color: var(--text-main);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.site-header.scrolled .main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.site-header.scrolled .mobile-menu-btn {
    color: var(--secondary);
}

.main-nav.active~.mobile-menu-btn {
    color: var(--secondary);
}

/* Dark Mode Mobile Header Fixes */
[data-theme="dark"] .main-nav {
    /*background-color: #1a1817;*/
    /* Matches espresso background */
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100svh;
    /* Small viewport height pre mobilné prehliadače */
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--secondary);
    padding-top: 80px;
    overflow: hidden;
    contain: layout;
    /* Stabilizuje layout kontajnera */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Wood texture background - adapts to theme via variables */
    background: linear-gradient(rgba(var(--secondary-rgb), 0.8), rgba(var(--secondary-rgb), 0.9)),
        url('../img/hero/hero-mobile-bg-nabytok-na-mieru-01.webp') center/cover;
    z-index: 1;
    animation: slowZoom 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@media (min-width: 581px) {
    .hero-bg {
        background: linear-gradient(rgba(var(--secondary-rgb), 0.8), rgba(var(--secondary-rgb), 0.9)),
            url('../img/hero/hero-desktop-bg-nabytok-na-mieru-01.webp') center/cover;
    }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    z-index: 2;
}

[data-theme="dark"] .hero-bg::after {
    background-color: rgba(0, 0, 0, 0.65);
}

.hero .container {
    position: relative;
    z-index: 2;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    56% {
        transform: scale(1.2);
    }

    57% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Hero Page Slider Indicator */
.hero-page-slider-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-page-slider-indicator.visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-page-slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-page-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-page-slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-page-slider-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.hero-accent-image {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    max-width: 45%;
    max-height: 70%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
    transition: var(--transition);
}

@media (max-width: 991px) {
    .hero-accent-image {
        display: none;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

/* WCAG Contrast Override: Použitie svetlejšej pôvodnej zlatej na tmavom Hero pozadí */
.hero .hero-subtitle {
    color: #a67c52;
}

.hero .hero-subtitle::before {
    background-color: #a67c52;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    display: inline-block;
}

.hero p {
    color: rgba(var(--white-rgb), 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.0rem;
    max-width: 550px;
}

.hero-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 2.5rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.trust-item i {
    color: var(--primary);
    width: 20px;
    height: 20px;
    stroke-width: 3;
    margin-top: 2px;
    /* Drobné posunutie pre lepšie zarovnanie s riadkom textu */
}

.trust-sep {
    color: rgba(var(--white-rgb), 0.3);
}

@media (max-width: 768px) {
    .hero-trust-indicators {
        flex-direction: column;
        align-items: center;
        /* align-items: flex-start;*/
        gap: 10px;
        margin-bottom: 2rem;
    }

    .trust-sep {
        display: none;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 22px 32px;
    min-height: 64px;
    /* Zabraňuje CLS pri načítaní fontu */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 25px 25px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.00;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    /*border-color: transparent;*/
    border: 1px solid var(--accent);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: var(--bg-light);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    z-index: -1;
}

.experience-badge {
    position: absolute;
    top: 30px;
    left: -30px;
    background-color: var(--secondary);
    color: var(--white);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-shadow: var(--shadow-md);
    /*border: 5px solid var(--white);*/
    z-index: 2;
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3.0rem;
    font-weight: 700;
    color: #d4a77d; /* WCAG AA: vylepšený kontrast na tmavom pozadí */
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    line-height: 1.2;
    max-width: 100px;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-light);
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0px;
}

.feature-item svg,
.feature-item i {
    color: var(--primary) !important;
    stroke: var(--primary) !important;
    margin-right: 15px !important;
    min-width: 20px;
    height: 1.2rem;
    width: 1.2rem;
    stroke-width: 3 !important;
    margin-top: 5px !important;
}

.feature-content {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

.feature-title {
    font-weight: 700;
    color: var(--secondary);
    display: block;
    line-height: 1.4;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 0;
}

.about-signature {
    margin-top: 2rem;
}

.signature-img {
    height: 60px;
    filter: grayscale(1) opacity(0.7) invert(0);
    mix-blend-mode: multiply;
}

.about-process-full {
    margin-top: 0px;
    padding-top: 50px;
    /*border-top: 1px solid var(--accent);*/
    width: 100%;
}

.about-process-full .section-title {
    margin-bottom: 2rem;
}

.about-process-full .section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
}

.about-process-full .section-title h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: -10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-process-full .section-title p {
    margin: 0 auto;
}

.process-horizontal-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    /*background: var(--white);*/
    /*padding: 30px;*/
    border-radius: var(--radius);
    /*box-shadow: var(--shadow-sm);*/
    /*border: 1px solid var(--accent);*/
}

.process-h-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.process-h-item i,
.process-h-item svg {
    color: var(--primary) !important;
    stroke: var(--primary) !important;
    min-width: 20px;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    stroke-width: 3 !important;
}

.process-h-content {
    display: flex;
    flex-direction: column;
}

.process-h-content strong {
    color: var(--secondary);
    font-size: 1.05rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.process-h-content span {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.process-sep {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 5px;
}

@media (max-width: 991px) {
    .process-horizontal-grid {
        flex-direction: column;
        gap: 20px;
    }

    .process-sep {
        display: none;
    }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.text-white {
    color: var(--white) !important;
}

.text-white-80 {
    color: rgba(var(--white-rgb), 0.8) !important;
}

.faq .section-title h2::after {
    background-color: var(--white);
}

.accordion {
    max-width: 850px;
    margin: 0 auto;
}

.accordion-item {
    background: rgba(var(--white-rgb), 0.05);
    border: 1px solid rgba(var(--white-rgb), 0.1);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-header {
    width: 100%;
    padding: 22px 30px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    text-align: left;
    color: var(--white);
    transition: var(--transition);
}

.accordion-header h3 {
    color: var(--white);
    margin-bottom: 0;
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    flex: 1;
}

.accordion-header i,
.accordion-header svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    flex-shrink: 0;
    margin-left: 20px;
    margin-top: 3px;
    transition: transform 0.4s ease;
}

.accordion-item.active {
    background: var(--white);
}

.accordion-item.active .accordion-header {
    padding-bottom: 10px;
}

.accordion-item.active .accordion-header h3 {
    color: var(--primary);
}

.accordion-item.active .accordion-header i,
.accordion-item.active .accordion-header svg {
    color: var(--primary) !important;
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
    padding: 0 30px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 30px;
}

.accordion-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding-top: 5px;
    line-height: 1.7;
}

.accordion-item.active .accordion-content p {
    color: var(--text-main);
}

/* ==========================================================================
   Portfolio / Gallery Section
   ========================================================================== */
.portfolio {
    background-color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.portfolio-item {
    grid-column: span 4;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item.large {
    grid-column: span 8;
    grid-row: span 2;
}

/* Dynamic Grid Layouts based on item count */
/* 1 Item: Full width */
.portfolio-grid[data-count="1"] .portfolio-item {
    grid-column: span 12;
}

/* 2 or 4 Items: 2 columns (50:50) */
.portfolio-grid[data-count="2"] .portfolio-item,
.portfolio-grid[data-count="4"] .portfolio-item {
    grid-column: span 6;
}

/* 5 Items: Last two items in a 50:50 row */
.portfolio-grid[data-count="5"] .portfolio-item:nth-child(4),
.portfolio-grid[data-count="5"] .portfolio-item:nth-child(5) {
    grid-column: span 6;
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-item video {
    pointer-events: none;
    /* Allows click to pass through to the trigger container */
}

.lightbox-trigger {
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(var(--secondary-rgb), 0.9) 0%, rgba(var(--secondary-rgb), 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info h3 {
    color: var(--white);
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-info span {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
    display: block;
}

.portfolio-item:hover .portfolio-info h3,
.portfolio-item:hover .portfolio-info span {
    transform: translateY(0);
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    background-color: var(--bg-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--accent);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.process-number {
    width: 70px;
    height: 70px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-body);
    transition: var(--transition);
    border: 2px solid transparent;
}

.process-card:hover .process-number {
    background-color: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.process-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header h3 {
        font-size: 1.0rem;
    }

    .accordion-header svg {
        margin-left: 10px;
    }
}

/* ==========================================================================
   Gallery Subpage & Lightbox
   ========================================================================== */
.page-top-spacer {
    height: 80px;
    /* Zodpovedá výške headeru */
    background-color: var(--white);
    width: 100%;
    padding: 0 !important;
}

.hero-subpage {
    height: auto;
    min-height: 0 !important;
}

.hero-small {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0 !important;
    position: relative;
}

.hero-small .container {
    width: 100%;
}

.hero-bg-gallery {
    background: linear-gradient(rgba(44, 40, 37, 0.75), rgba(44, 40, 37, 0.85)), url('../img/hero/hero-mobile-bg-nabytok-na-mieru-02.webp') center/cover;
}

@media (min-width: 581px) {
    .hero-bg-gallery {
        background: linear-gradient(rgba(44, 40, 37, 0.75), rgba(44, 40, 37, 0.85)), url('../img/hero/hero-desktop-bg-nabytok-na-mieru-02.webp') center/cover;
    }
}

.hero-content-center {
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content-center h1 {
    margin: 0 0 15px 0 !important;
}

.hero-content-center p {
    margin: 0 auto !important;
    text-align: center;
    max-width: 600px;
}

.hero-content-center *:last-child {
    margin-bottom: 0 !important;
}

.hero-small h1 {
    /*font-size: 3.5rem;*/
    font-size: 2.0rem;
}

.hero-small h2 {
    font-size: 1.5rem;
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 24px;
    background-color: var(--btn-color, var(--primary));
    border: 1px solid var(--btn-color, var(--primary));
    border-radius: 30px;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.filter-btn.active {
    filter: brightness(0.85);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.4s ease;
}

.project-header {
    margin-bottom: 0px;
    /*border-bottom: 1px solid var(--bg-light);*/
    padding-bottom: 20px;
}

.project-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-header p {
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 800px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.thumbnail-grid a {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.thumbnail-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbnail-grid a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--secondary-rgb), 0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.thumbnail-grid a:hover img {
    transform: scale(1.05);
}

.thumbnail-grid a:hover::after {
    opacity: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.project-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tag-category {
    background: var(--primary);
    color: white;
}

.project-tag-city {
    background: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

/* Lightbox Base */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#lightbox-video {
    display: none;
    max-width: 100%;
    max-height: 85vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(var(--white-rgb), 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    transition: all 0.3s;
    -webkit-user-select: none;
    user-select: none;
    z-index: 10000;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox.active .lightbox-close,
.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    display: flex;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(var(--white-rgb), 0.3);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--bg-light);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
}

.contact-info {
    padding-right: 0;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.info-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.form-group {
    margin-bottom: 0;
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px 20px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #e74c3c;
    background-color: #fdf0ef;
}

.form-error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.form-group.has-error .form-control {
    border-color: #e74c3c;
}

.form-group.has-error .form-error-msg {
    display: block;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Form Submit Messages */
.form-message {
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid #2ecc71;
    display: block;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid #e74c3c;
    display: block;
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn-icon {
    margin-right: 10px;
}

.text-center {
    text-align: center;
}

.mt-50 {
    margin-top: 50px;
}

.pt-40 {
    padding-top: 40px;
}

.text-secondary {
    color: var(--secondary) !important;
}

.subpage-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-widget h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo-footer {
    height: 45px;
    width: auto;
}

.footer-text {
    color: rgba(var(--white-rgb), 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.social-links a .lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    stroke: currentColor;
    fill: none;
}

.footer-links {
    list-style: none;
}

.footer-links.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(var(--white-rgb), 0.7);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(var(--white-rgb), 0.5);
    font-size: 0.9rem;
}

.footer-bottom p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0.1rem;
}

.pixelio-link {
    display: inline-flex;
    align-items: center;
}

.pixelio-logo {
    height: 18px;
    width: auto;
    opacity: 0.7;
    transition: var(--transition);
    vertical-align: middle;
}

.pixelio-link:hover .pixelio-logo {
    opacity: 1;
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1199px) {
    .hero h1 {
        font-size: 3.8rem;
    }
}

@media (max-width: 991px) {
    section {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-content {
        text-align: center;
    }

    .about-content .hero-subtitle {
        padding-left: 0;
    }

    .about-content .hero-subtitle::before {
        display: none;
    }

    .about-features {
        text-align: left;
        display: inline-block;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        margin-bottom: 25px;
        grid-auto-rows: 250px;
    }

    .portfolio-item,
    .portfolio-grid[data-count] .portfolio-item {
        grid-column: span 1 !important;
    }

    .portfolio-item.large {
        grid-column: span 2 !important;
        grid-row: span 2 !important;
    }

    .experience-badge {
        top: 20px;
        left: -20px;
        width: 100px;
        height: 100px;
    }

    .experience-badge .years {
        font-size: 2rem;
    }

    .mt-50 {
        margin-top: 30px !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 40px;
        transition: var(--transition);
        z-index: 99;
        display: flex;
        flex-direction: column;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav a {
        color: var(--text-main);
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 101;
        position: relative;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
        text-align: center;
        align-items: flex-start;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero .hero-subtitle {
        display: none;
    }

    .hero-subtitle::before {
        display: none;
    }

    .hero-subtitle {
        padding-left: 0;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        grid-auto-rows: 300px;
    }

    .portfolio-item,
    .portfolio-item.large,
    .portfolio-grid[data-count] .portfolio-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .portfolio-static-text {
        font-size: 0.85rem;
        color: var(--text-light);
        line-height: 1.5;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #eee;
    }

    .portfolio-static-text:empty {
        display: none;
    }

    .lightbox-trigger {
        cursor: pointer;
    }

    .portfolio-item .portfolio-overlay .portfolio-info+.portfolio-static-text {
        margin-top: 12px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-content {
        max-width: 100%;
    }

    .contact-form form {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-group.full {
        grid-column: 1 / -1;
    }

    .contact-inner {
        padding: 40px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        position: relative;
        top: 0;
        left: 0;
        margin: -50px auto 20px;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }

    .hide-mobile {
        display: none !important;
    }

    .section-title {
        margin-bottom: 1.6rem;
    }

    .section-title p {
        margin: 0.5rem auto 0;
    }

    .portfolio-grid {
        gap: 15px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .thumbnail-grid a:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        margin-top: 2rem;
    }

    .hero p {
        font-size: 1.0rem;
        margin-bottom: 2rem;
    }

    .hero-trust-indicators {
        gap: 4px;
        margin-bottom: 1.5rem;
    }

    .about-inner {
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 18px 18px;
    }

    .service-card .service-icon {
        margin: 0 auto 10px;
    }

    .contact-inner {
        padding: 30px 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .form-control {
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 15px;
        min-height: 48px;
        /* Zabraňuje CLS na mobiloch */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        white-space: normal;
        word-break: break-word;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .project-section {
        padding: 25px;
        margin-bottom: 30px;
    }

    .project-header {
        margin-bottom: 0px;
        padding-bottom: 20px;
    }

    .project-header h2 {
        font-size: 1.5rem;
    }

    .footer-100 {
        height: 100px;
        background-color: var(--secondary);
    }
}


.service-icon img {
    width: 60px;
    height: 60px;
    display: block;
    transition: var(--transition);
}

/* Pridaný filter pre zmenu farby ikony na bielo pri hover efekte (ak je pôvodná farba var(--primary)) */
.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

.lightbox-prev .lucide,
.lightbox-next .lucide {
    width: 28px;
    height: 28px;
    display: block !important;
    margin: 0 !important;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Mobile Bottom Navigation (Floating Dock)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 576px) {
    .mobile-bottom-nav {
        height: 70px;
        display: flex;
        position: fixed;
        bottom: 5px;
        left: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        /*border: 1px solid rgba(255, 255, 255, 0.4);*/
        border-radius: 30px;
        padding: 5px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        /* Rešpektovanie systémových "safe areas" */
        padding-bottom: calc(5px + env(safe-area-inset-bottom));
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-light);
        text-decoration: none;
        font-size: 0.6rem;
        font-weight: 600;
        gap: 2px;
        transition: var(--transition);
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .nav-item i {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.2;
    }

    .nav-item:active {
        color: var(--primary);
        transform: scale(0.92);
    }

    /* Vylepšené vycentrované tlačidlo volania - ešte viac vyskúpené */
    .nav-call {
        position: relative;
        top: -21px;
        /* Výraznejšie vyčnieva nahor */
        z-index: 1001;
    }

    .call-icon-wrapper {
        width: 62px;
        height: 62px;
        background: var(--tertiary);
        background: linear-gradient(135deg, var(--tertiary), var(--tertiary-dark));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(194, 149, 110, 0.5);
        margin-bottom: 0px;
        /*border: 4px solid var(--white);*/
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-call:active .call-icon-wrapper {
        transform: scale(1.1);
        box-shadow: 0 15px 25px rgba(194, 149, 110, 0.6);
    }

    .nav-call span {
        color: var(--tertiary);
        font-weight: 800;
        margin-top: 4px;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }

    /* Absolútne vynútenie bielej farby pre túto ikonku */
    .mobile-bottom-nav .nav-call .call-icon-wrapper .lucide,
    .mobile-bottom-nav .nav-call .call-icon-wrapper svg,
    .mobile-bottom-nav .nav-call .call-icon-wrapper i {
        color: #ffffff !important;
        stroke: #ffffff !important;
        fill: none !important;
        width: 28px !important;
        height: 28px !important;
    }

    /* Posunutie obsahu na mobile, aby ho menu nezakrývalo */
    body {
        padding-bottom: 0px;
    }
}

/* Forced Hide for Mobile Nav (to prevent FOUC) */
.hide-mobile-nav-force .footer-100,
.hide-mobile-nav-force .mobile-bottom-nav {
    display: none !important;
}

/* SVG Icon Utilities */
.lucide {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    display: block;
}

.lucide-check-hero {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px;
    color: var(--primary);
    stroke-width: 2.5;
}

.lucide-check-feature {
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.ai-spin {
    animation: ai-spin-loading 1s linear infinite;
}

@keyframes ai-spin-loading {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Materials CTA Banner & Page Helpers
   ========================================================================== */
.materials-content-section {
    padding: 100px 0;
}

.materials-btn-wrap {
    margin-top: 100px;
}

/* ==========================================================================
   Promo Banner Section (Akcia)
   ========================================================================== */
.d-none {
    display: none !important;
}

.promo-banner-section {
    padding: 45px 0;
    position: relative;
    z-index: 10;
    background: var(--white);
    /* CLS fix: rezervuj priestor aj ked je sekcia skryta */
    contain-intrinsic-size: 0 150px;
}

.promo-banner-box {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-radius: clamp(12px, 2vw, 24px);
    display: flex;
    align-items: center;
    gap: 30px;
    padding: clamp(20px, 4vw, 40px) clamp(30px, 5vw, 50px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.promo-banner-icon {
    flex-shrink: 0;
    width: clamp(60px, 8vw, 90px);
    height: clamp(60px, 8vw, 90px);
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.promo-banner-icon svg {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    color: #1a1a1a !important;
    stroke: #1a1a1a !important;
    /* Force black stroke */
}

.promo-banner-text {
    flex-grow: 1;
}

.promo-banner-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin: 0 0 10px 0;
    line-height: 1.2;
    color: #000;
}

.promo-banner-text p {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    margin: 0;
    line-height: 1.5;
    color: #222;
    font-weight: 500;
}

/* Jemná animácia pulzu pre udernosť */
@keyframes promoPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08) rotate(3deg);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation svg {
    animation: promoPulse 2s infinite ease-in-out;
    transform-origin: center;
    display: block;
}

@media (max-width: 768px) {
    .promo-banner-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
}


.materials-cta {
    padding: 40px 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, #2563eb, #6d28d9);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-md);
}

.cta-image {
    flex: 0 0 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-text {
    flex: 1;
    color: #ffffff;
}

.cta-text h2 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.cta-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-action {
    flex: 0 0 auto;
}

.cta-action .btn {
    background-color: #ffffff;
    color: #4c1d95;
    border: none;
    font-weight: 600;
}

.cta-action .btn:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 25px;
    }

    .cta-image {
        flex: 0 0 160px;
        height: 160px;
        border-radius: 50%;
    }

    .cta-action {
        width: 100%;
    }

    .cta-action .btn {
        width: 100%;
    }
}

/* Fix text colors for dark mode context */
[data-theme="dark"] .cta-text {
    color: #ffffff;
}

[data-theme="dark"] .cta-text h2 {
    color: #ffffff;
}

/* Cookie Box - Premium Mini Box */
.cookie-box {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 360px;
    max-width: calc(100% - 50px);
    background: rgba(26, 26, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-box.show {
    transform: translateY(0);
}

.cookie-box h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #c5a059;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.cookie-box .cookie-link {
    color: #c5a059;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-box .cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-box .btn-cookie {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    flex: 1;
}

.cookie-box .btn-accept {
    background: #c5a059;
    color: #fff;
}

.cookie-box .btn-accept:hover {
    background: #b18d4a;
    transform: translateY(-2px);
}

.cookie-box .btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-box .btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .cookie-box {
        bottom: 15px;
        left: 15px;
        width: calc(100% - 30px);
        padding: 20px;
    }
}

/* ==========================================================================
   PageSpeed Insights Hardening: Rendering Optimizations
   ========================================================================== */
.faq {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.contact {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}