/**
* Template Name: eleven
* Template URL: studioeleven.cz
* Updated: 25.5.2026
* Author: Fresh Mill studio, tvoba webovych stranek
* License: https://freshmill.cz
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Sora:wght@100..800&display=swap');

:root {
    --accent: #B8E633;
    --accent-dark: #9BC926;
    --dark: #0F1419;
    --dark-overlay: rgba(15, 35, 50, 0.55);
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    color: #fff;
    background: #f4f3ee;
    overflow-x: hidden;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #0f323c; /* fallback barva, než se video načte */
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* aby video nekradlo kliky */
    overflow: hidden;
    z-index: 0;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* trik: iframe musí být větší než kontejner, aby zakryl černé pruhy
       YouTube má poměr 16:9 — použijeme min-width/min-height a center */
    width: 100vw;
    height: 56.25vw;       /* 16:9 podle šířky */
    min-height: 100vh;
    min-width: 177.77vh;   /* 16:9 podle výšky */
    transform: translate(-50%, -50%);
    border: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 50, 60, 0.75), rgba(20, 60, 50, 0.45));
    z-index: 1;
}

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

.squares {
    position: relative;
    z-index: 2;
}

/* ========== TOP NAVIGATION ========== */
.top-nav {
    padding: 1.75rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: padding 0.3s ease,
        background 0.3s ease,
        backdrop-filter 0.3s ease,
        box-shadow 0.3s ease;
}

/* Scrolled state — solid background + shadow so nav stays readable on light sections */
.top-nav.is-scrolled {
    padding: 0.85rem 3rem;
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.25);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 0.95rem;
}

.brand-logo {
    width: 44px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 6px;
    position: relative;
    display: inline-block;
}

.brand-logo::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 10px;
    width: 12px;
    height: 6px;
    background: transparent;
    border: 2px solid #fff;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

.brand-logo::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Pill menu */
.nav-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.6rem 0.6rem 0.6rem 2rem;
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-pill a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-pill a:hover {
    color: var(--accent);
}

.top-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.top-menu li {
	margin: 0;
	padding: 0;
}

.top-menu a {
	text-decoration: none;
	color: inherit;
	display: inline-flex;
	align-items: center;
}

/* When nav is scrolled (dark bg), pill becomes transparent — its background
           was needed only when sitting over a photo. */
.top-nav.is-scrolled .nav-pill {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
}

.hamburger-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.hamburger-btn:hover {
    transform: scale(1.05);
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--dark);
    position: relative;
}

.hamburger-btn span::before,
.hamburger-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--dark);
}

.hamburger-btn span::before {
    top: -6px;
}

.hamburger-btn span::after {
    top: 6px;
}

.btn-write {
    background: #fff;
    color: var(--dark);
    border: none;
    border-radius: 999px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
}

.btn-write:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

/* ========== HERO CONTENT ========== */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 3rem;
}

.hero-text {
    max-width: 780px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 2rem;
}

.hero-desc {
    font-size: 1rem;
    line-height: 1.9;
    max-width: 560px;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.92);
}

.hero-desc strong {
    font-weight: 700;
}

.scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
        text-transform: uppercase;
    font-weight: 600;
}

.scroll-circle {
    width: 64px;
    height: 64px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.scroll-cta:hover .scroll-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
}

/* ========== DECORATIVE SQUARES ========== */
.squares {
    position: absolute;
    bottom: 0;
    left: 30%;
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    z-index: 5;
}

.squares>div {
    background: var(--accent);
}

.squares .empty {
    background: transparent;
}

/* Lighter / translucent variant */
.squares .light {
    background: var(--accent);
    opacity: 0.55;
}

/* ========== FOOTER STRIP ========== */
.contact-strip {
    background: #f4f3ee;
    padding: 2rem 10rem 2rem 3rem;
    display: flex;
    justify-content: flex-end;
    gap: 5rem;
    position: relative;
    z-index: 4;
    margin-top: -160px;
    margin-left: calc(32% + 80px);
    min-height: 160px;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(184, 230, 51, 0.18);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.15rem;
}

.contact-value {
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.contact-value:hover {
    color: var(--accent-dark);
}

/* ========== OFFCANVAS (left contact panel) ========== */
img.custom-logo {
	width: 100%;
	height: 52px;
	object-fit: contain;
}
.offcanvas-start {
    background: var(--dark);
    color: #fff;
    width: 380px !important;
    border: none;
}

.offcanvas-header-custom {
    padding: 2rem 2.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.offcanvas-close:hover {
    background: var(--accent);
    color: var(--dark);
    transform: rotate(90deg);
}

.offcanvas-body-custom {
    padding: 1.5rem 2.5rem 2.5rem;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.panel-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.panel-section {
    margin-bottom: 2rem;
}

.panel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 0.85rem;
    display: block;
    font-weight: 600;
}

.panel-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.panel-item:hover {
    color: var(--accent);
}

.panel-item i {
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.panel-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.25s;
}

.social-link:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: #F4F3EE;
    padding: 7rem 3rem 8rem;
    position: relative;
    overflow: hidden;
}

.about-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.about-heading {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #0F1419;
    max-width: 920px;
    margin: 0 auto 5rem;
    text-align: left;
    padding-left: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(15, 20, 25, 0.25);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #000;
}

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

.video-wrapper .video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.video-wrapper:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-image:hover img {
    transform: scale(1.04);
}

.about-content {
    padding-right: 2rem;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a5560;
    margin-bottom: 2rem;
}

.about-highlight {
    font-size: 0.95rem;
    color: #0F1419;
    font-weight: 600;
    margin-bottom: 3rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

/* ========== PILL BUTTON WITH RIPPLE ========== */
.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 999px;
    padding: 0.65rem 0.65rem 0.65rem 2.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        background 0.3s ease;
    box-shadow: 0 8px 20px -8px rgba(184, 230, 51, 0.55);
    isolation: isolate;
}

.pill-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px -10px rgba(184, 230, 51, 0.7);
    color: var(--dark);
}

.pill-btn:active {
    transform: translateY(-1px) scale(0.99);
}

.pill-btn-label {
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn:hover .pill-btn-icon {
    transform: rotate(-45deg);
}

.pill-btn:hover .pill-btn-label {
    transform: translateX(4px);
}

/* Ripple element injected by JS */
.pill-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-spread 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-spread {
    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

/* Pulse glow on click */
.pill-btn.pulsing {
    animation: pulse-glow 0.6s ease-out;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 8px 20px -8px rgba(184, 230, 51, 0.55),
            0 0 0 0 rgba(184, 230, 51, 0.7);
    }

    70% {
        box-shadow: 0 8px 20px -8px rgba(184, 230, 51, 0.55),
            0 0 0 24px rgba(184, 230, 51, 0);
    }

    100% {
        box-shadow: 0 8px 20px -8px rgba(184, 230, 51, 0.55),
            0 0 0 0 rgba(184, 230, 51, 0);
    }
}

@media only screen and (max-width: 1254px) {
    .squares {
        display: none;
    }
}


.hero-video-poster {
    position: absolute;
    inset: 0;
    background: #0a0a0a; /* nebo barva/obrázek který ladí s héro sekcí */
    z-index: 2;
    transition: opacity 0.8s ease;
}

.hero-video-poster.hidden {
    opacity: 0;
    pointer-events: none;
}


/* ========== BENEFITS SLIDER ========== */
.benefits-section {
    background: #F4F3EE;
    padding: 4rem 0 7rem;
    position: relative;
    overflow: hidden;
}

/* Sticky wrapper that holds the slider in place while user scrolls */
.benefits-sticky {
    position: relative;
}

.benefits-track {
    display: flex;
    gap: 2rem;
    padding: 0 3rem;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.benefit-card {
    flex: 0 0 380px;
    background: transparent;
    padding: 2rem 1rem 2.5rem;
    position: relative;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3.5rem;
    font-size: 1.6rem;
    color: var(--dark);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.benefit-card:hover .benefit-icon {
    transform: rotate(-8deg) scale(1.08);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 1.25rem;
    letter-spacing: -0.01em;
}

.benefit-text {
    font-size: 1rem;
    line-height: 1.75;
    color: #5a6470;
    margin-bottom: 2.5rem;
    min-height: 4.5rem;
}

.benefit-line {
    width: 80px;
    height: 2px;
    background: #c0c4be;
    transition: width 0.5s ease, background 0.5s ease;
}

.benefit-card:hover .benefit-line {
    width: 140px;
    background: var(--accent-dark);
}

/* Progress dots */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0c4be;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 32px;
    border-radius: 4px;
    background: var(--accent-dark);
}

/* Hint indicator */
.scroll-hint {
    position: absolute;
    top: 1rem;
    right: 3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8a9099;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-hint i {
    animation: hint-bounce 1.5s ease-in-out infinite;
}

@keyframes hint-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }
}

/* ========== REFERENCES SLIDER ========== */
.refs-section {
    background: #F4F3EE;
    padding: 4rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.refs-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.refs-arrows {
    display: flex;
    gap: 0.5rem;
}

.refs-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--dark);
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.refs-arrow:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.refs-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.refs-track {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    touch-action: pan-y;
}

.refs-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 4rem;
    margin-bottom: 3rem;
    gap: 2rem;
}

