
/* =====================================================
   IPEM SYSTEMS - PUBLIC WEBSITE
   Independent from existing application styles
   ===================================================== */

:root {
    --navy: #102c50;
    --navy-dark: #0a203b;
    --blue: #1769c2;
    --blue-light: #eaf3ff;
    --teal: #149c96;
    --gold: #e8b65c;
    --purple: #7865cf;
    --text: #26374b;
    --muted: #68778a;
    --border: #e3eaf2;
    --background: #f6f9fd;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(16, 44, 80, .07);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.nav-wrapper {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    color: white;
    background: linear-gradient(140deg, #2478d0, var(--navy));
    font-size: 28px;
    font-weight: 800;
    font-family: Georgia, serif;
}

.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.brand-name strong {
    display: inline;
    font-weight: 500;
    letter-spacing: 2.2px;
    font-size: 12px;
}

.brand-name small {
    margin-top: 5px;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav > a {
    font-size: 13px;
    font-weight: 600;
    color: #43546a;
    transition: color .2s ease;
}

.main-nav > a:hover {
    color: var(--blue);
}

.main-nav .nav-login {
    color: white;
    background: var(--navy);
    padding: 11px 18px;
    border-radius: 8px;
}

.main-nav .nav-login:hover {
    color: white;
    background: var(--blue);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
    border-radius: 2px;
}

/* BUTTONS */

.btn {
    min-height: 48px;
    padding: 12px 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    transition: transform .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    background: var(--blue);
    box-shadow: 0 5px 15px rgba(23, 105, 194, .15);
}

.btn-primary:hover {
    background: #1057a6;
}

.btn-outline {
    color: var(--navy);
    border-color: #cdd8e6;
    background: white;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-white {
    color: var(--navy);
    background: white;
}

.btn-white:hover {
    background: #edf4fc;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 94px;
    background:
        radial-gradient(ellipse at 88% 20%, #e8f2ff 0, transparent 42%),
        linear-gradient(115deg, #ffffff 45%, #f3f8ff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.03fr;
    align-items: center;
    gap: 62px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.hero h1 {
    margin: 0 0 23px;
    color: var(--navy);
    font-size: clamp(38px, 4.4vw, 57px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -2.2px;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 500px;
    margin: 0 0 29px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 27px;
    color: #53677e;
    font-size: 12px;
    font-weight: 600;
}

.trust-check {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    color: #0b8d75;
    background: #dff7ee;
    border-radius: 50%;
    font-weight: 800;
}

/* HERO DASHBOARD ILLUSTRATION */

.hero-visual {
    position: relative;
    padding: 15px 0 32px;
}

.visual-glow {
    position: absolute;
    inset: 10% -5% 5% 10%;
    background: #d9eaff;
    filter: blur(65px);
    opacity: .65;
    border-radius: 50%;
}

.dashboard-window {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid #dce6f1;
    border-radius: 15px;
    box-shadow: 0 30px 75px rgba(18, 54, 96, .15);
    transform: rotate(-1deg);
}

.dashboard-top {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    background: #fbfcfe;
    border-bottom: 1px solid var(--border);
    color: #66768b;
    font-size: 10px;
    font-weight: 600;
}

.window-dots {
    display: flex;
    gap: 4px;
}

.window-dots i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1dbe8;
}

.dashboard-status {
    margin-left: auto;
    padding: 4px 8px;
    color: #087d68;
    background: #e4f7f0;
    border-radius: 5px;
    font-size: 9px;
}

.dashboard-body {
    padding: 25px;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-welcome small {
    color: #7c8da2;
    font-size: 9px;
    letter-spacing: 1.1px;
    font-weight: 800;
}

.dashboard-welcome h3 {
    margin: 5px 0 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.4;
}

.dashboard-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    color: white;
    background: var(--navy);
    border-radius: 10px;
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #e7edf5;
    border-radius: 10px;
    background: #fff;
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 13px;
    border-radius: 9px;
    font-size: 18px;
    font-weight: 800;
}

.stat-blue {
    color: var(--blue);
    background: #eaf2ff;
}

.stat-teal {
    color: #078a80;
    background: #e0f7f4;
}

.stat-gold {
    color: #a66b12;
    background: #fff3db;
}

.stat-purple {
    color: var(--purple);
    background: #f0edff;
}

.stat-card > small {
    color: #78869a;
    font-size: 10px;
}

.stat-card > strong {
    margin-top: 3px;
    color: var(--navy);
    font-size: 12px;
}

.stat-caption {
    margin-top: 4px;
    color: #8592a4;
    font-size: 9px;
}

.dashboard-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 14px;
    background: #f4f8fd;
    border-radius: 9px;
}

.note-indicator {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    background: #18a58d;
    border-radius: 50%;
}

.dashboard-note div {
    display: flex;
    flex-direction: column;
}

.dashboard-note strong {
    color: var(--navy);
    font-size: 11px;
}

.dashboard-note small {
    color: #7b899b;
    font-size: 10px;
}

.floating-badge {
    position: absolute;
    right: -16px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 17px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: var(--shadow);
}

.floating-badge-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #087d68;
    background: #e0f7f0;
    border-radius: 9px;
    font-weight: 800;
}

.floating-badge div {
    display: flex;
    flex-direction: column;
}

.floating-badge strong {
    color: var(--navy);
    font-size: 11px;
}

.floating-badge small {
    color: var(--muted);
    font-size: 9px;
}

/* TRUST STRIP */

.trust-strip {
    padding: 23px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.trust-strip span {
    color: #65768b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.trust-strip i {
    width: 4px;
    height: 4px;
    background: #b6c6d8;
    border-radius: 50%;
}

/* SECTIONS */

.section {
    padding: 88px 0;
}

.solutions-section {
    background: #fff;
}

.services-section {
    background: var(--background);
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.about-content h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: clamp(28px, 3.2vw, 39px);
    line-height: 1.25;
    letter-spacing: -1.1px;
}

.section-heading p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* SOFTWARE CARDS */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.solution-card,
.service-card {
    padding: 29px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s ease, box-shadow .25s ease;
}

.solution-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.featured-card {
    border-top: 3px solid var(--blue);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 25px;
    font-weight: 700;
}

.icon-blue {
    color: var(--blue);
    background: #eaf2ff;
}

.icon-teal {
    color: #078a80;
    background: #e0f7f4;
}

.icon-purple {
    color: var(--purple);
    background: #f0edff;
}

.card-category {
    display: block;
    margin-bottom: 8px;
    color: #74849a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.solution-card h3,
.service-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.4;
}

.solution-card p,
.service-card p {
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.feature-list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    margin: 9px 0;
    padding-left: 22px;
    color: #506176;
    font-size: 12px;
}

.feature-list li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: #149c86;
    font-weight: 800;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.card-link span {
    font-size: 17px;
    transition: transform .2s ease;
}

.card-link:hover span {
    transform: translateX(4px);
}

/* PAYE CALCULATOR BANNER */

.calculator-banner {
    display: flex;
    align-items: center;
    gap: 23px;
    margin-top: 32px;
    padding: 27px 31px;
    background: linear-gradient(105deg, #edf5ff, #f6f9ff);
    border: 1px solid #dce9fa;
    border-radius: var(--radius);
}

.calculator-symbol {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 59px;
    height: 59px;
    color: white;
    background: var(--blue);
    border-radius: 13px;
    font-size: 27px;
    font-weight: 800;
}

.calculator-copy {
    flex: 1;
}

.calculator-copy h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 20px;
}

.calculator-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* PROFESSIONAL SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    border-color: #e8edf4;
    box-shadow: 0 5px 20px rgba(16, 44, 80, .025);
}

.service-icon {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-bottom: 21px;
    color: var(--blue);
    background: #eaf2ff;
    border-radius: 11px;
    font-size: 22px;
    font-weight: 800;
}

/* ABOUT */

.about-section {
    padding: 95px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.about-visual {
    position: relative;
    padding: 15px;
    background: linear-gradient(140deg, #edf5ff, #f7faff);
    border-radius: 22px;
}

.about-panel {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 37px;
    color: white;
    background:
        radial-gradient(circle at 90% 10%, #245c91 0, transparent 40%),
        linear-gradient(145deg, #153d68, #0b2341);
    border-radius: 15px;
}

.about-panel::after {
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 30px rgba(255, 255, 255, .025),
                0 0 0 65px rgba(255, 255, 255, .025);
}

.about-panel-label {
    color: #a9c9ee;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.about-panel-line {
    width: 47px;
    height: 3px;
    margin: 25px 0;
    background: var(--gold);
    border-radius: 3px;
}

.about-panel h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 15px;
    font-size: 28px;
    line-height: 1.4;
}

.about-panel p {
    position: relative;
    z-index: 1;
    max-width: 330px;
    color: #c3d3e7;
    font-size: 13px;
}

.about-pill-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.about-pill-row span {
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 30px;
    color: #e5effb;
    font-size: 10px;
}

.about-content .eyebrow {
    margin-bottom: 13px;
}

.about-content h2 {
    font-size: 36px;
}

.about-content p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.about-content .btn {
    margin-top: 12px;
}

/* CONTACT CTA */

.contact-cta {
    padding: 53px 0;
    color: white;
    background:
        radial-gradient(ellipse at 90% 10%, #244f7d 0, transparent 45%),
        var(--navy);
}

.contact-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.eyebrow-light {
    color: #a9c9ee;
    margin-bottom: 9px;
}

.contact-cta h2 {
    margin: 0 0 9px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.3;
    letter-spacing: -.7px;
}

.contact-cta p {
    margin: 0;
    color: #c5d5e8;
    font-size: 13px;
}

.contact-cta .btn {
    flex-shrink: 0;
}

/* FOOTER */

.site-footer {
    padding: 62px 0 0;
    color: #d0dceb;
    background: #091b31;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr .8fr;
    gap: 40px;
    padding-bottom: 46px;
}

.brand-footer .brand-name {
    color: white;
}

.brand-footer .brand-name small {
    color: #a6b6ca;
}

.footer-brand p {
    max-width: 320px;
    margin: 21px 0 0;
    color: #9eafc5;
    font-size: 12px;
    line-height: 1.9;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-column h4 {
    margin: 3px 0 8px;
    color: white;
    font-size: 12px;
}

.footer-column a {
    color: #a9bad0;
    font-size: 11px;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom p,
.footer-bottom span {
    margin: 0;
    color: #90a3bb;
    font-size: 10px;
}

/* TABLET */

@media (max-width: 1050px) {
    .main-nav {
        gap: 15px;
    }

    .main-nav > a {
        font-size: 12px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .solution-card,
    .service-card {
        padding: 23px;
    }

    .about-grid {
        gap: 45px;
    }

    .footer-grid {
        gap: 25px;
    }
}

/* MOBILE NAVIGATION */

@media (max-width: 820px) {
    .container {
        width: min(100% - 36px, 680px);
    }

    .nav-wrapper {
        min-height: 73px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 22px 22px;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 15px 20px rgba(16, 44, 80, .08);
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav > a {
        padding: 12px 4px;
        font-size: 14px;
    }

    .main-nav .nav-login {
        margin-top: 8px;
        padding: 12px 15px;
        text-align: center;
    }

    .hero {
        padding: 62px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(38px, 8vw, 51px);
    }

    .hero-visual {
        width: min(100%, 540px);
        margin: 0 auto;
    }

    .trust-strip-inner {
        justify-content: center;
        gap: 12px 20px;
    }

    .section {
        padding: 68px 0;
    }

    .cards-grid,
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-card {
        grid-column: 1 / -1;
    }

    .calculator-banner {
        flex-wrap: wrap;
    }

    .calculator-copy {
        flex-basis: calc(100% - 90px);
    }

    .calculator-banner .btn {
        margin-left: 82px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .about-visual {
        max-width: 550px;
        width: 100%;
        margin: 0 auto;
    }

    .about-content {
        text-align: center;
    }

    .contact-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 23px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* SMALL MOBILE */

@media (max-width: 520px) {
    .container {
        width: calc(100% - 32px);
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
        font-size: 25px;
    }

    .hero {
        padding-top: 48px;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1.4px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .dashboard-body {
        padding: 15px;
    }

    .dashboard-welcome h3 {
        font-size: 15px;
    }

    .stat-card {
        padding: 11px;
    }

    .stat-card > strong {
        font-size: 11px;
    }

    .floating-badge {
        right: -3px;
        padding: 10px;
    }

    .trust-strip span {
        font-size: 9px;
    }

    .trust-strip i {
        display: none;
    }

    .section {
        padding: 57px 0;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .about-content h2 {
        font-size: 29px;
    }

    .cards-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-column: auto;
    }

    .solution-card,
    .service-card {
        padding: 24px;
    }

    .calculator-banner {
        align-items: flex-start;
        padding: 21px;
        gap: 15px;
    }

    .calculator-symbol {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .calculator-copy {
        flex-basis: calc(100% - 65px);
    }

    .calculator-copy h3 {
        font-size: 17px;
    }

    .calculator-banner .btn {
        width: 100%;
        margin-left: 0;
    }

    .about-panel {
        min-height: 320px;
        padding: 25px;
    }

    .about-panel h3 {
        font-size: 24px;
    }

    .contact-cta {
        padding: 42px 0;
    }

    .contact-cta .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}

/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #79b9ff;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
