/* ============================================================
   ForTech — Equipo page
   Brand: light "ForTech" wordmark with blue accent
   ============================================================ */

:root {
    --ft-blue: #1856c4;        /* brand blue (logo squares, member roles) */
    --ft-blue-bright: #1f63e6; /* vivid blue (heading, dividers, bar)     */
    --ft-blue-dark: #0f3f97;
    --ft-navy: #14213d;        /* header / footer background              */
    --ft-navy-2: #1b2c4d;
    --ft-ink: #1f2733;
    --ft-muted: #6b7682;
    --ft-line: #e6e9ee;
    --ft-bg: #ffffff;
    --ft-bg-alt: #f6f7f9;
    --ft-shadow: 0 10px 30px rgba(14, 27, 42, .08);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ft-ink);
    background: var(--ft-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    margin: 0;
    line-height: 1.15;
}

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================== Header / Nav ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ft-navy);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .18);
}

.site-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-header__brand img {
    height: 30px;
    width: auto;
    display: block;
}

.site-header__hiring {
    margin-left: auto;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.site-header__hiring span { color: var(--ft-blue-bright); font-size: 18px; }
.site-header__hiring:hover { opacity: .85; }

/* Hamburger toggle (always visible, like the original Wix site) */
.nav-toggle { display: none; }

.nav-toggle__btn {
    position: relative;
    z-index: 60;                 /* stays above backdrop & panel so it can close */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}
.nav-toggle__btn span {
    display: block;
    height: 3px;
    width: 28px;
    background: var(--ft-blue-bright);
    border-radius: 3px;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease, background .2s ease;
}
/* Hamburger morphs into an X when the menu is open */
.nav-toggle:checked ~ .nav-toggle__btn span { background: #fff; }
.nav-toggle:checked ~ .nav-toggle__btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle__btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-toggle__btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Full-page dim behind the menu (click to close) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;                 /* below the sticky header so the bar stays crisp */
    background: rgba(10, 22, 44, .55);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity .28s ease, visibility .28s ease;
}
.nav-toggle:checked ~ .nav-backdrop {
    opacity: 1;
    visibility: visible;
}

/* Slide-in overlay panel on the right */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 45;                 /* above the backdrop, below the header */
    height: 100vh;
    width: 320px;
    max-width: 82vw;
    padding: 104px 40px 40px;     /* clear the header */
    background: rgba(20, 33, 61, .97);
    box-shadow: -18px 0 50px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
}
.nav-toggle:checked ~ .site-nav {
    transform: translateX(0);
    visibility: visible;
}

.site-nav a {
    color: #e8edf5;
    font-size: 19px;
    font-weight: 500;
    padding: 13px 4px;
    text-align: right;
    transition: color .15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a.is-active { color: var(--ft-blue-bright); font-weight: 600; }

/* ===================== Leadership heading ===================== */
.leaders-heading {
    background: var(--ft-bg-alt);
    text-align: center;
    padding: 66px 24px 60px;
}
.leaders-heading h1 {
    color: var(--ft-blue-bright);
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -.5px;
}

/* ===================== Directors (full-bleed) ===================== */
.leaders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;                       /* blue lines between columns */
    padding: 0 6px;                 /* blue lines on the outer edges */
    background: var(--ft-blue-bright);
}

.leader {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #0c1626;
}
.leader img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.leader__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 34px 34px;
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 55%, transparent 100%);
}
.leader__name {
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .65);
}
.leader__role {
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    margin: 8px 0 0;
    color: #e2e8f2;
    font-size: 18px;
    font-weight: 400;
}

.leaders-bar {
    height: 72px;
    background: var(--ft-blue-bright);
}

/* ===================== Work Smart (Why / How / What) ===================== */
.worksmart {
    color: #fff;
    border-top: 5px solid var(--ft-blue-bright);
    background-color: #0a1530;
    background-image:
        url('/img/bg/worksmart-bg.png'),
        radial-gradient(1200px 560px at 72% -10%, rgba(47, 107, 255, .22), transparent 60%);
    background-repeat: no-repeat, no-repeat;
    background-position: center center, center top;
    background-size: cover, 100% 100%;
    padding: 60px 0 80px;
}
.worksmart__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.worksmart__logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: .9;
    font-size: 66px;
    letter-spacing: 1px;
    margin-bottom: 42px;
}
.worksmart__work { display: block; color: #fff; }
.worksmart__smart {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7);
    text-stroke: 1.5px rgba(255, 255, 255, .7);
}