.refs-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.refs-counter {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #8a9099;
    font-weight: 600;
}

.refs-counter strong {
    color: var(--dark);
    font-size: 1rem;
}

.refs-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 4rem;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ref-card {
    flex: 0 0 320px;
    aspect-ratio: 3/4;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-card:hover {
    transform: translateY(-8px);
}

.ref-card-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-card:hover .ref-card-thumb {
    transform: scale(1.06);
}

.video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;
}

.video-modal-content {
    position: relative;

    width: min(1400px, 95vw);
    aspect-ratio: 16 / 9;

    background: #000;
    border-radius: 24px;
    overflow: hidden;
}

#videoModalPlayer,
#videoModalPlayer iframe {
    width: 100%;
    height: 100%;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);

    color: #fff;
    z-index: 20;
}

/* Dark gradient overlay at bottom */
.ref-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 20, 25, 0.85) 0%,
            rgba(15, 20, 25, 0.4) 35%,
            rgba(15, 20, 25, 0) 60%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Play button overlay - centered, scales on hover */
.ref-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ref-card-play i {
    font-size: 1.6rem;
    color: var(--dark);
    margin-left: 4px;
}

.ref-card:hover .ref-card-play {
    transform: translate(-50%, -50%) scale(1);
    background: var(--accent);
}

.ref-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
}

.ref-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.ref-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Bottom bar with button + dots */
.refs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4rem 0;
    gap: 2rem;
}

.refs-dots {
    display: flex;
    gap: 0.6rem;
}

.refs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #b8bcb6;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refs-dot.active {
    background: var(--dark);
    border-color: var(--dark);
    transform: scale(1.15);
}

/* ========== VIDEO MODAL ========== */
.video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(8px);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-content {
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.video-modal-backdrop.open .video-modal-content {
    transform: scale(1);
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-modal-close:hover {
    background: var(--accent);
    color: var(--dark);
    transform: rotate(90deg);
}

/* ========== REELS SLIDERS ========== */
/* =============================================
   REELS SECTION
   Extends the existing .refs-section pattern
   ============================================= */

.reels-section {
    /* Same outer spacing as refs-section */
    padding: var(--refs-section-padding, 80px 0);
    overflow: hidden;
    padding-top: 0;
}

/* Track: same horizontal scroll as refs, but cards are narrower (9:16) */
.reels-track {
    display: flex;
    gap: 16px;
    overflow: visible;
    /* JS controls transform, same as refsTrack */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    padding: 0 var(--refs-track-padding-x, 40px);
}

/* ── Reel card ──────────────────────────────── */
.reel-card {
    position: relative;
    flex: 0 0 220px;          /* narrower than ref-card (~300px) */
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #111;

    /* 9:16 aspect ratio */
    aspect-ratio: 9 / 16;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Thumbnail */
.reel-card-thumb {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top; /* portraits look better anchored top */
    transition: transform 0.4s ease;
}

.reel-card:hover .reel-card-thumb {
    transform: scale(1.04);
}

/* Dark gradient overlay – stronger at bottom like ref-card */
.reel-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0) 40%,
        rgba(0,0,0,0.75) 100%
    );
    pointer-events: none;
}

/* Play button – same style as .ref-card-play */
.reel-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.25s ease, background 0.25s ease;
}

.reel-card-play i {
    font-size: 1.4rem;
    color: var(--dark, #111);
    margin-left: 3px; /* optical centering of play icon */
}

.reel-card:hover .reel-card-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--accent, #c8f135); /* brand green on hover */
}

/* Instagram badge – top-right corner */
.reel-card-ig-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 4px;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Info block at the bottom (reuses ref-card-info classes) */
.reel-card .ref-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 16px;
}

.reel-card .ref-card-title {
    font-size: 0.85rem;   /* slightly smaller to fit narrow card */
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .reel-card {
        flex: 0 0 160px;
    }
}

/* =================================================================
           ABOUT-ME (Parťák pro makléře)
           ================================================================= */
.aboutme-section {
    background: #fff;
    padding: 6rem 4rem 7rem;
}

.aboutme-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.aboutme-heading {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin: 0 0 4rem;
    max-width: 720px;
}

.aboutme-grid {
    display: grid;
    grid-template-columns: 380px 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.aboutme-portrait {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 24px 50px -20px rgba(15, 20, 25, 0.3);
}

.aboutme-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.aboutme-portrait:hover img {
    transform: scale(1.04);
}

.aboutme-text {
    padding-top: 1rem;
}

.aboutme-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5560;
    margin-bottom: 1.5rem;
}

.aboutme-quote {
    background: var(--accent);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    color: var(--dark);
}

.aboutme-quote::before {
    content: "" ";
 position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    font-size: 8rem;
    line-height: 1;
    color: var(--dark);
    font-family: Georgia, serif;
    opacity: 0.15;
}

.aboutme-quote-text {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2rem;
    font-weight: 500;
}

.aboutme-quote-role {
    font-size: 0.85rem;
    text-transform: lowercase;
    color: rgba(15, 20, 25, 0.65);
    margin-bottom: 0.25rem;
}

.aboutme-quote-name {
    font-size: 1.2rem;
    font-weight: 700;
}

/* =================================================================
           SERVICES — 3-card carousel
           ================================================================= */
.services-section {
    background: #F4F3EE;
    padding: 4rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.services-heading {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    max-width: 900px;
    margin: 0 auto 6rem;
    line-height: 1.35;
    padding: 0 2rem;
    letter-spacing: -0.01em;
    min-height: 5rem;
    transition: opacity 0.35s ease;
}

.services-heading.is-changing {
    opacity: 0.3;
}

/* Wrapper holds both the floating preview image AND the cards.
           Top padding (240px) creates room for the floating preview above the first row. */
.services-stage {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 4rem 0;
    position: relative;
}

/* Shared image container floating ABOVE the active card */
.services-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    background: #f0efea;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 20px 50px -20px rgba(15, 20, 25, 0.4);
    will-change: transform, opacity, left, top;
}

.services-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.services-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    /* row-gap larger to leave space for floating preview between rows */
    position: relative;
    z-index: 1;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card.is-active {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -25px rgba(15, 20, 25, 0.3);
}

/* Default order: number → spacer → title (auto-margin pushes title to bottom) */
.service-num {
    order: 1;
}

.service-title {
    order: 2;
    margin-top: auto;
}

.service-desc {
    order: 3;
}

.service-cta {
    order: 4;
}

.service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: opacity 0.35s ease, max-height 0.4s ease, margin 0.4s ease;
    max-height: 52px;
}

/* Active: number collapses, title moves up, desc + cta become visible */
.service-card.is-active .service-num {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0;
    transition: margin 0.4s ease, color 0.3s ease;
}

.service-card.is-active .service-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Description: hidden in default, slides in on hover */
.service-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #5a6470;
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.5s ease, margin 0.4s ease;
}

.service-card.is-active .service-desc {
    opacity: 1;
    max-height: 200px;
    margin-bottom: 1.5rem;
}

.service-cta {
    margin-top: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.service-card.is-active .service-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.service-cta .pill-btn {
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    font-size: 0.9rem;
}

.service-cta .pill-btn-icon {
    width: 36px;
    height: 36px;
}

/* =================================================================
           PRICING — dark section, 3 packages
           ================================================================= */
.pricing-section {
    background: #0E2118;
    color: #fff;
    padding: 6rem 4rem 7rem;
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 230, 51, 0.08), transparent 70%);
    pointer-events: none;
}

