/* =========================================
   FRITTS — Company Page Styles
   ========================================= */

/* Body bg matches final animation state (career circle teal) */
body {
    background-color: #2a8385;
}

/* =========================================
   Company Hero Section (pinned)
   ========================================= */
.company-hero {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
}

/* Rows container — fills section, rows sized by flex */
.company-rows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90svh;
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 3.5em 0 1.5em;
    will-change: transform;
}

/* Single row — fills equal share of available height */
.company-row {
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: visible;
}

/* Horizontal track that slides left/right */
.row-track {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2em;
    width: max-content;
    will-change: transform;
}

/* Team photo card — height driven by row track */
.team-card {
    height: 85%;
    aspect-ratio: 1.75;
    display: flex;
    justify-content: center;
    border-radius: 0.75em;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-brand-white);
}

.team-card img {
    height: 101%;
    object-fit: contain;
    width: auto;
    display: block;
}

/* Row text — Smart / Team / Energie */
.row-text {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 5.5em;
    color: var(--color-brand-white);
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
}

/* =========================================
   Overlay — Guy, CTAs, Career Circle
   ========================================= */
.company-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Scroll-down indicator */
.scroll-down-icon {
    position: absolute;
    bottom: 2em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    pointer-events: none;
}

/* Guy showing his back */
.company-guy {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 34em;
    pointer-events: auto;
}

.company-guy img {
    width: 100%;
    height: auto;
    display: block;
}

/* Left CTA buttons */
.company-cta-left {
    position: absolute;
    left: 5em;
    bottom: 10em;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    pointer-events: auto;
}

/* Solid company buttons — no glass, text left / icon right */
.company-cta-left .btn-glass {
    backdrop-filter: none;
    border: none;
    justify-content: space-between;
    min-width: 14em;
}

.company-cta-left .btn-glass:hover {
    opacity: 0.9;
}

.company-cta-left .btn-teal {
    background: var(--color-brand-cyan);
}

.company-cta-left .btn-teal:hover {
    background: var(--color-brand-cyan);
}

.company-cta-left .btn-red {
    background: var(--color-brand-red);
}

.company-cta-left .btn-red:hover {
    background: var(--color-brand-red);
}

/* Career circle — bottom-right, rotated 45° */
.company-circle {
    position: absolute;
    right: 5em;
    bottom: 8em;
    width: 20em;
    height: 20em;
    border-radius: 50%;
    background-color: var(--color-brand-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2em;
    pointer-events: auto;
}

.company-circle-text {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2.25em;
    color: var(--color-brand-white);
    line-height: 1.3;
}

/* =========================================
   Team Grid Page Overlay (Step 5)
   ========================================= */
.company-team-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background-color: var(--color-brand-dark-teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5em 4em 2em;
    pointer-events: none;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
}

.company-team-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2.75em;
    color: var(--color-brand-white);
    text-align: center;
    margin-bottom: 0.25em;
    line-height: 1.2;
}

.company-team-subtitle {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1em;
    color: var(--color-brand-white);
    text-align: center;
    opacity: 0.7;
    margin-bottom: 2em;
}

.company-team-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1em;
    justify-items: center;
    align-items: center;
    width: calc(0.9 * var(--frame-w));
    height: 60svh;
}

.team-grid-card {
    position: relative;
    width: 90%;
    align-self: center;
    justify-self: center;
    aspect-ratio: 1 / 1.5;
    border-radius: 1em;
    overflow: hidden;
    border: 0.5em solid var(--color-brand-white);
    pointer-events: auto;
    background-color: white;
    container-type: inline-size;
}


.team-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1em;
}

/* =========================================
   Card Arrow Button & Info Overlay
   ========================================= */
.card-arrow-btn {
    /* font-size is driven by the card's inline-size container so the
       icon scales proportionally with the grid cell while preserving
       its em-based ratio (width == height). */
    font-size: 8cqi;
    position: absolute;
    bottom: 0.5em;
    right: 0.5em;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.card-arrow-btn svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.team-grid-card.info-open .card-arrow-btn svg {
    transform: rotate(135deg);
}

.card-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.6em 0.75em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    pointer-events: auto;
    gap: 0.1em;
}

.team-grid-card.info-open .card-info-overlay {
    transform: translateY(0);
    padding-bottom: 2.5em;
}

.card-info-name {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 0.65em;
    color: var(--color-brand-red);
    line-height: 1.3;
}

