/**
 * Midhati Jobs child theme — brand tokens from midhati.com only.
 *
 * Fonts: EB Garamond (headings/body), Inter (UI/nav/buttons)
 * Colors: navy #0C1F39 / #1B3A61, gold #C9A32D, text #2e2e2e / #5a5a5a, surfaces #f4f6f9 / #f8f6f2
 */

:root {
  --mj-navy: #0c1f39;
  --mj-navy-mid: #1b3a61;
  --mj-navy-hover: #15315b;
  --mj-gold: #c9a32d;
  --mj-gold-soft: rgba(201, 163, 45, 0.18);
  --mj-text: #2e2e2e;
  --mj-muted: #5a5a5a;
  --mj-surface: #f4f6f9;
  --mj-cream: #f8f6f2;
  --mj-white: #ffffff;
  --mj-border: rgba(12, 31, 57, 0.12);
  --mj-font-heading: "EB Garamond", Georgia, "Times New Roman", serif;
  --mj-font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --mj-font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --mj-header-h: 78px;
}

body.midhati-jobs-theme,
body.midhati-brand {
  font-family: var(--mj-font-body) !important;
  font-size: 18px;
  line-height: 1.7;
  color: var(--mj-text) !important;
  background: var(--mj-surface) !important;
}

body.midhati-jobs-theme h1:not(.mj-hero__title),
body.midhati-jobs-theme h2,
body.midhati-jobs-theme h3,
body.midhati-jobs-theme h4,
body.midhati-jobs-theme .entry-title {
  font-family: var(--mj-font-heading) !important;
  color: var(--mj-navy-mid) !important;
  font-weight: 600;
}

/* Hero must win over Astra/global h1 navy */
body.midhati-jobs-theme .mj-hero,
body.midhati-jobs-theme .mj-hero h1,
body.midhati-jobs-theme .mj-hero .mj-hero__title,
body.midhati-jobs-theme .mj-hero__title {
  color: #ffffff !important;
}

