/* ============================================
   REBULDIO DESIGN SYSTEM v3 - COMPONENTS
   Header, navigation, hero, marketing sections, CTA, footer
   ============================================ */

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: box-shadow var(--transition-base);
}

.header.header-scrolled { box-shadow: var(--shadow-md); }

.header-container {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--anthracite-900);
    letter-spacing: -0.03em;
    transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.85; color: var(--anthracite-900); }
.logo img { height: 38px; width: auto; max-width: 100%; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu li { list-style: none; }
.nav-menu .btn { margin-left: 0.35rem; }

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.55rem 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--anthracite-700);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    z-index: 1100;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-menu-toggle:hover { background: var(--primary-light); border-color: var(--primary-soft); }

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--anthracite-800);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 26, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity var(--transition-base), visibility 0s linear 0.28s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-base), visibility 0s;
}

body.menu-open { overflow: hidden; }

/* Drawer navigation (tablet + mobile) */
@media (max-width: 1024px) {
    .mobile-menu-toggle { display: flex; }

    .header-container > nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        box-shadow: -12px 0 40px rgba(20, 22, 26, 0.25);
        z-index: 1000;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.35s;
    }

    .header-container > nav.active {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 5rem 1.25rem 2rem;
    }

    .nav-menu li { width: 100%; }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        color: var(--anthracite-800);
    }

    .nav-link::after { display: none; }
    .nav-link:hover { background: var(--gray-100); }
    .nav-link.active { background: var(--primary-light); color: var(--primary); }

    .nav-menu .btn { width: 100%; margin: 0.4rem 0 0; }
}

@media (min-width: 1025px) {
    .mobile-menu-overlay { display: none; }
}

/* ---------- User menu ---------- */
.user-menu { position: relative; }

.user-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.3rem 0.8rem 0.3rem 0.3rem;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1.5px solid var(--border-color);
    color: var(--anthracite-800);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.user-menu-trigger:hover { border-color: var(--primary); background: var(--primary-light); }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.4rem;
    box-shadow: var(--shadow-xl);
    display: none;
    z-index: 200;
}

.user-menu-dropdown.open { display: block; }

.user-menu-item {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    color: var(--anthracite-800);
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.user-menu-item:hover { background: var(--primary-light); color: var(--primary); }

@media (max-width: 1024px) {
    .user-menu { width: 100%; }
    .user-menu-trigger { width: 100%; justify-content: flex-start; border-radius: var(--radius-md); }
    .user-menu-dropdown {
        position: static;
        margin-top: 0.4rem;
        min-width: 0;
        box-shadow: none;
        background: var(--gray-50);
    }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-separator { color: var(--gray-300); }
.breadcrumb-current { color: var(--anthracite-900); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(240, 100, 24, 0.07), transparent 50%),
        var(--bg-secondary);
    padding-top: clamp(2.5rem, 7vw, 6rem);
    padding-bottom: clamp(2.5rem, 7vw, 6rem);
}

.hero-bg-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    z-index: 0;
}

.decoration-1 {
    width: 22rem; height: 22rem;
    top: -9rem; right: -8rem;
    background: rgba(240, 100, 24, 0.10);
}

.decoration-2 {
    width: 18rem; height: 18rem;
    bottom: -8rem; left: -8rem;
    background: rgba(46, 49, 53, 0.06);
}

.hero > .container { position: relative; z-index: 1; }

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-content { min-width: 0; }

.hero-title {
    font-size: clamp(2rem, 5.4vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--anthracite-900);
    margin-bottom: 1.25rem;
}

.hero-title .gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 38rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% -4% -6% 6%;
    background: var(--primary-gradient);
    border-radius: var(--radius-2xl);
    opacity: 0.18;
    transform: rotate(3deg);
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(260px, 38vw, 480px);
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    border: 4px solid #fff;
}

