/* ====================================================
   NEW BLOCKS – Landing page visual update
   ==================================================== */

/* --------------------------------------------------
   Sdílené utility
   -------------------------------------------------- */
.digi-block h2 em,
.digi-block h2 strong {
    font-style: normal;
    font-weight: 700;
}

/* --------------------------------------------------
   1. Hero sekce – vizuální update
   -------------------------------------------------- */
.digi-hero-block .block-section {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section-bg {
    background-image: url('../img/mirik-doleva.png');
    background-size: cover;
    background-position: center;
}

.products-section-bg {
    background-image: url('../img/mirik-doprava.png');
    background-size: cover;
    background-position: center;
}

.digi-hero-block .steps-section {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 0;
}

.digi-hero-block .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 180px;
    text-align: center;
    gap: 0.5rem;
}

.digi-hero-block .step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: #8f74ef;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --------------------------------------------------
   2. Accordion steps – Jak plánovač funguje
   -------------------------------------------------- */
.digi-accordion-steps .accordion-steps-wrap {
    align-items: flex-start;
}

.accordion-step {
    border: 1px solid #e0e9e5;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    background: #fff;
}

.accordion-step__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.accordion-step__number {
    width: 2.25rem;
    height: 2.25rem;
    background: #8f74ef;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.accordion-step__title {
    flex: 1;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #1d1d1b;
}

.accordion-step__chevron {
    width: 1rem;
    height: 1rem;
    border-right: 2px solid #2f6d51;
    border-bottom: 2px solid #2f6d51;
    transform: rotate(45deg);
    display: inline-block;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: -4px;
}

.accordion-step__content {
    display: none;
    padding: 0 1.25rem 1rem 4.25rem;
    color: #1d1d1b;
    line-height: 1.6;
}

.accordion-step.is-active {
    background: #f0ebfc;
    border-color: #8f74ef;
}

.accordion-step.is-active .accordion-step__title {
    font-weight: 600;
    color: #2f6d51;
}

.accordion-step.is-active .accordion-step__chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.accordion-step.is-active .accordion-step__content {
    display: block;
}

/* Preview panel */
.accordion-step-preview {
    display: none;
    position: relative;
    border: 2px solid #2f6d51;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-step-preview.is-active {
    display: block;
}

.accordion-step-preview__label {
    position: absolute;
    top: 0;
    left: 0;
    background: #1d1d1b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-bottom-right-radius: 6px;
}

.accordion-step-preview__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
}

/* --------------------------------------------------
   3. Výstupy z plánovače
   -------------------------------------------------- */
.planner-outputs-grid {
    justify-content: center;
}

.planner-output-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.planner-output-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planner-output-card__icon img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.planner-output-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.planner-output-card__desc {
    font-size: 0.9rem;
    color: #1d1d1b;
    margin: 0;
    line-height: 1.6;
}

.planner-output-card__link {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    margin-top: auto;
    padding-top: 0.5rem;
    color: #8f74ef;
}

.planner-output-card__link:hover {
    opacity: 0.75;
}

/* Modal */
.planner-output-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.planner-output-modal.is-open {
    display: flex;
}

.planner-output-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.planner-output-modal__window {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.planner-output-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e9e5;
}

.planner-output-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2f6d51;
}

.planner-output-modal__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #1d1d1b;
    line-height: 1;
    padding: 0 0.25rem;
}

.planner-output-modal__body {
    padding: 1.5rem;
}

.planner-output-modal__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

body.modal-open {
    overflow: hidden;
}

/* --------------------------------------------------
   4. Výhody – toggle HOBBY/PROFI (dle Figma node 348:422)
   -------------------------------------------------- */
.digi-advantages .advantages-toggle {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.digi-advantages .advantages-toggle .toggle-btn {
    padding: 0;
    border: none;
    background: none;
    color: #8f74ef;
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-bottom: none;
    letter-spacing: 0;
    border-radius: 0;
    line-height: normal;
}

.digi-advantages .advantages-toggle .toggle-btn.active {
    background: none;
    color: #8f74ef;
    text-decoration: none;
}

/* Šipka dolů pod aktivní záložkou — SVG z Figmy */
.digi-advantages .advantages-toggle .toggle-btn.active::after {
    content: '' !important;
    display: block !important;
    width: 75px;
    height: 16px;
    background: url('../../img/arrow-down-purple.svg') no-repeat center;
    background-size: contain;
    margin-top: 2px;
    border: none;
}

.digi-advantages .advantages-toggle .toggle-btn:not(.active)::after {
    display: none !important;
    content: none !important;
}

.digi-advantages .advantages-toggle .toggle-btn::before {
    display: none !important;
    content: none !important;
}

.digi-advantages .advantages-toggle .toggle-btn:hover:not(.active) {
    background: none;
    opacity: 0.7;
}

/* Advantage items – dle Figma node 348:422 */

/* Override Foundation grid — přepíšeme na čistý flexbox */
.digi-advantages .grid-x[data-advantages] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px 50px !important;
    max-width: none;
    margin: 0 auto !important;
    padding: 5px;
    justify-content: center;
}

