/* ===========================
   OrbityJobs Landing Page CSS
   =========================== */

:root {
  --orange: #f47920;
  --orange-light: #ff8c42;
  --orange-gradient: linear-gradient(135deg, #f47920 0%, #ff8c42 100%);
  --midnight: #190649;
  --dark: #201a17;
  --biz-gray: #30313C;
  --off-white: #fffbff;
  --text-body: #3d3d3d;
  --text-muted: #7a7a7a;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
.pacifico { font-family: 'Pacifico', cursive; }

h1, h2, h3 { line-height: 1.2; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-white {
  background: white;
  color: var(--orange);
  border-color: white;
}
.btn-white:hover { background: transparent; color: white; }

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover { background: white; color: var(--orange); }

.btn-orange {
  background: var(--orange-gradient);
  color: white;
  border-color: transparent;
}
.btn-orange:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-dark {
  background: var(--biz-gray);
  color: white;
}
.btn-dark:hover { background: #444455; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--midnight);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-brand-name {
  font-size: 1.4rem;
  color: white;
}

.nav-brand-name .orbity { font-family: 'Pacifico', cursive; }
.nav-brand-name .jobs { font-weight: 700; font-family: 'Open Sans', sans-serif; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-links a:hover { color: white; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--midnight);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(244,121,32,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,140,66,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(25,6,73,0.8) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-eyebrow i { color: var(--orange-light); }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero h1 .highlight {
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: white;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 2rem;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section Wrapper ── */
.section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { margin-bottom: 3.5rem; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card.biz {
  background: var(--biz-gray);
  color: white;
}

.service-card.talent {
  background: var(--orange-gradient);
  color: white;
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.biz .service-icon-wrap { background: rgba(255,255,255,0.12); }
.talent .service-icon-wrap { background: rgba(255,255,255,0.2); }

.service-card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.service-card-header p {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.service-features { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.service-features li i {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.service-features li span { opacity: 0.9; }

.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ── About ── */
.section-about { background: #f5f0ff; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(25,6,73,0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(25,6,73,0.13);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
}

.team-card:nth-child(1) .team-avatar { background: var(--orange-gradient); }
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg, var(--midnight) 0%, #3b1fa0 100%); }

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--midnight);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.bio-toggle {
  display: inline;
  margin-left: 0.25rem;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
}
.bio-toggle:hover { color: var(--orange-light); }

.team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--midnight);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-social a:hover { background: var(--orange); color: white; }

/* ── Terms ── */
.section-terms { background: var(--dark); }

.section-terms .section-label { color: var(--orange-light); }
.section-terms .section-title { color: white; }
.section-terms .section-sub { color: rgba(255,255,255,0.55); }

.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.accordion-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition);
}

.accordion-header:hover { background: rgba(255,255,255,0.09); }

.accordion-item.open .accordion-header { background: rgba(244,121,32,0.15); color: var(--orange-light); }

.accordion-header i { transition: transform var(--transition); font-size: 0.85rem; opacity: 0.7; }
.accordion-item.open .accordion-header i { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* max-height controlled by JS (scrollHeight) to support variable content lengths */

.accordion-body p {
  padding: 1rem 1.4rem 1.3rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.accordion-body p.accordion-subpoint-title {
  padding: 1.2rem 1.4rem 0.15rem;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}

.accordion-body p.accordion-subpoint-title:first-child {
  padding-top: 1rem;
}

.accordion-bullets {
  margin: 0;
  padding: 0.1rem 1.4rem 0.6rem 3.2rem;
  list-style: disc;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
}

.accordion-bullets li {
  padding-bottom: 0.2rem;
}

/* ── Footer ── */
.footer { background: var(--midnight); color: rgba(255,255,255,0.75); }

.footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo img { width: 36px; height: 36px; border-radius: 8px; }

.footer-logo-name {
  font-size: 1.3rem;
  color: white;
}

.footer-logo-name .orbity { font-family: 'Pacifico', cursive; }

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 240px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--orange-light); }

.store-badges { display: flex; flex-direction: column; gap: 0.75rem; }

.store-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  color: white;
  transition: var(--transition);
  max-width: 180px;
}

.store-badge:hover { background: rgba(255,255,255,0.14); }
.store-badge i { font-size: 1.4rem; }

.store-badge-text small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge-text strong {
  display: block;
  font-size: 0.95rem;
}

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.3rem 2rem;
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--midnight); padding: 1.5rem 2rem; gap: 1.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }

  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }

  .hero { padding: 7rem 1.5rem 5rem; }
  .section { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .stats-inner { flex-direction: column; }
}

/* ── Language Switcher ── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-switcher a { color: inherit; text-decoration: none; opacity: 0.6; transition: opacity var(--transition); }
.lang-switcher a:hover { opacity: 1; }
.lang-switcher a.active { color: var(--orange); opacity: 1; }
.lang-switcher span { opacity: 0.3; }
