/* =========================================================
   DIGITAL HERITAGE GUYANA
   DIGITAL HUMANITIES
   ========================================================= */

.dh-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 90px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            180deg,
            rgba(8, 11, 11, 0.08),
            rgba(8, 11, 11, 0.9)
        ),
        linear-gradient(
            135deg,
            #293b38 0%,
            #1c3935 48%,
            #0e2420 100%
        );
}

.dh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(241, 211, 145, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(241, 211, 145, 0.035) 1px,
            transparent 1px
        );
    background-size: 42px 42px;
}

.dh-hero-inner,
.dh-inner {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.dh-hero-inner {
    max-width: 920px;
}

.dh-label,
.dh-section-label {
    margin: 0 0 18px;
    color: #f1d391;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dh-hero h1 {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 8vw, 7.2rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.dh-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.75;
}

.dh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.dh-actions a {
    display: inline-flex;
    padding: 14px 21px;
    border: 1px solid rgba(241, 211, 145, 0.72);
    color: #f1d391;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.dh-actions a:hover,
.dh-actions a:focus-visible {
    color: #10251d;
    background: #f1d391;
    transform: translateY(-3px);
}

.dh-projects,
.dh-methods {
    padding: 110px 0;
}

.dh-projects {
    color: #173b2d;
    background: #f5f1e8;
}

.dh-methods {
    color: #fff;
    background: #122821;
}

.dh-projects h2,
.dh-methods h2 {
    max-width: 850px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dh-intro,
.dh-methods p:not(.dh-section-label) {
    max-width: 790px;
    margin: 28px 0 0;
    font-size: 1.05rem;
    line-height: 1.85;
}

.dh-intro {
    color: #4d5e55;
}

.dh-methods p:not(.dh-section-label) {
    color: rgba(255, 255, 255, 0.78);
}

.dh-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 50px;
}

.dh-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(23, 59, 45, 0.16);
    color: #173b2d;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.54);
    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.dh-card::after {
    content: "→";
    position: absolute;
    right: 24px;
    bottom: 22px;
    color: #f1d391;
    opacity: 0;
    transform: translateX(-10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.dh-card:hover,
.dh-card:focus-visible {
    color: #fff;
    background: #173b2d;
    box-shadow: 0 22px 45px rgba(23, 59, 45, 0.17);
    transform: translateY(-7px);
}

.dh-card:hover::after,
.dh-card:focus-visible::after {
    opacity: 1;
    transform: translateX(0);
}

.dh-card > span {
    color: #7a5d27;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.dh-card h3 {
    margin: 38px 0 13px;
    color: inherit;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.15;
}

.dh-card p {
    margin: 0;
    color: #53645b;
    line-height: 1.65;
    transition: color 0.3s ease;
}

.dh-card:hover p,
.dh-card:focus-visible p {
    color: rgba(255, 255, 255, 0.78);
}

@media screen and (max-width: 900px) {
    .dh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 650px) {
    .dh-hero {
        min-height: 680px;
        padding: 90px 0 65px;
    }

    .dh-hero-inner,
    .dh-inner {
        width: calc(100% - 30px);
    }

    .dh-projects,
    .dh-methods {
        padding: 76px 0;
    }

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

    .dh-actions {
        flex-direction: column;
    }

    .dh-actions a {
        justify-content: center;
    }
}
