/*
 * Homepage hero: a navy band with the company's thesis on the left and
 * "What we build and run" on the right, one slab per area of work.
 * Replaces the former orange "Looking for custom software" banner.
 *
 * Bootstrap 3 sets the root font size to 10px, so sizes here are in px.
 * Every rule is scoped under .dl-hero so the theme is not affected.
 */

.dl-hero {
    --dl-slab: rgba(255, 255, 255, 0.05);
    --dl-line: rgba(255, 255, 255, 0.16);
    --dl-ink: #f3f5f9;
    --dl-muted: #c9cbd0;
    --dl-coral: #f2858f;
    --dl-coral-ink: #0d1524;
    --dl-live: #5be08f;
    --dl-done: #9ec5ff;

    --dl-display: "Sora", "Segoe UI", Arial, sans-serif;
    --dl-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    --dl-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

    /* Same background as the footer's Quick Links section (.dlg_pre_footer). */
    background: url(img/bg-qora-baxmal.jpg) repeat 0 0;
    color: var(--dl-ink);
    font-family: var(--dl-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.dl-hero *,
.dl-hero *::before,
.dl-hero *::after {
    box-sizing: border-box;
}

/* The theme justifies paragraphs; keep the hero ragged-right. */
.dl-hero p,
.dl-hero li {
    text-align: left;
}

.dl-hero a {
    color: var(--dl-ink);
    text-decoration: underline;
    text-decoration-color: var(--dl-line);
    text-underline-offset: 3px;
}

.dl-hero a:hover,
.dl-hero a:focus {
    color: var(--dl-ink);
    text-decoration-color: var(--dl-coral);
}

.dl-hero a:focus-visible {
    outline: 2px solid var(--dl-coral);
    outline-offset: 3px;
    border-radius: 4px;
}

.dl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    padding: 56px 0 72px;
}

/* Bootstrap's md breakpoint: stack the two columns below it. */
@media (max-width: 991px) {
    .dl-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
        padding: 36px 0 48px;
    }
}

/* ---------- Left column: the thesis ---------- */

.dl-hero__copy {
    display: grid;
    gap: 22px;
    min-width: 0;
}

/* Balance the copy against the taller project stack on desktop. */
@media (min-width: 992px) {
    .dl-hero__copy {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 28px;
    }
}

.dl-hero__eyebrow {
    margin: 0;
    font: 500 13px/1.3 var(--dl-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dl-coral);
}

.dl-hero__title {
    margin: 0;
    font-family: var(--dl-display);
    font-size: clamp(28px, 18px + 1.6vw, 36px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--dl-ink);
    text-wrap: balance;
}

.dl-hero__title em {
    font-style: normal;
    color: var(--dl-coral);
}

.dl-hero__lede {
    margin: 0;
    max-width: 54ch;
    font-size: 18px;
    line-height: 1.6;
    color: var(--dl-muted);
}

.dl-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dl-hero .dl-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 15px/1 var(--dl-body);
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.dl-hero .dl-btn--coral {
    background: var(--dl-coral);
    color: var(--dl-coral-ink);
}

.dl-hero .dl-btn--coral:hover,
.dl-hero .dl-btn--coral:focus {
    background: var(--dl-ink);
    color: var(--dl-coral-ink);
}

/* ---------- Right column: what we build and run ---------- */

.dl-stack {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.dl-stack figcaption {
    padding-bottom: 4px;
    font: 500 13px/1.3 var(--dl-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dl-ink);
}

.dl-slab {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--dl-line);
    border-radius: 10px;
    background: var(--dl-slab);
}

.dl-slab__code {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-right: 1px solid var(--dl-line);
    text-align: center;
}

.dl-slab__code span {
    font: 500 20px/1 var(--dl-mono);
    color: var(--dl-coral);
}

.dl-slab__code small {
    font: 500 10px/1.2 var(--dl-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dl-muted);
}

.dl-slab__body {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px 16px 16px;
}

.dl-slab__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}

.dl-hero .dl-slab__head h2 {
    margin: 0;
    font-family: var(--dl-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dl-ink);
}

.dl-slab ul,
.dl-hero .dl-slab__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--dl-muted);
}

.dl-slab ul {
    display: grid;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.dl-slab li {
    position: relative;
    padding-left: 22px;
}

.dl-slab li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--dl-line);
}

.dl-slab .dl-pool-regions li {
    display: grid;
    grid-template-columns: 8ch minmax(0, 1fr);
    column-gap: 12px;
    font: 500 14px/1.6 var(--dl-mono);
}

.dl-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 500 11px/1 var(--dl-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dl-status--live {
    color: var(--dl-live);
}

.dl-status--live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: dl-pulse 2.4s ease-in-out infinite;
}

.dl-status--done {
    color: var(--dl-done);
}

.dl-status--done::before {
    content: "\2713";
    font-size: 12px;
}

@keyframes dl-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 224, 143, 0.55); }
    50% { box-shadow: 0 0 0 5px rgba(91, 224, 143, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .dl-status--live::before { animation: none; }
    .dl-hero .dl-btn { transition: none; }
}

.dl-stack__foot {
    margin: 0;
    font-size: 13px;
    color: var(--dl-muted);
}

/* Narrow phones: a slimmer code column. */
@media (max-width: 420px) {
    .dl-slab { grid-template-columns: 72px minmax(0, 1fr); }
    .dl-slab__code { padding: 12px 4px; }
    .dl-slab__code span { font-size: 17px; }
    .dl-slab__code small { font-size: 9px; letter-spacing: 0.02em; }
}
