/* =========================================
   Digital Menu Feature Page
   Vibe: Clean Structuralism | Layout: Asymmetrical Bento
   ========================================= */

:root {
    --dm-primary: #0A192F;
    --dm-primary-hover: rgb(76, 62, 221);
    --dm-bg-light: #F8FAFC;
    --dm-bg-white: #FFFFFF;
    --dm-text-main: #0F172A;
    --dm-text-muted: #475569;
    --dm-border-radius: 20px;
    --dm-gap: 20px;
    --dm-max-w: 1100px;
}

/* =========================================
   SECTION HEADER (shared)
   ========================================= */
.dm-section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 720px;
    margin-inline: auto;
}

.dm-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--dm-text-main);
    line-height: 1.2;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.dm-section-header p {
    font-size: 1.125rem;
    color: var(--dm-text-muted);
    line-height: 1.7;
    max-width: 55ch;
    margin-inline: auto;
}

/* =========================================
   SCROLL ANIMATION (shared)
   ========================================= */
.dm-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.8s cubic-bezier(0.32, 0.72, 0, 1),
        filter 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.dm-reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* =========================================
   CATEGORY HEADER (shared)
   ========================================= */
.dm-category-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    max-width: var(--dm-max-w);
    margin-inline: auto;
}

.dm-category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dm-category-icon--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.dm-category-icon--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.dm-category-icon--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.dm-category-icon--orange {
    background: linear-gradient(135deg, rgba(255, 123, 38, 0.1), rgba(255, 123, 38, 0.05));
    color: #ff7b26;
}

.dm-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dm-text-main);
    margin: 0;
}

.dm-category-sub {
    flex-basis: 100%;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dm-text-muted);
    margin: -8px 0 0;
}

/* =========================================
   SECTION SEPARATOR (shared)
   ========================================= */
.dm-features-ops {
    margin-top: 80px;
}

/* =========================================
   EMPATHY GRID
   Isolated: uses .dm-empathy-cards + .dm-emp-* cards
   Layout: 3 equal columns (matches other feature pages)
   ========================================= */
.dm-empathy-theme {
    background-color: var(--primary-background);
    color: var(--dm-text-main);
}

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

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

.dm-empathy-cards {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dm-gap);
    max-width: var(--dm-max-w);
    margin: 0 auto;
}

/* --- Empathy cards --- */
.dm-emp-card {
    border-radius: var(--dm-border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--primary-header-and-footer-logo);
    border: 1px solid #dbe2f9;
    position: relative;
}

.dm-emp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(18, 38, 63, 0.08), 0 8px 15px rgba(18, 38, 63, 0.05);
}

.dm-emp-card--image {
    border: none;
    background: none;
}

.dm-emp-card--image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border-radius: var(--dm-border-radius);
}

/* Empathy overlay */
.dm-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%);
    border-radius: 0 0 var(--dm-border-radius) var(--dm-border-radius);
}

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

.dm-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);
}

/* Empathy conclusion: full-width row below grid */
.dm-empathy-conclusion {
    margin-top: 48px;
    text-align: center;
    padding: 24px 32px;
    max-width: var(--dm-max-w);
    margin-inline: auto;
    background-color: var(--primary-header-and-footer-logo);
    border: 1px solid #dbe2f9;
    border-radius: var(--dm-border-radius);
}

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

/* =========================================
   FEATURES BENTO CARD (shared base)
   All feature cards share this base style
   ========================================= */
.dm-bento-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1px solid #dbe2f9;
    border-radius: var(--dm-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.dm-bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(18, 38, 63, 0.08), 0 8px 15px rgba(18, 38, 63, 0.05);
}

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

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

/* --- Icon base --- */
.dm-bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.dm-bento-icon--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.dm-bento-icon--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.dm-bento-icon--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.dm-bento-icon--orange {
    background: linear-gradient(135deg, rgba(255, 123, 38, 0.1), rgba(255, 123, 38, 0.05));
    color: #ff7b26;
}

.dm-bento-icon--red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.dm-bento-icon--teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.05));
    color: #14b8a6;
}

/* =========================================
   FEATURES GRID 1 — 3 cards (Hero + 2 Side)
   Scoped: .dm-feat-grid-1
   ========================================= */
.dm-feat-grid-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--dm-gap);
    max-width: var(--dm-max-w);
    margin: 0 auto;
}

