/* =========================================
   Discount & Gift Card — Calm Cartoon Grids
   Layout only. Default colors. Content untouched.
   ========================================= */

:root {
    --dc-primary: #0A192F;
    --dc-primary-hover: rgb(76, 62, 221);
    --dc-bg-light: #F8FAFC;
    --dc-bg-white: #FFFFFF;
    --dc-text-main: #0F172A;
    --dc-text-muted: #475569;
    --dc-border-radius: 14px;
    --dc-card-radius-sm: 12px;
    --dc-img-radius: 8px;
    --dc-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --dc-shadow-soft: 0 18px 40px rgba(10, 25, 47, 0.07);
    --dc-shadow-hover: 0 8px 20px rgba(10, 25, 47, 0.06), 0 26px 55px rgba(10, 25, 47, 0.10);
}

/* Leftover gaming hooks (PHP untouched) — neutralize purely via CSS
   (gift cards reuse ::after for CSS-only step numbers, so exclude them) */
.dc-game-status {
    display: none !important;
}

.dc-game-card:not(.dc-giftcard-card)::before,
.dc-game-card:not(.dc-giftcard-card)::after {
    display: none !important;
    content: none !important;
}

/* Restore default link look over old inline styles (PHP untouched) */
.dc-bento-card-content a[style],
.dc-bento-card--icon-lead a[style],
.dc-reporting-card a[style],
.faq-answer a[style] {
    color: var(--dc-primary) !important;
    border-bottom: none !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* --- Section Header --- */
.dc-section-header {
    text-align: center;
    margin-bottom: 52px;
    max-width: 800px;
    margin-inline: auto;
}

.dc-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--dc-text-main);
}

.dc-section-header p {
    font-size: 1.15rem;
    color: var(--dc-text-muted);
}

/* --- Scroll Animation --- */
.dc-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.dc-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Shared card manners: crisp, no resting shadow --- */
.dc-empathy-card,
.dc-bento-card,
.dc-giftcard-card,
.dc-reporting-card,
.dc-empathy-conclusion,
.dc-reporting-conclusion {
    box-shadow: none;
}

.dc-bento-card:hover .dc-bento-icon,
.dc-giftcard-card:hover .dc-giftcard-icon,
.dc-reporting-card:hover .dc-reporting-icon {
    transform: translateY(-4px) scale(1.04);
}

.dc-bento-icon,
.dc-giftcard-icon,
.dc-reporting-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================
   EMPATHY — storybook friends row
   ========================================= */
.dc-empathy-theme {
    background-color: var(--primary-background);
    background-image: radial-gradient(rgba(10, 25, 47, 0.055) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--dc-text-main);
}

.dc-empathy-theme .dc-section-header h2 {
    color: var(--dc-text-main);
}

.dc-empathy-theme .dc-section-header p {
    color: var(--dc-text-muted);
}

.dc-empathy-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
}

.dc-empathy-card {
    border-radius: var(--dc-border-radius);
    overflow: hidden;
    transition: var(--dc-transition);
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
}

/* Gentle arc — side friends lift a little, middle rests */
.dc-empathy-card:nth-child(1),
.dc-empathy-card:nth-child(3) {
    transform: translateY(-12px);
}

.dc-empathy-card:nth-child(1):hover,
.dc-empathy-card:nth-child(3):hover {
    transform: translateY(-16px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

.dc-empathy-card:nth-child(2):hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

.dc-empathy-card--image {
    position: relative;
    border: none;
    background: none;
    box-shadow: none;
}

.dc-empathy-card--image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top right;
    display: block;
    transition: transform 0.8s ease;
}

.dc-empathy-card--image:hover img {
    transform: scale(1.03);
}

.dc-empathy-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
}

.dc-empathy-overlay * {
    color: #ffffff;
}

.dc-empathy-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.dc-empathy-conclusion {
    margin-top: 72px;
    text-align: center;
    padding: 26px 40px;
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--dc-border-radius);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--dc-transition);
}

.dc-empathy-conclusion:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

.dc-empathy-conclusion p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dc-text-main);
    margin: 0;
}

/* =========================================
   BENTO GRID (Features) — sticker panels
   ========================================= */
.dc-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.dc-bento-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--dc-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--dc-transition);
}

.dc-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

/* Hero — full width, image as inset sticker */
.dc-bento-card--hero {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: stretch;
}

.dc-bento-card--hero .dc-bento-card-content {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dc-bento-card--hero .dc-bento-card-visual {
    flex: 0 0 44%;
    padding: 16px;
    margin: 0;
    min-height: 0;
}

.dc-bento-card--hero .dc-bento-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    border-radius: var(--dc-img-radius);
}

