/* Freedom Doula Co — package card designs (classic base stays in main.css)
 * Loaded separately with cache-bust so new themes appear immediately.
 */

/* Reset classic card chrome so alternate designs are not half-styled */
#packages-section.pkg-theme-immersive .pkg-card,
#packages-section.pkg-theme-gallery .pkg-card {
    background-image: none;
}

#packages-section.pkg-theme-immersive .pkg-card--immersive {
    background-color: #2a2426 !important;
}

#packages-section.pkg-theme-gallery .pkg-card--gallery {
    background-color: #fff !important;
    background-image: none !important;
}

/* ==========================================================================
   Full package designs (admin → Packages → Card design)
   classic    = original FDC card (base styles above)
   immersive  = full-bleed photo, glass content panel
   gallery    = portrait photo, price-first editorial card
   ========================================================================== */

/* --- Immersive --- */
#packages-section.pkg-theme-immersive .pkg-container {
    gap: 24px;
}

#packages-section.pkg-theme-immersive .pkg-card--immersive {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    background-color: #2a2426;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    position: relative;
}

#packages-section.pkg-theme-immersive .pkg-card--immersive:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

#packages-section.pkg-theme-immersive .pkg-imm-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(23, 15, 17, 0.15) 0%,
        rgba(23, 15, 17, 0.35) 40%,
        rgba(23, 15, 17, 0.88) 100%
    );
    z-index: 1;
    pointer-events: none;
}

#packages-section.pkg-theme-immersive .pkg-imm-panel {
    position: relative;
    z-index: 2;
    padding: 28px 24px 26px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(23, 15, 17, 0.45) 18%,
        rgba(23, 15, 17, 0.72) 100%
    );
    backdrop-filter: blur(2px);
}

#packages-section.pkg-theme-immersive .pkg-imm-kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    letter-spacing: 0.18rem;
    text-transform: uppercase;
    color: var(--secondary-accent-color);
    font-family: "montserrat-medium", sans-serif;
}

#packages-section.pkg-theme-immersive .pkg-imm-title {
    margin: 0 0 10px;
    font-size: 2.6rem;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#packages-section.pkg-theme-immersive .pkg-imm-body-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #fef0ec;
    opacity: 0.95;
}

#packages-section.pkg-theme-immersive .pkg-imm-desc {
    margin: 0 0 16px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(254, 240, 236, 0.88);
    text-transform: none;
    letter-spacing: 0.02rem;
}

#packages-section.pkg-theme-immersive .pkg-imm-tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

#packages-section.pkg-theme-immersive .pkg-imm-tier {
    border: 1px solid rgba(254, 240, 236, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(254, 240, 236, 0.08);
}

#packages-section.pkg-theme-immersive .pkg-imm-tier.is-featured {
    border-color: var(--secondary-accent-color);
    background: rgba(253, 223, 195, 0.16);
    box-shadow: inset 0 0 0 1px rgba(253, 223, 195, 0.25);
}

#packages-section.pkg-theme-immersive .pkg-imm-tier-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

#packages-section.pkg-theme-immersive .pkg-imm-tier-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fef0ec;
}

#packages-section.pkg-theme-immersive .pkg-imm-tier-price {
    font-size: 1.35rem;
    color: var(--secondary-accent-color);
    font-family: "montserrat-medium", sans-serif;
    white-space: nowrap;
}

#packages-section.pkg-theme-immersive .pkg-imm-tier-body {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(254, 240, 236, 0.82);
}

#packages-section.pkg-theme-immersive .pkg-imm-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

#packages-section.pkg-theme-immersive .pkg-imm-btn {
    display: inline-block;
    padding: 12px 22px;
    border: 1.5px solid var(--secondary-accent-color);
    color: var(--secondary-accent-color) !important;
    background: transparent !important;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    font-family: "montserrat-medium", sans-serif;
    transition: background 0.25s ease, color 0.25s ease;
}

#packages-section.pkg-theme-immersive .pkg-imm-btn:hover {
    background: var(--secondary-accent-color) !important;
    color: var(--variation-color) !important;
}

/* --- Gallery (portrait + price-first) --- */
#packages-section.pkg-theme-gallery {
    background-color: #fef0ec;
}

#packages-section.pkg-theme-gallery .pkg-container {
    gap: 28px;
}

