/* ============================================================================
   Gamma Intelligence Career Centre — Landing Page Stylesheet
   ============================================================================
   Design tokens, layout, components, responsive rules.
   Based on the Web Design Specification (20 recruitment sites benchmark).
   ============================================================================ */


/* ============================================================================
   1. DESIGN TOKENS  (CSS variables)
   ============================================================================ */

:root {
  /* Colour system — navy/cream foundation with amber accent.
     Avoids the cliché pure-white + pure-navy combo of the industry. */
  --bg:          #f6f1e8;        /* warm cream */
  --bg-card:     #ffffff;
  --ink:         #11202b;        /* near-black navy, never pure black */
  --ink-soft:    #3a4a55;
  --ink-mute:    #6a7782;
  --navy:        #102539;
  --navy-deep:   #0a1a2a;
  --accent:      #e08a3c;        /* amber/mango CTA */
  --accent-deep: #c66f24;
  --line:        rgba(17, 32, 43, 0.12);

  /* Layout */
  --max-w:   1240px;
  --pad-x-d: 80px;
  --pad-x-m: 24px;

  /* Type scale (matches spec: H1 48–72, H2 32–40, body 16–18) */
  --t-h1:    clamp(2.4rem, 5vw, 4.2rem);   /* responsive */
  --t-h2:    clamp(2rem, 3.4vw, 2.6rem);
  --t-h3:    1.375rem;
  --t-body:  1.0625rem;
  --t-small: 0.875rem;
  --t-foot:  0.8125rem;
}


/* ============================================================================
   2. RESET & BASE
   ============================================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Distinctive display face — Fraunces — for heroic moments only.
   Body stays Manrope (neutral, refined, more characterful than Inter). */
h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); letter-spacing: -0.015em; }
h3 {
  font-size: var(--t-h3);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x-d);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--pad-x-m); }
}


/* ============================================================================
   3. STICKY HEADER
   ============================================================================ */

header.site {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.125rem;       /* smaller — the full name is long */
  letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
  line-height: 1.15;
}
.logo-name {
  display: flex; flex-direction: column;
}
.logo-name .top {
  font-size: 1.125rem;
  font-weight: 600;
}
.logo-name .bottom {
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 8px;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
/* Stylized "γ" (gamma) inside the mark — geometric pictogram */
.logo-mark::before {
  content: '';
  position: absolute;
  top: 6px; left: 7px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  border-bottom: none;
  border-right: none;
  border-radius: 50% 0 0 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: 11px; left: 18px;
  width: 1.5px; height: 14px;
  background: var(--accent);
  transform: rotate(28deg);
  transform-origin: top center;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }


/* ----------------------------------------------------------------------------
   Language switcher  (EN / RU)
   Lives between nav-links and the primary CTA.
   ---------------------------------------------------------------------------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(17, 32, 43, 0.04);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.lang-switch button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding: 6px 12px;
  border-radius: 999px;
  transition: all .2s ease;
  text-transform: uppercase;
}
.lang-switch button:hover {
  color: var(--ink);
}
.lang-switch button.active {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 880px) {
  .lang-switch {
    /* Stay visible even when nav-links collapse — small + tight */
    padding: 3px;
  }
  .lang-switch button {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
}


.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--navy);
  color: #ffffff !important;
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-cta svg { width: 14px; height: 14px; }

.burger { display: none; }

@media (max-width: 1080px) {
  .nav-links { gap: 24px; }
  .logo-name .bottom { display: none; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .burger {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--line);
    border-radius: 12px; cursor: pointer; padding: 0;
  }
  .burger span {
    width: 18px; height: 1.5px; background: var(--ink);
    position: relative;
  }
  .burger span::before, .burger span::after {
    content: ''; position: absolute; left: 0;
    width: 18px; height: 1.5px; background: var(--ink);
  }
  .burger span::before { top: -6px; }
  .burger span::after  { top: 6px; }
}


/* ============================================================================
   4. HERO
   ============================================================================ */

.hero {
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}

/* Subtle texture in the background — atmosphere without an image asset. */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(224, 138, 60, 0.08), transparent 35%),
    radial-gradient(circle at 86% 70%, rgba(16, 37, 57, 0.06), transparent 38%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent-deep);
}

.hero h1 .accent-word {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-deep);
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 540px;
}

.hero-ctas {
  margin-top: 40px;
  display: flex; gap: 16px; flex-wrap: wrap;
}


/* ============================================================================
   5. BUTTONS  (shared)
   ============================================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(16, 37, 57, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }


/* ============================================================================
   6. HERO DATA CARD  (replaces stock photography)
   ============================================================================ */

