/* ==========================================================================
   RODINNÉ STOLAŘSTVÍ — 9. VARIANTA
   Teplá & Zemská Estetika · Outfit & Inter Typografie · Light/Dark Mode
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   DESIGN TOKENY — DARK MODE (výchozí)
   ────────────────────────────────────────────────────────────────────────── */
:root,
[data-theme="dark"] {
    /* Pozadí a povrchy — Bohatý tmavý ořech */
    --bg:           #120e0c;
    --bg-alt:       #16110f;
    --card:         #1c1613;
    --card-border:  rgba(255, 255, 255, 0.04);
    --card-hover:   rgba(207, 161, 92, 0.08);

    /* Text — Teplé lněné tóny */
    --text:         #f6f4f2;
    --text-muted:   #a79e97;
    --text-faint:   #5e544e;

    /* Brand barvy — Teplé kovy a dřevo */
    --brand-primary:         #cfa15c; /* Broušená mosaz / Medové zlato */
    --brand-primary-glow:    #e5b869;
    --brand-primary-dim:     rgba(207, 161, 92, 0.12);
    --brand-primary-rim:     rgba(229, 184, 105, 0.3);
    --brand-secondary:       #946b45; /* Hřejivá bronz / Mahagonové dřevo */
    --brand-secondary-glow:  #b88a5c;
    --brand-secondary-dim:   rgba(148, 107, 69, 0.12);

    /* Záře na pozadí — Zlatavá a bronzová */
    --aurora-primary:   rgba(229, 184, 105, 0.07);
    --aurora-secondary: rgba(148, 107, 69, 0.06);

    /* Navigace */
    --nav-bg:      rgba(22, 17, 15, 0.75);
    --nav-border:  rgba(255, 255, 255, 0.04);

    /* Formulář */
    --input-bg:    rgba(0, 0, 0, 0.25);
    --input-border: rgba(255, 255, 255, 0.06);

    /* Shadow a overlay */
    --shadow-lg:   0 30px 60px rgba(0, 0, 0, 0.35);
    --shadow-md:   0 15px 35px rgba(0, 0, 0, 0.18);
    --hero-overlay: linear-gradient(
        to right,
        rgba(18, 14, 12, 0.88) 0%,
        rgba(18, 14, 12, 0.70) 50%,
        rgba(18, 14, 12, 0.20) 100%
    );
    --hero-overlay-bottom: linear-gradient(
        to top,
        rgba(18, 14, 12, 1) 0%,
        rgba(18, 14, 12, 0) 30%
    );

    /* Logo */
    --logo-filter: none;

    /* Footer */
    --footer-bg: #0d0a09;
}

/* ──────────────────────────────────────────────────────────────────────────
   DESIGN TOKENY — LIGHT MODE
   ────────────────────────────────────────────────────────────────────────── */