.pricing-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
}

.pricing-eyebrow {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.5rem;
}

.pricing-intro {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 4rem;
    max-width: 720px;
    font-size: 0.95rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(184, 230, 51, 0.2);
    transform: translateX(4px);
}

.pricing-card.featured {
    border-color: rgba(184, 230, 51, 0.4);
    background: rgba(184, 230, 51, 0.04);
}

.pricing-card.featured::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 20%;
    bottom: 20%;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    right: 2rem;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.pricing-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
}

.pricing-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.pricing-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.pricing-price {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
}

.pricing-price small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 400;
    margin-right: 0.4rem;
}

.pricing-price .price-num {
    font-size: 1.6rem;
    font-weight: 800;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.pricing-features li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-cta .pill-btn {
    padding: 0.4rem 0.4rem 0.4rem 1.25rem;
    font-size: 0.85rem;
}

.pricing-cta .pill-btn-icon {
    width: 32px;
    height: 32px;
}

.pricing-cta .pill-btn-icon i {
    font-size: 0.85rem !important;
}

/* =================================================================
           REVIEWS — slider
           ================================================================= */
.reviews-section {
    background: #F4F3EE;
    padding: 6rem 0 7rem;
    overflow: hidden;
}

.reviews-heading {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 3rem;
    padding: 0 4rem;
    letter-spacing: -0.02em;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 4rem;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.review-card {
    flex: 0 0 520px;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.review-card-rating-card {
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
}

.review-avatars {
    display: flex;
    margin-bottom: auto;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    background-size: cover;
    background-position: center;
}

.review-avatar:first-child {
    margin-left: 0;
}

.review-avatar-more {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -10px;
    background: #fff;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.review-rating-big {
    font-size: 2.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-rating-big i {
    color: var(--accent);
    font-size: 1.5rem;
}

.review-rating-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.review-quote-icon {
    color: #c0c4be;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.review-stars {
    margin-bottom: 1.5rem;
}

.review-stars i {
    color: #f5a623;
    font-size: 1rem;
    margin-right: 0.15rem;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--dark);
    letter-spacing: 0.02em;
    margin-bottom: auto;
    padding-bottom: 2rem;
}

.review-author {
    font-size: 0.85rem;
    color: #8a9099;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.review-photo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.review-photo-row .review-avatar {
    margin-left: 0;
    border: 0;
}

.reviews-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.review-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid #b8bcb6;
    background: transparent;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.review-arrow:hover:not(:disabled) {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}

.review-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* =================================================================
           CONTACT — form
           ================================================================= */
.contact-section {
    background: #fff;
    padding: 5rem 4rem 7rem;
}

.contact-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.contact-heading {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    max-width: 700px;
    margin: 0 0 4rem;
    letter-spacing: -0.02em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-grid br {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.form-label .req {
    color: #e15a52;
    margin-left: 0.15rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: #faf7f2;
    border: 2px solid #f1ece1;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.25s ease;
    outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 230, 51, 0.18);
}

.form-input.invalid,
.form-textarea.invalid {
    border-color: #e15a52;
    background: #fef5f4;
}

.form-error {
    font-size: 0.8rem;
    color: #e15a52;
    margin-top: 0.4rem;
    min-height: 1.1rem;
    display: none;
}

.form-submit-row {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.form-success {
    color: var(--accent-dark);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.4s ease;
}

.form-success.show {
    opacity: 1;
    transform: translateY(0);
}
.cf7-hidden-submit {
    display: none !important;
}
.wpcf7-spinner {
display: none;
}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    display: none;
}

/* Contact info column */
.contact-side {
    padding-top: 0.5rem;
}

.contact-side-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-side-icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-side-label {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact-side-value {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.contact-side-value:hover {
    color: var(--accent-dark);
}

.contact-side-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5560;
    margin: 2rem 0 1.5rem;
}

.contact-side-text h3 {
	font-size: 22px;
	font-weight: 600;
}

.contact-side-block {
    margin-top: 2rem;
}

.contact-side-block strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* =================================================================
           FOOTER + MAP
           ================================================================= */
#sb_instagram #sbi_images {
    padding: 0;
}

           .map-wrap {
    height: 380px;
    position: relative;
    background: #d9e3da;
}

#site-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Override leaflet popup defaults to match theme */
.leaflet-container {
    font-family: 'Manrope', sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.map-divider {
    height: 6px;
    background: var(--accent);
}

.footer {
    background: #0E2118;
    color: #fff;
    padding: 4rem 4rem 1.5rem;
    position: relative;
}
.footer-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

.footer-menu a:hover {
    opacity: 0.7;
}

.footer-cta {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    margin: 0 0 3rem;
    letter-spacing: -0.01em;
}

.footer-cta a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
}

.footer-cta a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.footer-cta a:hover::after {
    transform: scaleX(1);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-nav {
    display: flex;
    gap: 2.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    text-align: center;
}

.footer-bottom strong {
    color: var(--accent);
    font-weight: 600;
}
.footer-bottom  a {
	color: var(--accent);
}

/* Floating "back to top" button - sits over the map */
.back-to-top {
    position: absolute;
    top: -28px;
    right: 4rem;
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 12px 30px -10px rgba(184, 230, 51, 0.55);
    transition: all 0.3s ease;
    z-index: 5;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -10px rgba(184, 230, 51, 0.7);
}

/* =================================================================
           MOBILE NAV — hamburger + fullscreen menu
           ================================================================= */
.mobile-toggle {
    display: none;
    /* shown on mobile via media query */
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
    z-index: 1200;
    /* above the mobile menu (1090) */
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.2);
    padding: 0;
}

@media (max-width: 575px) {
    .mobile-toggle {
        top: 1rem;
        right: 1.25rem;
    }
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--dark);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
        top 0.3s ease,
        opacity 0.2s ease;
}

.mobile-toggle span {
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-toggle span::before {
    top: -7px;
    transform: translateX(-50%);
}

.mobile-toggle span::after {
    top: 7px;
    transform: translateX(-50%);
}

/* Animated to X when open */
.mobile-toggle.is-open {
    background: var(--accent);
}

.mobile-toggle.is-open span {
    background: transparent;
}

.mobile-toggle.is-open span::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
    background: var(--dark);
}

.mobile-toggle.is-open span::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
    background: var(--dark);
}

/* Fullscreen mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    color: #fff;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    padding: 7rem 2rem 3rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: auto;
}

.mobile-menu-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.25s ease;
}

.mobile-menu-nav a::after {
    content: "→";
    color: var(--accent);
    font-size: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
    color: var(--accent);
}

.mobile-menu-nav a:hover::after,
.mobile-menu-nav a:active::after {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger reveal */
.mobile-menu.is-open .mobile-menu-nav a {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(1) {
    transition-delay: 0.10s;
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(2) {
    transition-delay: 0.16s;
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(3) {
    transition-delay: 0.22s;
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(4) {
    transition-delay: 0.28s;
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(5) {
    transition-delay: 0.34s;
}

.mobile-menu.is-open .mobile-menu-nav a:nth-child(6) {
    transition-delay: 0.40s;
}

.mobile-menu-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.mobile-menu.is-open .mobile-menu-footer {
    opacity: 1;
}

.mobile-menu-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    margin-bottom: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(184, 230, 51, 0.5);
    color: var(--dark);
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.mobile-menu-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.mobile-menu-contact a:hover {
    color: var(--accent);
}

.mobile-menu-contact i {
    color: var(--accent);
}

.mobile-menu-social {
    display: flex;
    gap: 0.6rem;
}

.mobile-menu-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.mobile-menu-social a:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Lock body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* =================================================================
           RESPONSIVE — additional rules for new sections
           ================================================================= */
@media (max-width: 991px) {
    .nav-pill {
        display: none;
    }

    .top-nav {
        padding: 1.25rem 1.5rem;
    }

    .top-nav.is-scrolled {
        padding: 0.75rem 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .contact-strip {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: flex-start;
        padding: 1.5rem;
        margin-top: 0;
        margin-left: 0;
        min-height: 0;
        align-items: flex-start;
    }

    .squares {
        left: 5%;
        bottom: -80px;
        grid-template-columns: repeat(3, 50px);
        grid-template-rows: repeat(3, 50px);
    }

    .btn-write {
        display: none;
    }

    .about-section {
        padding: 4rem 1.5rem 5rem;
    }

    .about-heading {
        padding-left: 0;
        margin-bottom: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-content {
        padding-right: 0;
    }

    .benefits-section {
        padding: 3rem 0 5rem;
    }

    .benefits-track {
        padding: 0 1.5rem;
        gap: 1.25rem;
    }

    .benefit-card {
        flex: 0 0 280px;
        padding: 1.5rem 0.5rem 2rem;
    }

    .benefit-icon {
        margin-bottom: 2rem;
        width: 54px;
        height: 54px;
    }

    .benefit-title {
        font-size: 1.25rem;
    }

    .scroll-hint {
        display: none;
    }

    .refs-section {
        padding: 3rem 0 5rem;
    }

    .refs-header {
        padding: 0 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .refs-track {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .ref-card {
        flex: 0 0 240px;
    }

    .refs-footer {
        padding: 2rem 1.5rem 0;
        flex-direction: column;
        gap: 1.5rem;
    }

    .video-modal-close {
        top: -2.75rem;
    }

    .aboutme-section {
        padding: 4rem 1.5rem 5rem;
    }

    .aboutme-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .aboutme-portrait {
        max-width: 380px;
    }

    .aboutme-quote {
        max-width: 480px;
    }

    .services-section {
        padding: 3rem 0 5rem;
    }

    .services-stage {
        padding: 0 1.5rem;
    }

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

    .service-card {
        min-height: 0;
    }

    .services-preview {
        display: none;
    }

    /* Show full content on mobile - no hover available */
    .service-desc {
        opacity: 1;
        max-height: none;
        margin: 1rem 0 1.5rem;
    }

    .service-cta {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .services-heading {
        margin-bottom: 3rem;
        min-height: 0;
    }

    .pricing-section {
        padding: 4rem 1.5rem 5rem;
    }

    .pricing-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .pricing-card.featured::after {
        display: none;
    }

    .reviews-heading {
        padding: 0 1.5rem;
    }

    .reviews-track {
        padding: 0 1.5rem;
    }

    .review-card {
        flex: 0 0 280px;
        min-height: 340px;
        padding: 1.5rem;
    }

    .contact-section {
        padding: 4rem 1.5rem 5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .back-to-top {
        right: 1.5rem;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 575px) {
    .offcanvas-start {
        width: 88% !important;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .brand span:not(.brand-logo) {
        display: none;
    }

    /* hide brand text, keep only logo */
    .top-nav {
        padding: 1rem 1.25rem;
    }

    .top-nav.is-scrolled {
        padding: 0.65rem 1.25rem;
    }

    .mobile-menu {
        padding: 6rem 1.5rem 2rem;
    }

    .mobile-menu-nav a {
        font-size: 1.6rem;
    }
}

/* =================================================================
           MODERN EFFECTS
           ================================================================= */

/* ----- Scroll progress bar (top of page) ----- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ----- Custom cursor (desktop only) ----- */
@media (hover: hover) and (pointer: fine) {

    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: none !important;
    }

    .cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647; /* max možný z-index */
    will-change: transform;
}

    .cursor-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--dark);
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    }

    .cursor-ring {
        width: 36px;
        height: 36px;
        border: 1.5px solid rgba(15, 20, 25, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            background 0.3s ease,
            border-color 0.3s ease,
            opacity 0.3s ease;
    }

    /* Hover state over interactive elements */
    .cursor-ring.is-hover {
        width: 64px;
        height: 64px;
        background: rgba(184, 230, 51, 0.25);
        border-color: var(--accent);
    }

    .cursor-dot.is-hover {
        background: var(--accent-dark);
    }

    /* Over dark sections — invert cursor color
       Automaticky se aktivuje když JS zjistí tmavé pozadí pod kurzorem.
       Lze i ručně přes data-cursor="dark" na elementu. */
    .cursor-ring.is-dark {
        border-color: rgba(184, 230, 51, 0.6);
    }

    .cursor-dot.is-dark {
        background: var(--accent);
    }

    /* Hover nad interaktivním prvkem v tmavé sekci */
    .cursor-ring.is-dark.is-hover {
        background: rgba(184, 230, 51, 0.3);
        border-color: var(--accent);
    }

    .cursor-dot.is-dark.is-hover {
        background: #ffffff;
    }
}

@media (hover: none),
(pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}
/* Complianz cookie banner — přebij jeho vlastní cursor styl */
.cmplz-cookiebanner,
.cmplz-cookiebanner *,
[class*="cmplz-"],
[class*="cmplz-"] * {
    cursor: none !important;
}
/* ----- Reveal animations ----- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.pricing-pdf-link{
    display:block;
    margin-top:15px;
    font-size:14px;
    color:var(--lime);
    text-decoration:underline;
    transition:.2s ease;
}

.pricing-pdf-link:hover{
    opacity:.8;
	color: #b8e633;
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.0s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.24s;
}

.reveal-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.36s;
}

.reveal-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.48s;
}

.reveal-stagger.is-visible>*:nth-child(6) {
    transition-delay: 0.60s;
}

/* Word-by-word text reveal (for big headings) */
.reveal-words .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.7em);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-words.is-visible .word {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Marquee strip ----- */
.marquee {
    background: var(--dark);
    color: #fff;
    padding: 1.25rem 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--dark), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--dark), transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee-scroll 35s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.marquee-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

/* ----- Tilt cards ----- */
.tilt {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.tilt>* {
    transform: translateZ(0);
}

/* ----- Magnetic buttons ----- */
.magnetic {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

/* ----- Counter visual emphasis ----- */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ----- Reduced motion: turn it all off ----- */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-stagger>*,
    .reveal-words .word {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .marquee-track {
        animation: none;
    }

    .scroll-progress {
        transition: none;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: auto !important;
    }
}


/* =================================================================
   REFERENCES PAGE — gallery layout
   ================================================================= */
 
/* Subpage hero — shorter than homepage */
.subpage-hero {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: 9rem 4rem 4rem;
    overflow: hidden;
}
 
.subpage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(135deg, rgba(15, 50, 60, 0.85), rgba(20, 60, 50, 0.6)),
        url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
 
.subpage-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}
 
.subpage-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.25s ease;
}
.subpage-breadcrumb:hover { color: var(--accent); }
.subpage-breadcrumb i { font-size: 0.75rem; }
 
.subpage-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    max-width: 850px;
}
 
.subpage-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 680px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}
 
/* Filter tabs */
.gallery-filters {
    background: #F4F3EE;
    padding: 2.5rem 4rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}
 
.gallery-filters-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(15, 20, 25, 0.08);
}
 
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
 
.filter-tab {
    background: transparent;
    border: 1.5px solid rgba(15, 20, 25, 0.15);
    color: var(--dark);
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
 
.filter-tab:hover {
    border-color: var(--dark);
}
 
.filter-tab.is-active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
}
 
.filter-tab .count {
    background: rgba(184, 230, 51, 0.4);
    color: var(--dark);
    border-radius: 999px;
    padding: 0.05rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}
 
.filter-tab.is-active .count {
    background: var(--accent);
    color: var(--dark);
}
 
.gallery-sort {
    color: #5a6470;
    font-size: 0.9rem;
}
.gallery-sort strong {
    color: var(--dark);
    font-weight: 700;
}
 
/* Gallery grid (CSS columns for masonry-like effect) */
.gallery {
    background: #F4F3EE;
    padding: 2.5rem 4rem 7rem;
}
 
.gallery-grid {
    max-width: 1280px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 1.5rem;
}
 
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease;
    display: block;
}
 
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(15, 20, 25, 0.3);
}
 
/* When filter hides an item */
.gallery-item.is-hidden {
    display: none;
}
 
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
 
.gallery-item:hover img {
    transform: scale(1.05);
}
 
/* Overlay shown on hover */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(15, 20, 25, 0.85) 0%,
        rgba(15, 20, 25, 0.3) 40%,
        rgba(15, 20, 25, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
 
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}
 
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    color: #fff;
    z-index: 2;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
    pointer-events: none;
}
 
.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
    opacity: 1;
}
 
.gallery-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.6rem;
}
 
.gallery-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}
 
.gallery-item-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}
 
/* Always-visible play badge for video items (outside hover) */
.gallery-item-play {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
 
.gallery-item-play i {
    color: var(--dark);
    font-size: 1rem;
    margin-left: 2px;
}
 
.gallery-item:hover .gallery-item-play {
    background: var(--accent);
    transform: scale(1.1);
}
 
/* Photo album badge — for items that open as a gallery */
.gallery-item-album {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
 
/* Empty state */
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #8a9099;
    font-size: 1.05rem;
    grid-column: 1 / -1;
    column-span: all;
    display: none;
}
.gallery-empty.is-visible {
    display: block;
}
 
/* Load more button area */
.gallery-loadmore {
    text-align: center;
    margin-top: 3rem;
    column-span: all;
}
 
/* =================================================================
   LIGHTBOX (photo gallery viewer)
   ================================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 25, 0.96);
    backdrop-filter: blur(8px);
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
 
.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
 
.lightbox-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.lightbox-stage {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    min-height: 50vh;
    max-height: 75vh;
}
 
.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
}
 
.lightbox-img.is-loaded {
    opacity: 1;
}
 
.lightbox-spinner {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
 
.lightbox-close,
.lightbox-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
 
.lightbox-close {
    top: -3.5rem;
    right: 0;
}
 
.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
}
 
.lightbox-arrow.prev { left: -4rem; }
.lightbox-arrow.next { right: -4rem; }
 
.lightbox-close:hover,
.lightbox-arrow:hover {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}
 
.lightbox-close:hover { transform: rotate(90deg); }
 
.lightbox-caption {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.85);
    text-align: center;
    width: 100%;
}
 
.lightbox-counter {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.4rem;
}
 
.lightbox-title {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}
 
.lightbox-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding: 0.25rem;
    max-width: 100%;
}
 
.lightbox-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    opacity: 0.55;
}
 
.lightbox-thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
}
 
.lightbox-thumb:hover {
    opacity: 1;
}
 
/* Responsive lightbox */
@media (max-width: 767px) {
    .lightbox { padding: 1rem; }
    .lightbox-close { top: 0.5rem; right: 0.5rem; width: 40px; height: 40px; }
    .lightbox-arrow { width: 40px; height: 40px; }
    .lightbox-arrow.prev { left: 0.5rem; }
    .lightbox-arrow.next { right: 0.5rem; }
    .lightbox-thumbs { display: none; }
}
 
/* =================================================================
   GALLERY RESPONSIVE
   ================================================================= */
@media (max-width: 991px) {
    .subpage-hero { padding: 7rem 1.5rem 3rem; }
    .gallery-filters { padding: 2rem 1.5rem 0; position: static; }
    .gallery { padding: 2rem 1.5rem 5rem; }
    .gallery-grid { column-count: 2; column-gap: 1rem; }
    .gallery-item { margin-bottom: 1rem; }
}
 
@media (max-width: 575px) {
    .gallery-grid { column-count: 1; }
}






/* ============== IMAGE LIGHTBOX ============== */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 33, 24, .92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-backdrop.is-open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: .5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-caption {
    color: #fff;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: .9rem;
}

.lightbox-counter {
    opacity: .6;
}

.lightbox-close,
.lightbox-arrow {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 10000;
}

.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-arrow-prev { left: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-arrow-next { right: 2rem; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover { background: rgba(255, 255, 255, .25); transform: scale(1.05); }
.lightbox-arrow-prev:hover { background: rgba(255, 255, 255, .25); transform: translateY(-50%) scale(1.05); }
.lightbox-arrow-next:hover { background: rgba(255, 255, 255, .25); transform: translateY(-50%) scale(1.05); }


/* ============== DETAIL GRID ============== */
.gallery-detail-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    background: #0E2118;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.gallery-back:hover { opacity: .85; transform: translateX(-2px); }

.gallery-detail-title strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.3;
}

.gallery-detail-title span {
    font-size: .85rem;
    opacity: .6;
}

.gallery-grid-photos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

@media (max-width: 1024px) {
    .gallery-grid-photos { grid-template-columns: repeat(3, 1fr); }
}

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

.gallery-photo {
    position: relative;
    overflow: hidden;
    border-radius: .75rem;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background: #f0f0f0;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gallery-photo:hover img {
    transform: scale(1.05);
}

/* ============== DETAIL BAR (zpět + název) ============== */
.gallery-detail-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;        /* vnitřní odsazení */
    margin: 0 auto 1.5rem;
    max-width: 1400px;           /* stejná šířka jako overview grid */
    background: #f4f3ee;     /* dědí béžové pozadí stránky */
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

@media (max-width: 768px) {
    .gallery-detail-bar {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
}

















/* =================================================================
   LEGAL / CONTENT PAGES — typography for long-form text
   ================================================================= */

.legal-section {
    background: #F4F3EE;
    padding: 3rem 4rem 7rem;
}

.legal-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Meta line: "Aktualizováno · datum" */
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(15, 20, 25, 0.1);
    font-size: 0.85rem;
    color: #6b7280;
}

.legal-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-meta-item i {
    color: var(--accent-dark);
    font-size: 0.95rem;
}

/* Table of contents (anchors) */
.legal-toc {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 3.5rem;
    border: 1px solid rgba(15, 20, 25, 0.06);
}

.legal-toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #8a9099;
    font-weight: 700;
    margin: 0 0 1rem;
}

.legal-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}

.legal-toc ol li {
    counter-increment: toc;
    padding: 0.4rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
}

.legal-toc ol li::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.legal-toc a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
}