.hero-card {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(16, 37, 57, 0.35);
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(224, 138, 60, 0.18), transparent 60%);
}
.hero-card-label {
  position: relative;
  font-size: var(--t-small);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.hero-card-label::before {
  content: '';
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
}
.hero-card-stat {
  position: relative;
  font-family: 'Fraunces', serif;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.hero-card-stat .unit {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  margin-left: 8px;
}
.hero-card-caption {
  position: relative;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}
.hero-card-rows {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: grid; gap: 14px;
}
.hero-card-row {
  display: flex; justify-content: space-between;
  font-size: var(--t-small);
}
.hero-card-row .lbl { color: rgba(255, 255, 255, 0.6); }
.hero-card-row .val { color: #fff; font-weight: 600; }


/* ============================================================================
   7. LOGO STRIP  (social proof)
   ============================================================================ */

.logos {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-label {
  font-size: var(--t-small);
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}
.logos-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.logos-row span {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-mute);
  opacity: 0.7;
  transition: opacity .2s ease;
  white-space: nowrap;
}
.logos-row span:hover { opacity: 1; }


/* ============================================================================
   8. SECTION HEAD  (shared)
   ============================================================================ */

section { padding: 120px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
}
.section-head h2 { max-width: 640px; }
.section-head h2 em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 400;
}
.section-lead {
  max-width: 360px;
  color: var(--ink-soft);
}


/* ============================================================================
   9. SERVICE CARDS
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(16, 37, 57, 0.18);
  border-color: var(--accent);
}
.service-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  color: var(--navy);
}
.service-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 24px; }
.service-link {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease;
}
.service-link:hover { gap: 10px; }


/* ============================================================================
   10. WHY-US BLOCK
   ============================================================================ */

.why {
  background: var(--ink);
  color: var(--bg);
  border-radius: 32px;
  margin: 0 auto;
  max-width: calc(var(--max-w) - 0px);
  padding: 96px 80px;
}
@media (max-width: 720px) {
  .why { padding: 64px 32px; border-radius: 24px; }
}
.why h2 { color: var(--bg); margin-bottom: 56px; max-width: 700px; }
.why h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
}
.why-item {
  display: flex; gap: 20px;
}
.why-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 28px;
}
.why-item h3 {
  color: var(--bg);
  margin-bottom: 8px;
  font-size: 1.125rem;
}
.why-item p {
  color: rgba(246, 241, 232, 0.65);
  font-size: 0.9375rem;
  line-height: 1.55;
}


/* ============================================================================
   11. CASE / QUOTE
   ============================================================================ */

.case {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 920px) {
  .case { grid-template-columns: 1fr; gap: 48px; }
}
.case-quote {
  font-family: 'Fraunces', serif;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
  position: relative;
}
.case-quote::before {
  content: '"';
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  color: var(--accent);
  position: absolute;
  top: -32px; left: -16px;
  line-height: 1;
}
.case-cite {
  display: flex; align-items: center; gap: 16px;
}
.case-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
}
.case-cite-text strong { display: block; font-weight: 600; font-size: 0.9375rem; }
.case-cite-text span { color: var(--ink-mute); font-size: var(--t-small); }

.case-visual {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.case-visual-label {
  font-size: var(--t-small);
  color: var(--ink-mute);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.case-row {
  display: flex; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.case-row:last-child { border-bottom: none; }
.case-row .role { font-weight: 600; }
.case-row .meta { color: var(--ink-mute); }
.case-row .days {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--accent-deep);
  font-size: 1.0625rem;
}


/* ============================================================================
   12. METRICS PANEL
   ============================================================================ */

.metrics {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 72px 64px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .metrics { padding: 48px 32px; }
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
}
.metric .num {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.metric .num .sym {
  color: var(--accent-deep);
  font-style: italic;
}
.metric .lbl {
  margin-top: 12px;
  font-size: var(--t-small);
  color: var(--ink-mute);
  line-height: 1.45;
}


/* ============================================================================
   13. FINAL CTA
   ============================================================================ */

.final-cta {
  background: var(--accent);
  color: var(--navy-deep);
  border-radius: 24px;
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .final-cta { padding: 56px 32px; }
}
.final-cta h2 {
  max-width: 700px;
  margin: 0 auto 24px;
  color: var(--navy-deep);
}
.final-cta p {
  max-width: 520px;
  margin: 0 auto 36px;
  color: var(--navy);
  opacity: 0.8;
}
.final-cta .btn-primary {
  background: var(--navy);
  color: #fff;
}
.final-cta .btn-primary:hover {
  background: var(--navy-deep);
}


/* ============================================================================
   14. FOOTER
   ============================================================================ */

footer.site {
  background: var(--ink);
  color: rgba(246, 241, 232, 0.7);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
.foot-brand .logo { color: var(--bg); margin-bottom: 16px; }
.foot-brand .logo-name .bottom { color: rgba(246, 241, 232, 0.5); }
.foot-brand p {
  font-size: 0.9375rem;
  color: rgba(246, 241, 232, 0.55);
  max-width: 320px;
}
.foot-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg);
  margin: 0 0 24px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 12px; }
.foot-col a {
  font-size: 0.9375rem;
  color: rgba(246, 241, 232, 0.6);
  transition: color .2s ease;
}
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  font-size: var(--t-foot);
  color: rgba(246, 241, 232, 0.45);
  flex-wrap: wrap; gap: 16px;
}
.foot-social {
  display: flex; gap: 12px;
}
.foot-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(246, 241, 232, 0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.foot-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.foot-social svg { width: 16px; height: 16px; }


/* ============================================================================
   15. COOKIE BANNER
   ============================================================================ */

.cookie {
  position: fixed;
  bottom: 24px; left: 24px;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px -10px rgba(16, 37, 57, 0.2);
  z-index: 200;
  transform: translateY(0);
  transition: transform .3s ease, opacity .3s ease;
}
.cookie.hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.cookie p {
  font-size: var(--t-small);
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.5;
}
.cookie-actions {
  display: flex; gap: 8px;
}
.cookie-actions button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: all .2s ease;
}
.cookie-actions .accept {
  background: var(--ink);
  color: var(--bg);
}
.cookie-actions .accept:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.cookie-actions .reject {
  background: transparent;
  color: var(--ink);
}
.cookie-actions .reject:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 480px) {
  .cookie {
    left: 16px; right: 16px; bottom: 16px;
    max-width: none;
  }
}