.dm-feat-grid-1 .dm-bento-card--hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 32px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-1 .dm-bento-card--hero .dm-bento-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.dm-feat-grid-1 .dm-bento-card--hero .dm-bento-icon svg {
    width: 36px;
    height: 36px;
}

.dm-feat-grid-1 .dm-bento-card--hero h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.dm-feat-grid-1 .dm-bento-card--hero p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.dm-feat-grid-1 .dm-bento-card--side-a {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 24px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-1 .dm-bento-card--side-a h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.dm-feat-grid-1 .dm-bento-card--side-a p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.dm-feat-grid-1 .dm-bento-card--side-b {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 24px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-1 .dm-bento-card--side-b h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.dm-feat-grid-1 .dm-bento-card--side-b p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* =========================================
   FEATURES GRID 2 — 3 cards (Hero + 2 Side)
   Scoped: .dm-feat-grid-2
   ========================================= */
.dm-feat-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--dm-gap);
    max-width: var(--dm-max-w);
    margin: 0 auto;
}

.dm-feat-grid-2 .dm-bento-card--hero {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding: 32px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-2 .dm-bento-card--hero .dm-bento-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.dm-feat-grid-2 .dm-bento-card--hero .dm-bento-icon svg {
    width: 36px;
    height: 36px;
}

.dm-feat-grid-2 .dm-bento-card--hero h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.dm-feat-grid-2 .dm-bento-card--hero p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.dm-feat-grid-2 .dm-bento-card--side-a {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 24px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-2 .dm-bento-card--side-a h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.dm-feat-grid-2 .dm-bento-card--side-a p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.dm-feat-grid-2 .dm-bento-card--side-b {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    padding: 24px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-2 .dm-bento-card--side-b h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.dm-feat-grid-2 .dm-bento-card--side-b p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* =========================================
   FEATURES GRID 3 — 2 cards (simple 2-col)
   Scoped: .dm-feat-grid-3
   ========================================= */
.dm-feat-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--dm-gap);
    max-width: 800px;
    margin: 0 auto;
}

.dm-feat-grid-3 .dm-bento-card {
    padding: 32px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.dm-feat-grid-3 .dm-bento-card .dm-bento-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.dm-feat-grid-3 .dm-bento-card .dm-bento-icon svg {
    width: 36px;
    height: 36px;
}

.dm-feat-grid-3 .dm-bento-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.dm-feat-grid-3 .dm-bento-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

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

/* =========================================
   RESPONSIVE — EMPATHY
   ========================================= */
@media (max-width: 992px) {
    .dm-section-header h2 {
        font-size: 2rem;
    }

    .dm-section-header {
        margin-bottom: 56px;
    }
}

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

    .dm-section-header {
        margin-bottom: 48px;
    }

    .dm-section-header h2 {
        font-size: 1.75rem;
    }

    .dm-category-header {
        flex-direction: column;
        text-align: center;
    }
}

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

    .dm-empathy-overlay {
        padding: 16px;
    }

    .dm-empathy-text {
        font-size: 0.9rem;
    }
}

/* =========================================
   RESPONSIVE — FEATURES GRID 1
   ========================================= */
@media (max-width: 992px) {
    .dm-feat-grid-1 {
        grid-template-columns: 1fr;
    }

    .dm-feat-grid-1 .dm-bento-card--hero {
        grid-column: auto;
        grid-row: auto;
    }

    .dm-feat-grid-1 .dm-bento-card--side-a,
    .dm-feat-grid-1 .dm-bento-card--side-b {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .dm-feat-grid-1 {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .dm-feat-grid-1 .dm-bento-card {
        padding: 24px 20px;
    }
}

/* =========================================
   RESPONSIVE — FEATURES GRID 2
   ========================================= */
@media (max-width: 992px) {
    .dm-feat-grid-2 {
        grid-template-columns: 1fr;
    }

    .dm-feat-grid-2 .dm-bento-card--hero {
        grid-column: auto;
        grid-row: auto;
    }

    .dm-feat-grid-2 .dm-bento-card--side-a,
    .dm-feat-grid-2 .dm-bento-card--side-b {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .dm-feat-grid-2 {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .dm-feat-grid-2 .dm-bento-card {
        padding: 24px 20px;
    }
}

/* =========================================
   RESPONSIVE — FEATURES GRID 3
   ========================================= */
@media (max-width: 768px) {
    .dm-feat-grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .dm-feat-grid-3 .dm-bento-card {
        padding: 24px 20px;
    }
}