/* Accent */
:root {
    --wildrosedevs: #DE1B4B;
}

/* === Projects page — force solid red navbar === */
header.navbar {
    background: var(--wildrosedevs) !important;
    /* brand red */
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
    /* subtle separation */
}

/* === Projects page — NAVBAR CONTRAST OVERRIDES === */
header.navbar .logo {
    color: #fff !important;
    /* higher contrast than the pink */
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

header.navbar .cta {
    background: #f9f9f9 !important;
    /* make the button pop on red/black */
    color: #111 !important;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

header.navbar .cta:hover,
header.navbar .cta:focus-visible {
    filter: brightness(0.94);
}

header.navbar .hamburger {
    color: #f9f9f9 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

/* --- HERO container --- */
.services-hero {
    background: var(--wildrosedevs);
    color: #fff;
    height: 100vh;
    padding: 160px 48px 64px;
    display: grid;
    align-items: center;
}

/* Content area */
.services-hero__inner {
    width: 925px;
    max-width: calc(100% - 96px);
    justify-self: start;
    transform: translateY(6%);
}

/* H1 */
.services-hero__title {
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: 128px;
    line-height: 1;
    margin: 0 0 16px 0;
}

/* Lede */
.services-hero__lede {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 1.2;
    max-width: 70vw;
    margin: 0 0 18px 0;
}

/* Paragraph */
.services-hero__copy {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    max-width: 56vw;
    margin: 0;
}

/* ---------- small laptops / big tablets (≤1400px) ---------- */
@media (max-width: 1400px) {
    .services-hero__inner {
        width: 100%;
        max-width: 100%;
    }

    .services-hero__title {
        font-size: 108px;
    }
}

/* ---------- common laptops / iPad landscape (≤1200px) ---------- */
@media (max-width: 1200px) {
    .services-hero {
        height: auto;
        min-height: 640px;
        padding-top: calc(128px + env(safe-area-inset-top, 0px));
    }

    .services-hero__inner {
        width: 100%;
        max-width: 100%;
        transform: none;
    }
}

/* ---------- tablets & 2-in-1s portrait (≤1024px) ---------- */
@media (max-width: 1024px) {
    .services-hero {
        padding: 120px 32px 56px;
    }

    .services-hero__title {
        font-size: 88px;
    }

    .services-hero__lede,
    .services-hero__copy {
        max-width: none;
    }
}

/* ---------- large phones / small tablets (≤900px) ---------- */
@media (max-width: 900px) {
    .services-hero {
        height: auto;
        min-height: 560px;
        padding-top: calc(112px + env(safe-area-inset-top, 0px));
        padding-right: 24px;
        padding-left: 24px;
        padding-bottom: 48px;
    }

    .services-hero__inner {
        width: 100%;
        max-width: 100%;
        transform: none;
    }

    .services-hero__title {
        font-size: 72px;
    }

    .services-hero__lede {
        font-size: 28px;
        width: 100%;
    }

    .services-hero__copy {
        font-size: 20px;
        width: 100%;
    }

    .services-hero__lede,
    .services-hero__copy {
        max-width: none;
    }
}

/* ---------- tablets portrait & big phones (≤768px) ---------- */
@media (max-width: 768px) {
    .services-hero {
        padding: 108px 24px 48px;
    }

    .services-hero__title {
        font-size: 68px;
    }
}

/* ---------- phones (≤600px) ---------- */
@media (max-width: 600px) {
    .services-hero {
        height: auto;
        min-height: 520px;
        padding: calc(96px + env(safe-area-inset-top, 0px)) 20px 44px;
    }

    .services-hero__inner {
        transform: none;
    }

    .services-hero__title {
        font-size: 56px;
    }

    .services-hero__lede {
        font-size: 24px;
    }

    .services-hero__copy {
        font-size: 18px;
    }

    .services-hero__inner,
    .services-hero__lede,
    .services-hero__copy {
        max-width: 100%;
        width: 100%;
    }
}

/* === OUR SERVICES === */
.our-services {
    background: #f4f4f6;
    padding: 72px 24px;
}

.our-services__wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.our-services__title {
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin: 0 0 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Card */
.service-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    aspect-ratio: 1 / 1;
    /* perfect square tiles */
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
    /* keep overlay effects contained */
    background: #d9d9de;
    /* fallback color */
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Subtle overlay for legibility */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15));
    z-index: 0;
    transition: opacity .25s ease, background .25s ease;
}

/* Label */
.service-card__label {
    position: relative;
    z-index: 1;
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.1;
    padding: 0 12px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 0 12px rgba(0, 0, 0, 0.6);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
    z-index: 0;
    transition: background .25s ease;
}

.service-card:hover .service-card__label {
    color: var(--wildrosedevs);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.service-card:hover::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .35));
}

/* ---------- tablets & small laptops (≤900px) ---------- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-card {
        width: 100%;
        aspect-ratio: 16 / 10;
    }
}

/* ---------- tablets portrait & big phones (≤768px) ---------- */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        aspect-ratio: 16 / 9;
    }
}

/* ---------- phones (≤560px) ---------- */
@media (max-width: 560px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        aspect-ratio: 16 / 10;
    }
}

/* === WHY, THEN WHAT === */
.why-then-what {
    background: var(--wildrosedevs);
    color: #fff;
    padding: clamp(80px, 12vw, 140px) 24px;
    text-align: center;
}

.why-then-what__wrap {
    max-width: 700px;
    margin: 0 auto;
}

.why-then-what__title {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.05;
    margin: 0 0 28px 0;
}

.why-then-what__copy {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
    max-width: 900px;
    /* keeps lines readable */
    margin: 0 auto;
}

@media (max-width: 600px) {
    .why-then-what__copy {
        line-height: 1.6;
    }
}

/* === CAPABILITIES === */
.capabilities {
    background: #FFFFFF;
    color: #0a0a0a;
    padding: clamp(56px, 8vw, 96px) 24px;
}

.capabilities__wrap {
    max-width: 1200px;
    margin: 0 auto;
}

/* Kicker (WILD BUILDERS) */
.capabilities__kicker {
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

/* Big title */
.capabilities__title {
    font-family: "League Spartan", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 9vw, 96px);
    line-height: 1;
    margin: 0 0 20px 0;
    color: var(--wildrosedevs);
    /* matches the comps */
}

/* Lede paragraph */
.capabilities__lede {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-weight: 600;
    /* SemiBold feel from the comp */
    font-size: clamp(22px, 3.2vw, 40px);
    line-height: 1.2;
    max-width: 900px;
    margin: 0 0 28px 0;
}

/* Two-column blurb blocks */
.capabilities__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2vw, 32px);
    align-items: start;
    margin: 0 0 clamp(32px, 6vw, 56px);
}

.capabilities__blurb {
    font-family: "Reddit Sans Condensed", system-ui, sans-serif;
    font-weight: 700;
    /* bold per comp */
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.35;
}

.capabilities__strip {
    display: grid;
    grid-template-columns: repeat(auto-fit,
            minmax(220px, min(100%, 360px)));
    gap: clamp(10px, 1.6vw, 24px);
    justify-content: center;
}

.capabilities__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    background: var(--wildrosedevs);
    /* fallback teal while images load */
    box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}

.capabilities__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .capabilities__grid {
        grid-template-columns: 1fr;
    }
}