/* FRIENDSCORP shared styles */

:root {
  --bg: #F4F4F1;
  --card: #ffffff;
  --ink: #181A20;
  --muted: #4a4d56;
  --soft: #7a7d86;
  --blue: #7690FF;
  --blue-dark: #5a76e8;
  --blue-text: #4a63d8;
  --pink: #FE6FEB;
  --pink-text: #c94db8;
  --yellow: #FFC704;
  --yellow-text: #a37f00;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.05;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 30px;
  margin-bottom: 16px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-dots { display: flex; gap: 3px; }
.brand-dots span { width: 9px; height: 9px; border-radius: 999px; }
.brand-dots span:nth-child(1) { background: var(--blue); }
.brand-dots span:nth-child(2) { background: var(--pink); }
.brand-dots span:nth-child(3) { background: var(--yellow); }

.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .05em;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color .18s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.btn-blue {
  font-size: 15px;
  background: var(--blue);
  padding: 15px 28px;
  border-radius: 12px;
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(118, 144, 255, .35);
}

.btn-dark {
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
}
.btn-dark:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(118, 144, 255, .35);
}

.btn-outline {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 28px;
  border-radius: 12px;
  border: 1.5px solid rgba(24, 26, 32, .18);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--card);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- shared building blocks ---------- */

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 64px 56px;
  margin-bottom: 16px;
}

.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.grid-hero { grid-template-columns: 2fr 1fr; }
.grid-careers { grid-template-columns: 1fr 2fr; }
.grid-split { grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-2 { grid-template-columns: 1fr 1fr; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.pill-blue { background: rgba(118, 144, 255, .14); color: var(--blue-text); }
.pill-pink { background: rgba(254, 111, 235, .12); color: var(--pink-text); }
.pill-yellow { background: rgba(255, 199, 4, .18); color: var(--yellow-text); }
.pill .dot { width: 7px; height: 7px; border-radius: 999px; }
.pill-pink .dot { background: var(--pink); }
.pill-blue .dot { background: var(--blue); }
.pill-yellow .dot { background: var(--yellow); }

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin: 34px 0 0;
}

.tag {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: default;
  transition: background .2s ease, transform .2s ease;
}
.tag-blue { border: 1.5px solid rgba(118, 144, 255, .5); color: var(--blue-text); }
.tag-blue:hover { background: rgba(118, 144, 255, .12); transform: translateY(-2px); }
.tag-pink { border: 1.5px solid rgba(254, 111, 235, .5); color: var(--pink-text); }
.tag-pink:hover { background: rgba(254, 111, 235, .1); transform: translateY(-2px); }
.tag-yellow { border: 1.5px solid rgba(255, 199, 4, .7); color: var(--yellow-text); }
.tag-yellow:hover { background: rgba(255, 199, 4, .14); transform: translateY(-2px); }

.card-dark {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 32px;
}
.card-yellow { background: var(--yellow); border-radius: var(--radius); padding: 30px 32px; }
.card-blue { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 44px 38px; }
.card-pink { background: var(--pink); color: #fff; border-radius: var(--radius); padding: 44px 38px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.eyebrow-dark { color: var(--soft); }

/* job rows */
.job-list {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: #F7F7F4;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.job-row:hover {
  background: #EEF1FC;
  transform: translateX(5px);
  box-shadow: 0 4px 14px rgba(24, 26, 32, .07);
}
.job-title { font-weight: 600; font-size: 17px; color: var(--ink); }
.job-meta { font-size: 13.5px; color: var(--soft); margin-top: 3px; }
.job-apply { font-size: 14px; font-weight: 600; color: var(--blue-text); white-space: nowrap; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 56px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-talk {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 780;
  font-size: clamp(20px, 5.5vw, 34px);
}
.footer-email {
  color: var(--pink);
  cursor: pointer;
  transition: color .18s ease;
  display: inline-block;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
  /* Letters are per-span inline-blocks; keep the address on one unbreakable
     line so it never splits mid-word ("friendscorp.e u") on narrow screens. */
  white-space: nowrap;
  max-width: 100%;
}
.footer-email:hover { color: #ff9df2; }
.footer-email span { display: inline-block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: rgba(255, 255, 255, .65); align-items: center; }
.footer-links a { color: rgba(255, 255, 255, .65); transition: color .18s ease; }
.footer-links a:hover { color: #fff; }

@keyframes emailJump {
  0% { transform: translateY(0); }
  35% { transform: translateY(-10px); }
  70% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.shown { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .footer-email span { animation: none !important; }
}

/* ---------- contact modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 26, 32, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(24, 26, 32, .25);
  animation: modalIn .28s cubic-bezier(.22, 1, .36, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 780; font-size: 28px; line-height: 1.1; }
.modal-sub { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 8px 0 22px; }
.modal-close {
  background: #F7F7F4;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal-close:hover { background: var(--ink); color: #fff; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #F7F7F4;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.modal-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.modal-note { font-size: 12.5px; color: var(--soft); }
.modal-sent {
  display: none;
  background: rgba(118, 144, 255, .12);
  color: var(--blue-text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
}
.modal-sent.show { display: block; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .grid-hero, .grid-careers, .grid-split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .panel { padding: 40px 28px; }
  .footer { padding: 40px 28px; }
  .footer-inner { align-items: flex-start; }
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 20px; flex-wrap: wrap; }
  .h1 { font-size: 42px !important; }
}

@media (max-width: 560px) {
  .page { padding: 14px; }
  .panel { padding: 32px 22px; }
  .footer { padding: 32px 22px; }
  .job-row { padding: 18px 20px; }
  /* Stack the job title and Apply link instead of squeezing them side by side. */
  .job-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .display { overflow-wrap: break-word; }
}
