@font-face {
    font-family: 'Electrolize Regular';
    src: url('fonts/Electrolize-Regular.ttf');
}

@font-face {
    font-family: 'Megrim Regular';
    src: url('fonts/Megrim-Regular.ttf');
}

:root {
    --primary-blue: #3cb2ff;
    --dark-blue: #0a2e4e;
    --white: #ffffff;
    --flame-orange: #ff5a1f;
    --flame-red: #cc2b0b;
    --background-dark: #1c1f22;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-dark);
    color: var(--white);
    font-family: 'Electrolize Regular', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Navbar ── */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: linear-gradient(135deg, rgba(204,43,11,1) 0%, rgba(255,90,31,1) 50%, rgba(237,221,83,1) 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    min-height: 114px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand-name {
    font-family: 'Electrolize Regular', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    line-height: 1.2;
}

.navbar-brand-tagline {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.03em;
}

.btn {
    background-color: var(--flame-orange);
    color: var(--white);
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 2rem;
    font-family: 'Electrolize Regular', sans-serif;
    font-size: 1rem;
    transition: box-shadow 0.15s ease;
}

.btn:hover {
    color: var(--white);
    box-shadow: 2px 2px 6px var(--flame-orange);
}

/* ── Page layout ── */

.page-layout {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2rem;
    gap: 2rem;
}

.page-logo img {
    max-width: 100%;
    height: auto;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-heading {
    color: var(--flame-orange);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
}

/* ── Tools grid ── */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--dark-blue);
    border: 1px solid rgba(255, 90, 31, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    border-color: var(--flame-orange);
    box-shadow: 0 0 20px rgba(255, 90, 31, 0.15);
    color: inherit;
}

.tool-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    color: var(--flame-orange);
}

.tool-card-icon svg {
    width: 100%;
    height: 100%;
}

.tool-card-body {
    flex: 1;
}

.tool-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.tool-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.tool-card-cta {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--flame-orange);
}

/* ── Footer ── */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    flex-shrink: 0;
}

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

.footer-brand {
    display: block;
    font-family: 'Electrolize Regular', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.footer-company {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--flame-orange);
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .page-layout {
        display: flex;
        justify-content: center;
        padding: 1.5rem;
    }

    .page-logo {
        display: none;
    }

    .page-content {
        width: 80%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-heading {
        font-size: 1.5rem;
    }
}