[data-theme="light"] {
    /* Pozadí a povrchy — Březové dřevo a krém */
    --bg:           #faf7f2;
    --bg-alt:       #f2ede4;
    --card:         #ffffff;
    --card-border:  rgba(148, 107, 69, 0.08);
    --card-hover:   rgba(148, 107, 69, 0.04);

    /* Text — Tmavý ořech a grafit */
    --text:         #241e1a;
    --text-muted:   #786e66;
    --text-faint:   #beb3a8;

    /* Brand barvy — Upravené pro kontrast na světlém pozadí */
    --brand-primary:         #b2803b;
    --brand-primary-glow:    #c5924d;
    --brand-primary-dim:     rgba(178, 128, 59, 0.08);
    --brand-primary-rim:     rgba(178, 128, 59, 0.25);
    --brand-secondary:       #7d542d;
    --brand-secondary-glow:  #9c6d41;
    --brand-secondary-dim:   rgba(125, 84, 45, 0.08);

    /* Záře na pozadí — Decentní teplé záblesky */
    --aurora-primary:   rgba(178, 128, 59, 0.04);
    --aurora-secondary: rgba(125, 84, 45, 0.04);

    /* Navigace */
    --nav-bg:      rgba(250, 247, 242, 0.85);
    --nav-border:  rgba(148, 107, 69, 0.10);

    /* Formulář */
    --input-bg:    rgba(148, 107, 69, 0.04);
    --input-border: rgba(148, 107, 69, 0.12);

    /* Shadow a overlay */
    --shadow-lg:   0 25px 55px rgba(77, 54, 38, 0.05);
    --shadow-md:   0 12px 25px rgba(77, 54, 38, 0.02);
    --hero-overlay: linear-gradient(
        to right,
        rgba(18, 14, 12, 0.85) 0%,
        rgba(18, 14, 12, 0.65) 50%,
        rgba(18, 14, 12, 0.15) 100%
    );
    --hero-overlay-bottom: linear-gradient(
        to top,
        rgba(18, 14, 12, 0.95) 0%,
        rgba(18, 14, 12, 0) 30%
    );

    /* Logo invert pro světlý režim */
    --logo-filter: none;

    /* Footer */
    --footer-bg: #eae3d8;
}

/* ──────────────────────────────────────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color-scheme: dark light;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Outfit pro všechny nadpisy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
}

/* Plynulé přechody pro theme switch */
.card-3d, .about-preview-card, .process-card-3d,
.about-menu-item, .footer-igloo-form-box,
.input-igloo, .header-igloo, .nav-wrapper-igloo {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

/* ──────────────────────────────────────────────────────────────────────────
   CANVAS & BACKGROUND FX
   ────────────────────────────────────────────────────────────────────────── */
#dust-canvas {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none; z-index: 1;
}

.laser-grid-bg {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image:
        radial-gradient(circle at 50% -20%, rgba(229, 184, 105, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(255,255,255,0.004) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.004) 1px, transparent 1px);
    background-size: 100% 100%, 80px 80px, 80px 80px;
    pointer-events: none; z-index: 0;
}

[data-theme="light"] .laser-grid-bg {
    background-image:
        radial-gradient(circle at 50% -20%, rgba(178, 128, 59, 0.03) 0%, transparent 60%),
        linear-gradient(rgba(148,107,69,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,107,69,0.015) 1px, transparent 1px);
}

.aurora-glow {
    position: fixed;
    width: 800px; height: 800px;
    border-radius: 50%;
    filter: blur(180px); /* Zjemněný rozptyl záře na pozadí */
    pointer-events: none; z-index: 0;
    mix-blend-mode: screen;
    animation: aurora-pulse 12s ease-in-out infinite alternate;
}

.glow-primary   { top: -200px; left: -200px;   background: var(--aurora-primary);   opacity: 1; }
.glow-secondary { bottom: -200px; right: -200px; background: var(--aurora-secondary); opacity: 1; animation-delay: -5s; }

[data-theme="light"] .aurora-glow { mix-blend-mode: multiply; }

@keyframes aurora-pulse {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(40px, 40px); }
}

/* ──────────────────────────────────────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────────────────────────────────────── */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

/* ──────────────────────────────────────────────────────────────────────────
   NAVIGACE — Floating Glass Bar
   ────────────────────────────────────────────────────────────────────────── */
.header-igloo {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1100px;
    z-index: 1000;
    margin-top: 2rem;
}

