/**
 * HS Employees - Frontend Styles
 */

/* Team Grid */
.hs-team-grid {
    display: grid;
    gap: 24px;
    margin: 1.5rem 0;
}

.hs-team-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hs-team-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hs-team-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hs-team-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.hs-team-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Employee Profile */
.hs-employee-profile {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.hs-employee-profile__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.hs-employee-profile__meta {
    flex: 1;
    min-width: 240px;
}

.hs-employee-profile .hs-employee-photo,
.hs-employee-profile .hs-employee-photo-placeholder {
    margin-bottom: 0;
}

/* Employee Card */
.hs-employee-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hs-team-grid.is-card .hs-employee-card {
    background: var(--color-white, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--border-radius, 12px);
    box-shadow: 0 2px 8px var(--color-shadow, rgba(20, 24, 38, 0.08));
    padding: 24px;
}

.hs-team-grid.is-card .hs-employee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--color-shadow-light, rgba(44, 119, 231, 0.07));
}

.hs-employee-photo {
    width: clamp(96px, 18vw, 160px);
    height: clamp(96px, 18vw, 160px);
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--site-secondary, var(--color-secondary, #28a745));
    margin-bottom: 1rem;
}

.hs-employee-photo-placeholder {
    width: clamp(96px, 18vw, 160px);
    height: clamp(96px, 18vw, 160px);
    border-radius: 50%;
    border: 3px solid var(--site-secondary, var(--color-secondary, #28a745));
    background: var(--hs-placeholder-color, var(--color-background, #f9fafb));
    color: var(--color-text-muted, #666);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hs-employee-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: var(--color-text, #191919);
}

.hs-employee-name a {
    color: inherit;
    text-decoration: none;
}

.hs-employee-profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.hs-employee-profile-link:focus-visible {
    outline: 2px solid var(--site-primary, var(--color-primary, #7367f0));
    outline-offset: 3px;
    border-radius: 999px;
}

.hs-employee-name a:hover {
    color: var(--site-primary, var(--color-primary, #7367f0));
}

.hs-employee-title {
    font-size: 0.875rem;
    color: var(--color-text-muted, #666);
    margin: 0 0 0.5rem;
}

.hs-employee-departments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.hs-employee-department {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-background, #f9fafb);
    border: 1px solid var(--color-border, #e5e7eb);
    color: var(--color-text-light, #444);
    font-size: 0.75rem;
    border-radius: 12px;
}

.hs-employee-bio {
    font-size: 0.875rem;
    color: var(--color-text-light, #444);
    margin: 0.75rem 0;
    line-height: 1.5;
}

.hs-employee-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.hs-employee-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}

.hs-employee-contact-item::after {
    content: "\2192";
    position: absolute;
    right: -1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease, right 0.3s ease;
}

.hs-employee-contact-item:hover {
    color: var(--contentor-green, var(--site-secondary, #00ea6e));
}

.hs-employee-contact-item:hover::after {
    opacity: 1;
    right: -1.5rem;
}

.hs-employee-contact-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hs-employee-contact-icon svg {
    width: 18px;
    height: 18px;
    overflow: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .hs-team-grid.cols-4,
    .hs-team-grid.cols-5,
    .hs-team-grid.cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hs-team-grid.cols-3,
    .hs-team-grid.cols-4,
    .hs-team-grid.cols-5,
    .hs-team-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hs-employee-profile__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hs-team-grid {
        grid-template-columns: 1fr !important;
    }

    .hs-employee-photo,
    .hs-employee-photo-placeholder {
        width: 140px;
        height: 140px;
    }

    .hs-employee-name {
        font-size: 1.35rem;
    }

    .hs-employee-contact {
        gap: 0.25rem;
    }

    .hs-employee-contact-item {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .hs-employee-contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .hs-employee-contact-icon {
        width: 20px;
        height: 20px;
    }
}

/* Employee Single - layout */
body.single-hs_employee .case-content__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

body.single-hs_employee .case-content__main .case-section {
    margin-bottom: 2.5rem;
}

body.single-hs_employee .case-content__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sidebar profile photo */
body.single-hs_employee .hs-employee-single-photo {
    display: flex;
    justify-content: center;
}

body.single-hs_employee .hs-employee-single-photo .hs-employee-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--site-secondary, var(--color-secondary, #28a745));
}

body.single-hs_employee .hs-employee-single-photo .hs-employee-photo-placeholder {
    width: 180px;
    height: 180px;
    font-size: 2.5rem;
}

/* Sidebar section headings */
body.single-hs_employee .case-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

/* Contact links */
body.single-hs_employee .case-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

body.single-hs_employee .case-links-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #0f172a;
    text-decoration: none;
    background: #ffffff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-hs_employee .case-links-list a:hover {
    border-color: var(--contentor-green, #00ea6e);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

body.single-hs_employee .case-links-list a::after {
    content: "→";
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.35);
    margin-left: auto;
    transition: color 0.2s ease;
}

body.single-hs_employee .case-links-list a:hover::after {
    color: var(--contentor-green, #00ea6e);
}

/* Contact link icons */
body.single-hs_employee .case-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.single-hs_employee .case-link__icon svg {
    width: 18px;
    height: 18px;
}

body.single-hs_employee .case-link__text {
    font-size: 0.9rem;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Department tags */
body.single-hs_employee .case-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

body.single-hs_employee .case-type {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

/* Footer with nav + back link */
body.single-hs_employee .case-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body.single-hs_employee .case-footer__back {
    text-align: center;
}

body.single-hs_employee .back-to-cases {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

body.single-hs_employee .back-to-cases:hover {
    color: var(--contentor-green, #00ea6e);
}

/* Prev/Next navigation — reuse case-nav pattern */
body.single-hs_employee .case-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
}

body.single-hs_employee .case-nav__prev,
body.single-hs_employee .case-nav__next {
    flex: 0 1 auto;
}

body.single-hs_employee .case-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(.68, -0.2, .4, 1.2);
    border: 2px solid transparent;
}

body.single-hs_employee .case-nav__prev .case-nav__link {
    background: transparent;
    color: var(--contentor-green, #00ea6e);
    border-color: var(--contentor-green, #00ea6e);
}

body.single-hs_employee .case-nav__prev .case-nav__link:hover {
    background: rgba(0, 234, 110, 0.08);
    border-color: #00c95e;
    color: #00c95e;
    transform: translateY(-1px);
}

body.single-hs_employee .case-nav__next .case-nav__link {
    background: var(--contentor-green, #00ea6e);
    color: #000000;
    box-shadow: 0 2px 8px hsla(155, 100%, 45%, 0.3);
}

body.single-hs_employee .case-nav__next .case-nav__link:hover {
    background: hsl(155, 100%, 35%);
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(155, 100%, 35%, 0.4);
}

body.single-hs_employee .case-nav__arrow {
    font-size: 1rem;
    flex-shrink: 0;
}

body.single-hs_employee .case-nav__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

body.single-hs_employee .case-nav__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

body.single-hs_employee .case-nav__title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 900px) {
    body.single-hs_employee .case-content__grid {
        grid-template-columns: 1fr;
    }

    body.single-hs_employee .case-content__sidebar {
        order: -1;
    }

    body.single-hs_employee .hs-employee-single-photo .hs-employee-photo,
    body.single-hs_employee .hs-employee-single-photo .hs-employee-photo-placeholder {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 540px) {
    body.single-hs_employee .case-nav {
        flex-direction: column;
        gap: 1rem;
    }

    body.single-hs_employee .case-nav__link {
        width: 100%;
        justify-content: center;
    }
}

/* Hero overrides for employee single */
body.single-hs_employee .contentor-gradient-header {
    min-height: 260px;
}

body.single-hs_employee .hs-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
}

body.single-hs_employee .hs-hero__text {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

body.single-hs_employee .hs-hero__text p {
    font-size: inherit;
}

/* Sync swoosh bottom color with the next section (gray-light #f8fafc) */
body.single-hs_employee .wp-block-hs-section-wrapper.graphic-effect--gront-streck-separator--bottom {
    --section-effect-outside-bottom: #f8fafc;
}

/* ── Centered layout when no biography ── */
body.single-hs_employee .hs-employee-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    gap: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

body.single-hs_employee .hs-employee-centered__photo .hs-employee-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--site-secondary, var(--color-secondary, #28a745));
}

body.single-hs_employee .hs-employee-centered__photo .hs-employee-photo-placeholder {
    width: 200px;
    height: 200px;
    font-size: 3rem;
}

body.single-hs_employee .hs-employee-centered__section {
    width: 100%;
}

body.single-hs_employee .hs-employee-centered__section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin: 0 0 0.75rem;
}

body.single-hs_employee .hs-employee-centered__departments {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

body.single-hs_employee .hs-employee-centered__contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

body.single-hs_employee .hs-employee-centered__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #0f172a;
    text-decoration: none;
    background: #ffffff;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-hs_employee .hs-employee-centered__link:hover {
    border-color: var(--contentor-green, #00ea6e);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

body.single-hs_employee .hs-employee-centered__link::after {
    content: "\2192";
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.35);
    margin-left: auto;
    transition: color 0.2s ease;
}

body.single-hs_employee .hs-employee-centered__link:hover::after {
    color: var(--contentor-green, #00ea6e);
}

body.single-hs_employee .hs-employee-centered__link .case-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.single-hs_employee .hs-employee-centered__link .case-link__icon svg {
    width: 18px;
    height: 18px;
}

body.single-hs_employee .hs-employee-centered__link span:not(.case-link__icon) {
    font-size: 0.9rem;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    body.single-hs_employee .hs-employee-centered__photo .hs-employee-photo,
    body.single-hs_employee .hs-employee-centered__photo .hs-employee-photo-placeholder {
        width: 160px;
        height: 160px;
    }
}
