/* ============================================================
   GC — Careers: Position Tabs (inside right form panel)
   Tabs sit above the Fluent Form inside the white right column.
   Namespace: .gc-car-*
   ============================================================ */

/* ── Tab row ── */
.gc-car-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.4rem;
}

.gc-car-tab {
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid rgba(184,149,58,0.25);
    background: transparent;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a6e62;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, box-shadow 0.2s ease,
                transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.gc-car-tab:hover {
    border-color: #b8953a;
    color: #1c1914;
    background: rgba(184,149,58,0.08);
    transform: scale(1.03);
}
.gc-car-tab.is-active {
    background: #b8953a;
    border-color: #b8953a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(184,149,58,0.3);
}

/* ── Position detail panel ── */
.gc-car-detail {
    display: none;
    margin-bottom: 1.6rem;
    padding: 1.3rem 1.5rem;
    background: #faf5ec;
    border: 1px solid rgba(184,149,58,0.22);
    border-radius: 8px;
    animation: gc-car-fade 0.28s ease;
}
.gc-car-detail.is-active { display: block; }

@keyframes gc-car-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gc-car-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gc-car-detail-dept {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a6e62;
}

.gc-car-detail-type {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b8953a;
    background: rgba(184,149,58,0.1);
    border: 1px solid rgba(184,149,58,0.22);
    border-radius: 20px;
    padding: 3px 10px;
}

.gc-car-detail-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1c1914;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}

.gc-car-detail-divider {
    width: 28px;
    height: 2px;
    background: #b8953a;
    opacity: 0.5;
    border-radius: 2px;
    margin-bottom: 10px;
}

.gc-car-detail-desc {
    font-size: 0.8rem;
    color: #3a3228;
    line-height: 1.75;
    margin: 0 0 12px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.gc-car-detail-reqs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gc-car-detail-reqs li {
    font-size: 0.76rem;
    color: #7a6e62;
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.gc-car-detail-reqs li::before {
    content: '◆';
    color: #b8953a;
    font-size: 0.38rem;
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Diamond separator between positions and form ── */
.gc-car-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.8rem 0 2rem;
}
.gc-car-sep::before,
.gc-car-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(184,149,58,0.2);
}
.gc-car-sep-diamond {
    width: 6px;
    height: 6px;
    background: #b8953a;
    transform: rotate(45deg);
    opacity: 0.45;
    flex-shrink: 0;
}

/* ── Right panel overrides for careers variant ──────────────
   More content than contact-hero so we need flex-start + scroll
   ─────────────────────────────────────────────────────────── */
.gc-ch--careers .gc-ch__hero-right {
    align-items: flex-start;
    overflow-y: auto;
    max-height: 100vh;
}
.gc-ch--careers .gc-ch__form-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ── Read More button — solid charcoal pill ── */
.gc-car-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f0ebe2;
    background: #2a2520;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease,
                transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.2s ease;
}
.gc-car-readmore::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.4s ease;
}
.gc-car-readmore:hover::before { left: 160%; }
.gc-car-readmore svg {
    width: 13px; height: 13px;
    stroke: currentColor;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.gc-car-readmore:hover {
    background: #3a3228;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(28,25,20,0.25);
}
.gc-car-readmore:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════
   RIGHT-SIDE DRAWER — slides in from the right edge of the screen
   ══════════════════════════════════════════════════════════════ */

/* Backdrop */
.gc-car-drawer-bd {
    position: fixed;
    inset: 0;
    background: rgba(28,25,20,0.55);
    z-index: 999990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.gc-car-drawer-bd.is-open {
    opacity: 1;
    visibility: visible;
}

/* Drawer panel */
.gc-car-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100vw);
    background: #fff;
    z-index: 999991;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 48px rgba(28,25,20,0.22);
}
.gc-car-drawer.is-open {
    transform: translateX(0);
}

/* Gold shimmer stripe on the left edge of the drawer */
.gc-car-drawer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
        #ecddb8,
        #b8953a,
        #d4af6a,
        #b8953a,
        #ecddb8);
    z-index: 2;
}