.legal-toc a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
}

/* === Long-form content typography === */
.legal-content {
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Headings */
.legal-content h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 4rem 0 1.25rem;
    padding-top: 1rem;
    scroll-margin-top: 6rem; /* offset for fixed nav */
}

.legal-content h2:first-child { margin-top: 0; padding-top: 0; }

.legal-content h2::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 2.5rem 0 0.85rem;
    line-height: 1.35;
    scroll-margin-top: 6rem;
}

.legal-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.75rem 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Paragraphs */
.legal-content p {
    margin: 0 0 1.25rem;
    color: #2c343d;
}

.legal-content p:last-child { margin-bottom: 0; }

/* Inline elements */
.legal-content strong,
.legal-content b {
    color: var(--dark);
    font-weight: 700;
}

.legal-content em,
.legal-content i {
    color: #2c343d;
    font-style: italic;
}

.legal-content a {
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
    transition: all 0.2s ease;
    padding-bottom: 1px;
    word-break: break-word;
}

.legal-content a:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
    background: rgba(184, 230, 51, 0.18);
}

/* Lists */
.legal-content ul,
.legal-content ol {
    margin: 0 0 1.5rem;
    padding: 0 0 0 1.25rem;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 0.65rem;
    padding-left: 0.5rem;
    color: #2c343d;
}

