/* ───────────────────────────────────────────
   CSS Variables — Dark theme (default)
──────────────────────────────────────────── */
:root {
  /* accent */
  --accent: #2ecc71;
  --accent-ink: #05120a;
  --accent-glow: rgba(46, 204, 113, 0.16);
  --accent-border: rgba(46, 204, 113, 0.22);
  --accent-surface: rgba(46, 204, 113, 0.09);
  --accent-icon: rgba(46, 204, 113, 0.92);

  /* text */
  --text: rgba(228, 235, 250, 0.94);
  --muted: rgba(180, 195, 228, 0.78);
  --muted-2: rgba(155, 172, 210, 0.64);

  /* surfaces */
  --surface-1: rgba(255, 255, 255, 0.065);
  --surface-2: rgba(255, 255, 255, 0.042);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --surface-input: rgba(12, 18, 36, 0.55);

  /* borders */
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-hover: rgba(255, 255, 255, 0.18);

  /* header */
  --header-bg: rgba(18, 24, 42, 0.68);
  --mobile-nav-bg: rgba(14, 19, 34, 0.92);

  /* footer */
  --footer-bg: rgba(10, 13, 24, 0.45);

  /* shadows */
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.22);

  /* label / input colors */
  --label-color: rgba(210, 220, 245, 0.88);
  --input-text: rgba(228, 235, 250, 0.94);
  --placeholder: rgba(160, 175, 210, 0.42);
  --input-error: rgba(255, 120, 120, 0.95);

  /* section-alt */
  --section-alt-bg: linear-gradient(180deg, rgba(255,255,255,0.042), rgba(255,255,255,0.02));
  --section-alt-border: rgba(255, 255, 255, 0.07);

  /* misc */
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
  --pad: 20px;

  /* theme transition */
  --theme-transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/* ───────────────────────────────────────────
   CSS Variables — Light theme override
──────────────────────────────────────────── */
html[data-theme="light"] {
  --text: #14203a;
  --muted: #4c5a7a;
  --muted-2: #7d8dac;

  --surface-1: rgba(0, 0, 0, 0.042);
  --surface-2: rgba(0, 0, 0, 0.026);
  --surface-hover: rgba(0, 0, 0, 0.065);
  --surface-input: rgba(255, 255, 255, 0.92);

  --stroke: rgba(0, 0, 0, 0.1);
  --stroke-hover: rgba(0, 0, 0, 0.2);

  --header-bg: rgba(240, 244, 255, 0.82);
  --mobile-nav-bg: rgba(240, 244, 255, 0.97);

  --footer-bg: rgba(226, 232, 248, 0.7);

  --shadow: 0 16px 50px rgba(14, 20, 46, 0.1);
  --shadow-soft: 0 10px 30px rgba(14, 20, 46, 0.07);
  --shadow-card: 0 4px 20px rgba(14, 20, 46, 0.08);

  --label-color: #2a3558;
  --input-text: #14203a;
  --placeholder: rgba(14, 20, 46, 0.35);
  --input-error: #c0392b;

  --section-alt-bg: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.015));
  --section-alt-border: rgba(0, 0, 0, 0.08);

  --accent-glow: rgba(46, 204, 113, 0.1);
  --accent-border: rgba(46, 204, 113, 0.3);
  --accent-surface: rgba(46, 204, 113, 0.08);
  --accent-icon: rgba(24, 170, 82, 0.95);
}

/* ───────────────────────────────────────────
   Base
──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 18% 0%, rgba(46, 204, 113, 0.13), transparent 58%),
    radial-gradient(800px 440px at 84% 12%, rgba(0, 140, 255, 0.14), transparent 58%),
    linear-gradient(180deg, #141f36 0%, #0f1828 55%, #0c1420 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: var(--theme-transition);
}

html[data-theme="light"] body {
  background:
    radial-gradient(1000px 400px at 15% 0%, rgba(46, 204, 113, 0.06), transparent 55%),
    radial-gradient(700px 380px at 88% 10%, rgba(0, 140, 255, 0.07), transparent 55%),
    linear-gradient(180deg, #eef2fc 0%, #e6ecf8 60%, #dde5f5 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--stroke);
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

.muted  { color: var(--muted); }
.tiny   { font-size: 12px; color: var(--muted-2); }

/* ───────────────────────────────────────────
   Header
──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  transition: var(--theme-transition), box-shadow 0.2s ease;
}
.site-header[data-elevate="true"] {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2ecc71, #0099ff);
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.3);
  flex-shrink: 0;
}
.brand-footer .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color 0.14s, background 0.14s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--surface-1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* Theme toggle button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--theme-transition), color 0.14s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  color: var(--text);
  padding: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
}
.burger span + span { margin-top: 5px; opacity: 0.7; }

.mobile-nav {
  border-top: 1px solid var(--stroke);
  background: var(--mobile-nav-bg);
  backdrop-filter: blur(16px);
}
.mobile-nav-inner {
  display: grid;
  gap: 6px;
  padding: 12px 0 16px;
}

/* ───────────────────────────────────────────
   Buttons
──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #2ecc71, #28b862);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.22);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
  background: var(--surface-1);
  border-color: var(--stroke);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hover); }

.btn-block { width: 100%; }

/* ───────────────────────────────────────────
   Hero
──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 48px 0 30px;
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: -60px -60px auto -60px;
  height: 500px;
  background:
    radial-gradient(600px 240px at 18% 22%, rgba(255,255,255,0.06), transparent 68%),
    radial-gradient(800px 460px at 72% 0%, rgba(0,140,255,0.14), transparent 60%),
    radial-gradient(600px 380px at 78% 68%, rgba(46,204,113,0.1), transparent 65%);
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.9) contrast(1.06);
  transform: scale(1.03);
  pointer-events: none;
  z-index: 0;
}
html[data-theme="light"] .hero-photo { opacity: 0.1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.9;
}
.hero h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.06;
  font-size: clamp(30px, 3.3vw, 50px);
}
.lead {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  font-size: 13px;
  font-weight: 500;
}
.badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
}
.badge-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.hero-panel .panel {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px;
  backdrop-filter: blur(8px);
}
.panel-title {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
}
.step-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-glow);
}
.panel-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

/* ───────────────────────────────────────────
   Sections
──────────────────────────────────────────── */
.section { padding: 48px 0; }