/* Drawer header — supports optional background image set via JS */
.gc-car-drawer-head {
    background: #1c1914;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 40px 32px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* Dark gradient overlay so text always reads over any image */
.gc-car-drawer-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(28,25,20,0.92) 0%,
        rgba(28,25,20,0.55) 55%,
        rgba(28,25,20,0.25) 100%
    );
    pointer-events: none;
    z-index: 0;
}
/* All text floats above the overlay */
.gc-car-drawer-overline,
.gc-car-drawer-title,
.gc-car-drawer-meta,
.gc-car-drawer-close { position: relative; z-index: 1; }

.gc-car-drawer-overline {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(184,149,58,0.75);
    margin-bottom: 10px;
    display: block;
}
.gc-car-drawer-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin: 0;
    letter-spacing: 0.02em;
}
.gc-car-drawer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.gc-car-drawer-dept {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.gc-car-drawer-type {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8953a;
    background: rgba(184,149,58,0.12);
    border: 1px solid rgba(184,149,58,0.28);
    border-radius: 20px;
    padding: 3px 12px;
}

/* Close button */
.gc-car-drawer-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(184,149,58,0.25);
    background: transparent;
    color: rgba(184,149,58,0.6);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gc-car-drawer-close:hover {
    background: rgba(184,149,58,0.12);
    color: #b8953a;
    border-color: rgba(184,149,58,0.5);
}

/* Drawer body — must scroll freely */
.gc-car-drawer-body {
    flex: 1 1 0;
    min-height: 0;          /* critical: lets flex child shrink below content size */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.gc-car-drawer-body::-webkit-scrollbar       { width: 4px; }
.gc-car-drawer-body::-webkit-scrollbar-track { background: transparent; }
.gc-car-drawer-body::-webkit-scrollbar-thumb { background: rgba(184,149,58,0.3); border-radius: 2px; }

/* Description block */
.gc-car-drawer-desc {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.95rem;
    color: #3a3228;
    line-height: 1.9;
    margin: 0;
}

/* Section heading inside drawer */
.gc-car-drawer-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.gc-car-drawer-section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(184,149,58,0.18);
}
.gc-car-drawer-section-label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #b8953a;
    white-space: nowrap;
}

/* Requirements */
.gc-car-drawer-reqs {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gc-car-drawer-reqs li {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.9rem;
    color: #3a3228;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.65;
}
.gc-car-drawer-reqs li::before {
    content: '◆';
    color: #b8953a;
    font-size: 0.4rem;
    flex-shrink: 0;
    margin-top: 6px;
}

/* Featured badge inside drawer */
.gc-car-drawer-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8953a;
    background: rgba(184,149,58,0.1);
    border: 1px solid rgba(184,149,58,0.28);
    border-radius: 20px;
    padding: 5px 14px;
    width: fit-content;
}
.gc-car-drawer-featured::before {
    content: '✦';
    font-size: 0.5rem;
}

/* Drawer footer */
.gc-car-drawer-foot {
    padding: 20px 36px 28px;
    border-top: 1px solid rgba(184,149,58,0.15);
    flex-shrink: 0;
    background: #faf5ec;
}
.gc-car-drawer-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    background: #b8953a;
    color: #fff;
    border: none;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.25s ease, background 0.2s;
}
.gc-car-drawer-apply::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}
.gc-car-drawer-apply:hover::before { left: 160%; }
.gc-car-drawer-apply svg { width: 14px; height: 14px; stroke: currentColor; transition: transform 0.2s; }
.gc-car-drawer-apply:hover {
    background: #9a7c2e;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(184,149,58,0.32);
}
.gc-car-drawer-apply:hover svg { transform: translateX(3px); }
.gc-car-drawer-note {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.7rem;
    color: #7a6e62;
    margin-top: 10px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .gc-ch--careers .gc-ch__hero-right { max-height: none; overflow-y: visible; }
    .gc-car-drawer { width: 100vw; }
    .gc-car-drawer-head { padding: 24px 24px 20px; }
    .gc-car-drawer-body { padding: 24px 24px 32px; }
    .gc-car-drawer-foot { padding: 16px 24px 24px; }
}
