/* =========================================================
   TOOLS PAGE — PROFESSIONAL CARDS
========================================================= */

.tools-hero {
    padding: 130px 24px 90px;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(201, 160, 36, 0.08), transparent 55%),
        #08090a;
}

.tools-hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.tools-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.tools-hero h1 {
    margin: 0;
    color: #f4f0e8;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.tools-hero h1 span,
.tools-section-header h2 span {
    color: #d4af37;
}

.tools-hero p {
    max-width: 650px;
    margin: 28px auto 0;
    color: #aaa;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   TOOLS SECTION
========================================================= */

.tools-section {
    padding: 90px 24px 120px;
    background: #08090a;
}

.tools-section-header {
    max-width: 750px;
    margin: 0 auto 55px;
    text-align: center;
}

.tools-section-header h2 {
    margin: 0;
    color: #f4f0e8;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
}

.tools-section-header p {
    margin-top: 18px;
    color: #999;
    font-size: 16px;
}


/* =========================================================
   GRID
========================================================= */

.tools-grid {
    width: min(1180px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.tool-card {
    position: relative;
    min-height: 430px;

    overflow: hidden;

    display: flex;
    align-items: flex-end;

    border: 1px solid rgba(212, 175, 55, 0.18);
    background-color: #111;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}


/* =========================================================
   CARD BACKGROUND IMAGES
   Replace filenames if your actual images have different names.
========================================================= */

.tool-card-dragon {
    background-image: url("/assets/images/tools/dragon.jpg.jpg");
}

.tool-card-valyrian {
    background-image: url("/assets/images/tools/valyrian.jpg.jpg");
}

.tool-card-sword {
    background-image: url("/assets/images/tools/sword.jpg.jpg");
}

.tool-card-translator {
    background-image: url("/assets/images/tools/translator.jpg.jpg");
}


/* =========================================================
   DARK CINEMATIC OVERLAY
========================================================= */

.tool-card-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.72) 38%,
            rgba(0, 0, 0, 0.18) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.tool-card-content {
    position: relative;
    z-index: 2;

    width: 100%;
    padding: 32px;
}

.tool-card-number {
    display: block;
    margin-bottom: 12px;

    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.tool-card h3 {
    margin: 0;

    color: #f4f0e8;
    font-size: 28px;
    line-height: 1.15;
}

.tool-card p {
    max-width: 500px;
    margin: 14px 0 24px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   BUTTON
========================================================= */

.tool-card-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;

    border: 1px solid rgba(212, 175, 55, 0.65);

    color: #e8d69a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.tool-card-button span {
    font-size: 17px;
    transition: transform 0.3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.tool-card:hover {
    transform: translateY(-6px);

    border-color: rgba(212, 175, 55, 0.65);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(212, 175, 55, 0.08);
}

.tool-card:hover .tool-card-button {
    background: #d4af37;
    border-color: #d4af37;
    color: #08090a;
}

.tool-card:hover .tool-card-button span {
    transform: translateX(4px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .tools-hero {
        padding: 100px 20px 70px;
    }

    .tools-section {
        padding: 70px 20px 90px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 390px;
    }

    .tool-card-content {
        padding: 26px;
    }

    .tool-card h3 {
        font-size: 25px;
    }
}
/* =========================================================
   STEP 7D — FINAL CARD POLISH
========================================================= */

.tool-card {
    min-height: 450px;
    border-radius: 2px;
    isolation: isolate;
}

/* Better image framing */
.tool-card-dragon {
    background-position: center center;
}

.tool-card-valyrian {
    background-position: center center;
}

.tool-card-sword {
    background-position: center center;
}

.tool-card-translator {
    background-position: center center;
}

/* Premium cinematic overlay */
.tool-card-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(5, 6, 7, 0.08) 0%,
            rgba(5, 6, 7, 0.28) 35%,
            rgba(5, 6, 7, 0.88) 78%,
            rgba(5, 6, 7, 0.98) 100%
        );
}

/* Cleaner content positioning */
.tool-card-content {
    padding: 34px;
}

.tool-card-number {
    opacity: 0.9;
}

.tool-card h3 {
    max-width: 430px;
}

.tool-card p {
    max-width: 470px;
}

/* Subtle professional hover */
.tool-card {
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background-size 0.5s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(212, 175, 55, 0.06);
}

/* Button polish */
.tool-card-button {
    min-height: 42px;
    box-sizing: border-box;
}

.tool-card-button:hover {
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 800px) {
    .tool-card {
        min-height: 400px;
    }

    .tool-card-content {
        padding: 28px;
    }
}
.tools-hero-bg {
    transition: filter 1s ease;
}

.tools-hero:hover .tools-hero-bg {
    filter:
        brightness(1.3)
        saturate(1.1);
}
.tool-card {
    filter: brightness(1.3);
}