@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0f172a;
  --accent: #22c55e;
  --premium: #fbbf24;
  --bg: #ffffff;
  --ink: #0b1224;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-radius: 18px;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(148, 163, 184, 0.28);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.14);
  --shadow-sm: 0 10px 18px rgba(15, 23, 42, 0.08);
  --gradient: radial-gradient(circle at top, rgba(34, 197, 94, 0.08), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(15, 23, 42, 0.06), transparent 50%);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
}

body {
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient);
  opacity: 0.7;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: -1;
  opacity: 0.2;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

section {
  padding: 72px 0;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem);
  margin: 0 0 16px;
  color: var(--primary);
}

.section-subtitle {
  color: var(--muted);
  margin: 0 0 32px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  position: relative;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1e293b);
  display: grid;
  place-items: center;
  color: white;
  font-family: 'Fraunces', serif;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  border: none;
  background: rgba(15, 23, 42, 0.06);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.04);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  width: 160px;
  padding-left: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 14px;
}

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 4vw + 1rem, 4rem);
  margin: 0 0 16px;
  color: var(--primary);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.hero-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.search-panel {
  display: grid;
  gap: 14px;
}

.search-field {
  display: grid;
  gap: 6px;
}

.search-field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.search-bar {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 12px;
  padding: 14px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-sm);
}

.search-bar input,
.search-bar select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--primary);
  width: 100%;
}

.search-bar input[name="q"] {
  padding-left: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px;
}

.search-bar input[name="location"] {
  padding-left: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12z'/><circle cx='12' cy='10' r='2.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px;
}

.search-bar select {
  appearance: none;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--accent {
  background: var(--accent);
  color: white;
}

.btn--premium {
  background: linear-gradient(135deg, #f59e0b, var(--premium));
  color: #1f2937;
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.job-card {
  display: grid;
  gap: 14px;
}

.job-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.job-card__title {
  font-weight: 600;
  margin: 0;
}

.job-card__title a {
  color: inherit;
}

.job-card__company {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge--premium {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  color: var(--primary);
}

.job-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.job-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.job-card__contact {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
}

.job-card__contact.is-visible {
  display: block;
}

.job-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.slider::-webkit-scrollbar {
  height: 8px;
}

.slider::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

.slider .glass-card {
  min-width: 280px;
  scroll-snap-align: start;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  padding: 20px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
}

.notice {
  padding: 20px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #7f1d1d;
}

footer {
  padding: 32px 0 56px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--glass-bg);
  border-radius: var(--card-radius);
  padding: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.message {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #14532d;
  font-size: 0.9rem;
  display: none;
}

.message.error {
  background: rgba(239, 68, 68, 0.12);
  color: #7f1d1d;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.filters input,
.filters select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
}

.filters .filter-input {
  padding-left: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 16px;
}

.filter-input {
  grid-column: 1 / -1;
}

.job-detail {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}

.detail-card {
  background: var(--glass-bg);
  border-radius: var(--card-radius);
  padding: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

.detail-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-block {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #14532d;
}

.contact-block.is-visible {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 120;
  padding: 24px;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__dialog {
  width: min(560px, 92vw);
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  font-size: 0.9rem;
}

.chatbot__toggle {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chatbot__toggle .icon {
  color: var(--premium);
}

.chatbot__window {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(320px, 90vw);
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

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

.chatbot__header {
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.04);
  font-weight: 600;
}

.chatbot__messages {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.chatbot__message {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--primary);
}

.chatbot__message.ai {
  background: rgba(34, 197, 94, 0.12);
  color: #14532d;
}

.chatbot__message a {
  color: inherit;
  text-decoration: underline;
}

.chatbot__form {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.chatbot__form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 10px 12px;
  font-family: inherit;
}

.chatbot__form button {
  border-radius: 999px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .job-detail {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav.nav--open .nav-links {
    display: flex;
    position: absolute;
    flex-direction: column;
    top: 78px;
    right: 4vw;
    background: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .nav-search input {
    width: 120px;
  }

  .chatbot {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 640px) {
  section {
    padding: 56px 0;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .nav {
    padding: 14px 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-search {
    width: 100%;
    justify-content: space-between;
  }

  .nav-search input {
    width: 100%;
  }

  .search-bar {
    padding: 12px;
    gap: 10px;
  }

  .job-card__head {
    align-items: flex-start;
  }

  .badge {
    margin-left: 0;
  }

  .job-card__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .job-card__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .detail-card {
    padding: 20px;
  }

  .chatbot__window {
    width: min(300px, 92vw);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.2);
  }
  100% {
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
  }
}

.hero-card.highlight {
  animation: glow 3s ease-in-out infinite alternate;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon--premium {
  color: #b45309;
}
