/* G-ID Labs — Shared Subpage Design System */

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    padding-top: 5.5rem !important;
    padding-bottom: 1rem !important;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(4,47,46,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4,47,46,.02) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 100%);
}
.page-hero .hero-glow-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,155,148,.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero .hero-glow-2 {
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45,212,191,.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero > .relative {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.72fr);
    align-items: center;
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 0.25rem;
    padding-block: clamp(1.125rem, 2.2vw, 1.75rem);
    isolation: isolate;
}
.page-hero > .relative > * {
    grid-column: 1;
    position: relative;
    z-index: 1;
    max-width: 40rem;
}
.page-hero > .relative > .hero-image-wrapper {
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: stretch;
    min-height: 240px;
    border-radius: 999px;
    overflow: hidden;
    max-width: none;
    position: relative;
    z-index: 1;
}
.page-hero > .relative > .hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-hero.has-image > .relative::after {
    display: none;
}
.page-hero > .relative::after {
    content: '';
    display: block;
    grid-column: 2;
    grid-row: 1 / span 6;
    align-self: stretch;
    min-height: 240px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 28% 30%, rgba(200,155,148,.38) 0%, transparent 24%),
        radial-gradient(circle at 72% 70%, rgba(45,212,191,.24) 0%, transparent 22%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(150deg, rgba(4,47,46,.2) 0%, rgba(15,118,110,.12) 100%);
    filter: blur(0.2px);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ===== SECTION SPACING ===== */
.page-section { padding: 4rem 0; }
.page-section-sm { padding: 3rem 0; }
.page-section-lg { padding: 5rem 0; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(4,47,46,.45);
}
.breadcrumb a { color: rgba(4,47,46,.45); transition: color .2s; }
.breadcrumb a:hover { color: #C89B94; }
.breadcrumb .sep { opacity: .3; }

/* ===== CONTENT CARDS ===== */
.content-card {
    background: white;
    border: 1px solid rgba(4,47,46,.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all .3s;
}
.content-card:hover {
    border-color: rgba(200,155,148,.35);
    box-shadow: 0 8px 30px rgba(4,47,46,.06);
    transform: translateY(-2px);
}

/* ===== PROCESS TIMELINE ===== */
.process-timeline { position: relative; padding-left: 2.5rem; }
.process-timeline::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #C89B94 0%, rgba(4,47,46,.08) 100%);
}
.process-step { position: relative; padding-bottom: 2rem; }
.process-step:last-child { padding-bottom: 0; }
.process-step .step-dot {
    position: absolute;
    left: -2.125rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #C89B94;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #C89B94;
    z-index: 1;
}
.process-step .step-dot.active {
    background: #C89B94;
    color: white;
}

/* ===== DATA TABLES ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}
.data-table thead {
    background: #f8fafc;
    border-bottom: 2px solid rgba(4,47,46,.08);
}
.data-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(4,47,46,.5);
}
.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(4,47,46,.06);
    color: #042f2e;
}
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: rgba(200,155,148,.04); }

/* ===== ACCORDION ===== */
.gid-accordion details {
    border: 1px solid rgba(4,47,46,.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all .3s;
    margin-bottom: 0.5rem;
}
.gid-accordion details[open] {
    border-color: rgba(200,155,148,.3);
    box-shadow: 0 4px 20px rgba(4,47,46,.04);
}
.gid-accordion summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.875rem;
    color: #042f2e;
    transition: color .2s;
}
.gid-accordion summary:hover { color: #C89B94; }
.gid-accordion .acc-body { padding: 0 1.25rem 1.25rem; }

/* ===== TABS ===== */
.gid-tabs { display: flex; gap: 0.25rem; border-bottom: 2px solid rgba(4,47,46,.06); }
.gid-tab {
    padding: 0.625rem 1rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(4,47,46,.5);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all .2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.gid-tab:hover { color: #042f2e; }
.gid-tab.active {
    color: #042f2e;
    border-bottom-color: #C89B94;
}

/* ===== CTA SECTION ===== */
.page-cta {
    background: #042f2e;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224,191,184,.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===== STATS GRID ===== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 300;
    color: #042f2e;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(4,47,46,.45);
}

/* ===== BADGE/TAG ===== */
.gid-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(4,47,46,.1);
    background: rgba(255,255,255,.5);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(4,47,46,.65);
}
.gid-badge-accent {
    border-color: rgba(200,155,148,.3);
    color: #C89B94;
}

/* ===== SECTION LABEL ===== */
.section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #C89B94;
    margin-bottom: 0.75rem;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1024px) {
    .page-hero { min-height: 220px; }
    .page-hero > .relative {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }
    .page-hero > .relative > * { max-width: 100%; }
    .page-hero > .relative::after {
        grid-column: 1;
        grid-row: auto;
        min-height: 140px;
        max-width: 320px;
        width: 100%;
        justify-self: start;
    }
    .ml-visual { min-height: 25rem; }
    .ml-pill { min-height: 7.8rem; }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 220px;
        padding-top: 5rem !important;
        padding-bottom: 0.875rem !important;
    }
    .page-hero > .relative {
        padding-block: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .page-hero > .relative > .breadcrumb { order: 1; width: 100%; }
    .page-hero > .relative > .gid-badge { order: 2; }
    .page-hero > .relative > h1 { order: 3; width: 100%; }
    .page-hero > .relative > .hero-image-wrapper {
        order: 4;
        width: 100%;
        min-height: 240px;
        aspect-ratio: 16 / 9;
        border-radius: 2rem;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .page-hero > .relative > p { order: 5; width: 100%; }
    .page-hero > .relative::after {
        display: none;
    }
    .page-section { padding: 2.5rem 0; }
    .page-cta { padding: 2rem 1.5rem; }
    .stat-value { font-size: 1.5rem; }
    .ml-visual {
        min-height: 0;
        padding: 1.25rem;
    }
    .ml-visual__halo {
        width: 10.5rem;
        height: 10.5rem;
        margin-bottom: 1.5rem;
    }
    .ml-visual__core {
        width: 6.9rem;
        height: 6.9rem;
    }
    .ml-visual__core strong { font-size: 1.7rem; }
    .ml-visual__metric { padding: 0.85rem 0.9rem; }
    .ml-pills {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .ml-pill {
        min-height: 2.9rem;
        padding: 0.9rem 1rem 0.85rem;
    }
    .ml-pill-panel {
        max-width: 100%;
    }
    .ml-pill-helper {
        min-height: 0;
        font-size: 11px;
        line-height: 1.6;
    }
    .ml-pill__title {
        font-size: 10px;
        letter-spacing: 0.18em;
    }
    .ml-pill__detail {
        font-size: 11px;
        max-width: none;
    }
}

