/* Hasama — "Forest" theme (direction A). Loaded after app.css when theme() === 'forest'.
   Everything is scoped under .theme-forest so the classic look stays intact. */
.theme-forest {
  --bg: #F4F6F1; --card: #fff; --ink: #10201A; --muted: #4D5E55; --line: #E3E8E1;
  --brand: #0E2A1C; --brand-2: #173D2A; --brand-soft: #E8F0E3; --accent: #C8F05A;
  --forest: #0E2A1C; --forest-2: #173D2A; --lime: #C8F05A; --lime-soft: #E6F5C4;
  --radius: 18px; --shadow: 0 1px 2px rgba(14,42,28,.04), 0 8px 28px rgba(14,42,28,.07);
}
@media (prefers-color-scheme: dark) {
  .theme-forest {
    --bg: #0B1510; --card: #12201A; --ink: #E8EFEA; --muted: #A3B5AA; --line: #22332A;
    --brand: #C8F05A; --brand-2: #DDF79A; --brand-soft: #18291F; --lime-soft: #23361A;
    --shadow: 0 1px 2px rgba(0,0,0,.35);
  }
}
.theme-forest h1, .theme-forest h2 { letter-spacing: -.02em; }
.theme-forest .btn, .theme-forest button.btn { font-weight: 700; }
.theme-forest input[type=text], .theme-forest input[type=email], .theme-forest input[type=tel], .theme-forest input[type=number],
.theme-forest input[type=url], .theme-forest input[type=date], .theme-forest input[type=search], .theme-forest select, .theme-forest textarea { border-radius: 12px; }
.theme-forest .card { border-radius: var(--radius); }

