/* ── CSS Custom Properties ──────────────────────────────────────────────── */

:root {
  --primary:          #0A3A4A;
  --primary-dark:     #072A36;
  --primary-light:    #D6E9F0;
  --secondary:        #F5A623;
  --text-primary:     #1e293b;
  --text-secondary:   #64748b;
  --bg-primary:       #ffffff;
  --bg-secondary:     #f8fafc;
  --border-color:     #e2e8f0;
  --error:            #ef4444;
  --success:          #10b981;
  --navbar-height:    70px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--navbar-height);
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 360px) {
  .container { padding: 0 1rem; }
}

/* ── Header / Nav ────────────────────────────────────────────────────────── */

header {
  background-color: var(--bg-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  z-index: 105;
}

.logo span {
  color: var(--secondary);
  font-weight: 400;
}

@media (max-width: 768px) {
  .logo { font-size: 1.125rem; }
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
}

.nav-links {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .nav-links { gap: 1.25rem; }
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active { color: var(--primary); }

.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Mobile menu button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  z-index: 105;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .mobile-menu-button { display: block; }
}

.mobile-menu-button.open svg { stroke: var(--primary); }

/* Mobile navigation overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 100;
  padding-top: 5rem;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
}

.mobile-nav .nav-link {
  font-size: 1.25rem;
  padding: 0.75rem;
  display: block;
  width: 100%;
  text-align: center;
}

/* ── Shared Buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-icon { margin-left: 0.5rem; }

/* ── Hero Section: single full-bleed block, image + overlay + content ───────── */

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--primary-dark);
}

/* True full viewport width: break out of any centered container */
.hero-banner {
  position: relative;
  width: 100vw;
  max-width: 100%;
  margin-left: calc(50% - 50vw);
  left: 0;
  right: 0;
  min-height: clamp(420px, 72vh, 680px);
  display: flex;
  align-items: flex-end;
  background-color: var(--primary-dark);
}

@media (max-width: 640px) {
  .hero-banner { min-height: clamp(380px, 70vh, 520px); }
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 42, 54, 0.96) 0%,
    rgba(7, 42, 54, 0.75) 25%,
    rgba(7, 42, 54, 0.35) 55%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2.5rem 0 2.75rem;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-banner-content { text-align: left; padding: 3rem 0 3.5rem; }
}

.hero-banner-content .container {
  max-width: 640px;
}

@media (min-width: 768px) {
  .hero-banner-content .container { max-width: 720px; }
}

/* Overlay text: high contrast for readability */
.hero-banner-content .hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-banner-content .hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

@media (min-width: 768px) {
  .hero-banner-content .hero-title { font-size: 2.75rem; }
}

@media (min-width: 992px) {
  .hero-banner-content .hero-title { font-size: 3rem; }
}

@media (max-width: 640px) {
  .hero-banner-content .hero-title { font-size: 1.75rem; }
}

.hero-banner-content .hero-title .highlight {
  color: var(--secondary);
  position: relative;
  display: inline-block;
}

.hero-banner-content .hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.15em;
  left: 0;
  width: 100%;
  height: 0.2em;
  background-color: rgba(245, 166, 35, 0.4);
  z-index: -1;
}

.hero-banner-content .hero-description {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.75rem;
  font-size: clamp(0.9375rem, 2.2vw, 1rem);
  line-height: 1.55;
  max-width: 560px;
  overflow-wrap: break-word;
}

@media (min-width: 992px) {
  .hero-banner-content .hero-description { margin-left: 0; }
}

.hero-banner-content .hero-friction-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.25rem;
}

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

@media (min-width: 992px) {
  .hero-banner-content .hero-cta { justify-content: flex-start; }
}

.hero-banner-content .btn-cta-primary {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  background-color: #fff;
  color: var(--primary-dark);
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-banner-content .btn-cta-primary:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
}

/* Follow section: light background, normal text */
.hero-follow {
  background-color: var(--bg-secondary);
  padding: 2.5rem 0 3.5rem;
  width: 100%;
}

.hero-follow .hero-social-proof {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 1.5rem;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-follow .hero-social-proof { text-align: left; }
}

