/*
 * SMC - public page: The Family Behind SMC
 * File: /wp-content/themes/smc/assets/css/meet-the-owners.css
 * Version: 1.0.1
 * Author: NUVREN
 */

:root {
    --smc-founders-card-radius: 20px;
    --smc-founders-card-radius-mobile: 18px;
    --smc-founders-card-shadow:
        0 22px 60px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    --smc-founders-card-topline: 3px solid rgba(56, 189, 248, 0.55);
    --smc-founders-title: #020617;
    --smc-founders-text: #0f172a;
    --smc-founders-muted: #4b5563;
    --smc-founders-border-soft: rgba(148, 163, 184, 0.22);
}

.smc-founders-page {
    padding: 80px 0 96px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.12), transparent 55%),
        #f9fafb;
}

.smc-founders-page .smc-container {
    padding-left: 16px;
    padding-right: 16px;
}

.smc-founders-section {
    margin-top: 28px;
}

.smc-founders-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--smc-founders-card-radius);
    padding: 32px 32px 28px;
    box-shadow: var(--smc-founders-card-shadow);
    overflow: hidden;
}

.smc-founders-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border-top: var(--smc-founders-card-topline);
    pointer-events: none;
}

.smc-founders-hero-grid,
.smc-founders-people-grid,
.smc-founders-cards-grid,
.smc-founders-copy-grid {
    display: grid;
    gap: 24px;
}

.smc-founders-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: stretch;
}

.smc-founders-copy-grid,
.smc-founders-people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smc-founders-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smc-founders-title {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--smc-founders-title);
}

.smc-founders-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--smc-founders-muted);
}

.smc-founders-lead,
.smc-founders-copy-box p,
.smc-founders-person-body p,
.smc-founders-mini-card p,
.smc-founders-subtext {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--smc-founders-muted);
}

.smc-founders-lead + .smc-founders-lead,
.smc-founders-copy-box p + p,
.smc-founders-person-body p + p {
    margin-top: 12px;
}

.smc-founders-section-head {
    margin-bottom: 18px;
}

.smc-founders-section-head--center {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
}

.smc-founders-section-head--tight {
    margin-bottom: 0;
}

.smc-founders-section-head h2,
.smc-founders-person-body h3,
.smc-founders-mini-card h3 {
    margin: 0;
    color: var(--smc-founders-title);
    letter-spacing: -0.02em;
}

.smc-founders-section-head h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.smc-founders-person-body h3,
.smc-founders-mini-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.smc-founders-role {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
}

.smc-founders-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.smc-founders-actions--center {
    justify-content: center;
}

.smc-founders-photo-shell {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--smc-founders-border-soft);
}

.smc-founders-photo-shell--family {
    aspect-ratio: 4 / 5;
    min-height: 380px;
}

.smc-founders-photo-shell--person {
    aspect-ratio: 4 / 5;
    min-height: 380px;
}

.smc-founders-photo-trigger {
    appearance: none;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
}

.smc-founders-photo-trigger::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.32));
    pointer-events: none;
}

.smc-founders-photo-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.24s ease;
}

.smc-founders-photo-trigger:hover img,
.smc-founders-photo-trigger:focus-visible img {
    transform: scale(1.02);
}

.smc-founders-zoom-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.smc-founders-placeholder {
    width: 100%;
    min-height: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 26px;
    color: var(--smc-founders-muted);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.95)),
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 45%),
        #eff6ff;
}

.smc-founders-placeholder strong {
    color: var(--smc-founders-text);
    font-size: 18px;
}

.smc-founders-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.smc-founders-viewer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.90);
    cursor: zoom-out;
}

.smc-founders-viewer-stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding:
        calc(env(safe-area-inset-top, 0px) + 22px)
        max(18px, env(safe-area-inset-right, 0px) + 18px)
        calc(env(safe-area-inset-bottom, 0px) + 22px)
        max(18px, env(safe-area-inset-left, 0px) + 18px);
}

.smc-founders-viewer-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(94vw, 1400px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 44px);
    object-fit: contain;
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.40);
}

.smc-founders-viewer-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: max(14px, env(safe-area-inset-right, 0px) + 14px);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

html.smc-founders-lock,
body.smc-founders-lock {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .smc-founders-hero-grid,
    .smc-founders-cards-grid {
        grid-template-columns: 1fr;
    }

    .smc-founders-photo-shell--family {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .smc-founders-page {
        padding: 64px 0 80px;
    }

    .smc-founders-card {
        padding: 24px 20px 22px;
        border-radius: var(--smc-founders-card-radius-mobile);
    }

    .smc-founders-title {
        font-size: 30px;
    }

    .smc-founders-copy-grid,
    .smc-founders-people-grid,
    .smc-founders-cards-grid {
        grid-template-columns: 1fr;
    }

    .smc-founders-photo-shell--family {
        aspect-ratio: 4 / 5;
    }

    .smc-founders-photo-shell--family,
    .smc-founders-photo-shell--person {
        min-height: 0;
    }

    .smc-founders-actions {
        flex-direction: column;
    }

    .smc-founders-actions .smc-btn {
        width: 100%;
        justify-content: center;
    }

    .smc-founders-zoom-chip {
        right: 10px;
        bottom: 10px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .smc-founders-viewer-stage {
        padding:
            calc(env(safe-area-inset-top, 0px) + 16px)
            max(12px, env(safe-area-inset-right, 0px) + 12px)
            calc(env(safe-area-inset-bottom, 0px) + 16px)
            max(12px, env(safe-area-inset-left, 0px) + 12px);
    }

    .smc-founders-viewer-image {
        max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
        border-radius: 16px;
    }

    .smc-founders-viewer-close {
        top: calc(env(safe-area-inset-top, 0px) + 10px);
        right: max(10px, env(safe-area-inset-right, 0px) + 10px);
        width: 40px;
        height: 40px;
    }
}
