/* ================================================================
   home-v2.css — Homepage redesign (v2)
   Scope: homepage-only sections. Loaded once from index.blade.php.
   Relies on tokens defined in main.css (--mta-*, --accent-color, etc.)
   The generic [data-reveal] scroll utility, the .mta-service-*
   card/sidebar component, and .mta-final-cta now live in main.css
   since the Services and About pages use them too — see that file
   instead.
   ================================================================ */

/* ================================================================
   Accreditation bar — prominent trust strip
   ================================================================ */
.mta-accred {
    background: var(--mta-gray-100, #F2F4F6);
    border-radius: var(--mta-radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    justify-content: space-between;
}

.mta-accred-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 260px;
}

.mta-accred-heading .bi {
    font-size: 34px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.mta-accred-heading h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--heading-color);
}

.mta-accred-heading p {
    font-size: 13.5px;
    margin: 0;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.mta-accred-logos {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    flex: 2 1 380px;
}

.mta-accred-logos img {
    max-height: 52px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.mta-accred-logos img:hover {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.mta-accred-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: 50px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    box-shadow: var(--mta-shadow-cta);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mta-accred-cta:hover {
    color: #ffffff;
    background: var(--accent-color-dark, #A32D26);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(190, 54, 46, .34);
}

@media (max-width: 767px) {
    .mta-accred { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 20px; }
    .mta-accred-heading { flex-direction: column; text-align: center; }
    .mta-accred-logos { justify-content: center; }
    .mta-accred-cta { justify-content: center; }
}

/* ================================================================
   Stats — dark deliberate "visual pause"
   ================================================================ */
.mta-stats {
    padding: 64px 0;
}

.mta-stats .section-title p,
.mta-stats .section-title h2 {
    color: #ffffff;
}

.mta-stats .section-title h2 {
    color: rgba(255, 255, 255, 0.55);
}

.mta-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.mta-stat-card {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--mta-radius-md);
    padding: 28px 16px;
    text-align: center;
}

.mta-stat-num {
    display: block;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.mta-stat-num .plus {
    color: var(--accent-color);
}

.mta-stat-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.mta-stats-cta {
    text-align: center;
    margin-top: 36px;
}

/* "تعرف على قصتنا" sits on the dark navy stats background — the default
   red-text cta-btn has poor contrast there. Make it a clear white outline
   button that inverts to solid white on hover. */
.mta-stats-cta .cta-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.mta-stats-cta .cta-btn:hover {
    background: #ffffff;
    color: var(--mta-navy-900, #16233a);
    border-color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

/* ================================================================
   Homepage density + stats CTA restyle — both languages.
   Scoped to .index-page (the homepage body) so it never touches inner
   pages; home-v2.css only loads here anyway. Order matters: generic
   .section first, then band-specific overrides win by equal specificity
   + later source order.
   ================================================================ */

/* Tighter vertical rhythm — less empty space between sections */
.index-page .section {
    padding: 30px 0;
}

.index-page .section-title {
    padding-bottom: 28px;
}

/* Shorter dark statistics band */
.index-page .mta-stats {
    padding: 40px 0;
}

/* Shorter final CTA band ("جاهزون لحماية منشأتك") */
.index-page .mta-final-cta {
    padding: 44px 0 52px;
}

/* "تعرف على قصتنا" / "Learn Our Story" — borderless, prominent
   brand-tinted text with a clear hover (replaces the outlined pill). */
.index-page .mta-stats-cta .cta-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 0;
    padding: 8px 6px;
    font-weight: 700;
    color: color-mix(in srgb, var(--accent-color), white 45%);
    transition: color 0.25s ease, transform 0.25s ease;
}

.index-page .mta-stats-cta .cta-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ================================================================
   Why us
   ================================================================ */
.mta-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.mta-why-card {
    text-align: center;
    padding: 30px 20px;
}

.mta-why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent-color), transparent 90%);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.mta-why-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--heading-color);
}

.mta-why-card p {
    font-size: 14px;
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    margin: 0;
}

/* ================================================================
   Process — how we work
   ================================================================ */
.mta-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    counter-reset: mta-step;
}

.mta-process-step {
    position: relative;
    text-align: center;
    padding: 0 18px;
}

.mta-process-step::before {
    counter-increment: mta-step;
    content: counter(mta-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

/* Connector line from each step's circle towards the NEXT step in reading
   order. LTR reads left→right so it extends rightward (`left` anchor);
   RTL reads right→left so it extends leftward (`right` anchor). */
.mta-process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent-color), transparent 60%) 0 8px, transparent 8px 16px);
}

[dir="rtl"] .mta-process-step:not(:last-child)::after {
    left: auto;
    right: calc(50% + 24px);
}

.mta-process-step h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--heading-color);
}

.mta-process-step p {
    font-size: 13px;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
    margin: 0;
}

@media (max-width: 767px) {
    .mta-process-step::after { display: none; }
}

/* ================================================================
   Section eyebrow spacing polish (shared, low risk)
   ================================================================ */
.mta-section-pad {
    padding: 64px 0;
}

/* ================================================================
   Projects — smaller, uniform thumbnails (homepage teaser only;
   the standalone /project page keeps its current sizing for now)
   ================================================================ */
.mta-projects-compact .member-img {
    aspect-ratio: 16 / 9;
}

.mta-projects-compact .member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mta-projects-compact .member-info {
    padding: 16px 14px;
}

/* Fixed two-line title height so the category badges line up across all cards */
.mta-projects-compact .member-info h4 {
    font-size: 15px;
    min-height: 2.8em;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category badge is now a non-clickable <span>; restore the red pill look
   (it used to inherit it from `.team a`) using the existing tokens. */
.mta-projects-compact .member-info .cta-btn-container .cta-btn {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--contrast-color);
    background: var(--accent-color);
    border-radius: 50px;
    box-shadow: none;
}
