/* ADU Projects -- Stats + Listicle */

/* Hero */
.ap-hero {
    background: #000;
    padding: 2rem 0 3rem;
    text-align: center;
    color: #fff;
}

.ap-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.ap-hero__number {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: #F5A623;
    line-height: 1;
    margin: 0 0 0.25rem;
}

.ap-hero__label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.75rem;
}

.ap-hero__subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* Stats Row */
.ap-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.ap-stat {
    text-align: center;
}

.ap-stat__number {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.ap-stat__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

/* Lists Container -- side by side on desktop */
.ap-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* List Group */
.ap-list-group__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #F5A623;
}

/* List */
.ap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.ap-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.ap-list__item:hover {
    background: #fafafa;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.ap-list__item:last-child {
    border-bottom: none;
}

.ap-list__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ap-list__info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.ap-list__name {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

.ap-list__location {
    font-size: 0.875rem;
    color: #888;
}

.ap-list__specs {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 500;
}

/* ---- LINKED PROJECT ROWS (2026-08-26) ------------------------------------
   A row whose case study exists renders as an <a> instead of a <div>; rows
   without one are unchanged. Inherit color rather than taking the global link
   blue -- the row already reads as a row, the affordance is the hover state and
   the "See the build" cue. */
.ap-list__info--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ap-list__info--link:hover .ap-list__name {
    color: var(--bx-gold-deep, #E09510);
}

.ap-list__cta {
    /* CHANGED 2026-09-24 (Brian's feedback, via Aaron): was opacity:0 by
       default, visible only on hover -- people didn't know to click
       because there was nothing there to tell them to. Always visible now;
       hover/focus is a highlight (brighter gold + the arrow nudges right),
       not a reveal. */
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bx-gold-deep, #E09510);
    transition: color 0.15s ease;
}

.ap-list__cta span {
    display: inline-block;
    transition: transform 0.15s ease;
}

.ap-list__info--link:hover .ap-list__cta,
.ap-list__info--link:focus-visible .ap-list__cta {
    color: var(--bx-gold, #F5A623);
}

.ap-list__info--link:hover .ap-list__cta span,
.ap-list__info--link:focus-visible .ap-list__cta span {
    transform: translateX(3px);
}

.ap-list__info--link:focus-visible {
    outline: 2px solid var(--bx-gold, #F5A623);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 640px) {
    .ap-hero__number {
        font-size: 3.5rem;
    }
    .ap-hero__label {
        font-size: 1.2rem;
    }
    .ap-stats {
        gap: 1.5rem;
    }
    .ap-stat__number {
        font-size: 1.75rem;
    }
    .ap-lists {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Hero split: stats left, Williams photo right (2026-10-16) */
.ap-hero--split { padding: 0; text-align: left; }
.ap-hero__split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: clamp(380px, 34vw, 640px);
}
.ap-hero--split .ap-hero__inner {
    grid-column: 1; grid-row: 1;
    max-width: none; width: 100%; margin: 0;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.5rem, 4vw, 5rem);
    border-right: 4px solid #F5A623;
}
.ap-hero--split .ap-hero__number { font-size: clamp(5rem, 8vw, 9rem); }
.ap-hero--split .ap-hero__label { font-size: clamp(1.6rem, 2.2vw, 2.4rem); }
.ap-hero--split .ap-hero__subtitle { max-width: 34rem; font-size: clamp(1rem, 1.1vw, 1.15rem); }
.ap-hero--split .ap-stats {
    justify-content: flex-start; gap: 0;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 1.5rem; margin-top: 0.5rem;
}
.ap-hero--split .ap-stat {
    text-align: left; flex: 1 1 0;
    padding-right: 1.25rem; margin-right: 1.25rem;
    border-right: 1px solid rgba(255,255,255,0.14);
}
.ap-hero--split .ap-stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ap-hero__photo {
    grid-column: 2; grid-row: 1;
    position: relative; margin: 0; overflow: hidden; background: #111;
}
.ap-hero__photo picture, .ap-hero__photo img {
    display: block; width: 100%; height: 100%;
}
.ap-hero__photo img { object-fit: cover; object-position: center; }
.ap-hero__photo-cap {
    position: absolute; left: 0; bottom: 0;
    background: #000; color: #fff;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.7rem 1.1rem;
    border-top: 3px solid #F5A623;
}
.ap-hero__photo-cap span { color: rgba(255,255,255,0.6); margin-left: 0.5rem; }

@media (max-width: 1024px) {
    .ap-hero__split { grid-template-columns: 1fr; min-height: 0; }
    .ap-hero__photo { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
    .ap-hero--split .ap-hero__inner {
        grid-column: 1; grid-row: 2;
        border-right: 0; border-top: 4px solid #F5A623;
        padding: 2rem 1.5rem 2.5rem;
    }
}
@media (max-width: 519px) {
    .ap-hero__photo { aspect-ratio: 4 / 3; }
    .ap-hero__photo-cap { font-size: 0.65rem; padding: 0.55rem 0.8rem; }
    .ap-hero--split .ap-stat { padding-right: 0.75rem; margin-right: 0.75rem; }
    .ap-hero--split .ap-stat__label { font-size: 0.65rem; }
}