.card-info-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 0.65em;
    color: var(--color-brand-dark-teal);
    line-height: 1.3;
}

.card-info-email,
.card-info-phone {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 0.65em;
    color: var(--color-brand-dark-teal);
    line-height: 1.3;
}

/* =========================================
   Glass Buttons (shared pattern)
   ========================================= */
.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 1em;
    background: var(--btn-glass-bg);
    color: var(--color-brand-white);
    text-decoration: none;
    padding: var(--btn-glass-padding-block) var(--btn-glass-padding-inline);
    border-radius: var(--btn-glass-radius);
    font-size: var(--btn-glass-font-size);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    backdrop-filter: blur(var(--btn-glass-blur));
    border: 1px solid var(--btn-glass-border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-glass:hover {
    background: var(--btn-glass-bg-hover);
}

.btn-glass--arrow {
    padding: 0.25em 0.25em 0.25em var(--btn-glass-padding-inline);
}

.btn-glass .arrow-circle {
    width: 2.25em;
    height: 2.25em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-glass .arrow-circle img {
    width: 100%;
    height: 100%;
}

/* =========================================
   Career Circle (scaling bg — Step 7-8)
   ========================================= */
.career-circle-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 500vmax;
    height: 500vmax;
    margin-left: -250vmax;
    margin-bottom: -290vmax;
    border-radius: 50%;
    background-color: #2a8385;
    z-index: 0;
    pointer-events: none;
}

/* Scroll wrapper — holds team grid + career content in one tall column */
.team-career-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
}

/* Career heading */
.career-header {
    text-align: center;
    margin-bottom: 2.5em;
    padding-top: 15svh;
}

.career-subtitle {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1.25em;
    color: var(--color-brand-white);
    margin-bottom: 0.25em;
    opacity: 0.85;
}

.career-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 3.5em;
    color: var(--color-brand-white);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* =========================================
   FAQ Accordion
   ========================================= */
.career-faq {
    width: 100%;
    max-width: 70em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 0 2em;
    pointer-events: auto;
    margin-top: 6em;
}

.faq-item {
    background: var(--color-brand-dark-teal);
    border-radius: 1.5em;
    overflow: hidden;
    transition: background 0.2s;
}

.faq-item:hover {
    background: #1d5a5e;
}

.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    border-radius: inherit;
    padding: 0.75em 0.75em 0.75em 2em;
    cursor: pointer;
}

.faq-label {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.35em;
    color: var(--color-brand-white);
    text-align: left;
}

.faq-arrow {
    flex-shrink: 0;
    width: 3em;
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.faq-item.faq-open .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: transparent;
    padding: 0 2em;
}

.faq-item.faq-open .faq-content {
    max-height: 20em;
    padding: 0.5em 2em 1.5em;
}

.faq-content p {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 1em;
    color: var(--color-brand-white);
    line-height: 1.6;
    opacity: 0.85;
}

/* =========================================
   Quote Section
   ========================================= */
.career-quote {
    text-align: center;
    max-width: 55em;
    margin-top: 4em;
}

.career-quote blockquote {
    margin: 0;
}

.career-quote blockquote p {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.25em;
    color: var(--color-brand-white);
    line-height: 1.6;
}

.career-quote cite {
    display: block;
    margin-top: 1em;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 0.9em;
    color: var(--color-brand-white);
    opacity: 0.7;
    font-style: normal;
}

/* =========================================
   Kununu Badge
   ========================================= */
.career-kununu {
    text-align: center;
    margin-top: 3em;
    padding-bottom: 15svh;
}

.career-kununu-label {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 0.85em;
    color: var(--color-brand-white);
    opacity: 0.7;
    margin-bottom: 1em;
}

.kununu-badge {
    display: inline-flex;
    text-decoration: none;
    border-radius: 0.5em;
    overflow: hidden;
    pointer-events: auto;
}

.kununu-badge-inner {
    display: flex;
    align-items: center;
    background: #f4c300;
    padding: 0.6em 1.2em;
    gap: 0.6em;
    border-radius: 0.5em;
}

.kununu-k {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 2.5em;
    color: #ffffff;
    background: #5fb536;
    width: 1.5em;
    height: 1.5em;
    border-radius: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.kununu-text {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 0.85em;
    color: #333;
    text-align: left;
    line-height: 1.3;
}

.kununu-text strong {
    font-weight: var(--font-weight-bold);
    font-size: 1.4em;
    color: #333;
}