.legal-content ul li::marker { color: var(--accent-dark); }
.legal-content ol li::marker { color: var(--accent-dark); font-weight: 700; }

.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul {
    margin: 0.65rem 0 0;
}

/* Definition lists (great for legal terms) */
.legal-content dl {
    margin: 0 0 1.5rem;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(15, 20, 25, 0.06);
}

.legal-content dt {
    font-weight: 800;
    color: var(--dark);
    margin-top: 1rem;
}
.legal-content dt:first-child { margin-top: 0; }

.legal-content dd {
    margin: 0.35rem 0 0;
    color: #4a5560;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

/* Blockquote */
.legal-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    background: rgba(184, 230, 51, 0.1);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    color: var(--dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-content blockquote p:last-child { margin-bottom: 0; }
.legal-content blockquote cite {
    display: block;
    margin-top: 0.85rem;
    font-style: normal;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6b7280;
    font-weight: 600;
}

/* Inline code & code blocks */
.legal-content code {
    background: rgba(15, 20, 25, 0.06);
    color: var(--dark);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.legal-content pre {
    background: var(--dark);
    color: #e8eef5;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Tables */
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 1px 0 rgba(15, 20, 25, 0.06);
}

.legal-content thead {
    background: var(--dark);
    color: #fff;
}

.legal-content th {
    text-align: left;
    padding: 0.9rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legal-content td {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid rgba(15, 20, 25, 0.06);
    color: #2c343d;
    vertical-align: top;
}

.legal-content tbody tr:hover { background: rgba(15, 20, 25, 0.02); }

/* Horizontal rule */
.legal-content hr {
    border: 0;
    height: 1px;
    background: rgba(15, 20, 25, 0.1);
    margin: 3rem 0;
}

/* Notice / callout boxes */
.legal-content .notice {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.legal-content .notice i {
    color: var(--accent-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.legal-content .notice p { margin: 0; }
.legal-content .notice strong { display: block; margin-bottom: 0.3rem; }

/* Notice variants */
.legal-content .notice.warning {
    border-left-color: #e15a52;
}
.legal-content .notice.warning i { color: #e15a52; }

.legal-content .notice.info {
    border-left-color: #5b8def;
}
.legal-content .notice.info i { color: #5b8def; }

/* Images inside content */
.legal-content img,
.legal-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
}

.legal-content figure { margin: 1.5rem 0; }

.legal-content figcaption {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Back to top inline (within content) */
.legal-back-to-top {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(15, 20, 25, 0.08);
    text-align: center;
}

.legal-back-to-top a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 0 !important;
    background: transparent !important;
    transition: color 0.25s ease;
}

.legal-back-to-top a:hover { color: var(--accent-dark); }

.legal-back-to-top a i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.legal-back-to-top a:hover i {
    background: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

/* =================================================================
   LEGAL CONTENT RESPONSIVE
   ================================================================= */
@media (max-width: 991px) {
    .legal-section { padding: 2rem 1.5rem 4rem; }
    .legal-toc { padding: 1.5rem 1.25rem; }
    .legal-content { font-size: 1rem; }
    .legal-content h2 { margin-top: 3rem; }
    .legal-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .legal-content dl { padding: 1.25rem; }
    .legal-content blockquote { padding: 1.25rem; }
}



/* =================================================================
   SERVICE DETAIL PAGE
   ================================================================= */

/* Lighter subpage hero variant for service detail */
.subpage-hero-light {
    background: #F4F3EE;
    color: var(--dark);
    padding: 9rem 4rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.subpage-hero-light .subpage-breadcrumb {
    color: rgba(15, 20, 25, 0.55);
}
.subpage-hero-light .subpage-breadcrumb:hover { color: var(--accent-dark); }

.subpage-hero-light .subpage-title {
    color: var(--dark);
    text-transform: none;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
}

.subpage-hero-light .subpage-lead {
    color: #4a5560;
}

.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border: 1.5px solid rgba(15, 20, 25, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2rem;
    background: transparent;
}

/* Tab switcher (pills) */
.service-tabs {
    background: #F4F3EE;
    padding: 0 4rem 3rem;
    position: relative;
    z-index: 2;
}

.service-tabs-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-tab {
    background: transparent;
    border: 1.5px solid rgba(15, 20, 25, 0.15);
    color: var(--dark);
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-tab:hover {
    border-color: var(--dark);
}

.service-tab.is-active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgba(15, 20, 25, 0.4);
}

/* Panel container — only one visible at a time */
.service-panels {
    background: #F4F3EE;
    padding: 3rem 4rem 6rem;
}

.service-panels-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.service-panel {
    display: none;
    animation: panel-fade 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-panel.is-active {
    display: block;
}

@keyframes panel-fade {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Service intro: icon + title + grid of text & image */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.service-detail-text {
    padding-top: 0.5rem;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.service-detail-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.service-detail-desc {
    font-size: 1rem;
    line-height: 1.85;
    color: #4a5560;
    margin-bottom: 1.25rem;
}

.service-detail-desc strong {
    color: var(--dark);
    font-weight: 700;
}

/* Image collage on the right */
.service-image-stack {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 24px 60px -30px rgba(15, 20, 25, 0.35);
}

.service-image-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-image-stack:hover img { transform: scale(1.03); }

/* Feature grid: "What's included" with bullet pairs */
.service-features {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(15, 20, 25, 0.08);
}

.service-features-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #8a9099;
    margin: 0 0 1.5rem;
    font-weight: 600;
}

.service-features-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 3rem;
    max-width: 720px;
    letter-spacing: -0.01em;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 4rem;
    row-gap: 1.25rem;
}

.service-features-grid li {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: var(--dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 20, 25, 0.06);
}

.service-features-grid li i {
    color: var(--accent-dark);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Suitable-for chips */
.service-suitable {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(15, 20, 25, 0.08);
}

.service-suitable-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.suitable-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(15, 20, 25, 0.08);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.suitable-chip:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.suitable-chip i {
    color: var(--accent-dark);
    font-size: 0.95rem;
}

/* Sample gallery (small thumbs grid) */
.service-samples {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(15, 20, 25, 0.08);
}

.service-samples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.sample-thumb {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #ddd;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sample-thumb:hover {
    transform: translateY(-4px);
}

.sample-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.sample-thumb:hover img { transform: scale(1.08); }

/* "Want more references" CTA strip */
.service-cta-strip {
    margin-top: 4rem;
    background: var(--dark);
    color: #fff;
    border-radius: 18px;
    padding: 3rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.service-cta-strip::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 230, 51, 0.15), transparent 70%);
    pointer-events: none;
}

.service-cta-text {
    flex: 1;
    min-width: 280px;
    position: relative;
    z-index: 1;
}

.service-cta-text h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.service-cta-text p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.95rem;
}

.service-cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    color: #fff;
}

/* =================================================================
   SERVICE DETAIL RESPONSIVE
   ================================================================= */
@media (max-width: 991px) {
    .subpage-hero-light { padding: 7rem 1.5rem 2.5rem; }
    .service-tabs { padding: 0 1.5rem 2rem; }
    .service-tabs-inner { gap: 0.5rem; }
    .service-tab { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

    .service-panels { padding: 2rem 1.5rem 4rem; }
    .service-detail { grid-template-columns: 1fr; gap: 2rem; }
    .service-features-grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 0.5rem; }
    .service-samples-grid { grid-template-columns: repeat(2, 1fr); }

    .service-cta-strip { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
    .service-features { margin-top: 3.5rem; padding-top: 3rem; }
    .service-suitable, .service-samples { margin-top: 3rem; padding-top: 2.5rem; }
}

/* When page has a light subpage hero, the fixed nav must be dark text in its default state */
body.has-light-hero .top-nav:not(.is-scrolled) .brand { color: var(--dark); }
body.has-light-hero .top-nav:not(.is-scrolled) .brand-logo {
    border-color: var(--dark);
}
body.has-light-hero .top-nav:not(.is-scrolled) .brand-logo::before,
body.has-light-hero .top-nav:not(.is-scrolled) .brand-logo::after {
    border-color: var(--dark);
}
body.has-light-hero .top-nav:not(.is-scrolled) .nav-pill a { color: var(--dark); }
body.has-light-hero .top-nav:not(.is-scrolled) .nav-pill {
    background: rgba(15, 20, 25, 0.06);
    border-color: rgba(15, 20, 25, 0.08);
}
body.has-light-hero .top-nav:not(.is-scrolled) .btn-write {
    background: var(--dark);
    color: #fff;
}
body.has-light-hero .top-nav:not(.is-scrolled) .btn-write:hover {
    background: var(--accent);
    color: var(--dark);
}

/* =================================================================
   SERVICE DETAIL — DEDICATED PAGE
   ================================================================= */

/* Hero with featured image */
.service-hero {
    background: #F4F3EE;
    padding: 8rem 4rem 0;
    position: relative;
    overflow: hidden;
}

.service-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    align-items: end;
    padding-bottom: 4rem;
}

.service-hero-text { padding-bottom: 1rem; }

.service-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(184, 230, 51, 0.18);
    color: var(--dark);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.service-hero-chip i { color: var(--accent-dark); }

.service-hero-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
}

.service-hero-lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #4a5560;
    max-width: 520px;
    margin: 0 0 2.5rem;
}

.service-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 20, 25, 0.1);
}

.service-hero-meta-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8a9099;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.service-hero-meta-item .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}

.service-hero-image {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 5/4;
    position: relative;
    box-shadow: 0 30px 60px -30px rgba(15, 20, 25, 0.4);
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-hero-image:hover img { transform: scale(1.04); }

/* Description block (long-form text) */
.service-about {
    background: #F4F3EE;
    padding: 4rem 4rem 2rem;
}
.service-about-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

.service-about-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #8a9099;
    font-weight: 600;
    padding-top: 0.6rem;
}

.service-about-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a5560;
    margin: 0 0 1.5rem;
}
.service-about-body p:last-child { margin-bottom: 0; }
.service-about-body strong { color: var(--dark); font-weight: 700; }

/* Process steps — 4 numbered cards */
.service-process {
    background: #F4F3EE;
    padding: 5rem 4rem;
}
.service-process-inner { max-width: 1280px; margin: 0 auto; }

.service-process-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-process-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.01em;
    max-width: 720px;
}

.service-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -20px rgba(15, 20, 25, 0.2);
}