/* Top bar + footer: always deep forest */
.theme-forest .topbar { background: var(--forest); border-bottom: 0; }
.theme-forest .topbar .row { min-height: 72px; }
.theme-forest .brand { color: #fff; font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; }
.theme-forest .logo { background: var(--lime); color: var(--forest); width: 36px; height: 36px; border-radius: 10px; }
.theme-forest .nav { gap: 22px; }
.theme-forest .nav a, .theme-forest .nav .linkbtn { color: rgba(255,255,255,.88); }
.theme-forest .nav a:hover { color: #fff; }
.theme-forest .nav .nav-join { color: var(--lime); }
.theme-forest .nav a.btn { background: #fff; color: var(--forest); padding: 9px 20px; min-height: 40px; }
.theme-forest .nav .lang { border-color: rgba(255,255,255,.3); color: #fff; padding: 4px 10px; }
.theme-forest .footer { background: var(--forest); color: rgba(255,255,255,.75); border-top: 0; }
.theme-forest .footer b { color: #fff; }
.theme-forest .footer a { color: rgba(255,255,255,.88); }
.theme-forest .footer .muted { color: rgba(255,255,255,.6); }

/* Hero */
.fh-hero { background: var(--forest); color: #fff; padding: 56px 0 120px; overflow: hidden; }
.fh-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fh-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,240,90,.12); color: var(--lime); font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.fh-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.fh-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 900; margin: 0 0 20px; }
.fh-hero h1 mark { background: var(--lime); color: var(--forest); padding: 0 .18em; border-radius: 14px; display: inline-block; transform: rotate(-1.5deg); }
.fh-hero .lead { font-size: 1.25rem; color: rgba(255,255,255,.84); max-width: 560px; margin: 0 0 32px; }
.fh-search { background: #fff; padding: 8px; border-radius: 20px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; gap: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.fh-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #F4F6F1; border-radius: 14px; min-height: 56px; margin: 0; color: #4D5E55; font-weight: 400; }
.fh-field:focus-within { box-shadow: 0 0 0 3px var(--lime); }
.theme-forest .fh-field input { border: 0; background: transparent; padding: 0; color: #10201A; font-size: 1.05rem; box-shadow: none; min-width: 0; }
.fh-go { border: 0; background: var(--forest); color: #fff; font: 700 1.05rem var(--font); padding: 0 32px; border-radius: 14px; min-height: 56px; cursor: pointer; }
.fh-go:hover { background: var(--forest-2); }
.fh-popular { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.7); }
.fh-popular a { color: #fff; border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; font-weight: 500; }
.fh-popular a:hover, .fh-popular a.on { background: var(--lime); color: var(--forest); border-color: var(--lime); text-decoration: none; }

.fh-visual { position: relative; min-height: 400px; }
.fh-float { position: absolute; border-radius: 22px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.fh-float-a { inset-inline-start: 0; top: 0; width: min(360px, 90%); background: #fff; color: #10201A; }
.fh-float-a p { color: #4D5E55; margin: 6px 0 0; }
.fh-float-b { inset-inline-end: 0; bottom: 10px; width: 250px; background: var(--lime); color: var(--forest); transform: rotate(3deg); }
.fh-float-big { font-weight: 900; font-size: 1.4rem; line-height: 1.2; margin-top: 10px; }
.fh-float-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.fh-float-head span { font-size: .82rem; color: #4D5E55; }
.fh-mini { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #E3E8E1; }
.fh-mini-t { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.fh-mini-t b, .fh-mini-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fh-mini-t small { color: #4D5E55; font-size: .82rem; }

/* Stats strip */
.fh-stats { margin: -60px 0 0; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; box-shadow: 0 12px 40px rgba(14,42,28,.08); text-align: center; }
.fh-stats b { display: flex; justify-content: center; align-items: center; height: 44px; font-size: 2.2rem; font-weight: 900; color: var(--brand); line-height: 1; }
.fh-stats span { color: var(--muted); font-size: .93rem; }

/* Sections */
.fh-section { padding-top: 64px; }
.fh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fh-kicker { color: #2F6B3E; font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.fh-head h2, .fh-h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 900; margin: 0; }
.fh-h2 { margin-bottom: 24px; }
.fh-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.theme-forest .fh-filters select { width: auto; border-radius: 999px; padding: 9px 14px; font-weight: 500; font-size: .93rem; background-color: var(--card); }
.fh-clear { font-weight: 600; font-size: .93rem; padding: 8px 4px; }
.fh-empty { background: var(--card); border: 1.5px dashed var(--line); border-radius: 22px; padding: 56px 20px; text-align: center; color: var(--muted); }
.fh-empty-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fh-empty-ic svg { width: 28px; height: 28px; }
.fh-empty p { font-size: 1.1rem; margin-bottom: 16px; }

/* Job cards (also used on agency pages) */
.theme-forest .job-list.fh-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.theme-forest .job-card { border: 1.5px solid var(--line); border-radius: 20px; padding: 22px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.theme-forest .job-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(14,42,28,.1); }
.theme-forest .jc-top { display: flex; gap: 14px; align-items: center; }
.theme-forest .jc-main { min-width: 0; }
.theme-forest .jc-avatar { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--forest); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.25rem; }
.theme-forest .fh-mini .jc-avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.theme-forest .job-card h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.theme-forest .job-card .agency { color: #2F6B3E; }
.theme-forest .job-meta { margin-top: 16px; gap: 8px; color: var(--ink); }
.theme-forest .job-meta span { background: var(--bg); padding: 5px 12px; border-radius: 10px; font-size: .88rem; font-weight: 500; }
.theme-forest .job-meta .sal { background: var(--lime-soft); color: #24410F; font-weight: 700; }
.theme-forest .job-meta .when { background: none; color: var(--muted); padding-inline: 0; margin-inline-start: auto; }
.theme-forest .em { display: none; }
@media (prefers-color-scheme: dark) {
  .theme-forest .job-card .agency, .fh-kicker { color: #A9D98A; }
  .theme-forest .job-meta .sal { color: #DDF79A; }
  .theme-forest .jc-avatar { background: #1E3A28; }
}

/* Steps */
.fh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fh-step { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.fh-step .n { font-size: 4rem; font-weight: 900; line-height: 1; color: var(--lime); -webkit-text-stroke: 2px var(--forest); }
.fh-step h3 { font-size: 1.35rem; font-weight: 800; margin: 16px 0 6px; }
.fh-step p { color: var(--muted); margin: 0; }
.fh-step.dark { background: var(--forest); border-color: var(--forest); color: #fff; }
.fh-step.dark .n { -webkit-text-stroke: 0; }
.fh-step.dark p { color: rgba(255,255,255,.8); }
@media (prefers-color-scheme: dark) { .fh-step .n { -webkit-text-stroke: 0; } .fh-step.dark { background: #173D2A; } }

/* Agency CTA */
.fh-cta { background: var(--lime); border-radius: 32px; padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.fh-cta > div { max-width: 640px; }
.fh-cta h2 { color: var(--forest); font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 900; line-height: 1.08; margin: 0 0 10px; }
.fh-cta p { color: #1E3A28; font-size: 1.15rem; margin: 0; }
.fh-cta-btn { background: var(--forest); color: #fff; font-weight: 800; font-size: 1.15rem; padding: 16px 32px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; }
.fh-cta-btn:hover { color: #fff; text-decoration: none; background: var(--forest-2); }
[dir=ltr] .ico-dir { transform: scaleX(-1); }

/* Shared public pages get the same polish */
.theme-forest .cta-agencies { background: var(--forest); border-radius: 28px; }
.theme-forest .hero { background: var(--forest); }

@media (max-width: 860px) {
  .fh-hero { padding: 36px 0 96px; }
  .fh-hero-grid, .fh-steps { grid-template-columns: minmax(0, 1fr); }
  .fh-visual { display: none; }
  .fh-search { grid-template-columns: minmax(0, 1fr); }
  .fh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; }
  .theme-forest .job-list.fh-jobs { grid-template-columns: minmax(0, 1fr); }
  .fh-cta { padding: 32px 24px; border-radius: 24px; }
  .theme-forest .topbar .row { min-height: 60px; padding-block: 8px; }
  .theme-forest .nav { gap: 12px; font-size: .93rem; }
}
@media (max-width: 600px) {
  .theme-forest .topbar { position: static; }
  .theme-forest .topbar .row { flex-wrap: nowrap; gap: 8px; }
  .theme-forest .brand { font-size: 1.2rem; gap: 6px; }
  .theme-forest .logo { width: 30px; height: 30px; }
  .theme-forest .nav { flex-wrap: nowrap; gap: 10px; font-size: .85rem; }
  .theme-forest.public .nav > a:first-child { display: none; } /* "Jobs" = the logo link */
  .theme-forest .nav a.btn { padding: 7px 12px; min-height: 36px; font-size: .85rem; }
  .theme-forest .nav .lang { padding: 3px 7px; }
}