#packages-section.pkg-theme-gallery .pkg-card--gallery {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(23, 15, 17, 0.1);
    border: 1px solid rgba(142, 154, 142, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 22px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#packages-section.pkg-theme-gallery .pkg-card--gallery:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(23, 15, 17, 0.14);
}

#packages-section.pkg-theme-gallery .pkg-gal-photo-wrap {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fddfc3;
    box-shadow: 0 6px 18px rgba(23, 15, 17, 0.12);
    margin-bottom: 18px;
    flex-shrink: 0;
    background: #e8dfd7;
}

#packages-section.pkg-theme-gallery .pkg-gal-photo-wrap .pkg-image {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#packages-section.pkg-theme-gallery .pkg-gal-body {
    width: 100%;
    max-width: 420px;
}

#packages-section.pkg-theme-gallery .pkg-gal-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: #8e9a8e;
    font-family: "montserrat-medium", sans-serif;
}

#packages-section.pkg-theme-gallery .pkg-gal-title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.2;
    color: #170f11;
}

#packages-section.pkg-theme-gallery .pkg-gal-body-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #3f3f3f;
    font-weight: 600;
}

#packages-section.pkg-theme-gallery .pkg-gal-desc {
    margin: 0 0 18px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #3f3f3f;
    text-transform: none;
    letter-spacing: 0.02rem;
}

#packages-section.pkg-theme-gallery .pkg-gal-tiers {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

#packages-section.pkg-theme-gallery .pkg-gal-tier {
    position: relative;
    background: #fef0ec;
    border-radius: 14px;
    padding: 16px 16px 14px;
    border: 1px solid transparent;
    text-align: center;
}

#packages-section.pkg-theme-gallery .pkg-gal-tier.is-featured {
    border-color: #8e9a8e;
    background: linear-gradient(180deg, #fef0ec 0%, #fddfc3 140%);
}

#packages-section.pkg-theme-gallery .pkg-gal-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    background: #8e9a8e;
    color: #fff;
    font-family: "montserrat-medium", sans-serif;
}

#packages-section.pkg-theme-gallery .pkg-gal-price {
    margin: 0 0 4px;
    font-size: 2.1rem;
    line-height: 1.1;
    color: #8e9a8e;
    font-family: "montserrat-medium", sans-serif;
    font-weight: 600;
}

#packages-section.pkg-theme-gallery .pkg-gal-tier-name {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: #170f11;
}

#packages-section.pkg-theme-gallery .pkg-gal-tier-body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #3f3f3f;
}

#packages-section.pkg-theme-gallery .pkg-gal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

#packages-section.pkg-theme-gallery .pkg-gal-btn {
    display: block;
    padding: 14px 20px;
    border-radius: 999px;
    background: #8e9a8e !important;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    font-family: "montserrat-medium", sans-serif;
    transition: background 0.25s ease, transform 0.2s ease;
}

#packages-section.pkg-theme-gallery .pkg-gal-btn:hover {
    background: #6f7c6f !important;
    transform: translateY(-1px);
}

#packages-section.pkg-theme-gallery .pkg-card.enterprise .pkg-gal-body {
    max-width: 560px;
}

@media (max-width: 768px) {
    #packages-section.pkg-theme-immersive .pkg-card--immersive {
        min-height: 420px;
    }

    #packages-section.pkg-theme-immersive .pkg-imm-title {
        font-size: 2.1rem;
    }

    #packages-section.pkg-theme-immersive .pkg-imm-buttons {
        justify-content: stretch;
    }

    #packages-section.pkg-theme-immersive .pkg-imm-btn {
        flex: 1;
        text-align: center;
    }

    #packages-section.pkg-theme-gallery .pkg-gal-photo-wrap {
        width: 120px;
        height: 120px;
    }

    #packages-section.pkg-theme-gallery .pkg-gal-title {
        font-size: 1.75rem;
    }

    #packages-section.pkg-theme-gallery .pkg-card--gallery {
        margin: 0 6px;
        padding: 22px 16px 20px;
    }
}

@media (max-width: 480px) {
    #packages-section.pkg-theme-immersive .pkg-imm-title {
        font-size: 1.85rem;
    }

    #packages-section.pkg-theme-immersive .pkg-imm-panel {
        padding: 20px 16px 18px;
    }

    #packages-section.pkg-theme-gallery .pkg-gal-price {
        font-size: 1.85rem;
    }
}