.ws-accordion { display: flex; flex-direction: column; }

.ws-item { border-top: 1px solid rgba(63, 107, 223, .55); }
.ws-item:last-child { border-bottom: 1px solid rgba(63, 107, 223, .55); }

.ws-item__head {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    user-select: none;
}
.ws-item__head::-webkit-details-marker { display: none; }
.ws-item__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
}
.ws-item__icon {
    flex: none;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    color: #cdd9ff;
}
.ws-item__icon::before { content: "+"; }
.ws-item[open] .ws-item__icon::before { content: "\2212"; } /* minus */

.ws-item__body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 28px;
    padding: 2px 4px 30px;
}
.ws-item__label {
    margin: 2px 0 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 17px;
    line-height: 1.2;
    color: #fff;
}
.ws-item__text {
    max-width: 640px;
    color: #d7deea;
    font-size: 17px;
    line-height: 1.65;
}
.ws-item__text p { margin: 0 0 16px; }
.ws-item__text p:last-child { margin-bottom: 0; }
.ws-item__lead { font-weight: 600; color: #fff; }
.ws-steps { margin: 0; padding-left: 18px; }
.ws-steps li { margin: 0 0 10px; }
.ws-steps li:last-child { margin-bottom: 0; }

/* ===================== Department sections ===================== */
.team {
    background-color: #ffffff;
    /* White veil washes out the pattern; image repeats down the whole section
       so it sits faintly behind every employee. */
    background-image:
        linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .86)),
        url('/img/bg/team-bg.png');
    background-repeat: repeat, repeat;
    background-position: center top, center top;
    background-size: auto, 100% auto;
}
.team-dept { padding: 38px 0; }

.team-dept__header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 12px 0 38px;
}
.team-dept__rule { flex: 1; height: 1px; background: var(--ft-line); }
.team-dept__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--ft-navy);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px 22px;
}

.member-card { text-align: center; padding: 8px 6px; }

.member-card__photo {
    width: 150px;
    height: 184px;
    margin: 0 auto 14px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ft-bg-alt);
    border: 1px solid var(--ft-line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.member-card__avatar {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 600;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--ft-blue) 0%, var(--ft-blue-dark) 100%);
    letter-spacing: 1px;
}

.member-card__name {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--ft-navy);
    line-height: 1.25;
}
.member-card__role {
    margin: 5px 0 0;
    color: var(--ft-muted);
    font-size: 13.5px;
    line-height: 1.35;
}

/* ===================== Footer ===================== */
.site-footer {
    background: var(--ft-navy);
    color: #c3ccd8;
    margin-top: 50px;
}
.site-footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
}
.site-footer__brand { flex: 1 1 260px; }
.site-footer__brand img { height: 28px; margin-bottom: 12px; }
.site-footer__brand p { margin: 0; font-size: 14px; color: #9aa6b4; }

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}
.site-footer__links a { font-size: 14px; color: #c3ccd8; transition: color .15s; }
.site-footer__links a:hover { color: #fff; }

.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: background .15s;
}
.site-footer__social a:hover { background: var(--ft-blue-bright); }

.site-footer__copy {
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    padding: 18px 24px;
    font-size: 13px;
    color: #8b97a6;
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
    .leaders { grid-template-columns: 1fr; gap: 6px; padding: 6px 0; }
    .leader { height: 78vh; max-height: 560px; }
    .leaders-heading h1 { font-size: 46px; }
}

@media (max-width: 560px) {
    .site-header__inner { height: 64px; padding: 0 18px; }
    .site-nav { padding-top: 92px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
    .member-card__photo { width: 100%; height: 168px; }
    .leaders-heading h1 { font-size: 38px; }
    .leader__name { font-size: 30px; }
    .worksmart__logo { font-size: 46px; }
    .ws-item__body { grid-template-columns: 1fr; gap: 8px; }
    .ws-item__title { font-size: 18px; }
}