@media (max-width: 900px) {
    .hero-split { grid-template-columns: minmax(0, 1fr); }
    .hero-content { text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { order: 2; max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 560px) {
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .hero-image { border-width: 3px; border-radius: var(--radius-xl); }
    .hero-visual::before { display: none; }
}

/* ---------- Section header ---------- */
.section-header {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-hover);
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(1.625rem, 3.8vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.section-description {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    color: var(--text-secondary);
}

/* ---------- Stats (anthracite band) ---------- */
.stats-section {
    background: var(--anthracite-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 95% 0%, rgba(240, 100, 24, 0.16), transparent 45%);
    pointer-events: none;
}

.stats-section .container { position: relative; }
.stats-section h1, .stats-section h2, .stats-section h3, .stats-section .section-title { color: #fff; }
.stats-section p { color: rgba(255, 255, 255, 0.78); }

.stat-item { text-align: center; padding: 0.5rem; }

.stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
    .stats-section .grid { gap: 1.25rem; }
}

/* ---------- Feature cards ---------- */
.feature-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    position: relative;
    transition: background-color var(--transition-base);
}

.feature-icon::after {
    content: '';
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.35rem;
    background: var(--primary-gradient);
    transform: rotate(45deg);
    transition: transform var(--transition-base);
}

.feature-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-description { font-size: 0.975rem; color: var(--text-secondary); }

@media (hover: hover) {
    .feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(240, 100, 24, 0.3); }
    .feature-card:hover::before { transform: scaleX(1); }
    .feature-card:hover .feature-icon { background: var(--primary); }
    .feature-card:hover .feature-icon::after { background: #fff; transform: rotate(225deg); }
}

/* ---------- Floor tiles ---------- */
.floor-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.5rem);
}

.floor-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-xl);
    background: var(--anthracite-800);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.floor-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

a.floor-tile { display: block; color: inherit; }

.floor-tile-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 3.5rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(20, 22, 26, 0.92) 0%, rgba(20, 22, 26, 0.6) 55%, transparent 100%);
}

.floor-tile-overlay h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.3rem; }
.floor-tile-overlay p { color: rgba(255, 255, 255, 0.82); font-size: 0.875rem; line-height: 1.5; }

@media (hover: hover) {
    .floor-tile:hover .floor-tile-img { transform: scale(1.07); }
}

@media (max-width: 1024px) {
    .floor-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .floor-tile { aspect-ratio: 4 / 4.2; }
}

@media (max-width: 520px) {
    .floor-tiles { grid-template-columns: minmax(0, 1fr); }
    .floor-tile { aspect-ratio: 16 / 11; }
}

/* ---------- How it works ---------- */
.how-it-works-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.how-it-works-img-wrap { position: relative; }

.how-it-works-img-wrap::before {
    content: '';
    position: absolute;
    inset: -0.9rem 0.9rem 0.9rem -0.9rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-2xl);
    opacity: 0.35;
    z-index: 0;
}

.how-it-works-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: clamp(280px, 40vw, 520px);
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.process-steps { display: flex; flex-direction: column; }

.process-step {
    position: relative;
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.process-step:last-child { padding-bottom: 0; }

.process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3.25rem;
    bottom: 0.25rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border-color));
    transform: translateX(-50%);
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 8px 20px -6px rgba(240, 100, 24, 0.55);
    z-index: 1;
}

.step-content { min-width: 0; padding-top: 0.15rem; }
.step-content h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step-content p { font-size: 0.975rem; }

@media (max-width: 900px) {
    .how-it-works-split { grid-template-columns: minmax(0, 1fr); }
    .how-it-works-img-wrap { max-width: 560px; margin: 0 auto; width: 100%; }
    .how-it-works-img-wrap::before { inset: -0.5rem 0.5rem 0.5rem -0.5rem; }
}

@media (max-width: 480px) {
    .process-step { gap: 1rem; }
    .step-number { width: 2.6rem; height: 2.6rem; font-size: 1rem; }
    .process-step:not(:last-child)::before { left: 1.3rem; top: 2.8rem; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) {
    .testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

.testimonial-quote {
    position: relative;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--anthracite-700);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--anthracite-gradient);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.testimonial-info h5 { font-size: 0.975rem; font-weight: 600; margin: 0; }
.testimonial-info p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Showcase gallery ---------- */
.showcase-section {
    background:
        radial-gradient(circle at 0% 0%, rgba(240, 100, 24, 0.08), transparent 45%),
        var(--gray-50);
}

.showcase-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@media (hover: hover) {
    .showcase-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
    .showcase-card:hover .showcase-media img { transform: scale(1.05); }
}

.showcase-media { position: relative; overflow: hidden; }

.showcase-media img {
    display: block;
    width: 100%;
    height: clamp(220px, 40vw, 380px);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--anthracite-900);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.showcase-body { padding: clamp(1.25rem, 3vw, 2rem); }

.showcase-kicker {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.showcase-body h4 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); margin-bottom: 0.6rem; }
.showcase-body p { margin: 0; }

