/* ============================================================
   The ERP Group — Modern stylesheet (shared design system, originally from Drive Computer Services)
   Brand blue: #47a3da
   ============================================================ */

:root {
    --brand: #47a3da;
    --brand-dark: #1c6aa0;
    --brand-darker: #0f2742;
    --accent: #ff8c42;
    --ink: #16243a;
    --ink-soft: #4b5b75;
    --muted: #6b7a90;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-soft: #f5f8fc;
    --bg-tint: #eef4fb;
    --card: #ffffff;
    --shadow-sm: 0 2px 8px rgba(15, 39, 66, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 39, 66, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 39, 66, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --max: 1200px;
    --header-h: 84px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--brand-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 24px;
}

.site-logo img {
    height: 56px;
    width: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a, .primary-nav__trigger {
    display: inline-block;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: background-color .15s ease, color .15s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.primary-nav a:hover, .primary-nav__trigger:hover {
    background: var(--bg-tint);
    color: var(--brand-dark);
}

.primary-nav .is-current {
    color: var(--brand-dark);
    background: var(--bg-tint);
}

.primary-nav .has-dropdown {
    position: relative;
}

.primary-nav__trigger::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.has-dropdown.is-open .primary-nav__trigger::after {
    transform: translateY(1px) rotate(-135deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.dropdown a:hover {
    background: var(--bg-tint);
    color: var(--brand-dark);
}

.nav-login {
    margin-left: 8px;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
}

.nav-login:hover {
    background: var(--brand-dark);
    color: #fff !important;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
    position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -7px; left: 0; }
.nav-toggle span::after { content: ''; position: absolute; top: 7px; left: 0; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 20px;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
        box-shadow: var(--shadow-md);
    }
    .primary-nav.is-open {
        max-height: 80vh;
        overflow: auto;
    }
    .primary-nav a, .primary-nav__trigger {
        width: 100%;
        text-align: left;
        padding: 12px 14px;
    }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 16px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .2s ease;
    }
    .has-dropdown.is-open .dropdown {
        max-height: 400px;
    }
    .nav-login { margin: 8px 0 0; text-align: center; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand-dark) 100%);
}

.hero--image {
    min-height: 480px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 39, 66, 0.85) 0%, rgba(28, 106, 160, 0.65) 70%, rgba(71, 163, 218, 0.4) 100%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    padding: 80px 0 90px;
    max-width: 760px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    color: #fff;
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 18px;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 640px;
}

.hero__actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Compact hero used on inner pages */
.hero--compact {
    min-height: 280px;
}
.hero--compact .hero__inner { padding: 56px 0; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(71, 163, 218, 0.4);
}
.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(71, 163, 218, 0.45);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--brand);
}
.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* ============================================================
   Sections / Page chrome
   ============================================================ */

main { display: block; }

.section {
    padding: 80px 0;
}
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--brand {
    background: linear-gradient(135deg, var(--brand-darker), var(--brand-dark));
    color: #fff;
}
.section--brand h1, .section--brand h2, .section--brand h3 { color: #fff; }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.section__eyebrow {
    color: var(--brand-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section__head p { font-size: 1.05rem; color: var(--ink-soft); }

/* ============================================================
   Cards / grids
   ============================================================ */

.grid {
    display: grid;
    gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
    .grid--3 { grid-template-columns: 1fr; }
    .grid--2 { grid-template-columns: 1fr; }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d8e1ee;
}

.card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--ink-soft); }

/* Numbered point list (used on About) */
.point-list {
    list-style: none;
    padding: 0;
    counter-reset: pt;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.point-list li {
    counter-increment: pt;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px 22px 70px;
    box-shadow: var(--shadow-sm);
}
.point-list li::before {
    content: counter(pt, decimal-leading-zero);
    position: absolute;
    left: 20px; top: 22px;
    font-weight: 800;
    color: var(--brand);
    font-size: 1.2rem;
}
@media (max-width: 760px) {
    .point-list { grid-template-columns: 1fr; }
}

/* Bulleted check list */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
}
.check-list li {
    position: relative;
    padding: 8px 0 8px 32px;
    color: var(--ink-soft);
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 14px;
    width: 14px; height: 8px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

/* Prose blocks */
.prose {
    max-width: 760px;
}
.prose p { font-size: 1.05rem; }
.prose strong { color: var(--ink); }

/* Two-column layout */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Bliss page tabs
   ============================================================ */

.tab-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}
.tab-nav button {
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 16px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all .15s ease;
    font-size: 0.95rem;
}
.tab-nav button:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}
.tab-nav button.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .tab-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        margin-bottom: 24px;
        gap: 8px;
        padding-bottom: 8px;
    }
    .tab-nav button { white-space: nowrap; flex-shrink: 0; }
}

/* ============================================================
   Contact page
   ============================================================ */

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}
.contact-card .address {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--ink);
    margin: 0 0 24px;
}
.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-soft);
    min-height: 380px;
}
.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* ============================================================
   Apprenticeships, Marpacs, Support, Cloud, Apps
   ============================================================ */

.market-list {
    background: var(--bg-tint);
    border-left: 4px solid var(--brand);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}
.market-list strong {
    display: block;
    color: var(--ink);
    padding: 4px 0;
}

.video-frame {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    max-width: 100%;
}
.video-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.app-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.app-feature__media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
    .app-feature { grid-template-columns: 1fr; gap: 32px; }
}

.store-badges {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.store-badges img { height: 56px; width: auto; }
.store-badges .apple-badge {
    display: inline-block;
    height: 56px;
    padding: 0 18px;
    line-height: 56px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}
.store-badges .apple-badge:hover { background: #222; color: #fff; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
    background: var(--brand-darker);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 24px;
    margin-top: 0;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; font-size: 0.95rem; }

.footer-brand img {
    height: 48px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================================
   Utilities
   ============================================================ */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.no-bullets { list-style: none; padding: 0; }

/* ============================================================
   ERP Group — typographic wordmark (no logo asset)
   ============================================================ */

.site-logo--word {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1;
}
.site-logo--word strong {
    color: var(--brand);
    font-weight: 800;
}
a.site-logo--word:hover { color: var(--ink); }
a.site-logo--word:hover strong { color: var(--brand-dark); }
