/* ==========================================================================
   Services — listing + single product
   Migrated from rozklady-tarota, rytualy, manifestacje Vue components
   ========================================================================== */

/* --- Services Hero --- */
.services-hero {
    position: relative;
    background-color: #fff;
    color: #181828;
    padding: 100px 0;
}

.services-hero__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.services-hero__img-wrapper { width: 50%; }

.services-hero__desc-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.services-hero__heading--primary { font-size: 64px; }
.services-hero__description { text-align: justify; }

@media (max-width: 900px) {
    .services-hero { text-align: center; }
    .services-hero__wrapper { flex-direction: column; }
    .services-hero__heading--primary { font-size: 46px; }
    .services-hero__desc-wrapper { width: 100%; }
    .services-hero .cta { align-self: center; }
}

@media (max-width: 600px) { .services-hero { padding: 40px 0; } }
@media (max-width: 450px) { .services-hero__heading--primary { font-size: 36px; } }

/* --- Products Grid --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service__wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

.service__img-wrapper { position: relative; }
.service__img { width: 100%; display: block; }

.service__desc-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 1.25rem;
    padding: 3rem 1rem;
    height: 100%;
}

.service__title {
    font-size: 28px;
    color: #181828;
    text-align: center;
}

/* Promo banner */
.service__promo.promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    gap: 1rem;
    padding: .75rem 1rem;
    border: 1px dashed #e2c96e;
    background: #fffaf0;
}

.promo__content {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 14px;
}

.promo__label {
    font-weight: 700;
    color: #C93D03;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.promo__separator { opacity: .6; }
.promo__text { opacity: .9; }

.promo__timer {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* Price */
.service__price-wrapper.price {
    font-size: 32px;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.price__promo { color: #e2c96e; font-weight: bold; }
.price__promo + .price__standard { color: #EC4400; text-decoration: line-through; font-weight: bold; }

/* Buttons */
.service__buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.service__cta {
    width: 100%;
    font-size: 15px;
    padding: 1rem;
    text-align: center;
    background: #1b2f52;
    box-shadow: 0px 10px 20px 0px rgba(27, 47, 82, 0.24);
    color: #fff;
    display: inline-block;
}

.service__cta--reverse {
    color: #1b2f52;
    background: transparent;
    border: 1px solid #1b2f52;
}

.service__cta--reverse:hover {
    color: #fff;
    background-color: #1b2f52;
}

/* ACF description lists */
.service__description ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.service__description li { position: relative; }
.service__description .wp-block-list { margin: 0; padding: 0; }

@media (max-width: 1024px) {
    .services__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
    .services__grid { grid-template-columns: 1fr; }
    .service { text-align: center; }
    .service__desc-wrapper { width: 100%; }
    .service__cta { align-self: center; }
}

/* ==========================================================================
   Product Hero (single product)
   ========================================================================== */

.productHero {
    position: relative;
    background-color: #fff;
    color: #181828;
    padding: 100px 0;
}

.productHero__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.productHero__img-wrapper { width: 50%; }
.productHero__desc-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.productHero__heading--primary { font-size: 64px; }
.productHero__description { text-align: justify; line-height: 1.6; }

@media (max-width: 900px) {
    .productHero { text-align: center; }
    .productHero__wrapper { flex-direction: column; }
    .productHero__heading--primary { font-size: 46px; }
    .productHero__desc-wrapper { width: 100%; }
    .productHero__cta { align-self: center; }
    .productHero__img-wrapper { width: 100%; }
}

@media (max-width: 600px) { .productHero { padding: 40px 0; } }
@media (max-width: 450px) { .productHero__heading--primary { font-size: 36px; } }

/* ==========================================================================
   ACF Sections (product single)
   ========================================================================== */

.section--1-dark {
    background-color: #21212c;
    padding: 80px 0;
    position: relative;
    z-index: 1;
    color: #fff;
}

.section--1-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../img/Graphic-tarot.png");
    background-position: center;
    background-repeat: repeat;
    background-size: 591px auto;
    opacity: .3;
    background-color: #21212c;
}

.section--2-light {
    background-color: #EDEBE5;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section--2-light::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../img/astro-pattern.png");
    background-position: center;
    background-repeat: repeat;
    background-size: 591px auto;
    opacity: .3;
    background-color: #EDEBE5;
}

.section--3-light {
    position: relative;
    background-color: #EEEBE6;
    color: #181828;
    padding: 100px 0;
}

.section--3-light::before {
    pointer-events: none;
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../img/bg-content-section-astro.png");
    background-position: bottom center;
    background-size: cover;
    opacity: 0.2;
}

.section--4-light {
    background-color: #EDEBE5;
    padding: 80px 0;
    position: relative;
}

.section--5-light {
    background-color: #EEEBE6;
    padding: 80px 0;
    position: relative;
}

.section__wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.section__img-wrapper { max-width: 50%; }
.section__img { animation: bounce-out-down 8s ease infinite; }

.section__desc-wrapper {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
}

.section__title { font-size: 32px; }
.section__description { line-height: 1.6; }

.section_description--list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.section_description--list ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.section__offer-title {
    font-size: 17px;
    color: #D5846E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .section { text-align: center; }
    .section__wrapper { flex-direction: column-reverse; }
    .section__desc-wrapper { max-width: 100%; }
    .section__cta { align-self: center; }
    .section__img-wrapper { max-width: 80%; }
}

@media (max-width: 450px) {
    .section__title { font-size: 20px; }
}

/* Hide newsletter on service pages */
.page--services .newsletter { display: none; }

/* ==========================================================================
   Promo Popup
   ========================================================================== */

.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.promo-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 9, 0.6);
    backdrop-filter: saturate(140%) blur(6px);
}

.promo-popup__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 720px);
    max-height: min(86vh, 900px);
    overflow: auto;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88)) padding-box,
        linear-gradient(140deg, #b07cff, #6bd3ff) border-box;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.promo-popup__header {
    padding: 52px 32px 8px;
    position: relative;
}

