/*
 * staff.am website header and footer on the company auth pages (light theme).
 * Ported from staff-frontend-react-native: apps/shared/elements/Header/index.web.js,
 * Header/index.css, Footer/index.js and shared/common/Theme.js. Values follow those files.
 */

.sa-auth {
    --site-ink: #1C3440;
    --site-green: #05630C;
    --site-muted: #737373;
    --site-line: #EEEEEE;
    --site-pre: #F9F9F9;
    --site-hover: #F1F1F1;
    --site-font: "Noto Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
    --site-surface: #fff;          /* bar, dropdowns, drawer, footer */
    --site-tab: #1C3440;           /* dropdown borders and text */
    --site-cand-bg: #1C3440;       /* filled "Candidate" toggle */
    --site-cand-fg: #fff;
    --site-burger: #232323;
    --site-edge: .5px;             /* bar and pre-header bottom border */
    --site-card-line: rgba(45, 140, 80, .25);
    --site-card-tint: linear-gradient(180deg, rgba(45, 140, 80, .07), rgba(45, 140, 80, .02));
    --site-card-shadow: 0 12px 32px rgba(28, 52, 64, .16);
}
/* Dark values from the website: Theme.js dark palette and the Header/index.web.js isDark branches. */
html[data-theme="dark"] .sa-auth {
    --site-ink: #DFDFDF;
    --site-green: #46AF3A;
    --site-muted: #B4B4B4;
    --site-line: #383838;
    --site-pre: #39393D;
    --site-hover: #383838;
    --site-surface: #1C1C1D;
    --site-tab: #fff;
    --site-cand-bg: #fff;
    --site-cand-fg: #1C1C1D;
    --site-burger: #fff;
    --site-edge: 1.5px;
    --site-card-line: rgba(70, 175, 58, .35);
    --site-card-tint: linear-gradient(180deg, rgba(70, 175, 58, .10), rgba(70, 175, 58, .03));
    --site-card-shadow: 0 12px 32px rgba(0, 0, 0, .55);
}

.site-wrap { width: 100%; max-width: 1140px; margin: 0 auto; }

/* ───────────── Header ───────────── */
/* Like the website's header: the 80px bar stays pinned, and the 40px pre-header above it slides away
   while scrolling down and comes back on scrolling up (auth.js toggles html.site-pre-hidden).
   --site-chrome is the height the header covers right now, for things pinned under it. */
html.has-site-chrome-root { --site-chrome: 120px; }
html.site-pre-hidden { --site-chrome: 80px; }
.site-header { position: sticky; top: 0; z-index: 1100; font-family: var(--site-font); color: var(--site-ink); transition: transform .25s ease; }
html.site-pre-hidden .site-header { transform: translateY(-40px); }

.site-pre { height: 40px; background: var(--site-pre); border-bottom: var(--site-edge) solid var(--site-line); }
.site-pre .site-wrap { height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-pre-links { display: flex; gap: 20px; }
.site-pre-links a, .site-langs a { font-size: 14px; line-height: 24px; color: var(--site-muted); text-decoration: none; white-space: nowrap; }
.site-pre-links a:hover { color: var(--site-green); }
.site-pre-end { display: flex; align-items: center; gap: 16px; }
.site-langs { display: flex; gap: 8px; }
.site-header .theme-toggle { width: 28px; height: 28px; color: var(--site-ink); }
.site-langs a:hover { color: green; }
.site-langs a[aria-current="true"] { color: var(--site-ink); font-weight: 600; }

.site-bar { position: relative; background: var(--site-surface); border-bottom: var(--site-edge) solid var(--site-line); box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075), 0 1px 2.22px rgba(0, 0, 0, .22); }
.site-bar > .site-wrap { height: 80px; display: flex; align-items: center; }
.site-logo { display: flex; align-items: center; height: 40px; }
.site-logo img { width: 142px; height: 40px; object-fit: contain; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; }
.site-link { font-size: 16px; font-weight: 400; color: var(--site-ink); text-decoration: none; padding-right: 15px; text-transform: capitalize; }
.site-link:hover { color: var(--site-green); }