/* ---------- CTA (anthracite panel) ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
    text-align: center;
    background: var(--anthracite-gradient);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 100% 0%, rgba(240, 100, 24, 0.22), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(240, 100, 24, 0.08), transparent 40%);
    pointer-events: none;
}

.cta-title {
    max-width: 40rem;
    margin: 0 auto 1rem;
    font-size: clamp(1.6rem, 4.2vw, 2.75rem);
    font-weight: 800;
    color: #fff;
}

.cta-description {
    max-width: 38rem;
    margin: 0 auto 2rem;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
}

.cta-section .btn { max-width: 100%; white-space: normal; }
.cta-section .btn-primary { box-shadow: 0 12px 32px -8px rgba(240, 100, 24, 0.7); }
.cta-section .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.cta-section .btn-secondary:hover { background: #fff; color: var(--anthracite-900); border-color: #fff; }

@media (max-width: 480px) {
    .cta-section { border-radius: var(--radius-xl); }
    .cta-section .btn { width: 100%; }
}

/* ---------- Rebuldio family: brand lockups ---------- */
.brand-mark {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark img.zoom { transform: scale(1.75); }
.brand-mark.is-rebuldio { width: auto; padding: 0.3rem 0.6rem; }
.brand-mark.is-rebuldio img { width: auto; height: 1.6rem; }
.brand-wordmark { height: 2.2rem; width: auto; display: block; }

.brand-lockup { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; min-width: 0; }
.brand-lockup-name { font-weight: 700; font-size: 1.05rem; color: var(--anthracite-900); letter-spacing: -0.02em; line-height: 1.2; }
.brand-lockup-name small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* ---------- Services (homepage) ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

@media (hover: hover) {
    .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(240, 100, 24, 0.35); }
    .service-card:hover .service-card-media img { transform: scale(1.06); }
}

.service-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--anthracite-800); }

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-badge {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px -6px rgba(240, 100, 24, 0.7);
}

.service-card-body { display: flex; flex-direction: column; flex: 1; gap: 0.75rem; padding: 1.25rem; }
.service-card-body h3 { margin: 0; font-size: 1.2rem; }
.service-card-body p { font-size: 0.925rem; line-height: 1.6; flex: 1; }
.service-card-brand { min-height: 2.4rem; display: flex; align-items: center; }
.service-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .service-grid { grid-template-columns: minmax(0, 1fr); }
    .service-card-media { aspect-ratio: 16 / 10; }
    .service-card-actions .btn { flex: 1 1 100%; }
}

/* Hero service chips */
.hero-services { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.hero-services a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--anthracite-800);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.hero-services a:hover { background: var(--anthracite-800); color: #fff; border-color: var(--anthracite-800); }
.hero-services a::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--primary); }
@media (max-width: 900px) { .hero-services { justify-content: center; } }

/* ---------- Family strip (all public pages) ---------- */
.family-strip { background: #fff; border-top: 1px solid var(--border-color); padding: clamp(2rem, 5vw, 3.25rem) 0; }
.family-strip-head { text-align: center; max-width: 40rem; margin: 0 auto 1.75rem; }
.family-strip-head h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin-bottom: 0.4rem; }
.family-strip-head p { font-size: 0.95rem; }

.family-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.family-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 2.5rem 1rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--anthracite-900);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.family-card:hover { color: var(--anthracite-900); background: #fff; border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.family-card-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.family-card-text strong { font-size: 0.975rem; font-weight: 700; }
.family-card-text small { font-size: 0.78rem; color: var(--text-muted); overflow-wrap: anywhere; }
.family-card-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--primary); font-weight: 700; }
.family-card.is-current { border-color: var(--primary); background: var(--primary-light); }

