/* Akber Group - careers section. Mobile-first: base styles are for phones, min-width queries add desktop layout. */

:root {
  --navy-50: #f0f4fa;
  --navy-100: #d9e2f0;
  --navy-200: #b3c5e0;
  --navy-300: #7a9bc4;
  --navy-400: #4a6fa5;
  --navy-500: #1e3a5f;
  --navy-600: #162d4a;
  --navy-700: #0f2035;
  --navy-800: #0a1625;
  --navy-900: #060e18;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --gold-300: #e8d5a3;
  --gold-400: #d4b96a;
  --gold-500: #c9a84c;
  --gold-600: #a8873a;

  --danger: #b91c1c;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
}

/* ---------- Reset and base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--slate-700);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--navy-700);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
}

a {
  color: var(--navy-500);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--navy-700);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.container.narrow {
  max-width: 48rem;
}

.section {
  padding: 3rem 0;
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  max-width: 80rem;
  height: 64px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-700);
}

.nav-desktop {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--navy-600);
}

.nav-link[aria-current="page"],
.nav-menu-link[aria-current="page"] {
  color: var(--gold-600);
}

/* Mobile menu: native <details>, no JavaScript. */
.nav-menu-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: var(--navy-700);
  cursor: pointer;
}

.nav-menu-toggle::-webkit-details-marker {
  display: none;
}

.nav-menu-toggle:hover {
  background: var(--slate-100);
}

.icon-close {
  display: none;
}

.nav-menu[open] .icon-open {
  display: none;
}

.nav-menu[open] .icon-close {
  display: block;
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.nav-menu-list {
  list-style: none;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.25rem;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
}

.nav-menu-link:hover {
  background: var(--slate-50);
  color: var(--navy-600);
}

/* ---------- Page hero ---------- */
.page-hero {
  padding: 3.5rem 0;
  background: var(--navy-700);
}

.page-hero h1 {
  margin: 0.75rem 0 0;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
}

.page-hero .job-meta {
  color: var(--slate-300);
}

.eyebrow {
  margin: 0;
  color: var(--gold-400);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  max-width: 65ch;
  margin: 1rem 0 0;
  color: var(--slate-200);
  font-size: 1.0625rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-300);
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: #fff;
}

/* ---------- Notices and alerts ---------- */
.notice {
  padding: 1.25rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
}

.notice p {
  margin: 0 0 0.5rem;
}

.notice p:last-child {
  margin-bottom: 0;
}

.section-note {
  max-width: 65ch;
  margin: 2rem 0 0;
  color: var(--slate-600);
}

.alert {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid;
  border-radius: 8px;
}

.alert p {
  margin: 0 0 0.5rem;
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert ul {
  margin: 0;
  padding-left: 1.25rem;
}

.alert a {
  color: inherit;
}

.alert-error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #7f1d1d;
}

.alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}

/* ---------- Job list and job page ---------- */
.job-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.job-card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.job-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.job-title {
  margin: 0;
  font-size: 1.25rem;
}

.job-meta {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate-500);
}

.job-summary {
  margin: 0.75rem 0 0;
  color: var(--slate-600);
}

.view-role {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--navy-600);
}

.job-description {
  max-width: 65ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.apply-box {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.apply-fallback {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--slate-600);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background: var(--navy-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-700);
}

.btn-ghost {
  background: #fff;
  border-color: var(--slate-300);
  color: var(--navy-600);
}

.btn-ghost:hover {
  background: var(--slate-50);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  background: #991b1b;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-sm {
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9375rem;
}

.nav-cta {
  min-height: 44px;
  margin-left: 0.75rem;
  font-size: 0.9375rem;
}

/* ---------- Forms ---------- */
.admin-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.login-card {
  max-width: 25rem;
  margin: 0 auto;
}

.login-card h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  color: var(--slate-900);
  font: inherit;
  font-size: 1rem; /* 16px minimum stops iOS Safari zooming in on focus */
}

.field textarea {
  resize: vertical;
}

.field input[type="file"] {
  padding: 0.625rem 0.75rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-500);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-hint {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.field-error {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--danger);
}

.optional {
  font-weight: 400;
  color: var(--slate-500);
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.field-check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
}

.field-check label {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 44px;
  margin: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  width: 100%;
}

/* ---------- Admin dashboard ---------- */
.admin-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  margin: 0;
  font-size: 1.75rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-actions form {
  margin: 0;
}

/* Phones: each row is a card (no sideways scrolling). Real table from 640px, see the media query below. */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.admin-table tbody {
  display: block;
}

.admin-table tr {
  display: block;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.admin-table td {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.375rem 0;
  text-align: right;
}

.admin-table td::before {
  content: attr(data-label);
  flex: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-500);
  text-align: left;
}

.admin-table .cell-action {
  justify-content: flex-end;
  padding-top: 0.75rem;
}

.row-inactive {
  opacity: 0.55;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 0;
  background: var(--navy-800);
  color: var(--slate-300);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* ---------- Larger screens (min-width only) ---------- */
@media (min-width: 640px) {
  .container,
  .header-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .nav-menu-list {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .page-hero {
    padding: 5rem 0;
  }

  .page-hero h1 {
    font-size: 3rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  .admin-card {
    padding: 2rem;
  }

  .form-actions {
    flex-direction: row;
  }

  .form-actions .btn {
    width: auto;
  }

  .admin-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .admin-table {
    background: #fff;
    border: 1px solid var(--slate-200);
  }

  .admin-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .admin-table tbody {
    display: table-row-group;
  }

  .admin-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .admin-table th {
    padding: 0.75rem 1rem;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    font-size: 0.9375rem;
    text-align: left;
    color: var(--slate-600);
  }

  .admin-table td {
    display: table-cell;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--slate-200);
    text-align: left;
    vertical-align: middle;
  }

  .admin-table td::before {
    content: none;
  }

  .admin-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .admin-table .cell-action {
    padding-top: 0.75rem;
    text-align: right;
  }

  .job-card {
    padding: 1.5rem 1.75rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .header-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .nav-menu-list {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
  }

  .nav-menu {
    display: none;
  }
}

/* ---------- Admin header (no public menu) ---------- */
.admin-header-inner {
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.admin-nav form {
  margin: 0;
}

.nav-button {
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- "Sister Concerns" dropdown and mobile sub-list ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  gap: 0.25rem;
}

.nav-dropdown-panel {
  visibility: hidden;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  width: 16rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

/* Invisible bridge so the panel does not close while the pointer crosses the gap. */
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5rem;
  height: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  visibility: visible;
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
}

.nav-dropdown-link:hover {
  background: var(--slate-50);
  color: var(--navy-600);
}

.nav-menu-sublist {
  list-style: none;
  margin: 0.25rem 0 0 0.75rem;
  padding: 0 0 0 0.75rem;
  display: grid;
  gap: 0.25rem;
  border-left: 1px solid var(--slate-200);
}

.nav-menu-panel {
  max-height: calc(100vh - 64px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}
/* Mobile menu: collapsible "Sister Concerns" */
.nav-sub-toggle {
  list-style: none;
  justify-content: space-between;
  cursor: pointer;
}

.nav-sub-toggle::-webkit-details-marker {
  display: none;
}

.nav-chevron {
  transition: transform 0.2s;
}

.nav-sub[open] .nav-chevron {
  transform: rotate(180deg);
}