/* MobiLoud Careers - styles
   Typography parity with live mobiloud.com (webflow). Rules sourced from
   Website/landing-pages/CLAUDE.md and tailwind.config.js. */

@font-face {
  font-family: 'Eudoxus Sans';
  src: url('/assets/fonts/EudoxusSansGX.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Body base mirrors webflow: 14/20/#333.
   Font-smoothing IS applied here (unlike landing-pages where it's banned to match webflow parity).
   The careers site has no webflow counterpart, so grayscale AA fixes the macOS subpixel-render halo on bold glyphs.
   font-synthesis: none prevents the browser from faux-bolding on top of the variable font's true bold weight. */
body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #333;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

/* Headings: Eudoxus Sans, #141125 on light bg, tight letter-spacing */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Eudoxus Sans', Arial, sans-serif;
  color: #141125;
  font-weight: 700;
}

/* Display scale matches webflow */
h1 { font-size: 40px; line-height: 48px; letter-spacing: -0.03em; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.03em; margin-top: 40px; margin-bottom: 14px; }
h3 { font-size: 18px; line-height: 26px; letter-spacing: -0.02em; margin-top: 28px; margin-bottom: 10px; }

@media (max-width: 639px) {
  h1 { font-size: 28px; line-height: 36px; }
  h2 { font-size: 22px; line-height: 30px; }
  h3 { font-size: 17px; line-height: 24px; }
}

/* Body type at page level - use 16/24 for readable long-form, override Tailwind-style base */
main {
  font-size: 16px;
  line-height: 1.65;
  color: #404040;
}

main p { margin-bottom: 16px; }
main ul, main ol { margin: 0 0 16px 24px; }
main li { margin-bottom: 8px; }
main li > p { margin-bottom: 8px; }

main strong { color: #141125; font-weight: 600; }

a { color: #047857; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #065f46; }

hr { border: none; border-top: 1px solid #e5e5e5; margin: 40px 0; }

/* Container */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header .logo img {
  height: 28px;
  width: auto;
  display: block;
}
.site-header .logo {
  display: inline-block;
  line-height: 0;
}
.site-nav a {
  margin-left: 24px;
  color: #525252;
  text-decoration: none;
  font-family: 'Eudoxus Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: #141125; }

/* Main spacing */
main.container { padding-top: 56px; padding-bottom: 80px; }

/* Job meta strip */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0 36px;
  padding: 16px 20px;
  background: #f0fdf4;
  border-radius: 6px;
  font-size: 14px;
  color: #404040;
  font-family: 'Inter', Arial, sans-serif;
}
.job-meta span { white-space: nowrap; }
.job-meta strong { color: #141125; font-weight: 600; }

/* Primary CTA button - matches live mobiloud.com .btn-primary */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #047857;
  color: #ffffff !important;
  border: 1px solid #047857;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: 'Eudoxus Sans', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 0 4px rgba(0,0,0,0.04), 0 4px 8px rgba(0,0,0,0.08);
}
.btn-primary:hover {
  background-color: #065f46;
  border-color: #065f46;
  color: #ffffff !important;
}

/* Apply CTA box */
.cta-box {
  margin: 48px 0 0;
  padding: 32px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
}
.cta-box h2 { margin-top: 0; font-size: 22px; }
.cta-box .subject-line {
  display: inline-block;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  color: #404040;
}

/* Index page role list */
.role-list { list-style: none; margin: 32px 0 0; padding: 0; }
.role-list li {
  margin-bottom: 16px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.role-list li:hover {
  border-color: #10b981;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.role-list a {
  display: block;
  color: #141125;
  text-decoration: none;
}
.role-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.02em;
}
.role-list .role-meta { color: #737373; font-size: 14px; font-family: 'Inter', Arial, sans-serif; }

/* Footer */
.site-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid #e5e5e5;
  background: #ffffff;
  color: #737373;
  font-size: 14px;
}
.site-footer p { margin-bottom: 6px; }
.site-footer a { color: #525252; }

/* Application form */
.application-form-wrap {
  margin: 64px 0 0;
  padding: 48px 56px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
}
.form-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #f0f0f0; }
.application-form-wrap .form-header h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.form-intro { font-size: 16px; color: #525252; line-height: 1.55; margin: 0; }

.form-section { margin-bottom: 40px; }
.form-section:last-of-type { margin-bottom: 24px; }
.form-section-label {
  font-family: 'Eudoxus Sans', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #737373;
  margin-bottom: 20px;
}

.application-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.application-form .form-row:last-child { margin-bottom: 0; }
.application-form .form-field {
  display: flex;
  flex-direction: column;
}
.application-form .form-field-block { margin-bottom: 24px; }
.application-form .form-field-block:last-child { margin-bottom: 0; }

.application-form label {
  font-family: 'Eudoxus Sans', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #141125;
  margin-bottom: 6px;
}
.application-form .field-help {
  font-size: 14px;
  color: #525252;
  line-height: 1.5;
  margin: 0 0 10px;
}
.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="url"],
.application-form textarea {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  color: #141125;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 10px;
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.application-form textarea {
  resize: vertical;
  line-height: 1.5;
}
.application-form input::placeholder,
.application-form textarea::placeholder {
  color: #a1a1a1;
}
.application-form input:hover,
.application-form textarea:hover {
  border-color: #a1a1a1;
}
.application-form input:focus,
.application-form textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.form-error {
  margin: 16px 0 24px;
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid #ffa2a2;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 15px;
  line-height: 1.5;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Eudoxus Sans', Arial, sans-serif;
  min-width: 220px;
}
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.form-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 40px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
  margin: 64px 0 0;
}
.thankyou-icon { margin-bottom: 20px; }
.form-thankyou h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #141125;
}
.form-thankyou p {
  margin: 0;
  color: #525252;
  font-size: 16px;
  max-width: 420px;
  line-height: 1.55;
}

/* Mobile */
@media (max-width: 600px) {
  .application-form-wrap { padding: 32px 22px; margin-top: 40px; }
  .application-form-wrap .form-header h2 { font-size: 24px; }
  .form-header { margin-bottom: 28px; padding-bottom: 24px; }
  .form-section { margin-bottom: 28px; }
  .application-form .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .application-form .form-row .form-field { margin-bottom: 20px; }
  .application-form .form-row .form-field:last-child { margin-bottom: 0; }
  .form-submit { width: 100%; min-width: 0; }
  .form-thankyou { padding: 36px 22px; margin-top: 40px; }
  main.container { padding-top: 32px; }
  .site-nav a { margin-left: 16px; font-size: 14px; }
  .cta-box { padding: 24px; }
  .role-list li { padding: 20px 22px; }
}
