/* ============================================
   Rezidence Nabrezi - Premium Residential Design
   Brandys nad Labem - Stara Boleslav
   ============================================ */

/* Ranoya Font - Brandbook primary logo/heading font */
/* TODO: Replace with actual Ranoya font files from client */
@font-face {
    font-family: 'Ranoya';
    src: url('fonts/Ranoya-Regular.woff2') format('woff2'),
         url('fonts/Ranoya-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ranoya';
    src: url('fonts/Ranoya-Bold.woff2') format('woff2'),
         url('fonts/Ranoya-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Poppins — self-hosted (latin + latin-ext) */
/* normal */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-300-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-300.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-400-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-500-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-600-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-700-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* italic */
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-300i-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-300i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-400i-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-400i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-500i-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-500i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-600i-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-600i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-700i-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('https://nabrezi.b-cdn.net/fonts/poppins/poppins-700i.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* CSS Variables */
:root {
    /* Primary Colors - Camouflage Green from brandbook */
    --color-primary: #778664;
    --color-primary-dark: #5C6048;
    --color-primary-light: #A6AE9C;

    /* Secondary Colors - Chestnut/Terracotta from brandbook */
    --color-accent: #994839;
    --color-accent-dark: #7A3A2E;
    --color-accent-light: #B46F5D;

    /* Neutrals - from brandbook palette */
    --color-dark: #1A1A1A;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;
    --color-light: #E7DFD4;
    --color-white: #FFFFFF;
    --color-border: #C1B5A8;

    /* Typography - Poppins everywhere, Ranoya for brand/logo only */
    --font-brand: 'Ranoya', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-premium: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Bone Accent from brandbook */
    --color-bone: #E7DFD4;
    --color-pale-silver: #C1B5A8;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    overflow-x: hidden;
}

html, body {
    max-width: 100vw;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Page Load Animation */
body {
    animation: pageLoad 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading overlay */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-light);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scroll behavior for all elements */
* {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global smooth transitions for all interactive elements */
button, input, select, textarea {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth image loading */
img {
    opacity: 1;
}

img[loading] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
    animation: imageLoad 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-dark);
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    letter-spacing: -0.01em;
}

/* Premium Text Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shine {
    position: relative;
    display: inline-block;
}

.text-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Stagger Animation for children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons - Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(119, 134, 100, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 154, 125, 0.4);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn-full {
    width: 100%;
}

/* Section Tag - Premium Style */
.section-tag {
    display: none;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.section-tag:hover {
    background: linear-gradient(135deg, rgba(165, 180, 151, 0.5) 0%, rgba(165, 180, 151, 0.5) 100%);
    transform: translateY(-2px);
}

/* Section Header - Premium */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--color-dark) 0%,
        var(--color-dark) 40%,
        var(--color-primary-dark) 50%,
        var(--color-dark) 60%,
        var(--color-dark) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: premiumTextGradient 6s ease-in-out infinite;
}

@keyframes premiumTextGradient {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.section-header p {
    margin-top: var(--space-xl);
    color: var(--color-text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transparent nav on hero pages */
.hero-page .navbar {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    position: relative;
    transition: color 0.4s ease;
}

/* White nav on hero pages (exclude dropdown items) */
.hero-page .navbar:not(.scrolled) .nav-links:not(.active) > li > a {
    color: rgba(255,255,255,0.9);
}

.logo-img {
    height: 48px;
    width: auto;
    transition: opacity 0.4s ease, height 0.4s ease;
}

.hero-page .navbar:not(.scrolled) .logo-img {
    height: 76px;
}

/* Logo swapping: dark by default, white on hero page */
.logo-light {
    display: none;
}

.hero-page .navbar:not(.scrolled) .logo-dark {
    display: none;
}

.hero-page .navbar:not(.scrolled) .logo-light {
    display: block;
}

.hero-page .navbar.scrolled .logo-light {
    display: none;
}

.hero-page .navbar.scrolled .logo-dark {
    display: block;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-links li {
    position: relative;
}

.nav-links .has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    position: static;
    background: none;
    transition: transform 0.2s ease;
}

.nav-links .has-dropdown:hover > a::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    z-index: 1000;
}

/* Invisible bridge to keep hover when moving to dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

/* Arrow triangle */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-white);
}

.has-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.4rem var(--space-md);
    font-size: 0.875rem;
    white-space: nowrap;
    color: var(--color-text);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    color: var(--color-primary);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background-color: #4e5e3d; /* darkened from --color-primary (#778664) for WCAG 4.5:1 with white */
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: padding 0.4s ease, font-size 0.4s ease;
}

.hero-page .navbar:not(.scrolled) .nav-cta {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.nav-cta:hover {
    background-color: #3d4b30; /* darker shade of #4e5e3d */
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-base);
}

.hero-page .navbar:not(.scrolled) .mobile-menu-btn span {
    background-color: var(--color-white);
}

/* ============================================
   Hero Section
   ============================================ */
/* ── Full-viewport Hero (spec blocks A–G) ──────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Background image + Ken Burns */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroKenBurns 25s ease-in-out infinite alternate;
    will-change: transform;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Portrait/landscape video switching — CSS handles visibility, autoplay attribute handles playback */
.hero-video--portrait { display: none; }

@media (max-aspect-ratio: 1/1) {
    .hero-video--landscape { display: none; }
    .hero-video--portrait { display: block; }
}

.hero-img-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Fallback image visibility is handled by JS in nabrezi-hero.twig:
   - video.play() resolves → fallback hidden via style.display='none'
   - video.play() rejects (autoplay blocked) → video hidden, fallback stays visible
   CSS-only hiding removed — it hid fallback even when video wasn't actually playing (iOS) */

@keyframes heroKenBurns {
    0%   { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -0.5%); }
}

/* Multi-layer overlay: vignette + gradient + subtle grain */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(26,26,26,0.3) 100%),
        linear-gradient(180deg, rgba(26,26,26,0.40) 0%, rgba(26,26,26,0.05) 35%, rgba(26,26,26,0.08) 65%, rgba(26,26,26,0.55) 100%);
}