body.midhati-jobs-theme .mj-hero__lead {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.midhati-jobs-theme .mj-hero__brand {
  color: var(--mj-gold) !important;
}

/* Full-bleed hero (break out of Astra content box) */
body.midhati-jobs-theme .site-content .ast-container,
body.midhati-jobs-theme .site-content .ast-container-fluid {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.midhati-jobs-theme .mj-home {
  width: 100%;
}

body.midhati-jobs-theme .mj-hero {
  width: 100%;
  margin: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(135deg, #0c1f39 0%, #1b3a61 100%) !important;
  padding: clamp(3.5rem, 9vw, 6rem) 1.25rem !important;
}

body.midhati-jobs-theme .mj-hero__actions .mj-btn--primary,
body.midhati-jobs-theme .mj-btn.mj-btn--primary,
body.midhati-jobs-theme button.mj-btn--primary,
body.midhati-jobs-theme a.mj-btn--primary {
  background: #c9a32d !important;
  color: #0c1f39 !important;
  border-color: #c9a32d !important;
  text-decoration: none !important;
}

body.midhati-jobs-theme .mj-hero__actions .mj-btn--ghost,
body.midhati-jobs-theme a.mj-btn--ghost {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
}

body.midhati-jobs-theme .mj-section,
body.midhati-jobs-theme .mj-search-panel {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Soften logo white plate on navy header */
body.midhati-jobs-theme .mj-site-header__logo img,
body.midhati-jobs-theme .mj-site-header .custom-logo {
  background: transparent !important;
  border-radius: 6px;
  max-height: 48px !important;
  width: auto !important;
  box-shadow: none !important;
}

body.midhati-jobs-theme a {
  color: var(--mj-navy-mid);
}

/* Hide default Astra header/footer remnants if any */
body.midhati-jobs-theme .main-header-bar,
body.midhati-jobs-theme .ast-above-header,
body.midhati-jobs-theme .ast-below-header,
body.midhati-jobs-theme .site-footer,
body.midhati-jobs-theme .ast-footer-overlay {
  display: none !important;
}

body.midhati-jobs-theme #content,
body.midhati-jobs-theme .site-content {
  padding-top: 0;
}

body.midhati-front .ast-plain-container .entry-header,
body.midhati-front .entry-header,
body.midhati-jobs-theme.page .entry-header {
  display: none !important;
}

/* ——— Header ——— */
.mj-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--mj-navy) !important;
  border-bottom: 1px solid rgba(201, 163, 45, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

body.admin-bar .mj-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .mj-site-header {
    top: 46px;
  }
}

.mj-header-spacer {
  height: var(--mj-header-h);
}

body.admin-bar .mj-header-spacer {
  height: calc(var(--mj-header-h) + 32px);
}

.mj-site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--mj-header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mj-site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.mj-site-header__brand .custom-logo-link,
.mj-site-header__brand .custom-logo {
  display: block;
  max-height: 52px;
  width: auto;
}

.mj-site-header__logo img {
  max-height: 52px;
  width: auto;
}

.mj-site-header__wordmark {
  font-family: var(--mj-font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
}

.mj-site-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mj-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.mj-nav-list a {
  font-family: var(--mj-font-ui) !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mj-nav-list a:hover,
.mj-nav-list .current-menu-item > a,
.mj-nav-list .current_page_item > a {
  color: var(--mj-gold) !important;
  border-bottom-color: var(--mj-gold);
}

.mj-site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.mj-link-quiet {
  font-family: var(--mj-font-ui) !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
}

.mj-link-quiet:hover {
  color: var(--mj-gold) !important;
}

.mj-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--mj-gold) !important;
  color: var(--mj-navy) !important;
  font-family: var(--mj-font-ui) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mj-btn-gold:hover {
  background: #d4b245 !important;
  color: var(--mj-navy) !important;
  transform: translateY(-1px);
}

.mj-site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.mj-site-header__toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

@media (max-width: 960px) {
  .mj-site-header__toggle {
    display: inline-flex;
  }

  .mj-site-header__nav {
    position: fixed;
    inset: calc(var(--mj-header-h) + 32px) 0 auto 0;
    top: var(--mj-header-h);
    background: var(--mj-navy);
    border-bottom: 1px solid rgba(201, 163, 45, 0.35);
    padding: 1.25rem;
    display: none;
    justify-content: flex-start;
  }

  body.admin-bar .mj-site-header__nav {
    top: calc(var(--mj-header-h) + 32px);
  }

  .mj-site-header.is-open .mj-site-header__nav {
    display: block;
  }

  .mj-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .mj-site-header__actions {
    display: none;
  }

  .mj-site-header.is-open .mj-site-header__actions {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--mj-navy);
    border-top: 1px solid rgba(201, 163, 45, 0.35);
    justify-content: flex-start;
  }
}

/* ——— Footer ——— */
.mj-site-footer {
  background: var(--mj-navy);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3rem;
  border-top: 1px solid rgba(201, 163, 45, 0.35);
}

.mj-site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.mj-site-footer__name {
  font-family: var(--mj-font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.mj-site-footer__tag {
  font-family: var(--mj-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1rem;
}

.mj-site-footer__heading {
  font-family: var(--mj-font-ui) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mj-gold) !important;
  margin: 0 0 1rem !important;
}

.mj-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mj-site-footer li {
  margin: 0 0 0.55rem;
}

.mj-site-footer a {
  font-family: var(--mj-font-ui);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

.mj-site-footer a:hover {
  color: var(--mj-gold) !important;
}

.mj-site-footer__ext {
  color: var(--mj-gold) !important;
  font-weight: 600;
}

.mj-site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  text-align: center;
}

.mj-site-footer__bar p {
  margin: 0;
  font-family: var(--mj-font-ui);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .mj-site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .mj-site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Single job/company */
.mj-single {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

.mj-single__panel {
  background: var(--mj-white);
  border: 1px solid var(--mj-border);
  border-radius: 12px;
  padding: 1.35rem;
  margin: 1rem 0;
}

.mj-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  color: var(--mj-muted);
  font-family: var(--mj-font-ui);
  font-size: 0.92rem;
}

.mj-apply-gate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
