/* HSClarity */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0D1B2A;
    --navy-light: #1B2A3D;
    --blue: #1E88E5;
    --blue-hover: #1565C0;
    --blue-light: #E3F2FD;
    --white: #FFFFFF;
    --grey-50: #F8F9FA;
    --grey-100: #F1F3F5;
    --grey-200: #E9ECEF;
    --grey-400: #ADB5BD;
    --grey-600: #6C757D;
    --grey-800: #343A40;
    --text: #212529;
    --text-light: #6C757D;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover { color: var(--blue-hover); }

ul, ol { list-style: none; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); }
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--grey-50); }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }

.section-heading { margin-bottom: 0.75rem; }

.section-sub {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* Nav */
.navbar {
    background: var(--navy);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.navbar-brand:hover { color: var(--white); }
.navbar-brand span { color: var(--blue); }

.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; text-decoration: none; position: relative; }
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.2s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--white); border-radius: 1px;
}

/* Footer */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    padding: 2.5rem 0 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-brand { color: var(--white); font-size: 1.15rem; font-weight: 800; margin-bottom: 0.6rem; }
.footer-brand span { color: var(--blue); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }

.footer h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-links a { display: block; color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-bottom: 0.4rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    text-align: center;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.75rem;
    border: 1px solid rgba(0,0,0,0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Stat cards */
.stats-row {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    text-align: center;
    min-width: 130px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: var(--grey-800); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--grey-50);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(30,136,229,0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Badge */
.badge {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.4rem; }
    .section { padding: 3rem 0; }

    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--navy); flex-direction: column;
        padding: 1.25rem; gap: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }
    .navbar .container { position: relative; }

    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2 > [style*="order"] { order: 1 !important; }

    .stats-row { gap: 0.75rem; }
    .stat-card { min-width: 110px; padding: 0.9rem 1rem; }
    .stat-number { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.65rem; }
    .container { padding: 0 1rem; }
    .btn { padding: 0.7rem 1.4rem; font-size: 0.9rem; }
    .stat-card { min-width: 95px; padding: 0.7rem 0.85rem; }
}