/* Left panel — equal sibling */
.dc-bento-card--tall .dc-bento-card-visual {
    flex: 1;
    min-height: 220px;
    padding: 0 16px 16px;
}

.dc-bento-card--tall .dc-bento-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    border-radius: var(--dc-img-radius);
}

.dc-bento-card--tall .dc-bento-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--dc-img-radius);
}

/* Right panel — equal sibling, same vertical rhythm as the left one */
.dc-bento-card--feature .dc-bento-card-content {
    padding: 30px 30px 22px;
}

.dc-bento-card--feature .dc-bento-card-visual {
    flex: 1;
    min-height: 220px;
    padding: 0 16px 16px;
    margin-top: auto;
}

.dc-bento-card--feature .dc-bento-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    border-radius: var(--dc-img-radius);
}

.dc-bento-card-content {
    padding: 30px 30px 22px;
}

.dc-bento-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dc-text-main);
    line-height: 1.5;
}

.dc-bento-card-content p {
    font-size: 0.9rem;
    color: var(--dc-text-muted);
    line-height: 1.8;
    margin: 0;
}

.dc-bento-card-content a {
    color: var(--dc-primary);
    font-weight: 600;
}

.dc-bento-card-visual {
    padding: 0 30px 30px;
    margin-top: auto;
    min-height: 180px;
}

/* Icon cards — cozy 2-col with a welcoming lead */
.dc-bento-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 28px auto 0;
}

.dc-bento-card--icon {
    padding: 34px 30px;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-radius: var(--dc-border-radius);
}

.dc-bento-card--icon-lead {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 32px 40px;
    text-align: right;
    border-radius: var(--dc-border-radius);
}

.dc-bento-card--icon-lead .dc-bento-icon {
    width: 76px;
    height: 76px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-radius: 26px;
}

.dc-bento-card--icon-lead .dc-bento-icon-text {
    flex: 1;
}

.dc-bento-card--icon-lead h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.dc-bento-card--icon-lead p {
    font-size: 0.9rem;
    margin: 0;
}

.dc-bento-card--icon-lead a {
    color: var(--dc-primary);
    font-weight: 600;
}

.dc-bento-card--icon h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.dc-bento-card--icon p {
    font-size: 0.85rem;
}

.dc-bento-card--icon .dc-bento-icon {
    margin-bottom: 18px;
    margin-inline: auto;
}

.dc-bento-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Option 3 — crisp 12px square icons, pastel fills */
.dc-bento-icon,
.dc-giftcard-icon,
.dc-reporting-icon {
    border-radius: 12px !important;
    box-shadow: none !important;
}

.dc-bento-icon--blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dc-bento-icon--green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dc-bento-icon--purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dc-bento-icon--orange {
    background-color: rgba(255, 123, 38, 0.1);
    color: #ff7b26;
}

.dc-bento-icon--red {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dc-bento-icon--teal {
    background-color: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
}

.dc-bento-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dc-text-main);
    line-height: 1.5;
}

.dc-bento-card p {
    font-size: 0.95rem;
    color: var(--dc-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   GIFT CARDS — warm hug, lead embraces two
   ========================================= */
.dc-giftcards-theme {
    background-color: var(--primary-background);
    background-image: radial-gradient(rgba(10, 25, 47, 0.055) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--dc-text-main);
}

.dc-giftcards-theme .dc-section-header h2 {
    color: var(--dc-text-main);
}

.dc-giftcards-theme .dc-section-header p {
    color: var(--dc-text-muted);
}

.dc-giftcards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
    counter-reset: gift-step;
}

.dc-giftcard-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--dc-border-radius);
    padding: 34px 32px;
    transition: var(--dc-transition);
    position: relative;
    counter-increment: gift-step;
}

/* CSS-only recipe step number (content untouched) */
.dc-giftcard-card::after {
    content: counter(gift-step, persian);
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--dc-bg-light);
    border: 1.5px solid #dbe2f9;
    color: var(--dc-text-main);
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dc-giftcard-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

/* Equal recipe steps — no spanning, no orphan cell */

.dc-giftcard-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.dc-giftcard-icon--green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dc-giftcard-icon--orange {
    background-color: rgba(255, 123, 38, 0.1);
    color: #ff7b26;
}

.dc-giftcard-icon--purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dc-giftcard-icon--blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dc-giftcard-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dc-text-main);
    line-height: 1.5;
}

.dc-giftcard-card p {
    font-size: 0.95rem;
    color: var(--dc-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   REPORTING — same warm family
   ========================================= */
.dc-reporting-theme {
    background-image: radial-gradient(rgba(10, 25, 47, 0.045) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--dc-text-main);
}

.dc-reporting-theme .dc-section-header h2 {
    color: var(--dc-text-main);
}

.dc-reporting-theme .dc-section-header p {
    color: var(--dc-text-muted);
}

.dc-reporting-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.dc-reporting-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--dc-border-radius);
    padding: 34px 32px;
    text-align: center;
    transition: var(--dc-transition);
}

