/**
 * BridgeWorks — Unisciti al team
 */

body.join-team-page {
  background: var(--cream);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* ——— Hero ——— */
.jt-hero {
  padding: 6.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(167, 243, 208, 0.35), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(253, 164, 175, 0.22), transparent 50%),
    linear-gradient(168deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.jt-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .jt-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }
}

.jt-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.jt-hero-copy h1 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.jt-hero-copy h1 em {
  font-style: italic;
  color: var(--terracotta, #b87262);
}

.jt-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 500;
}

.jt-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.jt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.jt-btn--primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(30, 35, 40, 0.12);
}

.jt-btn--primary:hover {
  background: var(--sage-dark, #3d5a4a);
  transform: translateY(-2px);
}

.jt-btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.jt-btn--ghost:hover {
  border-color: var(--sage);
  transform: translateY(-1px);
}

.jt-hero-media {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(30, 35, 40, 0.12);
}

.jt-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.jt-hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}

/* ——— Sections ——— */
.jt-section {
  padding: 3.75rem 0;
}

.jt-section--alt {
  background: rgba(255, 255, 255, 0.6);
  border-block: 1px solid var(--line);
}

.jt-kicker {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.jt-section h2 {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  line-height: 1.15;
}

.jt-section h2 em {
  font-style: italic;
  color: var(--terracotta, #b87262);
}

.jt-section-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ——— Honesty split ——— */
.jt-honesty-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .jt-honesty-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.jt-honesty-no,
.jt-honesty-yes {
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.jt-honesty-no {
  background: rgba(253, 164, 175, 0.12);
}

.jt-honesty-yes {
  background: rgba(167, 243, 208, 0.2);
  box-shadow: 0 12px 36px rgba(61, 90, 74, 0.08);
}

.jt-honesty-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.jt-honesty-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.jt-honesty-list--no li::before {
  content: "×";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--terracotta, #b87262);
}

.jt-honesty-list--yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--sage-dark, #3d5a4a);
}

.jt-honesty-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ——— Compensation cards ——— */
.jt-comp-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.jt-comp-card {
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.jt-comp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(30, 35, 40, 0.08);
}

.jt-comp-card--highlight {
  border-color: rgba(61, 90, 74, 0.35);
  background: linear-gradient(145deg, #fff 0%, rgba(167, 243, 208, 0.15) 100%);
  grid-column: 1 / -1;
}

@media (min-width: 700px) {
  .jt-comp-card--highlight {
    grid-column: span 2;
  }
}

.jt-comp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sage-dark, #3d5a4a);
  background: rgba(167, 243, 208, 0.35);
  border-radius: 10px;
}

.jt-comp-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.jt-comp-card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.jt-comp-example {
  margin-top: 0.75rem !important;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem !important;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  border: 1px dashed var(--line);
}

.jt-comp-commit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: 1.5rem 1.6rem;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
}

.jt-comp-commit h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.jt-comp-commit p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
}

.jt-comp-commit .jt-btn--primary {
  background: #fff;
  color: var(--ink);
  flex-shrink: 0;
}

.jt-comp-commit .jt-btn--primary:hover {
  background: var(--cream);
}

/* ——— About split ——— */
.jt-about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .jt-about-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.jt-about-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(30, 35, 40, 0.1);
}

.jt-about-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.jt-about-copy p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.jt-about-founding {
  padding: 0.85rem 1rem;
  background: rgba(167, 243, 208, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(61, 90, 74, 0.2);
  color: var(--ink) !important;
}

.jt-link-arrow {
  font-weight: 700;
  color: var(--sage-dark, #3d5a4a);
  text-decoration: none;
}

.jt-link-arrow:hover {
  text-decoration: underline;
}

/* ——— Roles ——— */
.jt-roles {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .jt-roles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jt-role-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(30, 35, 40, 0.05);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.jt-role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30, 35, 40, 0.09);
}

.jt-role-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.jt-role-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.jt-role-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.jt-role-tagline {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.jt-role-area {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  background: var(--cream);
  border-radius: 10px;
  color: var(--ink);
}

.jt-role-goals-title {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.jt-role-goals {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.jt-role-goals li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.jt-role-goals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}

.jt-role-more {
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.jt-role-more summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.jt-role-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-pill);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.jt-role-cta:hover {
  background: var(--sage-dark, #3d5a4a);
  transform: translateY(-1px);
}

/* ——— Steps ——— */
.jt-steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .jt-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jt-step {
  padding: 1.25rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.jt-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--sage-dark, #3d5a4a);
  border-radius: 50%;
}

.jt-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}

.jt-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ——— Form layout ——— */
.jt-form-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .jt-form-layout {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.jt-form-intro p {
  line-height: 1.65;
  color: var(--ink-soft);
}

.jt-form-tips {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.jt-form-tips li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.jt-form-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.jt-form-wrap {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(30, 35, 40, 0.06);
}

.jt-flash {
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.jt-flash--ok {
  background: rgba(167, 243, 208, 0.35);
  border: 1px solid rgba(61, 90, 74, 0.25);
  color: var(--ink);
}

.jt-flash--err {
  background: rgba(253, 164, 175, 0.25);
  border: 1px solid rgba(184, 114, 98, 0.35);
  color: var(--ink);
}

.jt-form label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.jt-form .jt-field {
  margin-bottom: 1.1rem;
}

.jt-form input[type="text"],
.jt-form input[type="email"],
.jt-form input[type="url"],
.jt-form select,
.jt-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-sizing: border-box;
}

.jt-form textarea {
  min-height: 110px;
  resize: vertical;
}

.jt-form input:focus,
.jt-form select:focus,
.jt-form textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

.jt-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jt-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.jt-submit:hover {
  background: var(--sage-dark, #3d5a4a);
  transform: translateY(-1px);
}

/* ——— FAQ ——— */
.jt-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 720px;
}

.jt-faq details {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.jt-faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.jt-faq p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Subtle entrance */
@media (prefers-reduced-motion: no-preference) {
  .jt-hero-copy,
  .jt-hero-media,
  .jt-honesty-yes,
  .jt-comp-card,
  .jt-role-card {
    animation: jt-fade-up 0.6s var(--ease) both;
  }

  .jt-hero-media { animation-delay: 0.08s; }
  .jt-honesty-yes { animation-delay: 0.05s; }
}

@keyframes jt-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
