/**
 * Ideal Academy Home — UI/UX Pro Max Design System v3.7
 * Companion to elementor-ideal-academy.css
 */

.ideal-home-page {
    font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
    color: #44403C;
    background: #FBF8FA;
    line-height: 1.65;
}

.ideal-home-page * {
    box-sizing: border-box;
}

.ideal-home-wrap {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

.ideal-home-wrap--narrow {
    width: min(720px, 100%);
}

.ideal-home-page h1,
.ideal-home-page h2,
.ideal-home-page h3 {
    font-family: 'DM Serif Display', 'Noto Naskh Arabic', Georgia, serif;
    font-weight: 400;
    color: #1C1917;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.ideal-home-page p {
    margin: 0 0 16px;
    color: #44403C;
}

.ideal-home-page em {
    font-style: normal;
    color: #8B184B;
}

/* ─── Hero (editorial cream/magenta) ─── */

.ideal-home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF9 100%) !important;
    padding: 88px 0 72px;
    text-align: center;
    border-bottom: 1px solid #E7E5E4;
}

.ideal-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(139, 24, 75, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.ideal-home-hero > .ideal-home-wrap {
    position: relative;
    z-index: 1;
}

.ideal-home-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B184B !important;
    margin: 0 0 20px;
    padding: 6px 16px;
    background: #F3E4EC;
    border-radius: 999px;
}

.ideal-home-h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px !important;
    color: #1C1917 !important;
}

.ideal-home-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: #78716C !important;
    max-width: 600px;
    margin: 0 auto 32px !important;
}

.ideal-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin: 0;
}

.ideal-home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #E7E5E4;
}

.ideal-home-stats strong {
    display: block;
    font-family: 'DM Serif Display', 'Noto Naskh Arabic', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: #8B184B !important;
    line-height: 1.1;
}

.ideal-home-stats span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #78716C !important;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Trust strip ─── */

.ideal-home-trust {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E7E5E4;
    padding: 18px 0;
}

.ideal-home-trust__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 32px;
}

.ideal-home-trust__inner span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #44403C !important;
}

.ideal-home-trust__inner span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C9A227;
    flex-shrink: 0;
}

/* ─── Sections ─── */

.ideal-home-section {
    padding: 80px 0;
}

.ideal-home-section--white {
    background: #FFFFFF !important;
}

.ideal-home-section--muted {
    background: #FBF8FA !important;
}

.ideal-home-section--cream {
    background: #FFF9F5 !important;
}

.ideal-home-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B184B !important;
    margin: 0 0 12px !important;
    text-align: center;
}

.ideal-home-h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 16px !important;
}

.ideal-home-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px !important;
    color: #78716C !important;
    font-size: 17px;
    line-height: 1.7;
}

.ideal-home-center {
    text-align: center;
}

/* ─── Feature cards ─── */

.ideal-home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ideal-home-card {
    background: #FFFFFF;
    border: 1px solid #E7E5E4;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 24, 75, 0.06);
    transition:
        transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ideal-home-section--muted .ideal-home-card {
    background: #FFFFFF;
}

.ideal-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 24, 75, 0.14);
    border-color: #F3E4EC;
}

.ideal-home-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: #F3E4EC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ideal-home-card__icon::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B184B;
    opacity: 0.6;
}

.ideal-home-card h3 {
    font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1C1917 !important;
}

.ideal-home-card p {
    font-size: 15px;
    color: #78716C !important;
    margin: 0 !important;
    line-height: 1.65;
}

/* ─── Bento grid ─── */

.ideal-home-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.ideal-home-bento__cell {
    padding: 32px 28px;
    background: #FFFFFF;
    border: 1px solid #E7E5E4;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(139, 24, 75, 0.06);
    transition:
        transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ideal-home-bento__cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 24, 75, 0.10);
}

.ideal-home-bento__cell--wide {
    grid-column: span 2;
}

.ideal-home-bento__cell--accent {
    background: linear-gradient(145deg, #8B184B 0%, #6B1239 100%);
    border-color: transparent;
    color: #fff;
}

.ideal-home-bento__cell--accent h3 {
    color: #fff !important;
}

.ideal-home-bento__cell--accent p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.ideal-home-bento__cell--gold {
    background: #FBF6E8;
    border-color: rgba(201, 162, 39, 0.2);
}

.ideal-home-bento__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #C9A227;
    margin-bottom: 12px;
}

.ideal-home-bento__cell--accent .ideal-home-bento__label {
    color: rgba(255, 255, 255, 0.7);
}

.ideal-home-bento h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.ideal-home-bento p {
    font-size: 14px;
    color: #78716C;
    margin: 0 !important;
    line-height: 1.6;
}

/* ─── Steps ─── */

.ideal-home-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.ideal-home-steps article {
    background: #FFFFFF;
    border: 1px solid #E7E5E4;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 24, 75, 0.06);
    transition:
        transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ideal-home-steps article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 24, 75, 0.10);
}

.ideal-home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #8B184B;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 24, 75, 0.25);
}

.ideal-home-steps h3 {
    font-family: 'DM Sans', 'Noto Sans Arabic', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1C1917 !important;
}

.ideal-home-steps p {
    font-size: 14px;
    color: #78716C !important;
    margin: 0 !important;
    line-height: 1.6;
}

