/**
 * Home page layout & metric cards — static asset (no Vite required).
 */

/* Carousel section title — matches hero eyebrow weight & scale */
.gdb-home-carousel-label {
    margin: 0 0 1.5rem;
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #27272a;
}

/* Hero + carousel row (homepage): hero left, wider carousel column on large screens */
.gdb-home-top-split {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e4e4e7;
}

/* Hero sits flush with the top of the row (no extra band under title on split layout). */
.gdb-home-hero--split {
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

@media (min-width: 1024px) {
    .gdb-home-top-split {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem 3rem;
    }

    .gdb-home-hero--split {
        flex: 1 1 0;
        min-width: 0;
        padding-top: 1.25rem;
    }

    .gdb-home-hero--split .gdb-home-title {
        max-width: none;
    }

    .gdb-home-hero--split .gdb-home-lead {
        max-width: none;
    }

    .gdb-carousel-section--split {
        flex: 0 0 72%;
        width: 72%;
        max-width: 72%;
        margin-left: auto;
        margin-bottom: 0;
        border-top: none;
        border-bottom: none;
        background: transparent;
        padding-top: 0;
        padding-bottom: 0;
    }

    .gdb-home-carousel-label--split {
        margin-bottom: 1rem;
    }
}

/* Brief carousel */
.gdb-carousel-section {
    position: relative;
    margin-bottom: 3rem;
    border-top: 1px solid #e4e4e7;
    border-bottom: 1px solid #e4e4e7;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0.95) 0%, rgba(244, 244, 245, 0.5) 100%);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.gdb-carousel-section--split {
    margin-bottom: 0;
}

.gdb-home-carousel-label--split {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
    text-align: center;
}

.gdb-carousel-wrap {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    max-width: 42rem;
    padding: 0 1.125rem;
}

@media (max-width: 639px) {
    .gdb-carousel-wrap {
        padding: 0 0.875rem;
        max-width: none;
    }
}

/* One slide per view: slide width set in JS from viewport.clientWidth. */
.gdb-carousel-viewport {
    overflow: hidden;
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Home hero row: split modifiers must beat max-width rules above (same specificity, order). */
.gdb-carousel-wrap.gdb-carousel-wrap--split {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.125rem;
    padding-right: 1.125rem;
}

.gdb-carousel-viewport.gdb-carousel-viewport--split {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.gdb-carousel-track {
    display: flex;
    gap: 0.875rem;
    width: max-content;
    will-change: transform;
}

.gdb-carousel-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
}

.gdb-carousel-slide-inner {
    border-radius: 1rem;
}

.gdb-carousel-thumb {
    min-height: 11rem;
}

@media (min-width: 640px) {
    .gdb-carousel-thumb {
        min-height: 14rem;
    }
}

.gdb-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #e4e4e7;
    border-radius: 9999px;
    background: #fff;
    color: #27272a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gdb-carousel-arrow:hover {
    background: #fafafa;
    border-color: #d4d4d8;
    color: #18181b;
}

.gdb-carousel-arrow:focus-visible {
    outline: 2px solid #52525b;
    outline-offset: 2px;
}

.gdb-carousel-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.gdb-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.gdb-carousel-arrow--prev {
    left: 0.35rem;
}

.gdb-carousel-arrow--next {
    right: 0.35rem;
}

.gdb-carousel-arrow svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.gdb-carousel-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a1a1aa;
    line-height: 1.4;
}

.gdb-home {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.gdb-home-hero {
    margin-bottom: 2.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e4e4e7;
}

.gdb-home-hero .gdb-home-eyebrow-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gdb-home-hero .gdb-home-eyebrow-line {
    width: 2.25rem;
    height: 3px;
    background: linear-gradient(90deg, #18181b, transparent);
    border-radius: 1px;
}

/* Eyebrow — larger & bold */
.gdb-home-eyebrow {
    margin: 0;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #27272a;
}

/* Main hero title — larger & bold */
.gdb-home-title {
    margin: 0;
    max-width: none;
    font-family: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
    font-size: clamp(2.125rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: #09090b;
}

/* Lead — larger & bold */
.gdb-home-lead {
    margin: 1.35rem 0 0;
    max-width: none;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.65;
    color: #3f3f46;
}

.gdb-home-block {
    margin-bottom: 2.5rem;
}

.gdb-home-block:last-of-type {
    margin-bottom: 0;
}

.gdb-home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.125rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #f4f4f5;
}

.gdb-home-section-title {
    margin: 0;
    font-family: "Source Serif 4", ui-serif, Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #18181b;
    letter-spacing: -0.015em;
}

.gdb-home-section-hint {
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a1a1aa;
}

.gdb-home-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 1rem 1.125rem;
}

@media (min-width: 640px) {
    .gdb-home-metric-grid {
        grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
    }
}

/* Stat cards on home: richer treatment */
.gdb-home .gdb-home-stat {
    min-width: 0;
    border-radius: 0.875rem;
    border: 1px solid #e4e4e7;
    background: linear-gradient(165deg, #ffffff 0%, #fafafa 100%);
    padding: 1.125rem 1.25rem;
    min-height: 5.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gdb-home .gdb-home-stat:hover {
    border-color: #d4d4d8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gdb-home .gdb-home-stat .gdb-panel-title {
    opacity: 0.92;
}

.gdb-home-callout {
    margin: 2.25rem 0 2rem;
    max-width: none;
    padding: 1.125rem 1.25rem 1.125rem 1.125rem;
    border-left: 3px solid #18181b;
    background: #fafafa;
    border-radius: 0 0.5rem 0.5rem 0;
    border: 1px solid #e4e4e7;
    border-left-width: 3px;
    border-left-color: #18181b;
}

.gdb-home-callout p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #52525b;
}

.gdb-home-callout a {
    font-weight: 600;
    color: #27272a;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #d4d4d8;
}

.gdb-home-callout a:hover {
    color: #18181b;
    text-decoration-color: #a1a1aa;
}

.gdb-home-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-top: 0.25rem;
}

/* CTAs: plain CSS so buttons look correct without a fresh Vite build */
.gdb-home .gdb-btn-primary,
.gdb-home .gdb-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.gdb-home .gdb-btn-primary {
    background-color: #18181b;
    color: #fff;
    border: 1px solid #18181b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.gdb-home .gdb-btn-primary:hover {
    background-color: #27272a;
    border-color: #27272a;
}

.gdb-home .gdb-btn-secondary {
    background-color: #fff;
    color: #18181b;
    border: 1px solid #e4e4e7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.gdb-home .gdb-btn-secondary:hover {
    background-color: #fafafa;
    border-color: #d4d4d8;
}