/* Zruš Foundation margin-x guttery */
.digi-advantages .grid-x.grid-margin-x[data-advantages] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.digi-advantages .grid-x[data-advantages] > .advantage-item.cell,
.digi-advantages .grid-x[data-advantages] > .advantage-item.cell.medium-6,
.digi-advantages .grid-margin-x[data-advantages] > .advantage-item.cell.medium-6 {
    flex: 0 0 calc(50% - 25px) !important;
    max-width: calc(50% - 25px) !important;
    width: calc(50% - 25px) !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.digi-advantages .advantage-item figure {
    flex-shrink: 0;
    width: 50px !important;
    height: 50px !important;
    margin: 0;
}

.digi-advantages .advantage-item figure img {
    width: 50px;
    height: auto;
    object-fit: contain;
}

.digi-advantages .advantage-item > .advantage-text {
    flex: 1 !important;
    min-width: 0;
    font-size: 16px;
    line-height: 22px;
    color: #212121;
    margin: 0;
}

.digi-advantages .advantage-item .advantage-text p {
    font-size: 16px;
    line-height: 22px;
    color: #212121;
    margin: 0;
}

.digi-advantages .advantage-item .advantage-text b,
.digi-advantages .advantage-item .advantage-text strong {
    font-size: 18px;
    line-height: 23px;
    font-weight: 600;
    color: #212121;
}

.digi-advantages .advantages-description {
    max-width: 512px;
    margin-left: auto;
    margin-right: auto;
}

.digi-advantages .advantages-description p {
    font-size: 16px;
    line-height: 22px;
    color: #212121;
}

@media (max-width: 639px) {
    .digi-advantages .grid-x[data-advantages] > .advantage-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Výhody grid – ikona vlevo, text vpravo */
.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.advantage-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-item__icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.advantage-item__text {
    flex: 1;
    line-height: 1.5;
}

.advantage-item__text strong {
    color: #1d1d1b;
}

/* --------------------------------------------------
   5. Galerie záhonů
   -------------------------------------------------- */
.gallery-beds-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.gallery-beds-slider__viewport {
    flex: 1;
    overflow: hidden;
}

.gallery-beds-slider__track {
    display: flex;
    transition: transform 0.35s ease;
}

.gallery-beds-slider__item {
    flex-shrink: 0;
    padding: 0 6px;
    box-sizing: border-box;
}

.gallery-beds-slider__item img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: 0;
}

.gallery-beds-slider__btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #2f6d51;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.gallery-beds-slider__btn:hover {
    opacity: 0.7;
}

.gallery-beds-slider__btn.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* --------------------------------------------------
   6. CTA sekce – vizuální update
   -------------------------------------------------- */
.digi-call-to-action-block {
    text-align: center;
}

/* --------------------------------------------------
   7. Bio / O mně – vizuální update (dle Figma node 86:784)
   -------------------------------------------------- */