.nav-wrapper-igloo {
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 100px;
    padding: 0.8rem 1.5rem 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.logo-igloo img {
    height: 28px;
    display: block;
    filter: var(--logo-filter);
    transition: filter 0.4s ease;
}

[data-theme="light"] .logo-igloo img {
    filter: none;
}

.nav-links-igloo {
    display: flex;
    gap: 2.2rem;
}

.nav-links-igloo a {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
    padding: 0.3rem 0;
}

.nav-links-igloo a:hover {
    color: var(--text);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ─── Theme Toggle Button ─── */
#theme-toggle {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
    background: var(--card);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#theme-toggle:hover {
    border-color: var(--brand-primary-rim);
    color: var(--brand-primary-glow);
    box-shadow: 0 0 12px var(--brand-primary-dim);
}

/* Zobrazit správnou ikonu */
[data-theme="dark"]  #theme-toggle .icon-dark  { display: none; }
[data-theme="dark"]  #theme-toggle .icon-light { display: block; }
[data-theme="light"] #theme-toggle .icon-dark  { display: block; }
[data-theme="light"] #theme-toggle .icon-light { display: none; }

/* ──────────────────────────────────────────────────────────────────────────
   TLAČÍTKA — Skleněná s teplým rámem
   ────────────────────────────────────────────────────────────────────────── */

/* Primární: skleněná zlatavá výplň + zlatý lem */
.btn-igloo-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: #fff;
    background: rgba(207, 161, 92, 0.15);
    border: 1px solid var(--brand-primary-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 0 0 transparent, inset 0 1px 0 rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.btn-igloo-solid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229,184,105,0.35) 0%, rgba(207,161,92,0.0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-igloo-solid:hover {
    background: rgba(207, 161, 92, 0.28);
    box-shadow: 0 0 25px rgba(229, 184, 105, 0.35), 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.btn-igloo-solid:hover::before { opacity: 1; }

/* Outline verze pro nav CTA */
.btn-igloo-outline {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-igloo-outline:hover {
    border-color: var(--brand-primary-rim);
    background: var(--brand-primary-dim);
    color: var(--text);
}

/* Ghost verze pro hero (bez plného výplně) */
.btn-igloo-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease, gap 0.25s ease;
    margin-left: 1.5rem;
}

.btn-igloo-ghost:hover {
    color: #fff;
    gap: 0.9rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   SDÍLENÉ SEKČNÍ PRVKY
   ────────────────────────────────────────────────────────────────────────── */
.holo-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--brand-primary-glow);
    background: var(--brand-primary-dim);
    border: 1px solid var(--brand-primary-rim);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--brand-primary-glow) 0%, var(--brand-primary) 45%, var(--brand-secondary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-igloo {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-header-igloo {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title-igloo {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-title-igloo span {
    background: linear-gradient(135deg, var(--brand-primary-glow) 0%, var(--brand-secondary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.section-subtitle-igloo {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

/* ──────────────────────────────────────────────────────────────────────────
   HERO — Fullscreen Cinematic Video
   ────────────────────────────────────────────────────────────────────────── */
.hero-v9-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video podložka */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tmavé přechody pro čitelnost textu */
.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        var(--hero-overlay),
        var(--hero-overlay-bottom);
    z-index: 1;
}

/* Obsah přes video */
.hero-v9-content {
    position: relative;
    z-index: 3;
    padding-top: 160px;
    padding-bottom: 120px;
    max-width: 1200px;
    width: 100%;
}

.hero-v9-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 4.5vw, 5rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-v9-title span {
    font-weight: 300;
}

.hero-v9-title .gradient-text {
    font-weight: 500;
}

.hero-v9-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-v9-actions {
    display: flex;
    align-items: center;
}

/* Plovoucí mini karty — pozicovány relativně k hero sekci */
.hero-float-cards {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 4;
}

.hfc-card {
    width: 200px;
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    position: relative;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hfc-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.hfc-card:hover img { filter: brightness(1); }

.hfc-label {
    position: absolute;
    bottom: 0.8rem;
    left: 0.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #fff;
    background: rgba(7,7,8,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.hfc-label span {
    color: var(--brand-primary-glow);
    font-weight: 600;
}

.hfc-left  { animation: hfc-float-a 6s ease-in-out infinite alternate; }
.hfc-right { animation: hfc-float-b 7s ease-in-out infinite alternate -2s; }

@keyframes hfc-float-a {
    0%   { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes hfc-float-b {
    0%   { transform: translateY(-6px) rotate(1deg); }
    100% { transform: translateY(8px) rotate(-1deg); }
}

/* Scroll indikátor */
.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 4;
    color: rgba(255,255,255,0.45);
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scroll-fade 2s ease-in-out infinite alternate;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scroll-fade {
    0%   { opacity: 0.4; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ──────────────────────────────────────────────────────────────────────────
   O NÁS — Interaktivní galerie
   ────────────────────────────────────────────────────────────────────────── */
.interactive-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-menu-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-menu-item {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.8rem 2.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.about-menu-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--brand-primary-glow), var(--brand-secondary-glow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-menu-item:hover {
    border-color: var(--card-hover);
    transform: translateX(8px);
}

.about-menu-item.active {
    border-color: var(--brand-primary-rim);
    box-shadow: 0 8px 24px var(--brand-primary-dim);
}

.about-menu-item.active::before { opacity: 1; }

.menu-num {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-secondary-glow);
    display: block;
    margin-bottom: 0.5rem;
}

.menu-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.3rem;
    transition: color 0.25s ease;
}

.about-menu-item.active .menu-title { color: var(--text); }

.menu-summary {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}

.about-preview-column {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.about-preview-card {
    width: 100%;
    max-width: 500px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.about-preview-card:hover {
    border-color: rgba(148, 107, 69, 0.25);
    box-shadow: 0 35px 70px rgba(148, 107, 69, 0.08), var(--shadow-lg);
}

.preview-img-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.preview-img-container img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.preview-gradient-overlay {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to top, var(--card) 0%, transparent 100%);
}

.preview-info-box { padding: 2.5rem; transition: opacity 0.3s ease; }

.preview-info-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 500;
    color: var(--text); margin-bottom: 1rem;
}

.preview-info-box p {
    font-size: 14px; color: var(--text-muted);
    font-weight: 300; line-height: 1.8;
}

/* ──────────────────────────────────────────────────────────────────────────
   PILÍŘE NAŠÍ PRÁCE — Karty bez tmavého sekčního pozadí
   ────────────────────────────────────────────────────────────────────────── */
.services-container-3d {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    perspective: 1000px;
    max-width: 1300px;
    margin: 0 auto;
}

.card-3d {
    flex: 1 1 300px;
    max-width: 360px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2.2rem;
    transform-style: preserve-3d;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.1s ease-out;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.card-3d:hover {
    border-color: var(--brand-primary-rim);
    box-shadow: 0 20px 45px var(--brand-primary-dim), var(--shadow-md);
}

.icon-3d {
    font-size: 2rem;
    color: var(--brand-primary-glow);
    margin-bottom: 1.8rem;
    text-shadow: 0 0 15px var(--brand-primary-dim);
    transform: translateZ(30px);
}

.card-3d h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px; font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
    transform: translateZ(45px);
    letter-spacing: 0.3px;
}

.card-3d p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.7; font-weight: 300;
    transform: translateZ(20px);
}

/* ──────────────────────────────────────────────────────────────────────────
   CESTA K NÁBYTKU
   ────────────────────────────────────────────────────────────────────────── */
.process-grid-3d {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 5rem;
    max-width: 1300px;
    margin-left: auto; margin-right: auto;
}

.process-card-3d {
    flex: 1 1 230px;
    max-width: 270px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: var(--shadow-md);
}

.process-card-3d:hover {
    transform: translateY(-8px);
    border-color: rgba(148, 107, 69, 0.3);
    box-shadow: 0 25px 50px var(--brand-secondary-dim), var(--shadow-md);
}

.process-number-3d {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--brand-secondary) 0%, rgba(148, 107, 69, 0.3) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem; font-weight: 600;
    margin: -58px auto 1.8rem;
    border: 3px solid var(--bg);
    box-shadow: 0 6px 18px rgba(148, 107, 69, 0.35);
    transition: border-color 0.4s ease;
}

.process-card-3d h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px; font-weight: 500;
    margin-bottom: 0.8rem; color: var(--text);
}

.process-card-3d p {
    color: var(--text-muted); font-size: 13px;
    font-weight: 300; line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────────────────
   FOOTER & FORMULÁŘ
   ────────────────────────────────────────────────────────────────────────── */
.footer-igloo {
    padding-top: 140px; padding-bottom: 40px;
    background-color: var(--footer-bg);
    transition: background-color 0.4s ease;
    position: relative;
}

/* Dokonale plynulý přechod z předchozí sekce do patičky bez ostrých hran */
.footer-igloo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 140px;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.footer-igloo-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    margin-bottom: 8rem;
    align-items: flex-start;
}

.footer-igloo-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 1.5rem; margin-bottom: 1.5rem;
    line-height: 1.35;
    color: var(--text);
}

.footer-igloo-info h2 span {
    background: linear-gradient(135deg, var(--brand-primary-glow) 0%, var(--brand-secondary-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.footer-igloo-info p {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 3.5rem; font-weight: 300;
}

.footer-details-igloo {
    display: flex; flex-direction: column; gap: 2rem;
}

.detail-igloo-row {
    display: flex; align-items: flex-start; gap: 1.5rem;
}

.detail-igloo-row i {
    font-size: 15px;
    color: var(--brand-primary-glow);
    margin-top: 0.3rem;
    text-shadow: 0 0 8px var(--brand-primary-dim);
    flex-shrink: 0;
}

.detail-igloo-row strong {
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
    display: block; margin-bottom: 0.2rem;
    color: var(--text);
}

.detail-igloo-row span {
    font-size: 14px; color: var(--text-muted); font-weight: 300;
}

.footer-igloo-form-box {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-2.5deg); /* Zjemněná 3D rotace pro čistší vykreslení stínu */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.footer-igloo-form-box:hover {
    transform: rotateY(0deg);
    border-color: var(--brand-primary-rim);
}

.form-group-igloo { margin-bottom: 1.5rem; }

.input-igloo {
    width: 100%;
    padding: 1rem 1.4rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
}

.input-igloo::placeholder { color: var(--text-faint); }

.input-igloo:focus {
    border-color: var(--brand-primary-glow);
    box-shadow: 0 0 0 3px var(--brand-primary-dim);
}

.btn-igloo-action {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 500;
    letter-spacing: 1.5px;
    color: #fff;
    background: rgba(207, 161, 92, 0.18);
    border: 1px solid var(--brand-primary-glow);
    backdrop-filter: blur(8px);
    padding: 1.1rem;
    border-radius: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--brand-primary-dim);
    position: relative;
    overflow: hidden;
}

.btn-igloo-action:hover {
    background: rgba(207, 161, 92, 0.35);
    box-shadow: 0 8px 25px rgba(229, 184, 105, 0.3);
    transform: translateY(-2px);
}

.footer-bottom-igloo {
    padding-top: 3rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-bottom-igloo p {
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 1px;
}

/* ──────────────────────────────────────────────────────────────────────────
   RESPONZIVITA
   ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .container { padding: 0 2.5rem; }

    .hero-v9-content { max-width: 580px; }

    .hero-float-cards {
        right: 1rem;
        bottom: 2rem;
    }

    .hfc-card { width: 160px; height: 120px; }

    .interactive-about-grid { grid-template-columns: 1fr; gap: 4rem; }
    .about-preview-column { order: -1; }
    .footer-igloo-grid { grid-template-columns: 1fr; gap: 4rem; }
    .footer-igloo-form-box { transform: none !important; }
}

@media (max-width: 768px) {
    .header-igloo { width: 100%; margin-top: 0; border-radius: 0; top: 0; }
    .nav-wrapper-igloo { border-radius: 0; border-left: none; border-right: none; border-top: none; padding: 0.9rem 1.5rem; }
    .nav-links-igloo { display: none; }

    .hero-v9-content { padding-top: 110px; }
    .hero-v9-title { font-size: clamp(2rem, 7vw, 3rem); }
    .hero-float-cards { display: none; }

    .card-3d { flex: 1 1 100%; max-width: 100%; transform: none !important; }
    .process-card-3d { flex: 1 1 100%; max-width: 100%; margin-top: 3rem; transform: none !important; }

    .about-preview-card { transform: none !important; }
    .preview-img-container { height: 200px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   EXKLUZIVNÍ FOTO GALERIE (v9)
   ────────────────────────────────────────────────────────────────────────── */
.gallery-tabs-v9 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 5;
}

.gallery-tab-v9 {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gallery-tab-v9:hover {
    color: var(--text);
    border-color: var(--brand-primary-rim);
    background: var(--brand-primary-dim);
}

.gallery-tab-v9.active {
    color: #fff;
    background: rgba(207, 161, 92, 0.2);
    border-color: var(--brand-primary-glow);
    box-shadow: 0 0 20px rgba(229, 184, 105, 0.25);
}

[data-theme="light"] .gallery-tab-v9.active {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.gallery-grid-v9 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 5;
}

.gallery-card-v9 {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(20px);
    transform-style: preserve-3d;
}

.gallery-card-v9:hover {
    border-color: var(--brand-primary-rim);
    box-shadow: var(--shadow-lg), 0 0 30px var(--brand-primary-dim);
}

.gallery-img-wrapper-v9 {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: rgba(0,0,0,0.1);
}

.gallery-img-wrapper-v9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card-v9:hover .gallery-img-wrapper-v9 img {
    transform: scale(1.08);
}

.gallery-card-info-v9 {
    padding: 1.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.1) 0%, transparent 100%);
}

.gallery-card-info-v9 h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.gallery-card-v9:hover .gallery-card-info-v9 h4 {
    color: var(--brand-primary-glow);
}

.gallery-card-info-v9 p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* ─── LIGHTBOX MODAL (v9) ─── */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 14, 12, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .lightbox-backdrop {
    background: rgba(250, 247, 242, 0.9);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

[data-theme="light"] .lightbox-close {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text);
}

.lightbox-close:hover {
    background: var(--brand-primary-glow);
    border-color: var(--brand-primary-glow);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(229, 184, 105, 0.4);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="light"] .lightbox-prev, [data-theme="light"] .lightbox-next {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text);
}

.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--brand-primary-glow);
    border-color: var(--brand-primary-glow);
    color: #fff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 25px rgba(229, 184, 105, 0.4);
}

.lightbox-prev:hover { transform: translateY(-50%) translateX(-5px) scale(1.15); }
.lightbox-next:hover { transform: translateY(-50%) translateX(5px) scale(1.15); }

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: calc(100% - 16rem);
    display: flex;
    flex-direction: column;
    z-index: 5;
    animation: lightbox-scale 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes lightbox-scale {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox-img-wrapper {
    position: relative;
    width: 100%;
    max-height: 70vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: #000;
}

[data-theme="light"] .lightbox-img-wrapper {
    border-color: rgba(148, 107, 69, 0.1);
    box-shadow: 0 30px 60px rgba(77, 54, 38, 0.15);
}

.lightbox-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 70vh;
}

.lightbox-caption {
    background: rgba(28, 22, 19, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 20px 20px;
    padding: 2rem;
    color: #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

[data-theme="light"] .lightbox-caption {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 107, 69, 0.1);
    color: var(--text);
}

.lightbox-caption h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--brand-primary-glow);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.lightbox-caption p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    padding-right: 5rem;
}

[data-theme="light"] .lightbox-caption p {
    color: var(--text-muted);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-primary-glow);
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .lightbox-content { width: calc(100% - 4rem); }
    .lightbox-prev { left: 1rem; width: 50px; height: 50px; }
    .lightbox-next { right: 1rem; width: 50px; height: 50px; }
}
