/* ==========================================================================
   Mobile Applications (child page of the IT Consulting hub) styles
   Uses tokens from css/brand-v1.6.css. Master-brand / cross-platform page,
   so accents stay Navy + Teal — never Indigo or Coral here.
   ========================================================================== */

/* ---- Hero visual: two overlapping phone frames (2026-08-17, Track B
   Cluster A; frame+fill fix 2026-08-17) — a literal "iOS & Android, one
   team" visual: two device outlines, one offset behind and dimmed, one in
   front and accent-bordered.

   Frame+fill fix: added an enclosing .mahv-frame (matching the site's
   established hero-visual convention — see it-consulting.css's comment
   for the full writeup); the two phones keep their own individual borders
   inside it, same relationship as browser-chrome dots sitting inside a
   mockup window elsewhere on the site. Phone dimensions changed from fixed
   pixels to percentages of the frame so they scale correctly at any
   render size instead of a fixed 96x190px regardless of container. ---- */

.mahv-fallback {
    position: absolute;
    inset: 0;
}

.mahv-frame {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.mahv-phone {
    position: absolute;
    width: 34%;
    height: 74%;
    border-radius: 20px;
    background: var(--da-navy-700);
    border: 2px solid rgba(255, 255, 255, 0.18);
    padding: 10px 8px;
}

.mahv-phone--back {
    top: 10%;
    left: 26%;
    opacity: 0.55;
}

.mahv-phone--front {
    top: 24%;
    left: 42%;
    border-color: var(--accent, var(--da-teal-400));
    box-shadow: 0 14px 30px rgba(8, 25, 47, 0.35);
}

.mahv-phone-notch {
    width: 30px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 10px;
}

.mahv-phone-screen {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mahv-phone-line {
    height: 6px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--da-white) 22%, transparent);
}

.mahv-phone-line:nth-child(1) {
    width: 70%;
}

.mahv-phone-line:nth-child(2) {
    width: 50%;
}

/* ---- Shared section label / title pattern ---- */

/* ---- Overview ---- */

.ma-intro {
    padding: 70px 0 20px;
    background: var(--da-white);
}

/* ---- Core Features ---- */

.ma-features {
    padding: 60px 0;
    background: var(--da-gray-100);
}

/* ---- Benefits + Consultation CTA ---- */

.ma-benefits {
    padding: 70px 0;
    background: var(--da-white);
}

.ma-consult-text {
    font-size: 0.98rem;
    color: var(--da-gray-500);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ---- Related practice areas ---- */

.ma-related {
    padding: 60px 0 70px;
    background: var(--da-gray-100);
}

/* ---- Closing CTA band ---- */

.ma-cta-band {
    background: var(--da-navy-700);
    padding: 60px 0;
}

.ma-cta-content {
    text-align: center;
    color: var(--da-white);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
    .ma-hero {
        padding: 120px 0 60px;
    }

    .ma-hero-title {
        font-size: 2.1rem;
    }

    .ma-hero-visual {
        max-width: 380px;
        margin-top: 1rem;
    }

    .ma-section-title {
        font-size: 1.65rem;
    }

    .ma-consult-card {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .ma-hero-title {
        font-size: 1.75rem;
    }

    .ma-section-title {
        font-size: 1.5rem;
    }

    .ma-feature-card,
    .ma-related-card {
        padding: 1.75rem;
    }

    .ma-consult-card {
        padding: 2rem 1.5rem;
    }

    .ma-cta-title {
        font-size: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ma-feature-card,
    .ma-related-card,
    .ma-consult-cta,
    .ma-cta-actions a {
        transition: none;
    }

    .ma-feature-card:hover,
    .ma-related-card:hover,
    .ma-consult-cta:hover,
    .ma-cta-actions a:hover {
        transform: none;
    }
}