.process-step-num {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.process-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.process-step-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.6rem;
}

.process-step-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #5a6470;
    margin: 0;
}

/* Pricing/variants table */
.service-pricing {
    background: #F4F3EE;
    padding: 4rem 4rem 5rem;
}
.service-pricing-inner { max-width: 1080px; margin: 0 auto; }

.service-variant {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 2.5rem;
    align-items: center;
    border: 1.5px solid transparent;
    transition: all 0.35s ease;
}

.service-variant.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff, rgba(184, 230, 51, 0.06));
}

.service-variant:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 40px -20px rgba(15, 20, 25, 0.2);
}

.service-variant-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-variant-name .featured-badge {
    font-size: 0.65rem;
    background: var(--accent);
    color: var(--dark);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.service-variant-desc {
    font-size: 0.9rem;
    color: #5a6470;
    margin: 0;
    line-height: 1.55;
}

.service-variant-includes {
    font-size: 0.85rem;
    color: #4a5560;
    line-height: 1.7;
}

.service-variant-includes strong {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    color: #8a9099;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-variant-price {
    text-align: right;
}
.service-variant-price small {
    color: #8a9099;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.2rem;
}
.service-variant-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
}

/* FAQ accordion */
.service-faq {
    background: #F4F3EE;
    padding: 4rem 4rem 6rem;
}
.service-faq-inner { max-width: 880px; margin: 0 auto; }

