/* Brand helpers */
:root {
    --wildrosedevs: #DE1B4B;
    --wrd-red: #FF0040;
    --wrd-black: #0a0a0a;
    --wrd-white: #ffffff;
    --wrd-bright-white: #fff;
}

/* === NAVBAR === */
header.navbar {
    background: rgba(0, 0, 0, .92) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

header.navbar .logo {
    color: var(--wildrosedevs) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

header.navbar .cta {
    background: var(--wrd-red) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

header.navbar .hamburger {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* === HERO === */
.wd-hero {
    position: relative;
    height: 100vh;
    display: grid;
    place-items: center;
    padding: 140px 40px 80px;
    background: url('../content/images/pages/services/sub-pages/soft-tech/software-hero.avif') center/cover no-repeat;
}

.wd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* a touch darker so the Zen Dots headline pops */
    background: linear-gradient(180deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, .62) 100%);
}

.wd-hero__content {
    position: relative;
    z-index: 1;
    width: 948px;
    max-width: calc(100% - 80px);
    text-align: center;
    transform: translateY(-2%);
}

.wd-hero__title {
    font-family: "Zen Dots", system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: .5px;
    color: var(--wrd-bright-white);
    margin: 0;
    /* no extra gap since there’s no lede */
    text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

/* 3) Kill the lede if it’s present in HTML */
.wd-hero__lede {
    display: none !important;
}

/* === RESPONSIVE === */
/* Small laptops / large tablets */
@media (max-width: 1280px) {
    .wd-hero {
        padding: 120px 32px 72px;
    }

    .wd-hero__content {
        max-width: 920px;
    }

    .wd-hero__lede {
        max-width: 820px;
    }
}

/* Landscape tablets / 2-in-1s */
@media (max-width: 1024px) {
    .wd-hero {
        height: 100svh;
        padding: 108px 28px 64px;
        background-position: center 30%;
    }

    .wd-hero__content {
        width: 100%;
        max-width: 860px;
        transform: none;
    }

    .wd-hero__title {
        font-size: clamp(34px, 6.2vw, 56px);
        line-height: 1.06;
    }

    .wd-hero__lede {
        font-size: clamp(16px, 2vw, 18px);
    }
}

/* Portrait tablets & phones */
@media (max-width: 900px) {
    .wd-hero {
        height: 100svh;
        padding: 96px 24px 56px;
        background-position: center 35%;
    }

    .wd-hero__content {
        transform: none;
    }

    .wd-hero__title {
        font-size: clamp(32px, 7vw, 48px);
    }

    .wd-hero__lede {
        max-width: 720px;
    }

    .wd-value__grid {
        grid-template-columns: 1fr;
    }
}

/* Small phones */
@media (max-width: 560px) {
    header.navbar {
        padding: 20px 20px;
    }

    .wd-hero {
        height: 100svh;
        padding: 88px 20px 44px;
        background-position: center 40%;
    }

    .wd-hero__title {
        font-size: clamp(28px, 9.5vw, 40px);
    }

    .wd-hero__lede {
        font-size: 16px;
        line-height: 1.3;
    }
}

/* Very large displays */
@media (min-width: 1600px) {
    .wd-hero__content {
        width: min(980px, 100% - 80px);
    }

    .wd-hero__lede {
        max-width: 940px;
    }
}

/* =========================
   BUILDING IN-HOUSE
   ========================= */
.inhouse {
    background: var(--wrd-black);
    color: var(--wrd-white);
    padding: clamp(88px, 11vw, 132px) 40px clamp(72px, 9vw, 104px);
}

.inhouse__wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    column-gap: clamp(28px, 4vw, 56px);
    row-gap: 24px;
    align-items: start;
}

/* Eyebrow */
.inhouse__eyebrow {
    grid-column: 1 / 2;
    align-self: center;
    justify-self: center;
    text-align: center;
    font-family: "League Spartan";
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--wrd-bright-white);
    margin: 0;
}

/* Lede */
.inhouse__lede {
    grid-column: 2 / -1;
    align-self: center;
    font-family: "Poppins";
    font-weight: 500;
    font-size: 3rem;
    line-height: 1.2;
    max-width: 900px;
    color: var(--wrd-bright-white);
}

/* Title */
.inhouse__title {
    grid-column: 1 / -1;
    text-align: center;
    font-family: "Poppins";
    font-weight: 200;
    font-variation-settings: "wght" 200;
    font-size: clamp(88px, 12.8vw, 148px);
    line-height: .92;
    letter-spacing: .003em;
    color: var(--wrd-red);
    margin: clamp(36px, 6.5vw, 70px) 0 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Body */
.inhouse__body {
    grid-column: 1 / -1;
    text-align: center;
    font-family: "Poppins";
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.68;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--wrd-white);
    opacity: .95;
}

/* Responsive */
@media (max-width: 1100px) {
    .inhouse__wrap {
        grid-template-columns: 1fr;
    }

    .inhouse__eyebrow,
    .inhouse__lede,
    .inhouse__title,
    .inhouse__body {
        grid-column: 1 / -1;
    }

    .inhouse__lede {
        max-width: 680px;
        margin-inline: auto;
        text-align: center;
        /* center copy under eyebrow */
    }

    .inhouse__title {
        margin-top: clamp(28px, 6vw, 48px);
    }
}

@media (max-width: 900px) {
    .inhouse__lede {
        max-width: 92%;
        /* breathe a bit on tablets */
        line-height: 1.35;
        /* improve readability */
        text-align: center;
        /* ensure centered alignment */
    }
}

@media (max-width: 640px) {
    .inhouse {
        padding: 68px 24px 64px;
    }

    .inhouse__lede {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.35;
        max-width: 92%;
        text-align: center;
        /* enforce centering on phones */
    }

    .inhouse__title {
        font-size: clamp(44px, 12vw, 64px);
        line-height: .94;
    }

    .inhouse__body {
        font-size: 16px;
        line-height: 1.6;
        max-width: 94%;
    }
}

/* =========================
   OUR SOFTWARES
   ========================= */
.softwares {
    background: var(--wrd-black);
    color: var(--wrd-white);
    padding: 80px 24px 96px;
}

.softwares__wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.softwares__header {
    text-align: left;
    margin: 0 0 36px 0;
}

.softwares__title {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.18;
    margin: 0 0 6px 0;
    letter-spacing: .01em;
}

.softwares__lede {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
    margin: 0;
}

/* Card layout */
.softwares__item {
    display: grid;
    grid-template-columns: minmax(260px, 520px) 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* Remove border on last tile */
.softwares__item:last-of-type {
    border-bottom: none;
}

/* Top border — commented out for now */
.softwares__item:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Flip variant
.softwares__item--flip {
    grid-template-columns: 1fr minmax(260px, 520px);
}

.softwares__item--flip .softwares__media {
    order: 2;
}

.softwares__item--flip .softwares__panel {
    order: 1;
}
*/

/* Media */
.softwares__media {
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(0deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)),
        #cfcfcf;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    min-height: 240px;
}

.softwares__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Panel content */
.softwares__panel {
    max-width: 640px;
}

.softwares__brand {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: .02em;
    margin: 6px 0 12px;
}

.softwares__desc {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.62;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 18px;
}

/* Meta links */
.softwares__meta {
    display: block;
    padding: 10px 0 12px;
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.softwares__meta:hover,
.softwares__meta:focus {
    text-decoration: underline;
}

/* CTA button (trimmed size + centered) */
.softwares__cta {
    display: block;
    margin: 18px auto 0;
    background: var(--wildrosedevs);
    color: #fff;
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    padding: 12px 20px;
    /* trimmed */
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    text-align: center;
}

.softwares__cta:hover,
.softwares__cta:focus {
    filter: brightness(1.08);
}

/* Responsive */
@media (max-width: 980px) {

    .softwares__item,
    .softwares__item--flip {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .softwares__panel {
        max-width: 640px;
    }
}

@media (max-width: 560px) {
    .softwares {
        padding: 64px 20px 80px;
    }

    .softwares__brand {
        font-size: 22px;
    }

    .softwares__desc {
        font-size: 15px;
    }

    .softwares__meta {
        font-size: 14px;
    }

    .softwares__cta {
        font-size: 14px;
        padding: 10px 18px;
    }
}