/* Brand helpers */
:root {
    --wildrosedevs: #DE1B4B;
    --wrd-red: #FF0040;
    --wrd-black: #0a0a0a;
    --wrd-white: #ffffff;
}

/* === 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/web-ds-arch/design-n-arch-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: #fff;
    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;
    }
}

/* ===== A TO Z — tuned to the comp ===== */
.wrd-atoz {
    background: var(--wrd-black);
    color: #fff;
    padding: 72px 24px 80px;
    font-style: normal;
}

.wrd-atoz__wrap {
    max-width: 1120px;
    margin: 0 auto;
    --rail: 200px;
    /* fixed left rail like the comp */
    --gap: 36px;
    /* space between rail & content */
    --title-max: 900px;
    /* headline width in comp */
}

/* intro: eyebrow on the left rail, headline on right column */
.wrd-atoz__intro {
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    gap: var(--gap);
    align-items: start;
    margin-bottom: 52px;
    /* space before first row */
}

/* Eyebrow */
.wrd-atoz__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: #fff;
    margin: 0;
}

/* headline — narrower and slightly tighter leading */
.wrd-atoz__title {
    grid-column: 2 / -1;
    margin: 0;
    align-self: center;
    font-weight: 500;
    font-size: 3rem;
    line-height: 1.2;
    max-width: var(--title-max);
    font-family: "Poppins", system-ui, sans-serif;
}

/* rows: share same rail/content grid; no dividers */
.wrd-atoz__row {
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    gap: var(--gap);
    align-items: start;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 28px;
}

.wrd-atoz__row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

/* middle row mirrored (02 on right) */
.wrd-atoz__row--invert {
    grid-template-columns: 1fr var(--rail);
}

.wrd-atoz__row--invert .wrd-atoz__num {
    order: 2;
    justify-self: end;
}

.wrd-atoz__row--invert .wrd-atoz__content {
    order: 1;
}

/* big serif numerals — noticeably larger to match comp */
.wrd-atoz__num {
    font-family: "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(92px, 12.8vw, 136px);
    /* bigger cap size */
    line-height: .88;
    letter-spacing: .2px;
    transform: translateY(4px);
    /* slight optical lift like comp */
}

/* right-column content: narrow measure like comp */
.wrd-atoz__content {
    max-width: 640px;
}

.wrd-atoz__label {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--wildrosedevs, #DE1B4B);
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-weight: 700;
}

.wrd-atoz__list {
    margin: 0;
    font-size: 1.5rem;
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .wrd-atoz__wrap {
        --rail: 148px;
        --gap: 28px;
        --title-max: 560px;
    }
}

@media (max-width: 900px) {
    .wrd-atoz__wrap {
        --rail: 136px;
        --gap: 24px;
        --title-max: 520px;
    }
}

@media (max-width: 640px) {
    .wrd-atoz {
        padding: 56px 20px 56px;
    }

    .wrd-atoz__intro,
    .wrd-atoz__row,
    .wrd-atoz__row--invert {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* CRITICAL: reset explicit grid placement so eyebrow/title stack */
    .wrd-atoz__eyebrow,
    .wrd-atoz__title {
        grid-column: 1 / -1;
    }

    /* CRITICAL: reset invert-row ordering so number appears before content */
    .wrd-atoz__row--invert .wrd-atoz__num,
    .wrd-atoz__row--invert .wrd-atoz__content {
        order: 0;
    }

    .wrd-atoz__intro {
        margin-bottom: 28px;
    }

    .wrd-atoz__eyebrow {
        font-size: 18px;
        justify-self: center;
        text-align: center;
        margin-bottom: 4px;
    }

    .wrd-atoz__title {
        max-width: 100%;
        text-align: center;
        font-size: 32px;
        line-height: 1.26;
    }

    .wrd-atoz__num {
        justify-self: start;
        transform: none;
        font-size: min(96px, 22vw);
        /* keep bold without crowding */
    }

    .wrd-atoz__label {
        font-size: 1.1rem;
    }

    .wrd-atoz__list {
        font-size: .98rem;
    }
}

@media (max-width: 560px) {
    .wrd-atoz__title {
        font-size: 28px;
        line-height: 1.24;
    }

    .wrd-atoz__num {
        font-size: min(84px, 24vw);
    }
}

@media (max-width: 360px) {
    .wrd-atoz__title {
        font-size: 24px;
    }

    .wrd-atoz__num {
        font-size: min(72px, 26vw);
    }
}

/* ===== FEATURED ===== */
.wrd-featured {
    background: var(--wrd-black);
    color: #fff;
    padding: 80px 24px 96px;
}

.wrd-featured__wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.wrd-featured__title {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.4vw, 44px);
    line-height: 1.2;
    text-align: center;
    max-width: 980px;
    margin: 0 auto 56px;
}

.wrd-featured__item {
    display: grid;
    grid-template-columns: minmax(280px, 560px) 1fr;
    gap: 40px;
    align-items: start;
    margin: 56px 0 0;
}

.wrd-featured__media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.wrd-featured__media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.wrd-featured__panel {
    max-width: 520px;
}

.wrd-featured__brand {
    font-family: "Poppins", system-ui, sans-serif;
    font-size: clamp(22px, 2.8vw, 28px);
    letter-spacing: .02em;
    margin: 6px 0 16px;
}

.wrd-featured__desc {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 22px;
}

.wrd-featured__meta {
    display: block;
    padding: 12px 0 14px;
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.wrd-featured__meta:hover,
.wrd-featured__meta:focus {
    text-decoration: underline;
}

.wrd-featured__cta {
    display: inline-block;
    margin-top: 18px;
    background: var(--wildrosedevs);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 14px 18px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.wrd-featured__cta:hover,
.wrd-featured__cta:focus {
    filter: brightness(1.08);
}

/* responsive */
@media (max-width: 980px) {
    .wrd-featured__item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .wrd-featured__panel {
        max-width: 640px;
    }
}

@media (max-width: 560px) {
    .wrd-featured {
        padding: 64px 20px 72px;
    }

    .wrd-featured__title {
        margin-bottom: 40px;
    }
}

/* ===== LOGOS (post-Featured) ===== */
.wrd-logos {
    background: var(--wrd-black);
    color: var(--wrd-white);
    padding: 88px 24px 104px;
}

.wrd-logos__wrap {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 520px) 1fr;
    gap: 48px;
    align-items: start;
}

/* Left: framed square with border that becomes a logo wall */
.wrd-logos__frame {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 20px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a, #3a0c1f);
}

.wrd-logos__frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wrd-logos__frame:has(img) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 24px;
    place-items: center;
    padding: 28px;
}

.wrd-logos__frame:has(img) .wrd-logos__placeholder {
    display: none;
}

/* Right: headline + lede + form */
.wrd-logos__title {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.18;
    margin: 0 0 16px 0;
    letter-spacing: .01em;
}

.wrd-logos__accent {
    color: var(--wildrosedevs);
}

.wrd-logos__lede {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 28px 0;
}

/* Logo CTA */
.wrd-logos__cta {
    margin-top: 20px;
}

.wrd-logos__button {
    display: inline-block;
    background: var(--wildrosedevs);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    padding: 18px 42px;
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: .04em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    transition: all 0.25s ease;
}

.wrd-logos__button:hover,
.wrd-logos__button:focus {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .wrd-logos__wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .wrd-logos__submit {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .wrd-logos {
        padding: 72px 20px 84px;
    }

    .wrd-logos__frame:has(img) {
        gap: 16px;
        padding: 20px;
    }
}