.service-faq-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 3rem;
    letter-spacing: -0.01em;
}

.faq-item {
    border-bottom: 1px solid rgba(15, 20, 25, 0.1);
    transition: border-color 0.3s ease;
}
.faq-item:first-child { border-top: 1px solid rgba(15, 20, 25, 0.1); }

.faq-question {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    transition: color 0.25s ease;
}

.faq-question:hover { color: var(--accent-dark); }

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 20, 25, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
    background: var(--accent);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-answer-inner {
    padding: 0 0 1.75rem;
    color: #4a5560;
    line-height: 1.75;
    font-size: 0.98rem;
}

.faq-answer-inner p { margin: 0 0 1rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* Service-to-service navigation (Prev / Next) */
.service-nav {
    background: var(--dark);
    color: #fff;
    padding: 4rem;
}
.service-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-nav-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-nav-card:hover {
    background: rgba(184, 230, 51, 0.08);
    border-color: rgba(184, 230, 51, 0.3);
    color: #fff;
    transform: translateY(-3px);
}

.service-nav-card.next { flex-direction: row-reverse; text-align: right; }

.service-nav-card .arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-nav-card:hover .arrow {
    background: var(--accent);
    color: var(--dark);
}

.service-nav-card .arrow.prev:hover { transform: translateX(-4px); }
.service-nav-card .arrow.next:hover { transform: translateX(4px); }

.service-nav-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: block;
}

.service-nav-card .name {
    font-size: 1.25rem;
    font-weight: 800;
}

.service-nav-card.placeholder {
    pointer-events: none;
    opacity: 0.4;
}

/* =================================================================
   SERVICE DETAIL PAGE RESPONSIVE
   ================================================================= */
@media (max-width: 991px) {
    .service-hero { padding: 7rem 1.5rem 0; }
    .service-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
    .service-hero-meta { gap: 1.5rem; }

    .service-about { padding: 3rem 1.5rem 1rem; }
    .service-about-inner { grid-template-columns: 1fr; gap: 1rem; }

    .service-process { padding: 4rem 1.5rem; }
    .service-process-grid { grid-template-columns: 1fr; gap: 1rem; }

    .service-pricing { padding: 3rem 1.5rem 4rem; }
    .service-variant { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
    .service-variant-price { text-align: left; }

    .service-faq { padding: 3rem 1.5rem 4rem; }

    .service-nav { padding: 3rem 1.5rem; }
    .service-nav-inner { grid-template-columns: 1fr; }
    .service-nav-card { padding: 1.25rem 1.5rem; }
    .service-nav-card.next { flex-direction: row; text-align: left; }
}



/* =================================================================
   SERVICES — 3-card carousel
   ================================================================= */
.services-section {
    background: #F4F3EE;
    padding: 4rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.services-heading {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    color: var(--dark);
    max-width: 900px;
    margin: 0 auto 6rem;
    line-height: 1.35;
    padding: 0 2rem;
    letter-spacing: -0.01em;
    min-height: 5rem;
    transition: opacity 0.35s ease;
}

.services-heading.is-changing {
    opacity: 0.3;
}

/* Wrapper holds both the floating preview image AND the cards. */
.services-stage {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 4rem 0;
    position: relative;
}

/* Shared image container floating ABOVE the active card */
.services-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    aspect-ratio: 4/3;
    border-radius: 14px;
    overflow: hidden;
    background: #f0efea;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 20px 50px -20px rgba(15, 20, 25, 0.4);
    will-change: transform, opacity, left, top;
}

.services-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.services-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.service-card.is-active {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -25px rgba(15, 20, 25, 0.3);
}

/* NUMBER — visible by default, collapses on hover */
.service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--accent);
    color: var(--dark);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: opacity 0.35s ease, max-height 0.4s ease, margin 0.4s ease;
    max-height: 52px;
    flex-shrink: 0;
}

.service-card.is-active .service-num {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* TITLE — visible by default, pushed to bottom of card */
.service-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin: auto 0 0.75rem 0; /* auto-top pushes title down */
    transition: margin 0.4s ease, color 0.3s ease;
}

.service-card.is-active .service-title {
    margin-bottom: 1rem;
}

/* DESCRIPTION — visible by default and on hover */
.service-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #5a6470;
    opacity: 1;
    max-height: 200px;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.5s ease, margin 0.4s ease;
}

.service-card.is-active .service-desc {
    margin-bottom: 1rem;
}

/* CTA — hidden by default, shown on hover */
.service-cta {
    opacity: 0;
    max-height: 0;
    transform: translateY(8px);
    overflow: hidden;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.5s ease;
    pointer-events: none;
    padding: 5px;
}

.service-card.is-active .service-cta {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
    pointer-events: auto;
}

.service-cta .pill-btn {
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    font-size: 0.9rem;
}

.service-cta .pill-btn-icon {
    width: 36px;
    height: 36px;
}



/* =================================================================
   RESPONSIVE FIXES v2 — Eleven studio
   Patch pro problémy s responzivitou.
   DŮLEŽITÉ: vložit ÚPLNĚ NA KONEC main.css (po druhé "SERVICES — 3-card carousel"
   sekci, která duplicitně přepisuje původní mobile breakpoint).
   ================================================================= */

/* =================================================================
   0) SERVICES SECTION — FORCE 1 COLUMN NA MOBILU
   V main.css je services blok definován 2x, druhá definice
   přepisuje mobilní media query. Tady to natvrdo opravíme.
   ================================================================= */

@media (max-width: 991px) {
    .services-section .services-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .services-section .service-card {
        min-height: 0 !important;
    }

    /* Preview obrázek na mobilu nedává smysl */
    .services-section .services-preview {
        display: none !important;
    }

    /* Aktivní stav (= obsah hover stavu) musí být vždy vidět na mobilu */
    .services-section .service-desc {
        opacity: 1 !important;
        max-height: none !important;
        margin: 1rem 0 1.25rem !important;
    }

    .services-section .service-cta {
        opacity: 1 !important;
        max-height: none !important;
        transform: none !important;
        pointer-events: auto !important;
        overflow: visible !important;
        margin: 0 !important;
    }

    .services-section .services-stage {
        padding: 0 1.25rem !important;
    }
}

