/* ==========================================================================
   Responsive and accessibility polish for the public (landing) pages.
   Linked LAST in Views/Shared/_LayoutMain.cshtml so it wins over the per-page
   stylesheets, which each define their own copy of the same rules.
   ========================================================================== */

/* Small labels ("Key Features", "Includes", "Ideal For", testimonial role...) used --muted2
   (#5f757b), about 3:1 on the dark cards - under the 4.5:1 WCAG AA minimum for small text.
   A lighter value fixes every use at once. */
:root {
    --muted2: #85999f;
}

/* "Ziac Softwares" / "ZiacSoft" links in the footer: brand blue was 3.9:1 on the dark footer. */
.footer-bottom a,
.footer-bottom-row a {
    color: #6b9bff;
}

/* ---- Tablets (601-768px): keep two columns instead of one stretched column ------------ */
/* The per-page sheets collapse every card grid to a single column at 768px, which leaves a
   portrait tablet with full-width cards holding two lines of text. */
@media (min-width: 601px) and (max-width: 768px) {
    .grid.g4,
    .grid.g3,
    .grid.ind-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Phones and tablets ---------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Wide comparison tables scroll sideways inside .table-wrap. Say so: before this, three of
       the five plan columns were hidden with nothing to show they were there. */
    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }

        .table-wrap::before {
            content: "Swipe sideways to see all columns \2192";
            display: block;
            position: sticky; /* stays put while the table scrolls under it */
            left: 0;
            padding: 8px 14px 6px;
            font-size: 12px;
            color: var(--muted);
        }

    /* Tap targets: footer links were ~15px tall, social icons 34px, header buttons 35px.
       Aim for 40px+ without changing how the footer looks. */
    .footer-col ul li a {
        display: inline-block;
        padding: 11px 8px;
    }

    .footer-social {
        gap: 8px;
    }

        .footer-social .social-icon {
            width: 40px;
            height: 40px;
        }

    .nav-actions .nav-login,
    nav .nav-cta {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* ---- Phones ------------------------------------------------------------------------------ */
@media (max-width: 600px) {
    /* The Associates page justifies its text with an inline style; on a narrow column that
       opens wide gaps between words. */
    p.lead[style*="justify"] {
        text-align: left !important;
    }
}
