/* Fairon — warm venue-careers theme */
:root {
  --bg-deep: #141210;
  --bg-card: #1f1b17;
  --bg-elevated: #2a241e;
  --text: #f4ede4;
  --text-muted: #a89b8f;
  --accent: #c9a227;
  --accent-hover: #ddb83a;
  --sage: #7d9a84;
  --sage-dim: #5c7563;
  --border: rgba(201, 162, 39, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --header-h: 4.25rem;
  --z-age: 10050;
  --z-captcha: 10040;
  --z-cookie: 10030;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(201, 162, 39, 0.12),
      transparent
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 50%,
      rgba(125, 154, 132, 0.06),
      transparent
    );
  min-height: 100vh;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition:
    color var(--transition),
    background var(--transition);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(201, 162, 39, 0.12);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    border-radius: var(--radius-sm);
  }
}

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .hl {
  color: var(--accent);
}

.hero .lead {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: heroFade 0.9s var(--transition) both;
  }

  .hero .lead {
    animation: heroFade 0.9s 0.12s var(--transition) both;
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a67c1f);
  color: #1a1510;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
}

.section {
  padding: 3rem 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 0.5rem;
}

.section h2 .hl-magenta {
  color: var(--sage);
}

.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    border-color var(--transition);
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.45);
  }
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.65rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(125, 154, 132, 0.2);
  color: var(--sage);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.featured-offer {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.featured-offer::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(125, 154, 132, 0.15);
  top: -40px;
  right: -30px;
  pointer-events: none;
}

.featured-offer::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 180px;
  background: rgba(201, 162, 39, 0.08);
  border-radius: var(--radius);
  bottom: -60px;
  left: -20px;
  transform: rotate(12deg);
  pointer-events: none;
}

.featured-offer .logo-offer {
  position: relative;
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.offer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  position: relative;
}

.offer-sub {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.btn-offer {
  position: relative;
  width: 100%;
  padding: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #9b4d7a, #6b3560);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 8px 24px rgba(155, 77, 122, 0.35);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-offer:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(155, 77, 122, 0.45);
  color: #fff;
}

.offer-legal {
  margin-top: 1rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  opacity: 0.85;
  position: relative;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 1.25rem 2rem;
  background: #0e0c0b;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-rg h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.footer-rg p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 52rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin: 2rem 0 1.5rem;
}

.footer-badges a {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.88;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.footer-badges a:hover {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .footer-badges a:hover {
    transform: translateY(-3px);
  }
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-badges .badge-18-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-badges .badge-18-wrap img:last-child {
  height: 36px;
}

.footer-legal-links {
  text-align: center;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.footer-legal-links a {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 7, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: var(--z-age);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  animation: modalIn 0.45s var(--transition) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-box .modal-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.modal-box h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 120px;
}

.age-badge-inline {
  display: inline-block;
  background: #8b2942;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-text img {
  vertical-align: middle;
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  border-radius: 6px;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}

/* Captcha modal */
#captcha-overlay {
  z-index: var(--z-captcha);
}

.captcha-modal {
  max-width: 380px;
}

.captcha-canvas-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1rem 0;
  touch-action: none;
}

#captcha-main {
  display: block;
  width: 100%;
  height: auto;
}

.captcha-piece {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 6px;
  cursor: grab;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  touch-action: none;
}

.captcha-piece:active {
  cursor: grabbing;
}

.captcha-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.captcha-status {
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.captcha-status.ok {
  color: var(--sage);
}

.page-article h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  margin: 2rem 0 1rem;
}

.page-article h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
}

.page-article h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.page-article p,
.page-article li {
  color: var(--text-muted);
}

.page-article ul {
  padding-left: 1.25rem;
}

.form-card {
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-card label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.form-success {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(125, 154, 132, 0.2);
  color: var(--sage);
  margin-top: 1rem;
  display: none;
}

.form-success.is-visible {
  display: block;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.job-list li {
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.job-list strong {
  color: var(--text);
}

.disclaimer-top {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.disclaimer-top .uk-only {
  color: #c44;
  font-weight: 600;
}