@media (max-width: 1024px) { .family-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .family-strip-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Realizace page ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    background: var(--anthracite-gradient);
    color: #fff;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 90% 0%, rgba(240, 100, 24, 0.22), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(240, 100, 24, 0.08), transparent 40%);
}

.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero p { color: rgba(255, 255, 255, 0.78); max-width: 42rem; margin: 0 auto; font-size: clamp(1rem, 1.8vw, 1.15rem); }
.page-hero .breadcrumb { justify-content: center; color: rgba(255, 255, 255, 0.55); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.page-hero .breadcrumb-current { color: #fff; }

.hero-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.hero-brand:hover { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: var(--primary); }
.hero-brand .brand-mark { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full); border: 0; }
.hero-brand .brand-mark.is-rebuldio { width: auto; height: 2.25rem; padding: 0 0.6rem; border-radius: var(--radius-full); }
.hero-brand .brand-mark.is-rebuldio img { height: 1.1rem; }

.filter-bar {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid var(--border-color-dark);
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--anthracite-800);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--anthracite-800); border-color: var(--anthracite-800); color: #fff; }
.filter-tab .count { margin-left: 0.35rem; opacity: 0.6; font-weight: 500; }

@media (min-width: 900px) { .filter-tabs { justify-content: center; } }

.realizace-block { padding: clamp(2.5rem, 6vw, 4.5rem) 0; scroll-margin-top: calc(var(--header-height) + 4rem); }
.realizace-block:nth-of-type(even) { background: var(--gray-50); }
.realizace-block[hidden] { display: none; }

.realizace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.realizace-head h2 { margin: 0.5rem 0 0.35rem; font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.realizace-head p { max-width: 38rem; font-size: 0.975rem; }
.realizace-head .btn { flex-shrink: 0; }

.gallery { columns: 3 260px; column-gap: 1rem; }

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    overflow: hidden;
    break-inside: avoid;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--anthracite-800);
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}

.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.5s ease, opacity 0.3s; }

.gallery-item::after {
    content: '⤢';
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(28, 31, 36, 0.8);
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

@media (hover: hover) {
    .gallery-item:hover img { transform: scale(1.04); }
    .gallery-item:hover::after { opacity: 1; }
}

@media (max-width: 560px) { .gallery { columns: 2; column-gap: 0.6rem; } .gallery-item { margin-bottom: 0.6rem; border-radius: var(--radius-md); } }

.gallery-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-feature .gallery-item { margin: 0; aspect-ratio: 4 / 3; }
.gallery-feature .gallery-item img { height: 100%; object-fit: cover; }
@media (max-width: 560px) { .gallery-feature { grid-template-columns: minmax(0, 1fr); } }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(20, 22, 26, 0.94);
}

.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-md); box-shadow: var(--shadow-2xl); }

.lightbox button {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox button:hover { background: var(--primary); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; }

@media (max-width: 560px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0.75rem; transform: none; } }

/* Nav fits on narrow desktops now that there are more links */
@media (min-width: 1025px) and (max-width: 1240px) {
    .nav-link { padding: 0.5rem 0.55rem; font-size: 0.875rem; }
    .nav-link::after { left: 0.55rem; right: 0.55rem; }
    .nav-menu .btn { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------- Service sub-pages ---------- */
.realizace-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; flex-shrink: 0; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: center;
}

.split.reverse > :first-child { order: 2; }
.split-media img { width: 100%; height: clamp(260px, 38vw, 460px); object-fit: cover; border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); }
@media (max-width: 900px) {
    .split { grid-template-columns: minmax(0, 1fr); }
    .split.reverse > :first-child { order: 0; }
}

.check-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--anthracite-700); line-height: 1.55; }
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.tag-brand, .tag-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    border: 1px solid rgba(240, 100, 24, 0.25);
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag-partner::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.62rem;
}

.page-hero .tag-brand, .page-hero .tag-partner {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.partner-box {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.partner-box::after {
    content: '';
    position: absolute;
    right: -4rem;
    top: -4rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 100, 24, 0.1), transparent 70%);
    pointer-events: none;
}