/* Subtle noise texture overlay */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
    pointer-events: none;
}

/* ─ A: Logo in hero ─ */
.hero-logo {
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    /* slideInUp: translate-only so LCP element is visible immediately (no opacity:0 start) */
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-logo img {
    width: auto;
    max-width: 90%;
    display: block;
    margin: 0 auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4)) drop-shadow(0 8px 40px rgba(0, 0, 0, 0.2));
    transition: opacity 0.3s ease;
}

.hero-logo:hover img {
    opacity: 1;
}

/* ─ B: Project status badge ─ */
.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.7rem;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #4e5e3d; /* darkened from #778664 for WCAG 4.5:1 contrast on white */
    z-index: 3;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(139, 195, 74, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(139, 195, 74, 0); }
}

/* ─ F: Badges / stickers area ─ */
.badges-area {
    position: absolute;
    bottom: var(--space-2xl);
    right: var(--space-lg);
    z-index: 3;
    display: flex;
    gap: var(--space-sm);
}

.badge-sticker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 24px rgba(153, 72, 57, 0.4);
    transform: rotate(-12deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-sticker:hover {
    transform: rotate(0deg) scale(1.1);
}

/* ─ Center content block ─ */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    padding: 0 var(--space-lg) 200px;
}

.hero h1 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 1.12;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 4px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* LCP-safe variant: translates only, no opacity — hero logo stays visible for LCP */
@keyframes slideInUp {
    from { transform: translateY(20px); }
    to   { transform: translateY(0); }
}

/* Decorative line between h1 and claims */
.hero-content .claims-carousel::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

/* ─ D: Rotating claims ─ */
.claims-carousel {
    position: relative;
    height: 4rem;
    margin-bottom: var(--space-lg);
    padding-top: 0.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
    overflow: hidden;
}

.claim-item {
    position: absolute;
    top: 0.5rem;
    left: 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.claim-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─ G: CTA button (hero-specific) ─ */
.hero-cta {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-cta .btn {
    position: relative;
    overflow: hidden;
    padding: 1rem 3.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta .btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.hero-cta .btn:hover::before {
    left: 100%;
}

/* ─ Scroll indicator ─ */
.hero-scroll {
    position: absolute;
    bottom: var(--space-sm);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
}

.hero-scroll span {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.4);
}

.hero-scroll-line {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.6);
    animation: scrollLine 2.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { top: -100%; }
    40%  { top: 100%; }
    100% { top: 100%; }
}

/* Stats (moved to O projektu, but keep generic styling) */
.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    right: calc(var(--space-2xl) / -2);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}

.stat:last-child::after {
    display: none;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