.dc-reporting-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

/* Lead — tall friend on the side */
.dc-reporting-card:first-child {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 40px;
    border-radius: var(--dc-border-radius);
}

.dc-reporting-card:first-child .dc-reporting-icon {
    width: 84px;
    height: 84px;
    border-radius: var(--dc-card-radius-sm);
    margin-bottom: 26px;
}

.dc-reporting-card:first-child h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.dc-reporting-card:first-child p {
    font-size: 1rem;
    max-width: 42ch;
    margin-inline: auto;
    line-height: 1.9;
}

.dc-reporting-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.dc-reporting-icon--green {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dc-reporting-icon--orange {
    background-color: rgba(255, 123, 38, 0.1);
    color: #ff7b26;
}

.dc-reporting-icon--purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dc-reporting-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dc-text-main);
    line-height: 1.5;
}

.dc-reporting-card p {
    font-size: 0.9rem;
    color: var(--dc-text-muted);
    line-height: 1.8;
    margin: 0;
}

.dc-reporting-card a {
    color: var(--dc-primary);
    font-weight: 600;
}

.dc-reporting-conclusion {
    margin-top: 52px;
    text-align: center;
    padding: 26px 40px;
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--dc-border-radius);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--dc-transition);
}

.dc-reporting-conclusion:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
}

.dc-reporting-conclusion p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dc-text-main);
    margin: 0;
}

/* =========================================
   Option 3 — crisp hover: darker border on all cards
   ========================================= */
.dc-empathy-card:hover,
.dc-bento-card:hover,
.dc-giftcard-card:hover,
.dc-reporting-card:hover,
.dc-empathy-conclusion:hover,
.dc-reporting-conclusion:hover {
    border-color: #93a5d6;
}

/* =========================================
   CTA FORM - Disable Animations
   ========================================= */
.dc-main .cta-section,
.dc-main .cta-section.dc-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* =========================================
   RESPONSIVE — stagger rests on small screens
   ========================================= */
@media (max-width: 992px) {
    .dc-section-header h2 {
        font-size: 2rem;
    }

    .dc-bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .dc-bento-card--hero {
        flex-direction: column;
    }

    .dc-bento-card--hero .dc-bento-card-content {
        padding: 32px 28px;
    }

    .dc-bento-card--hero .dc-bento-card-visual {
        flex: none;
        min-height: 220px;
        padding: 0 16px 16px;
    }

    .dc-bento-card--feature .dc-bento-card-content {
        padding: 32px 28px;
    }

    .dc-bento-card--feature .dc-bento-card-visual {
        flex: none;
        min-height: 200px;
        padding: 0 16px 16px;
    }

    .dc-bento-icons {
        grid-template-columns: 1fr;
    }

    .dc-bento-card--icon-lead {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
    }

    .dc-reporting-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .dc-reporting-card:first-child {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .dc-empathy-cards {
        grid-template-columns: 1fr;
    }

    .dc-empathy-card:nth-child(1),
    .dc-empathy-card:nth-child(2),
    .dc-empathy-card:nth-child(3) {
        transform: none;
    }

    .dc-empathy-card:nth-child(1):hover,
    .dc-empathy-card:nth-child(2):hover,
    .dc-empathy-card:nth-child(3):hover {
        transform: translateY(-4px);
    }

    .dc-empathy-conclusion {
        margin-top: 48px;
    }

    .dc-giftcards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .dc-section-header h2 {
        font-size: 1.6rem;
    }

    .dc-bento-card-content {
        padding: 24px 20px 20px;
    }

    .dc-bento-card-visual {
        padding: 0 20px 24px;
    }

    .dc-giftcard-card {
        padding: 26px 22px;
    }

    .dc-reporting-card:first-child {
        padding: 32px 24px;
    }

    .dc-reporting-card {
        padding: 26px 22px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .dc-reveal {
        transition: opacity 0.2s linear;
        transform: none;
    }

    .dc-empathy-card,
    .dc-empathy-card:nth-child(2),
    .dc-bento-card,
    .dc-giftcard-card,
    .dc-reporting-card,
    .dc-empathy-conclusion,
    .dc-reporting-conclusion {
        transition: box-shadow 0.2s linear;
        transform: none !important;
    }

    .dc-empathy-card--image img {
        transition: none;
    }

    .dc-bento-icon,
    .dc-giftcard-icon,
    .dc-reporting-icon {
        transition: none;
    }
}
