
:root {
    --primary: #10b981; /* emerald-500 */
    --secondary: #064e3b; /* emerald-900 */
}

/* header shrink shadow handled by JS toggling .is-scrolled */
header.is-scrolled {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

/* reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

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

/* subtle card hover */
.card {
    transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    transform: translateY(-2px);
    transition: .3s
}

/* focus rings to match brand */
.ring-brand:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .35);
}

/* dots in testimonials */
.dot {
    width: .75rem;
    height: .75rem;
    border-radius: 9999px;
    background: #d1d5db;
    transition: background .2s ease, transform .2s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.1);
}

/* hero pattern */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}


/* ============== TESTIMONIALS ============== */
.testimonials {
    background: #ecfdf5
}

/* emerald-50 */
.testimonials-grid {
    display: grid;
    grid-template-columns:1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns:repeat(3, 1fr)
    }
}

.t-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
    transition: transform .3s ease, box-shadow .3s ease;

    display: flex;
    flex-direction: column;
}

.t-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow)
}

.t-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem
}

.t-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    overflow: hidden;
    flex: none;
    background: #f3f4f6;
}

.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.t-name {
    font-weight: 700
}

.t-role {
    font-size: .85rem;
    color: var(--muted)
}

.t-quote {
    color: var(--muted);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.t-stars {
    display: flex;
    gap: .25rem;
    margin-top: auto;
    color: #f59e0b
}

/* amber-500 */

/* Buttons */
.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: .85rem 1.25rem;
    border-radius: .75rem;
    font-size: .95rem;
    transition: filter .2s ease, transform .15s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(16, 185, 129, .25);
}

.btn-primary:hover {
    filter: brightness(1.05)
}

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

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

/* Simple responsive image fallback */
img[data-fallback="1"] {
    background: #f3f4f6;
    display: block
}


:root {
    --primary: #10b981; /* emerald-500 */
    --primary-600: #059669; /* emerald-600 */
    --primary-400: #34d399; /* emerald-400 */
    --secondary: #064e3b;
    --bg: #ffffff;
    --muted: #6b7280; /* gray-500 */
    --text: #111827; /* gray-900 */
    --card: #ffffff;
    --card-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
    --ring: rgba(255, 255, 255, 0.6);
    --anim-duration: .6s;
}

/* Global reset-ish */
* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h2 {
    margin: 0 0 .75rem
}

p {
    margin: 0
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Utilities */
.section {
    padding: 5rem 0
}

@media (min-width: 768px) {
    .section {
        padding: 5.5rem 0
    }
}

.center {
    text-align: center
}

.muted {
    color: var(--muted)
}

/* Simple intersection animations (Framer-like) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--anim-duration) ease, transform var(--anim-duration) ease
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0)
}

/*.stagger > *{opacity:0; transform:translateY(24px)}*/
.stagger.in-view > * {
    animation: rise var(--anim-duration) ease forwards;
}

.stagger.in-view > *:nth-child(1) {
    animation-delay: .05s
}

.stagger.in-view > *:nth-child(2) {
    animation-delay: .15s
}

.stagger.in-view > *:nth-child(3) {
    animation-delay: .25s
}

.stagger.in-view > *:nth-child(4) {
    animation-delay: .35s
}

.stagger.in-view > *:nth-child(5) {
    animation-delay: .45s
}

.stagger.in-view > *:nth-child(6) {
    animation-delay: .55s
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Section headers with gradient underline */
.headline {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.headline span {
    color: var(--primary)
}

.headline--xl {
    font-size: 2.25rem
}

.headline--lg {
    font-size: 2rem
}

@media (min-width: 768px) {
    .headline--xl {
        font-size: 3rem
    }

    .headline--lg {
        font-size: 2.25rem
    }
}

.headline-underline {
    position: relative;
    display: inline-block;
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
}

.headline-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 6rem;
    height: .4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-400), var(--primary-600));
}

.fade-in-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp .45s ease forwards
}

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


.section7 {
    padding: 8rem 0 !important;
}

.h-48 {
    height: 14rem !important;
}

html {
    scroll-behavior: smooth;
}

@media screen and (min-width: 1300px) {
    .subhead {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.logo-track {
    animation-duration: 60s !important; /* was 28s */
}

/* ===== Client logo marquee styles ===== */
.logo-marquee {
    --gap: 3rem;
    --item-w: 180px;
    --item-h: 56px;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: var(--gap);
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

.logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--item-w);
    height: var(--item-h);
    flex: 0 0 auto;
    color: #9ca3af; /* gray-400 */
    opacity: .95;
    transition: transform .25s ease, color .25s ease, opacity .25s ease;
    filter: grayscale(100%);
}

.logo-item svg {
    width: 100%;
    height: 100%;
}

.logo-item:hover {
    transform: translateY(-2px) scale(1.02);
    color: #6b7280; /* gray-500 */
    opacity: 1;
    filter: grayscale(0%);
}

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

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

/* Responsive tweaks */
@media (max-width: 640px) {
    .logo-marquee {
        --gap: 1.75rem;
        --item-w: 140px;
        --item-h: 48px;
    }
}

@media (min-width: 1280px) {
    .logo-marquee {
        --gap: 3.5rem;
        --item-w: 200px;
        --item-h: 64px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }
}

@media screen and (max-width: 1200px) {
    .jak-to-probiha {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    .jak-to-probiha2 {
        display: none;
    }
}


     /* --- Counter #1 --- */
@property --num {
    syntax: "<integer>";
    initial-value: 0;
    inherits: false;
}
#counter #projects {
    transition: --num 5s;
    counter-set: num var(--num);
}

#counter #projects::after {
    content: counter(num);
}