.partner-box > * { position: relative; z-index: 1; }
.partner-box h3 { margin: 0.5rem 0 0.3rem; font-size: 1.3rem; }
.partner-box p { margin: 0; font-size: 0.95rem; }
.partner-box .brand-mark { width: 4.5rem; height: 4.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.partner-box .brand-wordmark { height: 2.6rem; }
.partner-box .tag-brand, .partner-box .tag-partner { background: var(--primary-light) !important; color: var(--primary-hover); }
@media (max-width: 760px) {
    .partner-box { grid-template-columns: minmax(0, 1fr); text-align: left; }
    .partner-box .btn { width: 100%; }
}

.service-card-partner {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    color: var(--anthracite-800);
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.service-card-partner::before { content: '✓'; color: var(--primary); font-weight: 800; }

.service-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (max-width: 760px) { .service-tiles { grid-template-columns: minmax(0, 1fr); } }

.service-tile {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.service-tile:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-tile-media { position: relative; min-height: 14rem; background: var(--anthracite-800); }
.service-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-tile-body { display: flex; flex-direction: column; gap: 0.65rem; padding: 1.4rem; }
.service-tile-body h3 { margin: 0; font-size: 1.3rem; }
.service-tile-body p { font-size: 0.95rem; flex: 1; }
.service-tile-more { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
@media (max-width: 520px) {
    .service-tile { grid-template-columns: minmax(0, 1fr); }
    .service-tile-media { min-height: 0; aspect-ratio: 16 / 9; }
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.fact { padding: 1rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-lg); text-align: center; }
.fact strong { display: block; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--primary); }
.fact span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.gallery:not(.expanded) .gallery-item.is-extra { display: none; }
.gallery-more { text-align: center; margin-top: 1.5rem; }

/* ---------- Homepage v4: hero mosaic, partner strip, bento ---------- */
.hero-mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 0 1.5rem;
}

.hero-mosaic::before { display: none; }

.hero-mosaic figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--anthracite-800);
    border: 4px solid #fff;
    box-shadow: var(--shadow-xl);
}

.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mosaic .m-a { aspect-ratio: 3 / 4; }
.hero-mosaic .m-b { aspect-ratio: 1 / 1; }
.hero-mosaic .m-c { aspect-ratio: 1 / 1; }
.hero-mosaic .m-d { aspect-ratio: 3 / 4; }
.hero-mosaic .col { display: grid; gap: 1rem; align-content: start; }
.hero-mosaic .col:nth-child(2) { margin-top: 2.5rem; }

.hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--anthracite-800);
    line-height: 1.25;
}

.hero-float strong { display: block; font-size: 1.15rem; color: var(--primary); }
.hero-float .dot { width: 2.1rem; height: 2.1rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary-gradient); color: #fff; font-weight: 800; }
.hero-float.f1 { left: -1.25rem; bottom: 22%; }
.hero-float.f2 { right: -0.5rem; top: -0.5rem; }

@media (max-width: 900px) {
    .hero-mosaic { max-width: 520px; margin: 0 auto; }
    .hero-float.f1 { left: 0.25rem; }
    .hero-float.f2 { right: 0.25rem; top: -1rem; }
}
@media (max-width: 480px) {
    .hero-mosaic { gap: 0.6rem; }
    .hero-mosaic .col { gap: 0.6rem; }
    .hero-mosaic figure { border-width: 3px; border-radius: var(--radius-lg); }
    .hero-float { padding: 0.5rem 0.75rem; font-size: 0.78rem; }
}

.partner-strip { background: #fff; border-bottom: 1px solid var(--border-color); padding: 1.25rem 0 calc(1.25rem + var(--cut)); }
.partner-strip .container { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 2.5rem; }
.partner-strip-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.partner-strip-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 2rem; }
.partner-strip-logos a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--anthracite-800); font-weight: 700; font-size: 0.95rem; opacity: 0.85; transition: opacity var(--transition-fast), transform var(--transition-fast); }
.partner-strip-logos a:hover { opacity: 1; color: var(--anthracite-900); transform: translateY(-1px); }
.partner-strip-logos .brand-mark { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); }
.partner-strip-logos .brand-wordmark { height: 1.8rem; }

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(9rem, 17vw, 14rem);
    gap: clamp(0.6rem, 1.5vw, 1rem);
}

.bento-item {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: var(--radius-xl);
    background: var(--anthracite-800);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

.bento-item span {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    z-index: 2;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(28, 31, 36, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.bento-item::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20, 22, 26, 0.55), transparent 45%); }
@media (hover: hover) { .bento-item:hover img { transform: scale(1.06); } }

