/**
 * Zamseed Team Widget Styles
 *
 * @package Zamseed
 * @since 1.0.0
 */

/* ==========================================================================
   Team Base
   ========================================================================== */

.zs-team {
    position: relative;
}

.zs-team__inner {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.zs-team__header {
    margin-bottom: 48px;
    max-width: 700px;
}

.zs-team__header[style*="center"] {
    margin-left: auto;
    margin-right: auto;
}

.zs-team__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    /* Token fix: was --zs-secondary (#d35400, an orange outside the palette).
       Eyebrows across the theme sit on --zs-accent-text. */
    color: var(--zs-accent-text, #9a6c1f);
}

.zs-team__heading {
    font-family: var(--zs-font-serif, 'Cormorant Garamond', serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--zs-text, #1c1c1c);
}

.zs-team__description {
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0;
    color: var(--zs-muted, #555555);
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.zs-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ==========================================================================
   Management group heading

   Only rendered when a group actually has members, so this styling never
   applies while every member is unassigned — the page then shows a single
   unlabelled grid exactly as before.
   ========================================================================== */

.zs-team__group-heading {
    margin: 0 0 24px;
    font-family: var(--zs-font-serif, 'Cormorant Garamond', serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--zs-primary, #2d5a27);
    text-align: var(--zs-header-text-align, center);
}

/* Space between one group's cards and the next group's heading. The first
   heading keeps its own top margin at 0 so grouping does not add a gap above
   the first row. */
.zs-team__grid + .zs-team__group-heading {
    margin-top: 56px;
}

@media (max-width: 767px) {
    .zs-team__group-heading {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .zs-team__grid + .zs-team__group-heading {
        margin-top: 40px;
    }
}

/* ==========================================================================
   Team Card
   ========================================================================== */

.zs-team__card {
    background-color: var(--zs-card, #ffffff);
    border: 1px solid transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--zs-shadow-sm, 0 10px 30px rgba(0, 0, 0, 0.04));
    transition: var(--zs-transition-card, transform 0.3s ease, box-shadow 0.3s ease);
    text-align: center;
}

.zs-team__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zs-shadow, 0 18px 50px rgba(45, 90, 39, 0.12));
}

/* ==========================================================================
   Image
   ========================================================================== */

.zs-team__image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--zs-warm, #fdfcf9);
}

.zs-team__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 560ms var(--zs-ease-standard, ease);
}

.zs-team__card:hover .zs-team__image img {
    transform: scale(1.025);
}

.zs-team__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zs-muted, #555555);
    opacity: 0.3;
}

/* ==========================================================================
   Content
   ========================================================================== */

.zs-team__content {
    padding: 24px;
}

/* ==========================================================================
   Name & Role
   ========================================================================== */

.zs-team__name {
    font-family: var(--zs-font-serif, 'Cormorant Garamond', serif);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--zs-text, #1c1c1c);
}

.zs-team__role {
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--zs-primary, #2d5a27);
}

/* ==========================================================================
   Bio
   ========================================================================== */

.zs-team__bio {
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 16px;
    color: var(--zs-muted, #555555);
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.zs-team__social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.zs-team__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--zs-muted, #555555);
    background-color: var(--zs-warm, #fdfcf9);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color var(--zs-motion-fast, 220ms) var(--zs-ease-hover, ease), color var(--zs-motion-fast, 220ms) var(--zs-ease-hover, ease);
}

.zs-team__social-link:hover {
    color: #ffffff;
    background-color: var(--zs-primary, #2d5a27);
}

.zs-team__social-link:focus {
    outline: 2px solid var(--zs-primary, #2d5a27);
    outline-offset: 2px;
}

.zs-team__social-link svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

/* Published, not just an editor notice: the Team content type is empty, so a
   Team CPT section renders this instead of collapsing to a blank band. */
.zs-team__empty {
    padding: 48px 24px;
    text-align: center;
    background-color: var(--zs-warm, #fdfcf9);
    border: 1px solid var(--zs-border, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
}

.zs-team__empty p,
.zs-team__empty span {
    margin: 0;
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.9375rem;
    color: var(--zs-muted, #555555);
}

.zs-team__empty p.zs-team__empty-message,
.zs-team__empty p.zs-team__empty-legacy,
.zs-team__empty p.zs-team__empty-description {
    font-size: 1.0625rem;
    color: var(--zs-text, #1c1c1c);
}

/* Element-qualified, like the message/legacy/description rules above it.
   `.zs-team__empty p, .zs-team__empty span` is two classes and an element and
   was outranking both of these, so the eyebrow lost its uppercase scale and the
   heading rendered at 15px against a 17px description — a heading smaller than
   the body it introduces. Observed on page 764 before its cutover. */
.zs-team__empty span.zs-team__empty-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    color: var(--zs-accent-text, #9a6c1f);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.zs-team__empty p.zs-team__empty-heading {
    margin: 0 0 12px;
    font-family: var(--zs-font-serif, 'Cormorant Garamond', serif);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--zs-primary, #2d5a27);
}

.zs-team__empty-description {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

.zs-team__empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid var(--zs-primary, #2d5a27);
    border-radius: 999px;
    background-color: var(--zs-primary, #2d5a27);
    color: #ffffff;
    font-family: var(--zs-font-sans, 'Inter', sans-serif);
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.zs-team__empty-cta:hover,
.zs-team__empty-cta:focus-visible {
    background-color: var(--zs-primary-dark, #244f22);
    border-color: var(--zs-primary-dark, #244f22);
    color: #ffffff;
}

.zs-team__empty-cta:focus-visible {
    outline: 2px solid var(--zs-accent, #c48c33);
    outline-offset: 3px;
}

/* Editor-only diagnostic. Element-qualified so it beats the `margin: 0` above. */
.zs-team__empty p.zs-team__empty-hint {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--zs-accent, #c48c33);
    font-size: 0.8125rem;
    color: var(--zs-accent-text, #9a6c1f);
}

/* ==========================================================================
   Responsive - Tablet
   ========================================================================== */

@media (max-width: 1080px) {
    .zs-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 760px) {
    .zs-team__header {
        margin-bottom: 32px;
    }

    .zs-team__heading {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }

    .zs-team__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .zs-team__content {
        padding: 20px;
    }

    .zs-team__name {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .zs-team__card,
    .zs-team__image img,
    .zs-team__social-link {
        transition: none;
    }

    .zs-team__card:hover {
        transform: none;
    }

    .zs-team__card:hover .zs-team__image img {
        transform: none;
    }
}

/* ==========================================================================
   Our Team page preset — opt-in only. Matches Figma node 11133:10722 without
   writing all geometry into generated JSON.
   ========================================================================== */

.zs-team--preset-our-team-page {
    background-color: #f6f4ee;
    padding: 100px clamp(20px, 11.11vw, 160px);
}

.zs-team--preset-our-team-page .zs-team__inner {
    max-width: 1120px;
}

.zs-team--preset-our-team-page .zs-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.zs-team--preset-our-team-page .zs-team__card {
    border-color: rgba(45, 90, 39, 0.14);
    border-radius: 16px;
    box-shadow: none;
    text-align: left;
}

.zs-team--preset-our-team-page .zs-team__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(45, 90, 39, 0.1);
}

.zs-team--preset-our-team-page .zs-team__image {
    aspect-ratio: auto;
    height: 250px;
    background-color: #e8e2d4;
}

.zs-team--preset-our-team-page .zs-team__content {
    padding: 24px;
}

.zs-team--preset-our-team-page .zs-team__name {
    margin-bottom: 8px;
    color: #2d5a27;
    font-size: 22px;
    line-height: 24px;
}

.zs-team--preset-our-team-page .zs-team__role {
    margin-bottom: 0;
    color: #c48c33;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 19.97px;
    letter-spacing: 0.998px;
    text-transform: uppercase;
}

.zs-team--preset-our-team-page .zs-team__empty {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    padding: 56px 48px;
    background-color: #ffffff;
    border-color: rgba(45, 90, 39, 0.14);
    box-shadow: 0 18px 44px rgba(45, 90, 39, 0.08);
}

.zs-team--preset-our-team-page .zs-team__empty-description {
    color: #555555;
}

@media (max-width: 1200px) {
    .zs-team--preset-our-team-page {
        padding-right: clamp(24px, 6vw, 72px);
        padding-left: clamp(24px, 6vw, 72px);
    }
}

@media (max-width: 900px) {
    .zs-team--preset-our-team-page {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .zs-team--preset-our-team-page .zs-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .zs-team--preset-our-team-page {
        padding: 56px 20px;
    }

    .zs-team--preset-our-team-page .zs-team__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .zs-team--preset-our-team-page .zs-team__image {
        height: 230px;
    }

    .zs-team--preset-our-team-page .zs-team__empty {
        padding: 40px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zs-team--preset-our-team-page .zs-team__card:hover {
        transform: none;
        box-shadow: none;
    }
}
