*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: #fff;
  color: #252525;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #ff8045;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3 {
  font-family: Roboto, sans-serif;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  padding: 16px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s;
}
.header.header-solid {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 3px solid #ff8045;
}
.header.header-solid .header-nav a {
  color: #252525;
}
.header.header-solid .header-logo img {
  filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 32px;
  width: auto;
}
.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a:hover {
  color: #ff8045;
  text-decoration: none;
}
.header-nav a.active {
  color: #ff8045;
}

/* Account menu (signed-in Connect dropdown) */
.account-menu {
  position: relative;
}
.account-menu > button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.account-menu > button:hover {
  background: #fafafa;
}
.account-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
  padding: 8px;
  z-index: 200;
}
.account-menu.open .account-menu-dropdown {
  display: block;
}
.account-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #252525;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.account-menu-dropdown a:hover {
  background: #f6f6f6;
  text-decoration: none;
  color: #252525;
}
.account-menu-dropdown svg {
  color: #555;
  flex-shrink: 0;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #ff8045;
  color: #fff;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.hero-btn:hover {
  background: #e06a2f;
  text-decoration: none;
}

/* Section */
.section {
  padding: 60px 0;
}
.section-gray {
  background: #f8f8f8;
}
.section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.section-subtitle p {
  margin-bottom: 16px;
}
.section-subtitle p:last-child {
  margin-bottom: 0;
}

