
/* =================================
   UTOOLIA - GLOBAL STYLES
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a:focus-visible {
    outline: 3px solid #93b4ff;
    outline-offset: 4px;
    border-radius: 4px;
}

/* =================================
   HEADER
================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #172033;
}

.logo span {
    color: #2563eb;
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    color: #596579;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #2563eb;
}

/* =================================
   HERO
================================= */

.hero {
    background: linear-gradient(135deg, #f0f5ff, #ffffff);
    padding: 100px 0 90px;
    text-align: center;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 22px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.12;
    letter-spacing: -2px;
    color: #172033;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #667085;
    font-size: 18px;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 15px 28px;
    border-radius: 9px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* =================================
   TOOLS SECTION
================================= */

.tools-section {
    padding: 85px 0;
}

.tools-section h2,
.categories-section h2 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: #172033;
}

.tools-section > .container > p {
    color: #667085;
    margin-bottom: 35px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.tool-card {
    padding: 27px 23px;
    border: 1px solid #e8edf5;
    border-radius: 13px;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: #b8cdfd;
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.08);
}

.tool-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #172033;
}

.tool-card p {
    color: #667085;
    font-size: 14px;
    min-height: 68px;
    margin-bottom: 18px;
}

.tool-card a {
    display: inline-block;
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
}

.tool-card a:hover {
    color: #1d4ed8;
}

/* =================================
   CATEGORIES
================================= */

.categories-section {
    background: #f7f9fc;
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e8edf5;
    padding: 25px;
    border-radius: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    border-color: #b8cdfd;
    transform: translateY(-3px);
}

.category-card h3 {
    font-size: 17px;
    margin-bottom: 9px;
    color: #172033;
}

.category-card p {
    font-size: 14px;
    color: #667085;
}

/* =================================
   ABOUT
================================= */

.about-section {
    text-align: center;
    padding: 85px 20px;
}

.about-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #172033;
}

.about-section p {
    color: #667085;
    max-width: 700px;
    margin: 0 auto;
}

/* =================================
   FOOTER
================================= */

.footer {
    background: #111827;
    color: #ffffff;
    padding: 35px 0;
    text-align: center;
}

.footer p {
    color: #aab3c2;
    margin-bottom: 18px;
    font-size: 14px;
}

.footer .container > div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer a {
    color: #d0d5dd;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
}

/* =================================
   RESPONSIVE - TABLETS
================================= */

@media (max-width: 900px) {

    .tools-grid,
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* =================================
   RESPONSIVE - MOBILE
================================= */

@media (max-width: 600px) {

    .container {
        width: 90%;
    }

    .nav {
        min-height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
        gap: 14px;
    }

    .logo {
        font-size: 27px;
    }

    nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 16px;
    }

    .tools-section,
    .categories-section {
        padding: 65px 0;
    }

    .tools-section h2,
    .categories-section h2 {
        font-size: 28px;
    }

    .tools-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card {
        padding: 24px 20px;
    }

    .tool-card p {
        min-height: auto;
    }

    .about-section {
        padding: 65px 20px;
    }

    .about-section h2 {
        font-size: 28px;
    }

    .footer .container > div {
        flex-direction: column;
        gap: 12px;
    }

}

/* =================================
   REDUCED MOTION
================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}
