/* ==========================================
   PRACTworks - Practical Tools for Trades
   ========================================== */


/* ---------- General ---------- */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #181a1c;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}


/* ---------- Header ---------- */

header {
    background-color: #202224;
    color: #f3f4f6;
    border-bottom: 2px solid #ff6b1a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px;
}



/* ---------- Header Logo ---------- */

.header-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}



/* ---------- Tagline ---------- */

.tagline {
    color: #b8bcc1;
    font-size: 12px;
}


/* ---------- Navigation ---------- */

nav {
    background-color: #151719;
}

.nav-links {
    display: flex;
    gap: 25px;
    padding: 12px 0;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ff6b1a;
}


/* ---------- Main ---------- */

main {
    padding-top: 40px;
    padding-bottom: 40px;
}


/* ---------- Welcome ---------- */

.welcome {
    text-align: center;
    margin-bottom: 40px;
}

.welcome h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #f3f4f6;
}

.welcome p {
    color: #b8bcc1;
    margin-top: 0;
}


/* ---------- Category Grid ---------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}


/* ---------- Category Cards ---------- */

.category-card {
    background-color: #25282b;
    border: 1px solid #3a3d40;
    border-top: 3px solid #ff6b1a;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: #ff6b1a;
}


/* ---------- Remove Category Icons ---------- */

.category-icon {
    display: none;
}


.category-card h3 {
    font-size: 21px;
    line-height: 1.25;
    margin: 5px 0 10px;
    color: #f3f4f6;
}

.category-card h3::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background-color: #ff6b1a;
    margin: 14px auto 0;
}

.category-card p {
    color: #b8bcc1;
    font-size: 14px;
    min-height: 65px;
}


/* ---------- Buttons ---------- */

button {
    background-color: transparent;
    color: #f3f4f6;
    border: 2px solid #ff6b1a;
    border-radius: 6px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

button:hover {
    background-color: #ff6b1a;
    color: #151719;
}


/* ---------- Calculator Cards ---------- */

.calculator {
    background-color: #25282b;
    border: 1px solid #3a3d40;
    border-top: 3px solid #ff6b1a;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.calculator h2 {
    margin-top: 0;
    color: #f3f4f6;
    font-size: 24px;
}

.calculator hr {
    border: none;
    border-top: 1px solid #45484b;
    margin: 25px 0;
}


/* ---------- Inputs ---------- */

input {
    width: 220px;
    padding: 11px 12px;
    margin: 6px 5px 6px 0;
    border: 1px solid #555a5f;
    border-radius: 6px;
    font-size: 16px;
    background-color: #1d1f21;
    color: #f3f4f6;
}

input:focus {
    outline: none;
    border-color: #ff6b1a;
    box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.15);
}


select {
    width: 320px;
    padding: 11px 12px;
    margin: 6px 5px 6px 0;
    border: 1px solid #555a5f;
    border-radius: 6px;
    font-size: 16px;
    background-color: #1d1f21;
    color: #f3f4f6;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #ff6b1a;
    box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.15);
}


input[type="number"],
select {
    max-width: 320px;
}


/* ---------- Results ---------- */

.result {
    background-color: #1d1f21;
    border-left: 4px solid #ff6b1a;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 17px;
    font-weight: bold;
    min-height: 20px;
    color: #f3f4f6;
}


/* ---------- Links ---------- */

a {
    color: #ff6b1a;
}

a:hover {
    color: #ff8a4c;
}


/* ---------- Footer ---------- */

footer {
    background-color: #202224;
    color: #9da3a8;
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    border-top: 2px solid #ff6b1a;
}

footer p {
    margin: 0;
    font-size: 13px;
}


/* ---------- Hero ---------- */

.hero {
    background-color: #202224;
    background-image: linear-gradient(
        to right,
        rgba(24, 26, 28, 0.97) 0%,
        rgba(24, 26, 28, 0.88) 38%,
        rgba(24, 26, 28, 0.45) 68%,
        rgba(24, 26, 28, 0.15) 100%
    ),
    url("PRACTworks-hero-background.png");

    background-size: cover;
    background-position: center;

    color: #f3f4f6;

    min-height: 410px;

    display: flex;
    align-items: center;

    border-bottom: 2px solid #ff6b1a;
}

.hero-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 25px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.05;
    margin: 0 0 10px;
    color: #f3f4f6;
}

.hero h1 span {
    color: #ff6b1a;
}

.hero-acronym {
    font-size: 22px;
    color: #d5d8db;
    margin: 0 0 18px;
}

.hero-acronym span {
    color: #ff6b1a;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    color: #c3c7ca;
    max-width: 800px;
}


/* ---------- Orange Pinstripe ---------- */

.pinstripe {
    height: 3px;
    width: 120px;
    background-color: #ff6b1a;
    margin: 20px 0;
}



/* ---------- Mobile ---------- */

@media (max-width: 700px) {

    /* General layout */
    .container {
        padding: 0 15px;
    }

    /* Header layout */
    header {
        overflow: hidden;
    }

    header .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 12px 10px;
        min-width: 0;
    }

    /* Small header logo */
    header img.header-logo {
        display: block;
        width: min(260px, 75vw);
        max-width: 100%;
        max-height: 70px;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Header tagline */
    header .tagline {
        width: 100%;
        margin: 0;
        color: #e5e7eb;
        font-size: 14px;
        text-align: center;
    }

    /* Navigation */
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 15px;
        padding: 12px 0;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* Calculator cards */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card {
        padding: 20px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .category-card p {
        min-height: 0;
    }

    /* Welcome section */
    .welcome h2 {
        font-size: 26px;
    }

    /* Calculator panel */
    .calculator {
        padding: 20px;
    }

    .calculator h2 {
        font-size: 22px;
    }

    /* Main hero section */
    .hero {
        min-height: 320px;
        background-position: center;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-acronym {
        font-size: 16px;
    }

    .hero p {
        font-size: 15px;
    }

    /* Form inputs */
    input,
    select {
        width: 100%;
        max-width: 100%;
        margin: 6px 0 10px;
    }

    /* Buttons */
    button {
        max-width: 100%;
        margin-bottom: 10px;
    }

    /* Footer */
    footer {
        padding: 20px 15px;
    }

}