/* Leadership */
.leaders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.leader {
  text-align: center;
}
.leader img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.leader h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.leader p {
  font-size: 13px;
  color: #888;
}
@media (max-width: 640px) {
  .leaders {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Perks */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.perk {
  text-align: center;
  padding: 24px;
}
.perk-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.perk h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.perk p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .perks {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 40px 0;
}
.stat-number {
  font-size: 42px;
  font-weight: 900;
  color: #ff8045;
  font-family: Roboto, sans-serif;
}
.stat-label {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.testimonial-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}
.testimonial-role {
  font-size: 13px;
  color: #888;
}
.testimonial p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  font-style: italic;
}
@media (max-width: 768px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-grid p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}
.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.highlight {
  background: #fff3ed;
  border-radius: 12px;
  padding: 20px;
}
.highlight strong {
  color: #ff8045;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Jobs */
.job-card {
  display: block;
  padding: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.job-card:hover {
  border-color: #ff8045;
  box-shadow: 0 4px 16px rgba(255, 128, 69, 0.1);
  text-decoration: none;
}
.job-card h3 {
  font-size: 18px;
  color: #252525;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-remote {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-fulltime {
  background: #e3f2fd;
  color: #1565c0;
}
.empty-jobs {
  text-align: center;
  padding: 40px;
  color: #888;
}

/* Footer */
.footer {
  background: #252525;
  color: #ccc;
  padding: 48px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer a {
  color: #ccc;
  font-size: 14px;
}
.footer a:hover {
  color: #ff8045;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #888;
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Apply page overrides (dark) */
.dark body,
body.dark {
  background: #0f0f0f;
  color: #e0e0e0;
}
.dark .header {
  background: #0f0f0f;
  border-color: #222;
}
.dark .header-nav a {
  color: #e0e0e0;
}

/* Shared form styles for apply page */
.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 12px 16px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #252525;
  font-size: 15px;
  font-family: inherit;
}
.form-container input:focus,
.form-container textarea:focus {
  outline: none;
  border-color: #ff8045;
}
.form-container textarea {
  resize: vertical;
  min-height: 100px;
}
.form-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: #666;
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: #ff8045;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: #e06a2f;
  text-decoration: none;
}
.rating-group {
  display: flex;
  gap: 8px;
}
.rating-group label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  background: #f8f8f8;
  border: 2px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.rating-group input[type='radio'] {
  display: none;
}
.rating-group label:has(input:checked) {
  border-color: #ff8045;
  background: #fff3ed;
}
.file-drop {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.file-drop:hover,
.file-drop.dragover {
  border-color: #ff8045;
  background: #fff8f5;
}
.file-drop p {
  color: #888;
}
.success-box {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.success-box h2 {
  color: #2e7d32;
  margin-bottom: 8px;
}
.error-text {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top-color: #ff8045;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.video-preview {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  margin-top: 12px;
}

/* ---------- Mobile responsive overrides ---------- */
img,
video,
picture {
  max-width: 100%;
}

@media (max-width: 768px) {
  .container,
  .container-wide {
    padding: 0 16px;
  }
  .hero {
    padding: 56px 0 40px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .section {
    padding: 40px 0;
  }
  .section h2 {
    font-size: 24px;
  }
  .section-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }
  .header-nav {
    gap: 14px;
  }
  .header-nav a {
    font-size: 14px;
  }
  .footer {
    padding: 36px 0 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  .section h2 {
    font-size: 22px;
  }
  .header-nav {
    gap: 10px;
  }
  .header-nav a {
    font-size: 13px;
  }
  /* Hide "Start" on very narrow screens to keep nav on one line. */
  .header-nav a[href='/']:first-child {
    display: none;
  }
}

/* ---------- Mobile polish (overrides inline styles in templates) ---------- */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .header {
    padding: 12px 0;
  }
  .header-logo img {
    height: 26px;
  }
  /* Sections often have inline padding:60px 0 or similar — pull them in. */
  section[style*='padding:60px'],
  div[style*='padding:60px'],
  div[style*='padding: 48px'],
  div[style*='padding:48px'] {
    padding: 36px 16px !important;
  }
  /* Inline 36/48/52px headers shrink for small screens. */
  h1[style*='font-size:48px'],
  h1[style*='font-size: 48px'],
  h1[style*='font-size:52px'],
  h1[style*='font-size: 52px'] {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
  h2[style*='font-size:36px'],
  h2[style*='font-size: 36px'] {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }
  h2[style*='font-size:28px'],
  h2[style*='font-size: 28px'] {
    font-size: 22px !important;
  }
  /* Hero CTA buttons: stack and full-width on phones. */
  .hero-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 24px !important;
    font-size: 15px !important;
  }
  .hero-cover [style*='display:flex'][style*='gap:16px'],
  .hero-cover [style*='display: flex'][style*='gap:16px'] {
    flex-direction: column;
    align-items: center;
  }
  /* Job-description sections — tighter spacing, smaller headings. */
  .job-description {
    font-size: 16px !important;
  }
  .job-description h2.section-heading {
    font-size: 20px !important;
    margin: 32px 0 12px !important;
  }
  .job-description ul,
  .job-description ol {
    padding-left: 22px !important;
  }
  /* Application-process timeline — tighter gutters on mobile. */
  .application-process li {
    gap: 12px !important;
    padding: 12px 0 !important;
  }
  .application-process .step-num {
    flex: 0 0 28px !important;
    width: 28px;
    height: 28px;
    font-size: 13px !important;
  }
  /* Detail hero scroll arrow doesn't need to be huge on mobile. */
  #hero-scroll-arrow div {
    width: 40px !important;
    height: 40px !important;
  }
  /* Apply form: prevent iOS zoom on focus + comfy tap targets. */
  .form-container input,
  .form-container textarea,
  .form-container select,
  input[type='text'],
  input[type='email'],
  input[type='tel'],
  input[type='url'],
  input[type='number'],
  textarea,
  select {
    font-size: 16px !important;
    padding: 14px !important;
  }
  /* Apply CTA section large titles. */
  .detail-apply-title {
    font-size: 26px !important;
  }
  /* Cards / cards-with-images don't need tight horizontal padding. */
  .job-card {
    padding: 18px !important;
  }
  /* Diversity / About blocks usually have container max-width:700px — works,
     just ensure they don't bleed under header. */
  section.hero-cover {
    min-height: 88vh !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }
  h1[style*='font-size:48px'],
  h1[style*='font-size: 48px'],
  h1[style*='font-size:52px'],
  h1[style*='font-size: 52px'] {
    font-size: 28px !important;
  }
  .detail-hero-title {
    font-size: 26px !important;
  }
  .hero-btn {
    padding: 13px 20px !important;
    font-size: 14px !important;
  }
}