.promo-popup__heading-secondary {
    margin: 0 48px 6px 0;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: .65;
    text-align: center;
}

.promo-popup__heading {
    text-align: center;
    margin: 0 48px 0 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
}

.promo-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}

.promo-popup__close:hover {
    transform: scale(1.06);
    background: rgba(0, 0, 0, 0.1);
}

.promo-popup__content {
    padding: 10px 32px 8px;
}

.promo-popup__description {
    margin: 8px 0 32px;
    font-size: 16px;
    line-height: 1.6;
}

.promo-popup__benefits ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 14px;
    padding: 0;
    margin: 8px 0 18px;
    list-style: none;
}

.promo-popup__benefits li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.5;
}

.promo-popup__benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 800;
    opacity: .75;
}

.promo-popup__code {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgb(29 255 77 / 10%);
    border: 1px dashed rgb(66 0 165 / 45%);
    margin: 3rem auto;
    max-width: max-content;
}

.promo-popup__code-label {
    font-size: 14px;
    opacity: .7;
}

.promo-popup__code-value {
    font-size: 18px;
    letter-spacing: .08em;
}

.promo-popup__timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    margin-bottom: 4px;
}

.promo-popup__timer-label {
    font-size: 14px;
    opacity: .7;
}

.promo-popup__timer-value {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 48px;
    color: red;
}

.promo-popup__footer {
    padding: 10px 24px 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.promo-popup__cta {
    margin: 0 auto;
}

html.promo-popup--lock,
html.promo-popup--lock body {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .promo-popup__heading { font-size: 20px; }
    .promo-popup__dialog { width: min(94vw, 720px); }
    .promo-popup__code { margin: 1rem auto; }
    .promo-popup__timer-value { font-size: 32px; }
    .promo-popup__benefits ul { margin: 0; }
    .promo-popup__description { margin: 10px 0; }
    .promo-popup__header { padding: 50px 32px 0; }
}
