/* =============================================
   PACKAGES CATALOG — public page styles
   ============================================= */

/* ── Hero section ────────────────────────── */
.pkg-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-alt) 60%, #4a9ea0 100%);
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.pkg-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, -3%) scale(1.1); }
}

.pkg-hero__title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.pkg-hero__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.pkg-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.pkg-hero__wave svg {
    width: 100%;
    height: 80px;
}

/* ── Section titles ──────────────────────── */
.pkg-section-title {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.9rem;
}

/* ── Package cards ───────────────────────── */
.pkg-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pkg-card--visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pkg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(41, 75, 100, 0.15);
}

.pkg-card--featured {
    border: 2px solid var(--color-primary);
}

.pkg-card--featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-alt), #4a9ea0);
    background-size: 200% 100%;
    animation: gradientSlide 3s ease infinite;
}

@keyframes gradientSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Animated bar (chart-like background) ── */
.pkg-card__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pkg-card__bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg,
        rgba(41, 75, 100, 0.03) 0%,
        rgba(60, 111, 113, 0.06) 50%,
        rgba(74, 158, 160, 0.09) 100%
    );
    border-radius: 40% 40% 0 0;
    transition: height 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pkg-card--visible .pkg-card__bar-fill {
    height: var(--bar-height, 50%);
}

.pkg-card__bar-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bar-height, 50%);
    opacity: 0;
}

.pkg-card--visible .pkg-card__bar-pulse {
    animation: barPulse 4s ease-in-out 1.5s infinite;
}

@keyframes barPulse {
    0%, 100% { opacity: 0; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(1.02); }
}

.pkg-card__bar-pulse::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(74, 158, 160, 0.05) 100%
    );
    border-radius: 40% 40% 0 0;
}

/* ── Card content ────────────────────────── */
.pkg-card__content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pkg-card__header {
    margin-bottom: 1rem;
}

.pkg-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.pkg-card__duration {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Badge */
.pkg-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pkg-badge--popular {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-alt));
    color: #fff;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 0 0 0 rgba(41, 75, 100, 0.4); }
    100% { box-shadow: 0 0 12px 2px rgba(41, 75, 100, 0.15); }
}

/* Price */
.pkg-card__price {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.pkg-card__price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-dark);
    font-family: 'Fredoka', sans-serif;
}

.pkg-card__price-currency {
    font-size: 1rem;
    color: #6b7280;
    margin-left: 0.25rem;
}

.pkg-card__price-vat {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-left: 0.25rem;
}

.pkg-card__price-free {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    font-family: 'Fredoka', sans-serif;
}

/* Description */
.pkg-card__desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Services list */
.pkg-card__services,
.pkg-card__addons {
    margin-bottom: 1rem;
}

.pkg-card__services-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pkg-card__service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkg-card__service-list li {
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--color-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.pkg-card__service-list li:last-child {
    border-bottom: none;
}

.pkg-card__qty {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

/* CTA button */
.pkg-card__cta {
    margin-top: auto;
    padding-top: 1.25rem;
}

.btn-pkg-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-alt));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-pkg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-pkg-primary:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 75, 100, 0.3);
}

.btn-pkg-primary:hover::before {
    left: 100%;
}

.btn-pkg-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-pkg-outline:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(41, 75, 100, 0.2);
}

/* Details toggle */
.pkg-card__details-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.pkg-card__details-toggle:hover {
    color: var(--color-primary-alt);
}

.pkg-card__details-toggle .bi {
    transition: transform 0.3s ease;
}

.pkg-card__details-toggle.is-open .bi {
    transform: rotate(180deg);
}

.pkg-card__details {
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.pkg-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkg-card__features li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

/* ── Comparison table ────────────────────── */
.pkg-compare__table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.pkg-compare__table thead th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem;
    border: none;
}

.pkg-compare__featured-col {
    background: rgba(41, 75, 100, 0.04) !important;
}

.pkg-compare__table thead .pkg-compare__featured-col {
    background: var(--color-primary-alt) !important;
}

.pkg-compare__feature-col {
    min-width: 250px;
}

.pkg-compare__table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
    border-color: #f0f0f0;
}

.pkg-compare__table tbody tr:hover {
    background: rgba(41, 75, 100, 0.02);
}

/* ── Addon service cards ─────────────────── */
.pkg-addon-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-20px);
    height: 100%;
}

.pkg-addon-card--visible {
    opacity: 1;
    transform: translateX(0);
    border-left-color: var(--color-primary-alt);
}

.pkg-addon-card:hover {
    box-shadow: 0 6px 24px rgba(41, 75, 100, 0.12);
    transform: translateX(4px);
    border-left-color: var(--color-primary);
}

.pkg-addon-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(41, 75, 100, 0.08), rgba(60, 111, 113, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.pkg-addon-card:hover .pkg-addon-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.pkg-addon-card__body {
    flex: 1;
    min-width: 0;
}

.pkg-addon-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.15rem;
}

.pkg-addon-card__desc {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.pkg-addon-card__units {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.pkg-addon-card__unit-badge {
    font-size: 0.7rem;
    background: rgba(41, 75, 100, 0.08);
    color: var(--color-primary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 500;
}

.pkg-addon-card__price-col {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.pkg-addon-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    display: block;
}

.pkg-addon-card__currency {
    font-size: 0.75rem;
    color: #9ca3af;
}

.pkg-addon-card__included {
    font-size: 0.85rem;
    color: var(--color-primary-alt);
    font-weight: 600;
}

/* ── CTA bottom section ──────────────────── */
.pkg-cta-bottom h3 {
    color: var(--color-primary);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 767.98px) {
    .pkg-hero {
        padding: 2.5rem 0 4rem;
    }

    .pkg-hero__title {
        font-size: 2rem;
    }

    .pkg-hero__subtitle {
        font-size: 0.95rem;
    }

    .pkg-card__content {
        padding: 1.5rem 1.25rem;
    }

    .pkg-card__price-amount {
        font-size: 1.8rem;
    }

    .pkg-section-title {
        font-size: 1.5rem;
    }

    .pkg-addon-card {
        flex-wrap: wrap;
    }

    .pkg-addon-card__price-col {
        width: 100%;
        text-align: left;
        padding-top: 0.5rem;
        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 575.98px) {
    .pkg-hero__title {
        font-size: 1.6rem;
    }

    .pkg-card__name {
        font-size: 1.25rem;
    }

    .pkg-addon-card__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.1rem;
    }
}

/* ── Stagger animation delays for cards ─── */
.pkg-grid .col-12:nth-child(1) .pkg-card { transition-delay: 0s; }
.pkg-grid .col-12:nth-child(2) .pkg-card { transition-delay: 0.15s; }
.pkg-grid .col-12:nth-child(3) .pkg-card { transition-delay: 0.3s; }
.pkg-grid .col-12:nth-child(4) .pkg-card { transition-delay: 0.45s; }
.pkg-grid .col-12:nth-child(5) .pkg-card { transition-delay: 0.6s; }
.pkg-grid .col-12:nth-child(6) .pkg-card { transition-delay: 0.75s; }