/* =================================================================
   1) TABLET RANGE (768px - 991px)
   ================================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .squares {
        left: auto;
        right: 5%;
        bottom: -60px;
        grid-template-columns: repeat(3, 60px);
        grid-template-rows: repeat(3, 60px);
    }

    .contact-strip {
        margin-top: 0;
        margin-left: 0;
        padding: 2rem;
        justify-content: flex-start;
        gap: 2.5rem;
        min-height: 0;
    }

    /* Services tablet — 2 sloupce vypadají líp než 1 nebo 3 */
    .services-section .services-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .service-cta .pill-btn {
        padding: 0.35rem 0.35rem 0.35rem 1rem;
        font-size: 0.8rem;
    }

    .service-cta .pill-btn-icon {
        width: 32px;
        height: 32px;
    }

    .service-title {
        font-size: 1.2rem;
    }
}

/* =================================================================
   2) MOBILE RANGE (max 767px)
   ================================================================= */

@media (max-width: 767px) {

    /* ----- HERO ----- */
    .hero {
        min-height: auto;
        padding-bottom: 4rem;
    }

    .squares {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 2rem auto 0;
        grid-template-columns: repeat(3, 48px);
        grid-template-rows: repeat(3, 48px);
        justify-content: center;
    }

    .hero-content {
        padding: 8rem 1.5rem 2rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .scroll-circle {
        width: 52px;
        height: 52px;
    }

    .scroll-cta {
        font-size: 0.75rem;
        gap: 1rem;
    }

    /* ----- CONTACT STRIP ----- */
    .contact-strip {
        margin-top: 0;
        margin-left: 0;
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 0;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }

    .contact-value {
        font-size: 0.95rem;
        word-break: break-all;
    }

    /* ----- SECTION SCROLL OFFSET (fixed nav) ----- */
    section[id] {
        scroll-margin-top: 80px;
    }

    /* ----- SERVICES MOBILE ----- */
    .services-section {
        padding: 3rem 0 4rem;
    }

    .services-section .services-heading {
        padding: 0 1.25rem !important;
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
        min-height: 0 !important;
    }

    .services-section .service-card {
        padding: 1.5rem 1.25rem !important;
        border-radius: 14px !important;
    }

    .services-section .service-num {
        width: 44px !important;
        height: 44px !important;
        font-size: 1rem !important;
        max-height: 44px !important;
    }

    .services-section .service-title {
        font-size: 1.2rem !important;
        margin: 1rem 0 0.75rem !important;
    }

    .services-section .service-desc {
        font-size: 0.9rem !important;
    }

    .services-section .service-cta .pill-btn {
        padding: 0.4rem 0.4rem 0.4rem 1.25rem;
        font-size: 0.85rem;
        max-width: 100%;
    }

    .services-section .service-cta .pill-btn-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .services-section .service-cta .pill-btn-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    /* ----- PRICING ----- */
    .pricing-card {
        grid-template-columns: 1fr !important;
        padding: 2rem 1.25rem !important;
        gap: 1.25rem !important;
    }

    .pricing-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }

    .pricing-cta .pill-btn {
        width: auto;
        max-width: 100%;
    }

    .pricing-price {
        white-space: normal;
        font-size: 1rem;
        display: flex;
        align-items: baseline;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .pricing-price .price-num {
        font-size: 1.4rem;
        word-break: keep-all;
    }

    .pricing-price small {
        margin-right: 0;
    }

    .pricing-features {
        margin: 0;
    }

    .pricing-features li {
        font-size: 0.88rem;
    }

    .pricing-name {
        font-size: 1.25rem;
    }

    .pricing-eyebrow {
        font-size: 1.2rem;
    }

    /* ----- REVIEWS ----- */
    .reviews-section {
        padding: 4rem 0 5rem;
    }

    .reviews-heading {
        padding: 0 1.25rem;
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .reviews-track {
        padding: 0 1.25rem;
        gap: 1rem;
    }

    .review-card {
        flex: 0 0 calc(100vw - 2.5rem) !important;
        max-width: calc(100vw - 2.5rem);
        min-height: 0;
        padding: 1.5rem 1.25rem;
    }

    .review-card-rating-card {
        min-height: 280px;
    }

    .review-text {
        font-size: 0.88rem;
        line-height: 1.65;
        padding-bottom: 1.5rem;
    }

    .review-rating-big {
        font-size: 2rem;
    }

    .review-avatars {
        margin-bottom: 1.5rem;
    }

    .reviews-controls {
        margin-top: 1.5rem;
        padding: 0 1.25rem;
    }

    .review-arrow {
        width: 48px;
        height: 48px;
    }

    /* ----- CONTACT ----- */
    .contact-section {
        padding: 5rem 1.25rem 4rem;
        scroll-margin-top: 80px;
    }

    .contact-heading {
        font-size: 1.5rem;
        line-height: 1.3;
        margin: 0 0 2.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-input,
    .form-textarea {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .contact-side-row {
        gap: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .contact-side-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .contact-side-value {
        font-size: 1rem;
        word-break: break-all;
    }
}

/* =================================================================
   3) VERY SMALL MOBILE (max 420px)
   ================================================================= */

@media (max-width: 420px) {

    .pricing-section {
        padding: 4rem 1rem 4rem;
    }

    .pricing-card {
        padding: 1.75rem 1rem !important;
    }

    .pricing-price .price-num {
        font-size: 1.25rem;
    }

    .pricing-cta .pill-btn {
        padding: 0.4rem 0.4rem 0.4rem 1.1rem;
        font-size: 0.82rem;
    }

    .pricing-cta .pill-btn-icon {
        width: 30px;
        height: 30px;
    }

    .pricing-features li {
        font-size: 0.85rem;
        line-height: 1.55;
    }

    .review-card {
        flex: 0 0 calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem);
        padding: 1.25rem 1rem;
    }

    .reviews-track {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .reviews-heading {
        padding: 0 1rem;
    }

    .review-text {
        font-size: 0.85rem;
    }

    .contact-section {
        padding: 4rem 1rem 3rem;
    }

    .contact-heading {
        font-size: 1.35rem;
    }

    .form-row {
        gap: 0.75rem;
    }

    .services-section {
        padding: 3rem 0 4rem;
    }

    .services-section .services-stage {
        padding: 0 1rem !important;
    }

    .services-section .services-heading {
        padding: 0 1rem !important;
        font-size: 1.35rem !important;
        margin-bottom: 2rem !important;
    }

    .services-section .service-card {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
    }

    .services-section .service-title {
        font-size: 1.1rem !important;
    }

    .services-section .service-cta .pill-btn-label {
        max-width: 160px;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 6rem 1.25rem 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .scroll-cta {
        gap: 0.85rem;
        font-size: 0.7rem;
    }

    .scroll-circle {
        width: 46px;
        height: 46px;
    }

    .about-section {
        padding: 3rem 1rem 4rem;
    }

    .about-heading {
        font-size: 1.4rem;
        padding-left: 0;
        margin-bottom: 2rem;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .aboutme-section {
        padding: 3rem 1rem 4rem;
    }

    .aboutme-heading {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .aboutme-quote {
        padding: 2rem 1.25rem 1.5rem;
    }

    .benefits-track {
        padding: 0 1rem;
    }

    .benefit-card {
        flex: 0 0 260px;
    }

    .refs-header {
        padding: 0 1rem;
    }

    .refs-title {
        font-size: 1.5rem;
    }

    .refs-track {
        padding: 0 1rem;
    }

    .ref-card {
        flex: 0 0 220px;
    }

    .refs-footer {
        padding: 1.5rem 1rem 0;
    }
}

/* =================================================================
   4) UNIVERSAL FIXES (všechna rozlišení)
   ================================================================= */

.pill-btn {
    max-width: 100%;
    box-sizing: border-box;
}

.pill-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-price {
    flex-wrap: wrap;
}

.form-input,
.form-textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.reviews-track,
.refs-track,
.benefits-track {
    max-width: 100vw;
}

.service-cta .pill-btn {
    max-width: 100%;
    box-sizing: border-box;
}

.service-cta .pill-btn-label {
    flex-shrink: 1;
    min-width: 0;
}

/* Pojistka proti horizontálnímu scrollu kdekoli */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}