/* Employer / Candidate dropdowns: open on hover or keyboard focus */
.site-dd { position: relative; min-width: 156px; }
.site-dd + .site-dd { margin-left: 16px; }
.site-dd-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; height: 32px; padding: 0;
    background: var(--site-surface); border: 1px solid var(--site-tab); border-radius: 8px; color: var(--site-tab); cursor: pointer;
    font: 600 16px/20px var(--site-font);
}
.site-dd-toggle span { padding: 4px 0 4px 16px; white-space: nowrap; }
.site-chev { padding: 0; margin: 0 14px 0 8px; flex: none; transition: transform .15s; }
.site-dd-menu {
    /* Exactly as wide as its button, like the website's menu; long items wrap */
    position: absolute; top: 31px; left: 0; width: 100%; z-index: 5;
    background: var(--site-surface); border: 1px solid var(--site-tab); border-top: 0; border-radius: 0 0 8px 8px;
    visibility: hidden; opacity: 0; transition: opacity .12s;
}
.site-dd-menu a {
    display: flex; align-items: center; min-height: 40px; padding: 8px 18px 8px 16px;
    border-bottom: 1px solid var(--site-hover); font: 600 16px/22px var(--site-font); color: var(--site-tab); text-decoration: none;
}
.site-dd-menu a:first-child { margin-top: 8px; }
.site-dd-menu a:last-child { margin-bottom: 8px; border-bottom: 0; }
.site-dd-menu a:hover { background: var(--site-hover); }
.site-dd:hover .site-dd-toggle, .site-dd:focus-within .site-dd-toggle { border-bottom-color: transparent; border-radius: 8px 8px 0 0; }
.site-dd:hover .site-dd-menu, .site-dd:focus-within .site-dd-menu { visibility: visible; opacity: 1; }
.site-dd:hover .site-chev, .site-dd:focus-within .site-chev { transform: rotate(180deg); }
.site-dd--dark .site-dd-toggle { background: var(--site-cand-bg); color: var(--site-cand-fg); }
.site-dd--dark:hover .site-dd-toggle, .site-dd--dark:focus-within .site-dd-toggle { border-bottom-color: var(--site-tab); }
.site-new { margin-left: 8px; padding: 1px 6px; border-radius: 6px; background: #FF9C26; color: #fff; font: 600 9px/1.4 var(--site-font); }


/* Mobile: 56px bar, hamburger, slide-in drawer */
.site-burger { display: none; }
.site-drawer { display: none; }
@media (max-width: 991px) {
    html.has-site-chrome-root, html.site-pre-hidden { --site-chrome: 56px; }
    html.site-pre-hidden .site-header { transform: none; }
    .site-pre { display: none; }
    .site-bar > .site-wrap { height: 56px; padding-left: 16px; }
    .site-logo img { width: 110px; height: 32px; }
    .site-nav { display: none; }
    .site-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; margin: 0 32px 0 auto; padding: 8px 0; background: none; border: 0; cursor: pointer; }
    .site-burger span { display: block; width: 33px; height: 3px; border-radius: 16px; background: var(--site-burger); transition: transform .2s, opacity .2s; }
    .site-header.open .site-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .site-header.open .site-burger span:nth-child(2) { opacity: 0; }
    .site-header.open .site-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .site-drawer {
        display: block; position: absolute; top: 57px; right: -100%; width: 100%; height: 94svh; overflow: auto;
        background: var(--site-surface); transition: right .2s;
    }
    .site-header.open .site-drawer { right: 0; }
    .site-drawer-list { border-top: 1px solid var(--site-line); padding: 32px 16px; display: flex; flex-direction: column; }
    .site-drawer-top { font: 600 18px/32px var(--site-font); color: var(--site-ink); text-decoration: none; margin-bottom: 8px; }
    a.site-drawer-top:hover { color: var(--site-green); }
    .site-drawer-sub { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--site-line); margin-bottom: 16px; }
    .site-drawer-sub a { display: flex; align-items: center; padding: 0 24px; font: 400 16px/32px var(--site-font); color: var(--site-ink); text-decoration: none; }
    .site-drawer-sub a:hover { color: var(--site-green); }
    .site-drawer-foot { background: var(--site-pre); padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; }
    .site-drawer-foot .site-pre-links { flex-wrap: wrap; gap: 8px 20px; }
    body.site-drawer-open { overflow: hidden; }
}
@media (max-width: 991px) and (min-width: 573px) {
    .site-drawer-foot { flex-direction: row; justify-content: space-between; }
}

/* ───────────── Footer ───────────── */
.site-footer { background: var(--site-surface); border-top: 1.5px solid var(--site-line); padding: 0 15px; font-family: var(--site-font); color: var(--site-ink); font-size: 14px; }
.site-footer a { color: var(--site-ink); text-decoration: none; }
.site-footer-grid { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer-col { min-width: 15%; margin-bottom: 40px; }
.site-footer h3 { margin: 0 0 24px; font: 700 16px/normal var(--site-font); color: var(--site-ink); }
.site-footer-col ul { list-style: none; margin: 0; padding: 0; }
.site-footer-col li { margin-bottom: 8px; line-height: 21px; }
.site-footer-col ul a:hover { text-decoration: underline; }
.site-footer-logo { display: block; margin: 0 0 14px; }
.site-footer-logo img { width: 110px; height: 32px; object-fit: contain; display: block; }
.site-contacts li { display: flex; align-items: center; }
.site-contacts img { width: 14px; height: 14px; margin-right: 5px; flex: none; }
.site-contacts em { font-style: italic; font-weight: 600; }
.site-apps { display: flex; margin-top: 40px; }
.site-apps a { margin-right: 5px; }
.site-apps img { width: 116px; height: 32px; display: block; }
.site-footer-trust h3 { margin: 0; }
.site-pay { display: flex; gap: 16px; margin-bottom: 6px; }
.site-pay img { width: 54px; height: 54px; object-fit: contain; }
.site-reviews { display: flex; gap: 16px; margin-top: 12px; }
.site-reviews .site-g2 { width: 28px; height: 28px; object-fit: contain; }
.site-reviews .site-capterra { width: 120px; height: 28px; object-fit: contain; }
.site-footer-bottom { border-top: 1px solid var(--site-line); margin: 0 -15px; padding: 0 15px; }
.site-footer-bottom .site-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.site-copy { padding: 25px 0; }
.site-legal { display: flex; gap: 24px; }
.site-socials { display: flex; gap: 16px; }
.site-socials img { width: 35px; height: 35px; display: block; }

@media (max-width: 990px) {
    /* Each title above its row of logos */
    .site-footer-trust { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
    .site-footer-trust .site-pay { margin-bottom: 8px; }
    .site-footer-trust .site-reviews { margin-top: 0; }
    .site-footer-bottom .site-wrap { flex-direction: column; justify-content: center; width: 85%; text-align: center; }
    .site-copy { padding: 35px 0 16px; }
    .site-socials { flex-wrap: wrap; justify-content: center; margin: 16px 0 32px; }
}