/* ─── Jobs grid ─── */

.ideal-home-jobs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.ideal-home-jobs article {
    background: #FFFFFF;
    border: 1px solid #E7E5E4;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(139, 24, 75, 0.06);
    transition:
        transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ideal-home-jobs article:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 24, 75, 0.14);
    border-color: #F3E4EC;
}

.ideal-home-job-link {
    display: block;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ideal-home-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B184B !important;
    background: #F3E4EC;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.ideal-home-jobs h3 {
    font-size: 1.25rem;
    color: #1C1917 !important;
}

.ideal-home-jobs p {
    font-size: 14px;
    color: #78716C !important;
    margin: 0 !important;
}

/* ─── CTA ─── */

.ideal-home-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 56px 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2D2D2D 0%, #44403C 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 32px rgba(28, 25, 23, 0.12);
    border-top: 3px solid #8B184B;
}

.ideal-home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(139, 24, 75, 0.14) 0%, transparent 55%);
    pointer-events: none;
}

.ideal-home-cta > * {
    position: relative;
    z-index: 1;
}

.ideal-home-cta h2 {
    font-family: 'DM Serif Display', 'Noto Naskh Arabic', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: #fff !important;
    margin-bottom: 14px !important;
}

.ideal-home-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
    max-width: 540px;
    margin: 0 auto 28px !important;
    font-size: 17px;
    line-height: 1.65;
}

.ideal-home-section--cta {
    background: #FBF8FA !important;
    padding-bottom: 80px;
}

.ideal-home-portal .ideal-home-actions {
    justify-content: center;
}

/* ─── Buttons ─── */

.ideal-home-page .ideal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        background 250ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ideal-home-page .ideal-btn-primary {
    background: #8B184B !important;
    color: #fff !important;
    border-color: #8B184B !important;
    box-shadow: 0 2px 8px rgba(139, 24, 75, 0.06);
}

.ideal-home-page .ideal-btn-primary:hover {
    background: #A02258 !important;
    border-color: #A02258 !important;
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(139, 24, 75, 0.10);
    transform: translateY(-1px);
}

.ideal-home-page .ideal-btn-secondary {
    background: #FFFFFF !important;
    color: #1C1917 !important;
    border-color: #E7E5E4 !important;
    box-shadow: 0 2px 8px rgba(139, 24, 75, 0.06);
}

.ideal-home-page .ideal-btn-secondary:hover {
    border-color: #8B184B !important;
    color: #8B184B !important;
    box-shadow: 0 8px 24px rgba(139, 24, 75, 0.10);
}

.ideal-home-page .ideal-btn-outline {
    background: transparent !important;
    color: #8B184B !important;
    border-color: #8B184B !important;
}

.ideal-home-page .ideal-btn-outline:hover {
    background: #F3E4EC !important;
    color: #6B1239 !important;
}

.ideal-home-page .ideal-btn-light {
    background: #8B184B !important;
    color: #FFFFFF !important;
    border-color: #8B184B !important;
    box-shadow: 0 4px 16px rgba(139, 24, 75, 0.25);
}

.ideal-home-page .ideal-btn-light:hover {
    background: #A02258 !important;
    border-color: #A02258 !important;
    color: #FFFFFF !important;
}

/* ─── Scroll reveal (home page) ─── */

.ideal-home-page .ideal-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ideal-home-page .ideal-home-hero.ideal-reveal,
.ideal-home-page .ideal-home-trust.ideal-reveal {
    opacity: 1;
    transform: none;
}

.ideal-home-page .ideal-reveal.ideal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
    .ideal-home-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .ideal-home-bento__cell--wide {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .ideal-home-hero {
        padding: 64px 0 56px;
    }

    .ideal-home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ideal-home-stats {
        gap: 24px;
        margin-top: 40px;
        padding-top: 32px;
    }

    .ideal-home-section {
        padding: 56px 0;
    }

    .ideal-home-bento {
        grid-template-columns: 1fr;
    }

    .ideal-home-bento__cell--wide {
        grid-column: span 1;
    }

    .ideal-home-page .ideal-btn {
        width: 100%;
    }

    .ideal-home-cta {
        padding: 48px 24px;
    }
}

/* ─── Kadence nav & accordion overrides (home page) ─── */

body.ideal-careers-site .ideal-home-page ~ .sub-menu,
body.ideal-careers-site .sub-menu {
    background: #FFFFFF !important;
}

body.ideal-careers-site .ideal-home-page .elementor-widget-accordion .elementor-tab-title,
body.ideal-careers-site .elementor-widget-accordion .elementor-tab-title {
    background: #FFFFFF !important;
    color: #1C1917 !important;
}

body.ideal-careers-site .ideal-home-page .elementor-widget-accordion .elementor-tab-title.elementor-active,
body.ideal-careers-site .elementor-widget-accordion .elementor-tab-title.elementor-active {
    background: #F3E4EC !important;
    color: #8B184B !important;
}

body.ideal-careers-site .ideal-home-page .elementor-widget-accordion .elementor-tab-content,
body.ideal-careers-site .elementor-widget-accordion .elementor-tab-content {
    background: #FFFFFF !important;
    color: #44403C !important;
}
