@charset "UTF-8";

/* =========================================================
   Autotrak Mauritius — landing page
   Brand charcoal (#2f2b2c, as the original page).
   The master brand artwork is monochrome — charcoal, white and greys.
   Red/orange/yellow/green belong to the individual products (Alert,
   Approve, Supreme, Monitor), so none of them appear here.
   ========================================================= */

:root {
    --bg: #2f2b2c;
    --bg-alt: #272324;
    --panel: #3a3536;
    --panel-hover: #4a4445;
    --line: rgba(255, 255, 255, 0.14);
    --ink: #f4f2f2;
    --ink-muted: #b8b1b2;
    /* Emphasis is carried by light-on-dark inversion, not by a colour. */
    --accent: #f4f2f2;
    --accent-hover: #ffffff;
    --on-accent: #2f2b2c;
    --radius: 6px;
    --maxw: 1140px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ink);
}

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 20px;
}

.wrap-narrow {
    max-width: 800px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--on-accent);
    padding: 10px 16px;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--accent-hover);
    outline-offset: 2px;
}

/* ---------------- Header ---------------- */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand img {
    display: block;
    width: 220px;
    height: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    font-size: .95rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink-muted);
    padding: 6px 0;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--ink);
}

.nav-cta {
    color: var(--on-accent) !important;
    background: var(--accent);
    border-radius: var(--radius);
    padding: 8px 16px !important;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

/* ---------------- Hero ---------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 72px 0 64px;
    background: var(--bg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url("/Images/hero-mauritius.jpg") center 55% / cover no-repeat;
    filter: grayscale(35%) brightness(1) contrast(1.02);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg,
        rgba(47, 43, 44, .88) 0%,
        rgba(47, 43, 44, .76) 32%,
        rgba(47, 43, 44, .46) 58%,
        rgba(47, 43, 44, .22) 100%);
}

.hero-copy {
    text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    color: var(--accent-hover);
    margin-bottom: .8em;
    font-weight: 700;
}

.lede {
    font-size: 1.1rem;
    color: var(--ink-muted);
    max-width: 46em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    /* explicit, so <button class="btn btn-ghost"> does not pick up the UA grey */
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--ink-muted);
}

.hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: var(--ink-muted);
    font-size: .95rem;
}

.hero-points li::before {
    content: "\2713";
    color: var(--accent-hover);
    margin-right: 8px;
    font-weight: 700;
}

/* ---------------- Login card ---------------- */

.login-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.login-card h2 {
    font-size: 1.25rem;
    margin-bottom: .25em;
}

.login-sub {
    color: var(--ink-muted);
    font-size: .9rem;
    margin-bottom: 1.2em;
}

#login_fields input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: #222;
    font-size: 1rem;
}

#login_button {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

#login_button:hover {
    background: var(--accent-hover);
}

.login-status {
    min-height: 1.4em;
    margin: 0 0 8px;
    font-size: .85rem;
}

#lblstatus {
    color: var(--ink);
    font-weight: 600;
}

.login-forgot {
    margin: 14px 0 0;
    font-size: .85rem;
    text-align: center;
}

.login-forgot a {
    color: var(--ink-muted);
}

/* ---------------- Error page (404) ---------------- */

.error-hero {
    /* The 404 page has no content below the fold, so give it enough height to
       stop the footer riding up under the heading on a tall desktop viewport. */
    min-height: 58vh;
    display: flex;
    align-items: center;
}

.error-help {
    color: var(--ink-muted);
    font-size: .92rem;
    margin: 0;
}

/* ---------------- Trust strip ---------------- */

.strip {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.strip-grid strong {
    display: block;
    font-size: 1.15rem;
}

.strip-grid span {
    color: var(--ink-muted);
    font-size: .9rem;
}

/* ---------------- Sections ---------------- */

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-lede {
    color: var(--ink-muted);
    max-width: 60ch;
    margin-bottom: 2em;
}

.cards {
    display: grid;
    gap: 20px;
}

.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.card h3 {
    color: #fff;
}

.card p {
    color: var(--ink-muted);
    margin: 0;
    font-size: .95rem;
}

/* ---------------- Apps ---------------- */

.apps-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 22px;
    min-width: 200px;
}

.store-icon {
    width: 26px;
    height: 26px;
    flex: none;
}

.store-link:hover,
.store-link:focus {
    border-color: var(--accent);
    background: var(--panel-hover);
}

.store-link-text {
    display: block;
}

.store-link-sub {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
}

.store-link-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

/* ---------------- Coverage ---------------- */

.coverage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.area-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    color: var(--ink-muted);
    font-size: .95rem;
}

.area-list li {
    padding-left: 16px;
    position: relative;
}

.area-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------------- FAQ ---------------- */

details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    padding-right: 28px;
    position: relative;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    color: var(--accent-hover);
    font-size: 1.4rem;
    line-height: 1;
}

details[open] summary::after {
    content: "\2013";
}

details p {
    color: var(--ink-muted);
    margin: 12px 0 0;
}

/* ---------------- Contact ---------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.contact-details {
    font-style: normal;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    color: var(--ink-muted);
}

/* ---------------- Footer ---------------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    font-size: .88rem;
    color: var(--ink-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.site-footer a {
    color: var(--ink-muted);
}

.footer-copy {
    text-align: right;
}

/* ---------------- Pricing & installation ---------------- */

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.pricing-grid h3 {
    margin-top: 1.4em;
}

.pricing-grid h3:first-child {
    margin-top: 0;
}

.area-list-single {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1em;
}

/* ---------------- Follow us / group sites ---------------- */

.follow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.social-list,
.site-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.social-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 600;
}

.social-icon {
    width: 22px;
    height: 22px;
    flex: none;
}

.site-list a {
    display: block;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 18px;
}

.social-list a:hover,
.social-list a:focus,
.site-list a:hover,
.site-list a:focus {
    border-color: var(--accent);
    background: var(--panel-hover);
}

.site-list-name {
    display: block;
    font-weight: 600;
}

.site-list-sub {
    display: block;
    color: var(--ink-muted);
    font-size: .88rem;
}

/* ---------------- Modal / product picker ---------------- */

.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 200;
}

.modal {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.modal h2 {
    font-size: 1.4rem;
    margin-bottom: .3em;
}

.modal-sub {
    color: var(--ink-muted);
    font-size: .95rem;
    margin-bottom: 1.2em;
}

.product-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.product-option {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    cursor: pointer;
}

.product-option:hover,
.product-option:focus {
    border-color: var(--accent);
    background: var(--panel-hover);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions .btn {
    cursor: pointer;
    font: inherit;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
    .hero-grid,
    .apps-grid,
    .coverage-grid,
    .follow-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-copy {
        text-align: left;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .header-inner {
        justify-content: center;
    }

    .site-nav {
        justify-content: center;
        gap: 4px 14px;
    }

    .hero {
        padding: 36px 0 32px;
    }

    .hero::after {
        background: linear-gradient(180deg,
            rgba(47, 43, 44, .78) 0%,
            rgba(47, 43, 44, .55) 45%,
            rgba(47, 43, 44, .75) 100%);
    }

    .section {
        padding: 44px 0;
    }

    .cards-3,
    .area-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .store-link {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
