/* =========================================================
   KRIPPYTECH SHARED STYLES
   This file controls the appearance of every KrippyTech page.
   ========================================================= */


/* ---------- Design variables ---------- */

:root {
    --background: #07111f;
    --surface: #0d1a2b;
    --surface-light: #132238;
    --border: #1d3048;

    --text: #e8eef7;
    --muted: #9fb0c7;

    --accent: #2f81f7;
    --accent-light: #58a6ff;

    --content-width: 1100px;
}


/* ---------- Browser reset ---------- */

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


/* ---------- Base page settings ---------- */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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


/* ---------- Shared layout ---------- */

.container {
    width: min(var(--content-width), 90%);
    margin-inline: auto;
}


/* ---------- Header and navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(7, 17, 31, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: white;
    transform: translateY(-1px);
}




/* ---------- Hero section ---------- */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 90px 0 70px;
}

.eyebrow {
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1 {
    max-width: 850px;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 26px;
}

.hero-text {
    max-width: 760px;
    color: #b8c5d6;
    font-size: 1.2rem;
    margin-bottom: 34px;
}

.highlight {
    color: white;
    font-weight: 700;
}


/* ---------- Buttons ---------- */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-secondary {
    border: 1px solid #41536c;
    color: #dce7f5;
}


/* ---------- General sections ---------- */

.section {
    padding: 75px 0;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--muted);
    max-width: 700px;
}


/* ---------- Card grid ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

.card-number {
    color: var(--accent-light);
    font-weight: 700;
    margin-bottom: 14px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card p {
    color: var(--muted);
}


/* ---------- Mission statement ---------- */

.mission {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 38px;
}

.mission blockquote {
    max-width: 850px;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    line-height: 1.35;
    font-weight: 700;
}

.mission p {
    color: var(--muted);
    margin-top: 18px;
}


/* ---------- Footer ---------- */

footer {
    margin-top: 40px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #8496ad;
    font-size: 0.9rem;
}


/* ---------- Mobile layout ---------- */

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        gap: 14px 18px;
    }
}