.section-alt {
  background: var(--section-alt-bg);
  border-top: 1px solid var(--section-alt-border);
  border-bottom: 1px solid var(--section-alt-border);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 70ch;
}
.section h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ───────────────────────────────────────────
   Cards & Tiles
──────────────────────────────────────────── */
.card, .tile {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  box-shadow: var(--shadow-card);
  padding: 18px;
  transition: var(--theme-transition), border-color 0.15s, transform 0.15s;
}
.card:hover, .tile:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
}
.card h3, .tile h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.card p, .tile p { margin: 0; font-size: 14px; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
}
.card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.card-accent {
  border-color: var(--accent-border);
  background: var(--accent-surface);
}
.card-accent .card-icon {
  background: rgba(46, 204, 113, 0.1);
  border-color: var(--accent-border);
}
.card-accent .card-icon svg { color: var(--accent-icon); }

/* ───────────────────────────────────────────
   Vacancies
──────────────────────────────────────────── */
.vacancies-list {
  display: grid;
  gap: 10px;
}
.vacancy {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  padding: 16px 20px;
  transition: var(--theme-transition), border-color 0.15s, background 0.15s;
}
.vacancy:hover {
  border-color: var(--accent-border);
  background: var(--surface-hover);
}
.vacancy-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid var(--accent-border);
}
.vacancy-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-icon);
}
.vacancy-body { min-width: 0; }
.vacancy-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.vacancy-body p { margin: 0; font-size: 13px; }
.vacancy-btn {
  white-space: nowrap;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

/* ───────────────────────────────────────────
   Apply / Form
──────────────────────────────────────────── */
.apply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.apply-copy h2 { margin-bottom: 8px; }

.info-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface-2);
}
.info-item { display: grid; gap: 2px; }
.info-k {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}
.info-v { font-weight: 700; font-size: 14px; }

.form {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--theme-transition);
}
.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
label {
  font-size: 13px;
  color: var(--label-color);
  font-weight: 600;
}
input, select {
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface-input);
  color: var(--input-text);
  outline: none;
  font-size: 14px;
  transition: var(--theme-transition), border-color 0.14s, box-shadow 0.14s;
}
input::placeholder { color: var(--placeholder); }
input:focus, select:focus {
  border-color: rgba(46, 204, 113, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.12);
}
.field-error {
  min-height: 16px;
  font-size: 12px;
  color: var(--input-error);
}
.form-toast {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.1);
  font-weight: 600;
  font-size: 14px;
}

/* ───────────────────────────────────────────
   Footer
──────────────────────────────────────────── */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--stroke);
  background: var(--footer-bg);
  transition: var(--theme-transition);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: color 0.14s, background 0.14s;
}
.footer-link:hover {
  color: var(--text);
  background: var(--surface-1);
}

/* ───────────────────────────────────────────
   Gallery & Lightbox (kept for future use)
──────────────────────────────────────────── */
.gallery {
  columns: 3 280px;
  column-gap: 12px;
}
.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface-1);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform 0.15s ease, border-color 0.15s ease;
  break-inside: avoid;
  margin-bottom: 12px;
}
.shot:hover { transform: translateY(-2px); border-color: var(--stroke-hover); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  padding: 10px 12px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.75);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 120;
}
.lightbox-img {
  max-width: min(980px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.lightbox-cap {
  margin-top: 10px;
  text-align: center;
  max-width: min(980px, 92vw);
  color: rgba(255,255,255,0.75);
}
.lightbox-close {
  position: absolute;
  inset: 16px 16px auto auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.1);
  cursor: pointer;
}
.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  transform-origin: center;
}
.lightbox-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.lightbox-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* ───────────────────────────────────────────
   Responsive
──────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner        { grid-template-columns: 1fr; }
  .apply             { grid-template-columns: 1fr; }
  .gallery           { columns: 1; column-gap: 0; }
  .grid-3            { grid-template-columns: 1fr; }
  .grid-2            { grid-template-columns: 1fr; }
  .vacancy           { grid-template-columns: 46px 1fr; }
  .vacancy-btn       { grid-column: span 2; width: 100%; }
  .header-inner      { grid-template-columns: 1fr auto; }
  .nav               { display: none; }
  .header-right .btn { display: none; }
  .burger            { display: inline-grid; place-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .tile, .vacancy { transition: none; }
  .skip-link { transition: none; }
}