.digi-about .card.personal-review {
    background: #fff;
    border: 1px solid #e0e9e5;
    box-shadow: 0px 4px 4px rgba(66, 70, 68, 0.15);
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.digi-about .card.personal-review p {
    line-height: 22px;
    font-size: 16px;
    color: #1d1d1b;
    margin-bottom: 0;
}

.digi-about .card.personal-review h2,
.digi-about .card.personal-review h3 {
    font-size: 32px;
    line-height: 40px;
    color: #1d1d1b;
    margin-top: 0;
    margin-bottom: 0;
    border-top: 0;
}

.digi-about .card.personal-review a,
.digi-about .about-gallery-link a {
    color: #8f74ef !important;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: underline;
}

.digi-about .about-gallery-link {
    margin-top: 0;
    margin-bottom: 0;
}

/* --------------------------------------------------
   8. Reference – 3-sloupcový layout desktop
   -------------------------------------------------- */
.digi-reviews .reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.digi-reviews .reviews-grid .card.review {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 240px;
}

.digi-reviews .card.review {
    padding: 1.25rem;
}

.digi-reviews .card.review .border {
    height: 1px;
    background: #2f6d51;
    margin: 0.5rem 0;
}

/* --------------------------------------------------
   9. Ceníky – pricing cards (dle Figma node 86:830)
   -------------------------------------------------- */
.digi-products .product-card {
    border: 1px solid #2f6d51;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Zelený header → bílý, subtitle pod názvem */
.digi-products .product-card-header {
    background-color: transparent;
    padding: 15px 15px 0;
    text-align: center;
    text-transform: uppercase;
    order: 1;
}

.digi-products .product-card-header span {
    font-size: 32px !important;
    font-weight: 100 !important;
    font-style: normal !important;
    line-height: 40px !important;
    color: #2f6d51 !important;
}

.digi-products .product-card-body {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.digi-products .product-card-body h3 {
    font-family: "CMU Bright", Arial, sans-serif !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 30px !important;
    color: #2f6d51 !important;
    text-align: center;
    text-transform: uppercase;
}

.digi-products .product-features ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.digi-products .product-features li {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 10px;
    padding-left: 34px;
    position: relative;
    color: #1d1d1b;
}

.digi-products .product-features li:before {
    width: 24px;
    height: 24px;
    background-color: #8f74ef;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.digi-products .product-price .current-price {
    font-size: 22px;
    font-weight: 600;
    color: #2f6d51;
    line-height: 30px;
}

.digi-products .product-cta .button {
    background-color: #8f74ef;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    padding: 20px;
    letter-spacing: 0;
    line-height: 28px;
}

.digi-products .product-cta .button:hover,
.page-template-template-full-width .digi-products .product-cta .button:hover {
    background-color: #7a5fe0;
    color: #fff;
    border-color: #7a5fe0;
}

/* Spodní text s emailem */
.digi-products .section.section-small.section-top p {
    font-size: 20px;
    line-height: 25px;
}

.digi-products .section.section-small.section-top a {
    color: #8f74ef;
    text-decoration: underline;
}

/* --------------------------------------------------
   10. Voucher / Tip na dárek (dle Figma node 86:1018)
   -------------------------------------------------- */
.digi-voucher-block {
    border-top: 1px solid #e0e9e5;
    background: #fff;
}

.digi-voucher-block .block-section {
    background: transparent !important;
}

.digi-voucher-block .grid-x {
    align-items: center;
    gap: 25px;
}

.digi-voucher-block .grid-x > .cell {
    flex: 1 1 0;
    max-width: none;
    width: auto;
}

.digi-voucher-block .voucher-image {
    height: 264px;
}

.digi-voucher-block .voucher-image figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0;
}

.digi-voucher-block .voucher-image figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.digi-voucher-block .voucher-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
}

.digi-voucher-block .voucher-content h2,
.digi-voucher-block .voucher-content h3,
.digi-voucher-block .voucher-text h2,
.digi-voucher-block .voucher-text h3 {
    font-size: 32px;
    line-height: 40px;
    color: #2f6d51;
    font-weight: 400;
    margin-bottom: 0;
}

.digi-voucher-block .voucher-content p,
.digi-voucher-block .voucher-text p {
    font-size: 16px;
    line-height: 22px;
    color: #1d1d1b;
}

.digi-voucher-block .button.purple {
    background-color: #8f74ef;
    border-radius: 0;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}

.digi-voucher-block .button.purple:hover,
.page-template-template-full-width .digi-voucher-block .button.purple:hover {
    background-color: #7a5fe0;
    color: #fff;
    border-color: #7a5fe0;
}

/* --------------------------------------------------
   11. Newsletter – hover fix
   -------------------------------------------------- */
.digi-newsletter .nl-submit:hover,
.page-template-template-full-width .digi-newsletter .nl-submit:hover {
    background-color: #276b4a;
    color: #fff;
    border-color: #276b4a;
}

/* --------------------------------------------------
   12. Voucher – font size overrides (specifita 0,5,1 > _global.scss 0,4,1)
   -------------------------------------------------- */
.digi-block.digi-voucher-block .voucher-content .voucher-text h2,
.digi-block.digi-voucher-block .voucher-content .voucher-text h3 {
    font-size: 32px;
    line-height: 40px;
    color: #2f6d51;
    font-weight: 400;
    margin-bottom: 0;
}

.digi-block.digi-voucher-block .voucher-content .voucher-text p {
    font-size: 16px;
    line-height: 22px;
    color: #1d1d1b;
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 639px) {
    .digi-accordion-steps .accordion-steps-right {
        margin-top: 1.5rem;
    }

    .planner-output-card {
        margin-bottom: 1rem;
    }

    .digi-reviews .reference-slider .card.review {
        flex: 1 1 100%;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .digi-reviews .reference-slider .card.review {
        flex: 1 1 calc(50% - 0.75rem);
    }
}