.show-count {
    --num: 50;
}

/* cílová hodnota */

/* --- Counter #2 --- */
@property --numB {
    syntax: "<integer>";
    initial-value: 0;
    inherits: false;
}
#counter #lines {
    transition: --numB 5s;
    counter-set: numB var(--numB);
}

#counter #lines::after {
    content: counter(numB);
}

.show-count-lines {
    --numB: 274000;
}

/* --- Counter #3 --- */
@property --numC {
    syntax: "<integer>";
    initial-value: 200;
    inherits: false;
}
#counter #days {
    transition: --numC 5s;
    counter-set: numC var(--numC);
}

#counter #days::after {
    content: counter(numC);
}

.show-count-days {
    --numC: 57;
}

/* --- Counter #4 (clients) --- */
@property --numD {
    syntax: "<integer>";
    initial-value: 0;
    inherits: false;
}
#counter #clients {
    transition: --numD 5s;
    counter-set: numD var(--numD);
}

#counter #clients::after {
    content: counter(numD);
}

.show-count-clients {
    --numD: 30;
}

/* cílová hodnota – změň podle potřeby */


:root {
    --num: 50;
    --numB: 274000;
    --numC: 57;
    --numD: 30;
}

@media screen and (max-width: 480px) {
    #counter #projects::after {
        content: '50';
    }

    #counter #lines::after {
        content: '274000';
    }

    #counter #days::after {
        content: '57';
    }

    #counter #clients::after {
        content: '30';
    }
}



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

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* tabs (process) */
#spoluprace .step-chip {
    display: block;
    width: 100%;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    transition: all .2s ease;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

#spoluprace .step-chip .chip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 44px;
    font-weight: 700;
    font-size: .92rem;
}

#spoluprace .step-chip:hover {
    background: #f9fafb
}

#spoluprace .step-chip.active,
#spoluprace .step-chip:focus-visible {
    color: #fff;
    border-color: transparent;
    background: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .35);
}

#spoluprace .step-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, .06);
}

/* week pills (right column) */
#spoluprace .week-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 800;
    font-size: .9rem;
    transition: all .2s ease;
}

#spoluprace .week-pill:hover {
    background: #f9fafb
}

#spoluprace .week-pill.active,
#spoluprace .week-pill:focus-visible {
    color: #fff;
    background: var(--primary);
    border-color: transparent;
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .35);
}

#spoluprace .week-card {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(16, 185, 129, .06);
}

#spoluprace .week-card .w-title {
    font-weight: 800;
    color: #111827;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

#spoluprace .week-card .w-title i {
    color: var(--primary);
}

#spoluprace .week-card .w-list {
    color: #6b7280;
    font-size: .95rem;
}

#spoluprace .week-card .w-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

#spoluprace .week-card .w-list i {
    color: #10b981;
}

/* impact tiles */
#spoluprace .impact-tile {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(16, 185, 129, .06);
    text-align: center;
}

#spoluprace .impact-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

#spoluprace .impact-label {
    margin-top: .25rem;
    font-size: .85rem;
    color: #6b7280;
    display: flex;
    gap: .4rem;
    align-items: center;
    justify-content: center;
}

#spoluprace .hidden {
    display: none !important;
}


/* === Fix mobile overflow & left gap for flowing BG lines (<768px) === */
@media (max-width: 767px) {
    /* Pull the background container closer and reduce bottom depth to avoid huge white gap */
    #spoluprace-v2 > .absolute[aria-hidden="true"],
    #spoluprace > .absolute[aria-hidden="true"] {
        top: -12px !important;
        bottom: -260px !important; /* was much deeper; tighten on mobile */
        left: 0 !important;
        right: 0 !important;
    }

    /* Make the SVG fit the viewport width and stop the big left overflow */
    #spoluprace-v2 > .absolute[aria-hidden="true"] > svg,
    #spoluprace > .absolute[aria-hidden="true"] > svg {
        width: 100vw !important; /* was ~190% */
        max-width: none !important;
        left: 0 !important; /* was 50% */
        transform: none !important; /* remove translateX(-50%) */
    }

    /* Slightly thinner strokes on small screens for a cleaner look */
    #spoluprace-v2 > .absolute[aria-hidden="true"] > svg path,
    #spoluprace > .absolute[aria-hidden="true"] > svg path {
        stroke-width: 5.5 !important;
    }
}

/* === Active section highlight in desktop menu === */
@media (max-width: 650px) {
    #floatingContact {
        display: none;
    }
}
@media (min-width: 768px) {
    header nav a {
        transition: color .25s ease, text-shadow .25s ease, transform .25s ease;
        text-decoration: none !important; /* ensure no underline */
    }

    header nav a.is-active {
        color: var(--primary) !important; /* green */
        text-shadow: 0 0 .35em rgba(16, 185, 129, .35); /* soft glow */
        transform: translateY(-1px); /* tiny lift */
    }
}



.group:hover .group-hover\:text-emerald-50\/50{
    color: inherit !important;
}