.hero-follow .hero-testimonial-inline {
  margin-bottom: 2rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border-left: 4px solid var(--secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-follow .hero-testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.hero-follow .hero-testimonial-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-follow .features-grid {
  margin-top: 2rem;
}

@media (max-width: 576px) {
  .hero-banner-content .hero-cta { flex-direction: column; width: 100%; }
  .hero-banner-content .hero-cta .btn { width: 100%; min-width: 0; }
}

@media (max-width: 380px) {
  .hero-banner-content .hero-title { font-size: 1.5rem; }
  .hero-banner-content .hero-cta .btn { padding: 0.7rem 1rem; font-size: 0.875rem; }
}

/* ── Feature Cards ───────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 576px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ── Positions Section ───────────────────────────────────────────────────── */

.positions-section {
  padding: 4.5rem 0 4rem;
  background-color: var(--bg-secondary);
}

.positions-toolbar--home {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.positions-toolbar-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.positions-toolbar-select {
  min-width: 180px;
  max-width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
}

.positions-toolbar-select:hover {
  border-color: #cbd5e1;
}

.positions-toolbar-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Our Operating Brands ──────────────────────────────────────────────────── */

.brands-section {
  padding: 3.5rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.brands-section--inline {
  border-top: none;
  padding: 2.5rem 0 3rem;
}

.brands-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  text-align: center;
}

.brands-section-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 2rem;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .brands-section-description { white-space: normal; }
}

.brands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .brands-list { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

.brands-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 100px;
}

.brands-logo {
  max-width: 180px;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0);
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.brands-item:hover .brands-logo {
  opacity: 1;
}

@media (min-width: 640px) {
  .brands-logo { max-width: 220px; max-height: 110px; }
  .brands-item { min-height: 120px; }
}

@media (min-width: 900px) {
  .brands-logo { max-width: 260px; max-height: 130px; }
  .brands-list { max-width: 1100px; }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-link-about {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.section-link-about:hover {
  text-decoration: underline;
}

.section-link-about:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.positions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.position-card {
  background-color: var(--bg-primary);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.position-header  { padding: 1.5rem 1.5rem 0.5rem; }
.position-title   { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); }

.position-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.position-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.position-content     { padding: 0.75rem 1.5rem 1.5rem; flex-grow: 1; }

.position-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.position-meta      { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

.position-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.position-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: #f8fafc;
}

.position-apply-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem;
}

.position-buttons { display: flex; gap: 0.75rem; align-items: stretch; }

.position-btn {
  flex: 1;
  justify-content: center;
  font-size: 0.875rem;
}

.position-btn-apply {
  flex: 1.2;
  font-weight: 700;
  padding: 0.875rem 1.25rem;
  box-shadow: 0 4px 12px rgba(10, 58, 74, 0.2);
}

.position-btn-apply:hover {
  box-shadow: 0 6px 16px rgba(10, 58, 74, 0.3);
}

.position-tag-popular {
  background-color: var(--secondary);
  color: var(--primary-dark);
  margin-left: 0.5rem;
}

@media (max-width: 640px) {
  .position-buttons { flex-direction: column; gap: 0.5rem; }
  .position-btn-apply { flex: 1; }
}

.view-all-container { display: flex; justify-content: center; }

/* ── Benefits Section ────────────────────────────────────────────────────── */

.benefits-section { padding: 4rem 0; background-color: var(--bg-primary); }

.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 576px) { .benefits-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .benefits-list { grid-template-columns: repeat(3, 1fr); } }

.benefit-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .benefit-item { flex-direction: row; text-align: left; align-items: flex-start; }
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .benefit-icon { margin-bottom: 0; margin-right: 1rem; }
}

.benefit-content  { flex: 1; }
.benefit-title    { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); font-size: 1.125rem; }
.benefit-description { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.5; }

/* ── Testimonial ─────────────────────────────────────────────────────────── */

.testimonial {
  max-width: 800px;
  margin: 4rem auto 0;
  text-align: center;
  padding: 2rem 1rem;
  background-color: var(--primary-light);
  border-radius: 1rem;
}

@media (min-width: 768px) { .testimonial { padding: 2rem; } }

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-primary);
}

@media (min-width: 768px) { .testimonial-quote { font-size: 1.25rem; } }

.testimonial-quote::before,
.testimonial-quote::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary);
  font-family: serif;
}

/* ── Loading Spinner ─────────────────────────────────────────────────────── */

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  height: 16rem;
}

.loading-spinner::after {
  content: '';
  width: 2.5rem;
  height: 2.5rem;
  border: 0.25rem solid #f3f3f3;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ── Home: Nav Apply Now pill (when scrolled / on home) ───────────────────── */

body.page-home .main-header .nav-link[href="/apply"] {
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
}

body.page-home .main-header .nav-link[href="/apply"]:hover {
  background-color: var(--primary-dark);
  color: #fff;
}

/* ── Keyframes ───────────────────────────────────────────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
