/* ========================================
   Tablet and Mobile Header
======================================== */

@media (max-width: 900px) {

    .emmaus-container {
        width: min(calc(100% - 28px), 100%);
    }

    .emmaus-header-inner {
        position: relative;
        min-height: 78px;
        gap: 12px;
    }

    .emmaus-brand {
        max-width: calc(100% - 60px);
        gap: 10px;
    }

    .emmaus-brand-logo {
        width: 34px;
        height: 42px;
    }

    .emmaus-brand-tamil {
        font-size: 1.08rem;
        line-height: 1.35;
    }

    .emmaus-brand-english {
        max-width: 230px;
        overflow: hidden;
        font-size: 0.58rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .emmaus-menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .emmaus-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 80px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        border-top: 1px solid #e5e9f0;
        background: #ffffff;
        box-shadow: 0 18px 35px rgba(8, 35, 75, 0.14);
    }

    .emmaus-navigation.is-open {
        display: flex;
    }

    .emmaus-navigation a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #edf0f5;
        font-size: 0.95rem;
        white-space: normal;
    }
}


/* ========================================
   Mobile Hero
======================================== */

@media (max-width: 640px) {

    .emmaus-hero {
        min-height: auto;
        background-position: 62% center;
    }

    .emmaus-hero-overlay {
        min-height: 640px;
        align-items: flex-start;
        background:
            linear-gradient(
                180deg,
                rgba(3, 16, 39, 0.52) 0%,
                rgba(3, 16, 39, 0.86) 100%
            );
    }

    .emmaus-hero-content {
        max-width: 100%;
        padding: 82px 0 58px;
        padding-left: 0;
        text-align: left;
    }

    .emmaus-hero-title {
        max-width: 100%;
        font-size: clamp(2.45rem, 12vw, 3.7rem);
        line-height: 1.28;
    }

    .emmaus-hero-english-title {
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .emmaus-hero-tagline {
        margin-top: 17px;
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .emmaus-hero-buttons {
        display: grid;
        width: 100%;
        gap: 14px;
        margin-top: 30px;
    }

    .emmaus-button {
        width: 100%;
        min-height: 58px;
        padding: 14px 18px;
        font-size: 1rem;
    }


    /* Quick Actions */

    .emmaus-quick-actions {
        padding: 52px 0 58px;
    }

    .emmaus-quick-actions .emmaus-section-title {
        font-size: 2rem;
        line-height: 1.35;
    }

    .emmaus-quick-actions .emmaus-section-description {
        font-size: 0.95rem;
    }

    .emmaus-quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .emmaus-quick-action-card {
        min-width: 0;
        min-height: 225px;
        padding: 20px 15px 17px;
    }
}


@media (max-width: 380px) {

    .emmaus-brand-english {
        display: none;
    }

    .emmaus-brand-tamil {
        font-size: 1rem;
    }

    .emmaus-quick-actions-grid {
        grid-template-columns: 1fr;
    }
}