@media (max-width: 800px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 11rem; }
    .bento-item.wide { grid-column: span 2; }
}
@media (max-width: 420px) { .bento { grid-auto-rows: 9rem; } }

.footer .logo img { background: #fff; padding: 0.5rem 0.9rem; border-radius: var(--radius-md); box-sizing: content-box; }

/* ---------- Homepage dark photo hero ---------- */
.hero-dark {
    isolation: isolate;
    background: #17181A;
    padding-bottom: calc(clamp(2.5rem, 7vw, 5rem) + var(--cut));
}

.hero-dark .hero-bg-decoration { display: none; }

.hero-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 100% 0%, rgba(240, 100, 24, 0.38), transparent 46%),
        linear-gradient(100deg, rgba(23, 24, 26, 0.95) 0%, rgba(23, 24, 26, 0.86) 50%, rgba(23, 24, 26, 0.6) 100%);
}

.hero-dark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--cut);
    background: #fff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}

.hero-dark > .container { position: relative; z-index: 2; }
.hero-dark .hero-split { display: block; }
.hero-dark .hero-content { max-width: 46rem; }
.hero-dark { padding-top: clamp(3rem, 9vw, 6.5rem); }
.hero-dark .hero-title { font-size: clamp(2.4rem, 6.4vw, 4.4rem); }
.hero-dark .facts { max-width: 40rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.hero-dark .fact { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-lg); padding: 1rem 1.15rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-dark .fact strong { display: block; font-size: clamp(1.2rem, 3vw, 1.6rem); color: #FF8A3D; }
.hero-dark .fact span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 560px) { .hero-dark .facts { grid-template-columns: minmax(0, 1fr); } }
.hero-dark .hero-title { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero-dark .hero-title .gradient { background: linear-gradient(90deg, #FF9A4D, #F26A1B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
.hero-dark .hero-subtitle { color: rgba(255, 255, 255, 0.88); }
.hero-dark .hero-services a { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #fff; box-shadow: none; }
.hero-dark .hero-services a:hover { background: #fff; color: var(--anthracite-900); }
.hero-dark .hero-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.hero-dark .hero-cta .btn-secondary:hover { background: #fff; color: var(--anthracite-900); border-color: #fff; }

/* ---------- Footer ---------- */
.footer {
    background: var(--anthracite-950);
    color: rgba(255, 255, 255, 0.7);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 4px solid var(--primary);
}

.footer p, .footer .text-secondary { color: rgba(255, 255, 255, 0.65); font-size: 0.925rem; }

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
}

.footer-section { min-width: 0; }

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    display: inline-block;
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover { color: var(--primary); transform: translateX(3px); }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-content .footer-section:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
    .footer-content { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================
   v5: bold gradients + larger type (Hydroizolujeme-style)
   ============================================ */
:root {
    --cut: clamp(24px, 4vw, 56px);
    --orange-grad: linear-gradient(135deg, #F06418 0%, #C24A0E 100%);
}

p { font-size: 1.0625rem; }
.section-description { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.btn { font-size: 1rem; min-height: 48px; }
.btn-sm { min-height: 42px; font-size: 0.95rem; }
.btn-lg { min-height: 56px; font-size: 1.1rem; }
.nav-link { font-size: 1rem; }
.section-label { font-size: 0.85rem; letter-spacing: 0.12em; padding: 0.4rem 1rem; }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
.hero-title { font-size: clamp(2.3rem, 6.4vw, 4.1rem); font-weight: 800; }
.hero-subtitle { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.feature-title { font-size: 1.35rem; }
.feature-description { font-size: 1.05rem; }
.step-content h3 { font-size: 1.35rem; }
.step-content p { font-size: 1.05rem; }
.stat-label { font-size: 1.05rem; }
.stat-value { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.service-card-body h3 { font-size: 1.35rem; }
.service-card-body p { font-size: 1rem; }
.testimonial-quote { font-size: 1.1rem; }
.cta-description { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.footer-links a, .footer p { font-size: 1rem; }
.check-list li { font-size: 1.08rem; }

/* Diagonal-cut sections that overlap the previous block */
.cut-top {
    position: relative;
    margin-top: calc(var(--cut) * -1);
    padding-top: calc(var(--section-y) + var(--cut));
    clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

.cut-top-sm { padding-top: calc(var(--cut) + 2.5rem); }

/* Dark anthracite section with orange glow */
.section-dark {
    position: relative;
    overflow: hidden;
    color: #d9dbde;
    background: linear-gradient(135deg, #212326 0%, #34373C 100%);
}

.section-dark::before {
    content: '';
    position: absolute;
    left: -9rem;
    bottom: -9rem;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 100, 24, 0.38), transparent 70%);
    pointer-events: none;
}

.section-dark > .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3, .section-dark .section-title { color: #fff; }
.section-dark p, .section-dark .section-description { color: rgba(255, 255, 255, 0.78); }
.section-dark .section-label { background: rgba(255, 255, 255, 0.12); color: #FFB985; }
.section-dark .process-step:not(:last-child)::before { background: linear-gradient(to bottom, var(--primary), rgba(255, 255, 255, 0.18)); }
.section-dark .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }

/* Orange gradient section */
.section-orange {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--orange-grad);
}

.section-orange::before {
    content: '';
    position: absolute;
    right: -8rem;
    top: 10%;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.section-orange > .container { position: relative; z-index: 1; }
.section-orange h2, .section-orange h3, .section-orange .section-title { color: #fff; }
.section-orange p, .section-orange .section-description { color: rgba(255, 255, 255, 0.92); }
.section-orange .section-label { background: rgba(255, 255, 255, 0.2); color: #fff; }
.section-orange .text-gradient { background: none; -webkit-text-fill-color: #212326; color: #212326; }
.section-orange .btn-primary { background: #fff; color: var(--primary-hover); box-shadow: 0 12px 28px -8px rgba(33, 35, 38, 0.45); }
.section-orange .btn-primary:hover { background: #212326; color: #fff; }
.section-orange .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.section-orange .btn-secondary:hover { background: #fff; color: var(--primary-hover); border-color: #fff; }

/* Stats band: dark, with the diagonal top */
.stats-section { background: linear-gradient(135deg, #212326 0%, #34373C 100%); }
.stats-section.cut-top { padding-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Page hero and CTA: orange gradient */
.page-hero {
    background: linear-gradient(135deg, #F06418 0%, #B8440C 100%);
}

.page-hero::before {
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.22), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(33, 35, 38, 0.35), transparent 48%);
}

.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
.page-hero p { color: rgba(255, 255, 255, 0.94); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.page-hero .text-gradient { background: none; -webkit-text-fill-color: #212326; color: #212326; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.page-hero .fact { background: rgba(33, 35, 38, 0.22); border-color: rgba(255, 255, 255, 0.28); }
.page-hero .fact strong { color: #fff; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.page-hero .fact span { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.page-hero .hero-brand { background: rgba(33, 35, 38, 0.25); border-color: rgba(255, 255, 255, 0.3); }
.page-hero .tag-partner, .page-hero .tag-brand { background: rgba(33, 35, 38, 0.3) !important; }

.cta-section { background: var(--orange-grad); }

.cta-section::before {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.24), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(33, 35, 38, 0.3), transparent 45%);
}

.cta-title { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.cta-description { color: rgba(255, 255, 255, 0.95); }
.cta-section .btn-primary { background: #fff; color: var(--primary-hover); box-shadow: 0 12px 28px -8px rgba(33, 35, 38, 0.45); }
.cta-section .btn-primary:hover { background: #212326; color: #fff; }

/* Outlined numerals on feature cards (like the reference site) */
.feature-card { border-top: 4px solid var(--primary); }

/* ---------- Mobile: bigger, fewer, calmer ---------- */
@media (max-width: 900px) {
    .hero-mosaic { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; max-width: none; }
    .hero-mosaic .col:nth-of-type(2), .hero-mosaic .m-d { display: none; }
    .hero-mosaic .col:nth-of-type(1) { margin-top: 0; }
    .hero-mosaic .m-a { aspect-ratio: 4 / 3; }
    .hero-float.f1 { left: 0.75rem; bottom: 0.75rem; }
    .hero-float.f2 { right: 0.75rem; top: 0.75rem; }
}

@media (max-width: 560px) {
    .container { padding-left: 1.1rem; padding-right: 1.1rem; }
    .hero-title { font-size: 2.35rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-services a { font-size: 0.9rem; padding: 0.5rem 0.95rem; }
    .section-title, h2 { font-size: 2rem; }
    .feature-title { font-size: 1.4rem; }
    .feature-description, .step-content p, .service-card-body p { font-size: 1.1rem; }
    .service-card-media { aspect-ratio: 4 / 3; }
    .service-card-body { padding: 1.5rem; }
    .service-card-body h3 { font-size: 1.5rem; }
    .btn, .btn-sm { min-height: 52px; font-size: 1.05rem; }
    .btn-sm { padding-left: 1.4rem; padding-right: 1.4rem; }
    .partner-strip-logos a { font-size: 1.05rem; }
    .stat-label { font-size: 1.1rem; }

    .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 14rem; }
    .bento-item.tall, .bento-item.wide { grid-row: span 1; grid-column: span 1; }
    .bento-item:nth-child(n+5) { display: none; }
    .bento-item span { font-size: 0.9rem; }

    .gallery { columns: 1; }
    .gallery-item { margin-bottom: 0.9rem; }
    .gallery-feature { grid-template-columns: minmax(0, 1fr); }
    .realizace-head h2 { font-size: 1.9rem; }
    .realizace-head p { font-size: 1.1rem; }
    .family-card-text strong { font-size: 1.05rem; }
    .family-card-text small { font-size: 0.85rem; }
    .check-list li { font-size: 1.1rem; }
    .filter-tab { min-height: 44px; font-size: 1rem; }
    .fact span { font-size: 1rem; }
}

/* ============================================
   v6: photo hero (dark overlay, white type, orange accent)
   ============================================ */
.page-hero {
    text-align: left;
    background: #17181A;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 calc(clamp(3rem, 7vw, 4.5rem) + var(--cut));
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-hero::before {
    z-index: -1;
    background:
        radial-gradient(circle at 100% 0%, rgba(240, 100, 24, 0.38), transparent 46%),
        linear-gradient(100deg, rgba(23, 24, 26, 0.95) 0%, rgba(23, 24, 26, 0.84) 48%, rgba(23, 24, 26, 0.55) 100%);
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: var(--cut);
    background: var(--bg-secondary);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 1;
}

.page-hero > .container { position: relative; z-index: 2; }

.page-hero h1 {
    color: #fff;
    max-width: 16em;
    margin-bottom: 1.25rem;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: -0.035em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.page-hero .text-gradient {
    background: linear-gradient(90deg, #FF9A4D 0%, #F26A1B 100%);
    text-shadow: none;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-hero p { margin: 0; max-width: 40rem; color: rgba(255, 255, 255, 0.86); }
.page-hero .breadcrumb { justify-content: flex-start; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.5rem; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.82); }
.page-hero .breadcrumb-separator { color: rgba(255, 255, 255, 0.4); }
.page-hero .breadcrumb-current { color: #fff; }

.page-hero .tag-brand, .page-hero .tag-partner {
    background: rgba(240, 100, 24, 0.16) !important;
    border-color: rgba(240, 100, 24, 0.55);
    color: #FFB78A;
}

.page-hero .hero-cta { margin-top: 2rem; }
.page-hero .hero-cta .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.page-hero .hero-cta .btn-secondary:hover { background: #fff; color: var(--anthracite-900); border-color: #fff; }

.page-hero .facts { max-width: 44rem; }
.page-hero .fact { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: left; padding: 1rem 1.15rem; }
.page-hero .fact strong { color: #FF8A3D; }
.page-hero .fact span { color: rgba(255, 255, 255, 0.82); }

.page-hero .hero-brands { justify-content: flex-start; margin-top: 2rem; }
.page-hero .hero-brand { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.page-hero .hero-brand:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--primary); }

@media (max-width: 560px) {
    .page-hero { padding-top: 2.5rem; }
    .page-hero h1 { font-size: 2.35rem; }
    .page-hero .hero-cta .btn { width: 100%; }
}

@media (max-width: 400px) {
    .footer-content { grid-template-columns: minmax(0, 1fr); }
}
