/* Variables - Extracted from design */
:root {
    --riff-green: #718376;
    --riff-green-light: #9ab0a0;
    --riff-purple: #8d88a8;
    --riff-beige: #d4c5b3;
    --riff-skin: #a57e50;
    --riff-dark: #2c2c2c;
    --riff-white: #fdfbfb;
    --text-white: #fdfbfb;
    --text-dark: #2c2c2c;
    --text-white: #fdfbfb;
    --bg-watercolor: linear-gradient(135deg, #fdfbfb 0%, #f6f3f0 100%);
}

/* Typography */
.font-josefin {
    font-family: 'Josefin Sans', sans-serif;
}

.font-jost {
    font-family: 'Jost', sans-serif;
}

.font-opensans {
    font-family: 'Open Sans', sans-serif;
}

.tracking-wide {
    letter-spacing: 2px;
}

.fs-7 {
    font-size: 0.85rem;
}

.cms-cropped-image {
    display: block;
    width: 100%;
    background-repeat: no-repeat;
    background-color: #f6f3f0;
}

/* Custom Colors & Backgrounds */
.bg-riff-green { background-color: var(--riff-green) !important; color: white; }
.bg-riff-green-light { background-color: var(--riff-green-light) !important; color: white; }
.bg-riff-purple { background-color: var(--riff-purple) !important; color: white; }
.bg-riff-beige { background-color: var(--riff-beige) !important; }
.bg-riff-skin { background-color: var(--riff-skin) !important; }
.bg-riff-dark { background-color: var(--riff-dark) !important; color: white; }
.bg-riff-white { background-color: var(--riff-white) !important; color: var(--riff-dark); }


/* Overlapping Logo - SVG Version */
.logo-overlap {
    z-index: 1040;
    display: block;
    width: 160px; /* Upravte podle potřeby šířky loga na mobilu */
    transition: all 0.3s ease;
    line-height: 0; /* Odstraní případnou mezeru pod obrázkem */
}

.logo-overlap img {
    display: block;
    width: 100%;
    height: auto;
}

/* Desktop zobrazení s přesahem */
@media (min-width: 992px) {
    .logo-overlap {
        position: absolute;
        top: 0;
        left: 12px; /* Zarovnání s vnitřním okrajem kontejneru */
        width: 220px; /* Šířka loga na desktopu, aby vytvořilo výrazný přesah */
    }
}

/* Buttons */
.btn-riff-green {
    background-color: var(--riff-green);
    color: white;
    border: none;
    transition: opacity 0.3s ease;
}
.btn-riff-green:hover { background-color: #5c6c61; color: white; }

.btn-riff-purple {
    background-color: var(--riff-purple);
    color: white;
    border: none;
    transition: opacity 0.3s ease;
}
.btn-riff-purple:hover { background-color: #726e8a; color: white; }

/* Dark Button */
.btn-riff-dark {
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #2c2c2c;
    transition: all 0.3s ease;
}

.btn-riff-dark:hover,
.btn-riff-dark:focus,
.btn-riff-dark:active {
    background-color: #a57e50;
    border-color: #a57e50;
    color: #ffffff;
}

.btn-riff-white {
    background-color: #fdfbfb;
    color: #2c2c2c;
    border: 1px solid #fdfbfb;
    transition: all 0.3s ease;
}

.btn-riff-white:hover,
.btn-riff-white:focus,
.btn-riff-white:active {
    background-color: #a57e50;
    border-color: #a57e50;
    color: #ffffff;
}



/* Hero Section */
.hero-section {
    min-height: 80vh;
    /* Simulated watercolor & photo background */
    background: linear-gradient(to right, #ffffff1a, #ffffff1a, #f6f3f0f2 70%),
                var(--hero-image, url('../images/hero8.jpg')) no-repeat var(--hero-bg-position, left top) / var(--hero-bg-size, cover);
    background-size: cover;
}

/* Hero Section H1 - Max Bold */
.hero-section h1 {
    font-weight: 700 !important; /* 700 je maximum pro Josefin Sans */
    letter-spacing: -0.5px;      /* Lehké stažení mezer pro kompaktnější vzhled tučného textu */
}

/* Pokud chceš ztučnit i to konkrétní slovo v <span> uvnitř H1 */
.hero-section h1 strong {
    font-weight: 700 !important;
}



/* Soft Mask Images (simulating blurred edge/watercolor transition) */
.soft-mask {
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 100%);
}

.bg-light-watercolor {
    background: var(--bg-watercolor);
}

.bg-watercolor-subtle {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f6f5 50%, #f0ebed 100%);
}

.bg-watercolor-bottom {
    background: linear-gradient(to bottom, #f0ebed 0%, #e2dfec 100%);
}

/* Why Us Section */
.why-us-section {
    min-height: 60vh;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(246, 243, 240, 0.95) 60%),
                url('../images/img6.jpg') no-repeat right center;
    background-size: cover;
}

/* Subpages */
.subpage-header {
    min-height: 280px;
    padding: 4.75rem 0 4rem;
    background:
        radial-gradient(circle at 84% 20%, rgba(141, 136, 168, 0.18) 0, rgba(141, 136, 168, 0) 30%),
        linear-gradient(135deg, #fdfbfb 0%, #f4efe9 48%, #e5ded5 100%);
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
}

.subpage-header h1 {
    max-width: 760px;
    font-size: clamp(2.1rem, 4vw, 3.45rem);
    font-weight: 700;
    line-height: 1.08;
}

.subpage-header .lead {
    max-width: 520px;
    font-size: 1.08rem;
    line-height: 1.65;
}

.subpage-header-mark {
    position: absolute;
    right: clamp(1rem, 8vw, 8rem);
    top: 20%;
    width: clamp(180px, 24vw, 340px);
    aspect-ratio: 1;
    transform: translateY(-50%) rotate(-12deg);
    background: url('../images/transparent-logo.svg') no-repeat center / contain;
    opacity: 0.08;
    filter: invert(1);
    pointer-events: none;
}

.image-brief {
    min-height: 420px;
    background: linear-gradient(135deg, #d8d8d8 0%, #bcbcbc 100%);
    color: #343434;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid rgba(44, 44, 44, 0.08);
}

.image-brief-compact {
    min-height: 320px;
}

.image-brief-label {
    display: inline-block;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-brief p {
    max-width: 36rem;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.6;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(44, 44, 44, 0.08);
    box-shadow: 0 18px 45px rgba(44, 44, 44, 0.08);
}

.service-card-accent {
    background: #f4efe9;
}

.service-number {
    color: var(--riff-skin);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.service-card li {
    padding-top: 0.65rem;
    line-height: 1.45;
}

.service-card i {
    color: var(--riff-green);
}

.approach-list {
    border-top: 1px solid rgba(44, 44, 44, 0.16);
}

.approach-item {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1.25rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.16);
}

.approach-item span {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 50%;
    background: var(--riff-green);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.approach-item h3 {
    margin: 0 0 0.35rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--text-dark);
}

.approach-item p {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    color: #6c757d;
    line-height: 1.6;
}

.expectation-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.expectation-list li:last-child {
    border-bottom: 0;
}

.focus-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    line-height: 1.45;
}

.focus-list li:last-child {
    border-bottom: 0;
}

.focus-list i {
    color: var(--riff-green);
}

.services-cta {
    background: linear-gradient(to bottom, #ffffff 0%, #f6f3f0 100%);
}

.job-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 44, 44, 0.08);
    box-shadow: 0 18px 45px rgba(44, 44, 44, 0.08);
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
    color: #6c757d;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.92rem;
}

.job-tag {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: #f4efe9;
    color: var(--text-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
}

.job-empty {
    padding: 1.5rem;
    border-left: 4px solid var(--riff-green);
    background: rgba(255, 255, 255, 0.62);
}

.job-detail-content,
.job-sidebar {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(44, 44, 44, 0.08);
    box-shadow: 0 18px 45px rgba(44, 44, 44, 0.06);
}

.job-sidebar {
    position: static;
}

.job-summary {
    margin: 0 0 1.5rem;
}

.job-summary div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.job-summary dt {
    color: #6c757d;
    font-weight: 600;
}

.job-summary dd {
    margin: 0;
    color: var(--text-dark);
    text-align: right;
    font-weight: 700;
}

.contact-info-panel,
.contact-form-card {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(44, 44, 44, 0.08);
    box-shadow: 0 18px 45px rgba(44, 44, 44, 0.06);
}

.contact-info-panel li {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

.contact-info-panel li:last-child {
    border-bottom: 0;
}

.contact-info-panel i {
    color: var(--riff-green);
}

.contact-form-card .form-control {
    min-height: 3rem;
    border-color: rgba(44, 44, 44, 0.16);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
}

.contact-form-card textarea.form-control {
    min-height: 10rem;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-check-input:focus {
    border-color: var(--riff-green);
    box-shadow: 0 0 0 0.2rem rgba(113, 131, 118, 0.18);
}

.contact-form-card .form-check-input:checked {
    background-color: var(--riff-green);
    border-color: var(--riff-green);
}

/* Process Chevrons */
.chevron-step {
    position: relative;
    /* Basic styling for mobile - fallback without clip-path */
    border-radius: 4px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .chevron-step {
        margin-bottom: 0;
        border-radius: 0;
        /* Arrow shape using clip-path */
        clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%, 10% 50%);
        margin-left: -20px; /* Overlap effect */
        padding-left: 2.5rem !important; /* Adjust text padding due to chevron indent */
    }
    
    /* First item flat on left */
    .chevron-step:first-child {
        clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
        margin-left: 0;
        padding-left: 1.5rem !important;
    }
    
    /* Last item flat on right */
    .chevron-step:last-child {
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10% 50%);
    }
}

/* Nav Link Hover */
.navbar-nav .nav-link {
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--riff-green);
}

.navbar-brand img {
    display: block;
    width: auto;
    max-width: min(290px, 58vw);
    height: 100px;
    object-fit: contain;
}


/* Animace boxů - skrytý stav */
.slide-hidden-left {
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out;
}

.slide-hidden-right {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease-out;
}

/* Animace boxů - viditelný stav (aktivováno přes JS) */
.slide-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 767.98px) {
    .navbar {
        min-height: 88px;
    }

    .navbar > .container {
        min-height: 88px;
        align-items: center;
        flex-wrap: wrap;
    }

    .navbar-brand img {
        max-width: min(250px, 64vw);
        height: 76px;
    }

    .navbar-toggler {
        flex: 0 0 auto;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: 0.75rem;
        padding: 0.75rem 0 0.95rem !important;
        border-top: 1px solid rgba(44, 44, 44, 0.08);
        background: #fff;
    }

    .navbar-nav {
        align-items: stretch !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        margin-left: 0 !important;
    }

    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 0.65rem 0;
        text-align: left;
    }

    .navbar-nav .nav-item.border-start {
        border-left: 0 !important;
        padding-left: 0 !important;
        margin-top: 0.25rem;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(44, 44, 44, 0.08);
    }

    .navbar-nav .nav-item.border-start .nav-link {
        display: inline-block;
        width: auto;
        padding-right: 0.5rem;
    }

    .hero-section {
        min-height: calc(100svh - 88px);
        text-align: left;
        align-items: flex-end !important;
        overflow: hidden;
    }

    .subpage-header {
        min-height: 230px;
        padding: 3.25rem 0 3rem;
    }

    .hero-section {
        background:
            linear-gradient(to bottom, rgba(15, 17, 20, 0.48) 0%, rgba(15, 17, 20, 0.34) 42%, rgba(246, 243, 240, 0.76) 58%, rgba(246, 243, 240, 0.96) 100%),
            var(--hero-mobile-image, var(--hero-image, url('../images/hero-9-16.jpg'))) no-repeat var(--hero-mobile-bg-position, center top) / var(--hero-mobile-bg-size, cover);
    }

    .hero-section h1,
    .hero-section .lead {
        text-shadow: 0 1px 14px rgba(253, 251, 251, 0.86);
    }

    .hero-section .text-end {
        text-align: left !important;
    }

    .hero-section > .container {
        min-height: calc(100svh - 88px);
        display: flex;
        align-items: flex-end;
        padding-bottom: clamp(2rem, 8vh, 4.25rem);
    }

    .hero-section .row {
        width: 100%;
    }

    .hero-section .hero-content {
        padding-top: 50vh;
    }

    .hero-section h1 {
        margin-bottom: 1.15rem !important;
        font-size: clamp(1.75rem, 7vw, 2.25rem);
        line-height: 1.18;
    }

    .hero-section h1 span {
        display: block;
        margin-top: 0.45rem;
        font-size: clamp(1.1rem, 5vw, 1.35rem) !important;
        line-height: 1.25;
    }

    .hero-section .lead {
        margin-bottom: 2rem !important;
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.45;
    }

    .hero-section .btn {
        padding-inline: 1.35rem !important;
        white-space: nowrap;
    }

    .subpage-header h1 {
        font-size: 2rem;
    }

    .subpage-header .lead {
        font-size: 1rem;
    }

    .subpage-header-mark {
        right: -3rem;
        width: 220px;
        opacity: 0.06;
    }

    .image-brief,
    .image-brief-compact {
        min-height: 300px;
        padding: 1.35rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .job-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .job-card-action .btn {
        width: 100%;
    }

    .job-detail-content,
    .job-sidebar,
    .contact-info-panel,
    .contact-form-card {
        padding: 1.5rem;
    }

    .job-sidebar {
        position: static;
    }

    .approach-item {
        grid-template-columns: 2.8rem 1fr;
        gap: 0.9rem;
    }
}
