/* ===================================================================
   MHGlobal Career — Stylesheet
   Breakpoints: Mobile <744px | Tablet 744–1199px | Desktop ≥1200px
   =================================================================== */

:root {
  --white: #FFFFFF;
  --haze-50: #F7FAFC;
  --cello-900: #1A365D;
  --gold-400: #D4AF37;
  --gold-900: #5C4020;
  --gray-800: #344258;
  --cello-500: #2F78C8;
  --gold-600: #A57B22;
  --gray-50: #F5F7FA;
  --gold-50: #FBF8EB;
  --gray-600: #485F81;
  --gray-100: #E5E7EB;
  --haze-900: #274353;
  --gray-500: #5C779B;
  --gray-900: #2D3748;
  --gray-950: #1F2532;
  --gray-300: #AAB9CF;
  --cello-700: #1B4A89;
  --cello-950: #12233F;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 80px;
  --pad-mobile: 16px;
  --pad-tablet: 32px;
  --pad-desktop: 150px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.5;
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: none; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; }

.section-inner {
  width: 100%;
  padding: 48px var(--pad-mobile);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  padding: 18px 24px;
  text-align: center;
  transition: opacity .15s ease, transform .15s ease, background-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { opacity: .95; }
.btn:active { transform: scale(.98); }
.btn--gold { background: var(--gold-400); color: var(--cello-900); }
.btn--gold:hover { background: #825C1E; color: #FFFFFF; }
.btn--outline { background: transparent; color: var(--white); border: 2px solid var(--white); box-shadow: 0 4px 4px rgba(0,0,0,.25); }
.btn--outline:hover { background: #C39C2B; border-color: #C39C2B; color: #FFFFFF; }
.btn--navy { background: var(--cello-900); color: var(--white); border-radius: 8px; padding: 16px 24px; font-family: var(--font-body); font-weight: 700; }
.btn--navy:hover { background: #E4ECFA; color: #1A365D; }
.btn--nav { display: none; padding: 16px 32px; border-radius: 4px; font-size: 16px; font-weight: 600; }
.btn--nav:hover { opacity: .95; }
.btn--full { width: 100%; }
.btn--lg { width: 100%; }

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--pad-mobile);
}
.logo { display: flex; align-items: center; gap: 8px; opacity: .85; }
.logo__mark { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.logo__text { display: flex; flex-direction: column; align-items: center; line-height: 1.1; color: var(--cello-950); }
.logo__text strong { font-size: 14px; font-weight: 700; }
.logo__text small { font-size: 11px; font-weight: 500; letter-spacing: .03em; }

.nav-links { display: none; }
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cello-900);
  border-radius: 2px;
}

/* ---------- Mobile drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(18,35,63,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 199;
}
.drawer-overlay.is-active { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 360px;
  height: 100%;
  background: var(--cello-900);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 200;
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  position: relative;
  width: 20px; height: 20px;
}
.drawer-close span {
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: var(--white);
}
.drawer-close span:first-child { transform: rotate(45deg); }
.drawer-close span:last-child { transform: rotate(-45deg); }

.drawer-links { display: flex; flex-direction: column; gap: 40px; }
.drawer-links a {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  margin-top: var(--nav-height);
  padding: 48px var(--pad-mobile);
  background: linear-gradient(94deg, var(--cello-900) 0%, var(--haze-900) 100%);
}
.hero__inner { display: flex; flex-direction: column; gap: 48px; }
.hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.65;
}
.hero__sub {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--haze-50);
  text-align: center;
  line-height: 1.7;
}
.hero__buttons { display: flex; flex-direction: column; gap: 16px; }

/* ===================================================================
   WHO WE HELP
   =================================================================== */
.who-help { background: var(--gray-50); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; text-align: center; }
.who-help__title { font-size: 28px; font-weight: 600; color: var(--gold-900); }
.section-sub { font-size: 16px; color: var(--gray-800); }

.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.audience { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.audience__icon { width: 24px; height: 24px; }
.audience h3 { font-size: 18px; font-weight: 600; color: var(--gold-600); }
.audience p { font-size: 14px; font-weight: 500; color: var(--cello-900); line-height: 1.5; }

/* ===================================================================
   WHY WE EXIST
   =================================================================== */
.why-exist { background: var(--gold-50); }
.why-exist__head { text-align: center; margin-bottom: 32px; }
.why-exist__head h2 { font-size: 28px; font-weight: 600; color: var(--cello-900); }
.why-exist__rule { display: none; margin: 16px auto 0; }
.why-exist__body { display: flex; flex-direction: column; gap: 40px; max-width: 840px; margin: 0 auto; }
.statement { display: flex; flex-direction: column; gap: 12px; align-items: left; text-align: left; }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--gold-600); letter-spacing: .04em; }
.statement__text { font-size: 18px; color: var(--cello-900); line-height: 1.6; }
.statement__text--italic { font-style: italic; font-size: 28px; font-weight: 500; }

/* ===================================================================
   SERVICES
   =================================================================== */
.services { background: var(--white); }
.services__title { font-size: 28px; font-weight: 600; color: var(--cello-900); text-align: center; margin-bottom: 56px; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }

.card--service {
  background: var(--gray-50);
  border: 1px solid #EBEEF3;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,.07);
}
.card--service h3 { font-size: 24px; font-weight: 600; color: var(--cello-900); padding-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 4px; padding-bottom: 24px; }
.price__currency { font-family: var(--font-heading); font-size: 18px; color: var(--gray-600); }
.price__amount { font-size: 36px; font-weight: 700; color: var(--gold-600); }
.price__freq { font-size: 14px; color: var(--gray-600); }
.card__desc { font-family: var(--font-body); font-size: 16px; color: var(--gray-800); line-height: 1.35; padding-bottom: 56px; flex-grow: 1; }

/* ===================================================================
   HOW IT WORKS
   =================================================================== */
.how-it-works { background: var(--haze-900); }
.how-it-works h2 { font-size: 28px; font-weight: 600; color: var(--white); text-align: center; margin-bottom: 64px; }
.steps { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; gap: 24px; align-items: flex-start; }
.step__num { font-size: 32px; font-weight: 700; color: var(--gold-400); line-height: 1; flex-shrink: 0; }
.step h3 { font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.step p { font-size: 14px; color: var(--gold-50); }

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.testimonials { background: var(--haze-50); }
.testimonials h2 { font-size: 28px; font-weight: 600; color: var(--cello-900); text-align: center; margin-bottom: 56px; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card--testimonial {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card--testimonial h3 { font-size: 18px; font-weight: 700; color: var(--cello-900); }
.card--testimonial .role { font-size: 14px; color: var(--gray-500); margin-top: 2px; }
.card--testimonial .quote { font-family: var(--font-heading); font-style: italic; font-size: 16px; color: var(--gray-900); line-height: 1.5; }
.stars { color: var(--gold-400); font-size: 20px; letter-spacing: 2px; }

/* ===================================================================
   FOUNDER
   =================================================================== */
.founder { background: var(--white); }
.founder__grid { display: flex; flex-direction: column; gap: 24px; text-align: center; align-items: center; }
.founder__content { display: flex; flex-direction: column; align-items: center; }
.founder h2 { font-size: 28px; font-weight: 600; color: var(--cello-900); padding-bottom: 16px; }
.founder__name { font-size: 24px; font-weight: 700; color: var(--gold-600); padding-bottom: 24px; }
.founder__bio { font-family: var(--font-heading); font-size: 18px; color: var(--gray-800); line-height: 1.6; max-width: 720px; }
.founder__bio + .founder__bio { margin-top: 28px; }
.founder__media { width: 100%; height: 567px; overflow: hidden; border-radius: 4px; }
.founder__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }

/* ===================================================================
   FAQ
   =================================================================== */
.faq { background: var(--gray-50); }
.faq h2 { font-size: 28px; font-weight: 600; color: var(--cello-900); margin-bottom: 48px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-item:first-child { border-top: 1px solid var(--gray-100); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 12px;
  text-align: left;
}
.faq-question span:first-child { font-size: 16px; font-weight: 500; color: var(--cello-900); }
.faq-icon { position: relative; width: 24px; height: 24px; flex-shrink: 0; }
.faq-icon span {
  position: absolute;
  top: 50%; left: 50%;
  background: var(--cello-900);
  transition: transform .2s ease;
}
.faq-icon span:first-child { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon span:last-child { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-icon span:last-child { transform: translate(-50%, -50%) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-answer p { font-family: var(--font-heading); font-size: 14px; color: var(--gray-800); line-height: 1.8; padding-bottom: 24px; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { background: var(--cello-900); }
.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  padding: 48px var(--pad-mobile) 0;
}
.footer__logo {
  width: 81px; height: 84px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
  padding: 1px;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer__name { font-size: 20px; font-weight: 700; color: var(--white); }
.footer__tagline { font-size: 16px; color: var(--gray-300); max-width: 250px; }
.footer__col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__col h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.footer__col a, .footer__col p { font-size: 14px; color: var(--gray-300); }
.footer__col a:hover { color: #485F81; }
.footer__bottom {
  border-top: 1px solid var(--cello-700);
  margin: 32px var(--pad-mobile) 0;
  padding: 24px 0 32px;
  text-align: center;
}
.footer__bottom p { font-size: 14px; color: var(--gray-300); }

/* ===================================================================
   TABLET — 744px and up
   =================================================================== */
@media (min-width: 744px) {
  .section-inner { padding: 64px var(--pad-tablet); }

  .hero { padding: 64px var(--pad-tablet); }
  .hero__inner { gap: 48px; }
  .hero h1 { font-size: 44px; }
  .hero__sub { font-size: 16px; }
  .hero__buttons { flex-direction: column; }

  .who-help__title { font-size: 32px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; row-gap: 48px; }

  .why-exist__head h2 { font-size: 32px; }
  .why-exist__rule { display: block; }
  .statement__text--italic { font-size: 24px; }
  .statement__text { font-size: 16px; }

  .services__title { font-size: 32px; text-align: left; }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card--wide:last-child { grid-column: 1 / -1; max-width: 360px; }

  .how-it-works h2 { font-size: 32px; }
  .step__num { font-size: 40px; }
  .step h3 { font-size: 20px; }

  .testimonials h2 { font-size: 32px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .founder h2 { font-size: 28px; }
  .founder__media { height: 560px; }

  .faq h2 { font-size: 28px; }
  .faq-question span:first-child { font-size: 18px; }

  .footer__top { flex-direction: row; align-items: flex-start; text-align: left; padding-top: 64px; }
  .footer__brand { align-items: flex-start; flex: 1 0 0; }
  .footer__col { flex: 1 0 0; align-items: flex-start; }
  .footer__bottom { margin: 32px var(--pad-tablet) 0; text-align: left; }

  /* Nav switches to hamburger-only at tablet too (drawer still used) */
  .navbar__inner { padding: 16px var(--pad-tablet); }

  /* Tablet modals — centered sheet with some side margin */
  .modal { align-items: center; padding: 24px; }
  .modal__inner {
    border-radius: 16px;
    max-width: 640px;
    max-height: 88dvh;
  }
  .modal__top { padding: 32px 32px 0; }
  .modal__body { padding: 12px 32px 0; }
  .modal__footer { padding: 12px 32px 32px; flex-direction: row; justify-content: space-between; }
  .modal__price { font-size: 32px; }
  .modal__enroll { width: auto; min-width: 200px; }
  .modal__intro { font-size: 16px; line-height: 24px; }
  .modal__checklist li, .modal__bullets li, .modal__text-block p { font-size: 16px; line-height: 24px; }
}

/* ===================================================================
   SERVICE MODALS
   =================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(18,35,63,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 299;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;        /* sheet slides up from bottom on mobile */
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__inner {
  background: #F7FAFC;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 24px rgba(0,0,0,.18);
  transform: translateY(40px);
  transition: transform .3s ease;
}
.modal.is-open .modal__inner {
  transform: translateY(0);
}

/* top strip — sticky */
.modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
  flex-shrink: 0;
}
.modal__heading h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  padding-bottom: 16px;
}

/* close × */
.modal__close {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}
.modal__close span {
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2px;
  background: var(--gray-900);
}
.modal__close span:first-child { transform: translateY(-50%) rotate(45deg); }
.modal__close span:last-child  { transform: translateY(-50%) rotate(-45deg); }

/* scrollable body */
.modal__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 24px 0;
  flex: 1;
}
.modal__intro {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-600);
  line-height: 22px;
  padding-bottom: 32px;
}
.modal__subhead {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--cello-700);
  line-height: 28px;
  padding-bottom: 16px;
}

/* checkmark list */
.modal__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 48px;
}
.modal__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #3B4D69;
  line-height: 22px;
}
.modal__checklist li::before {
  content: '✓';
  color: var(--gold-600);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* bullet list */
.modal__bullets {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 48px;
}
.modal__bullets li {
  font-family: var(--font-body);
  font-size: 14px;
  color: #3B4D69;
  line-height: 22px;
}

/* plain text paragraphs inside modal */
.modal__text-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 48px;
}
.modal__text-block p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #3B4D69;
  line-height: 22px;
}

/* footer — price + enroll */
.modal__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 24px;
  flex-shrink: 0;
}
.modal__price {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-600);
  letter-spacing: .01em;
}
.modal__enroll {
  width: 100%;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  padding: 18px 40px;
}

/* ===================================================================
   DESKTOP — 1200px and up
   =================================================================== */
@media (min-width: 1200px) {
  .section-inner { padding: 96px var(--pad-desktop); }

  .navbar__inner { padding: 24px var(--pad-desktop); }
  .nav-links { display: flex; gap: 32px; }
  .nav-links a { font-size: 16px; color: var(--gray-900); padding: 4px; }
  .nav-links a:hover { color: #A57B22; }
  .btn--nav { display: inline-flex; }
  .hamburger { display: none; }

  .hero { padding: 120px var(--pad-desktop); }
  .hero h1 { font-size: 56px; text-align: left; max-width: 900px; }
  .hero__sub { font-size: 18px; text-align: left; max-width: 894px; }
  .hero__buttons { flex-direction: row; }
  .btn--lg { width: auto; }

  .section-head { text-align: left; }
  .who-help__title { font-size: 40px; }
  .section-sub { font-size: 18px; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; row-gap: 48px; }
  .audience h3 { font-size: 20px; }
  .audience p { font-size: 16px; }

  .why-exist__head { text-align: left; }
  .why-exist__head h2 { font-size: 40px; }
  .why-exist__rule { margin: 16px 0 0; }
  .why-exist__body { max-width: 840px; margin: 32px 0 0; }
  .statement__text--italic { font-size: 28px; }
  .statement__text { font-size: 18px; }

  .services__title { font-size: 40px; }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card--wide:last-child { grid-column: auto; max-width: none; }
  .card--service h3 { font-size: 24px; }

  .how-it-works h2 { font-size: 40px; text-align: left; }
  .step__num { font-size: 48px; }
  .step h3 { font-size: 22px; }
  .step p { font-size: 16px; }

  .testimonials h2 { font-size: 40px; text-align: left; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .founder__grid { flex-direction: row; align-items: stretch; text-align: left; gap: 64px; }
  .founder__content { align-items: flex-start; flex: 1; }
  .founder__media { flex: 1; height: auto; }
  .founder h2 { font-size: 40px; }

  .faq h2 { font-size: 40px; }
  .faq-question span:first-child { font-size: 20px; }
  .faq-answer p { font-size: 16px; }

  /* Desktop modals — larger, centred */
  .modal { align-items: center; padding: 40px; }
  .modal__inner {
    border-radius: 16px;
    max-width: 800px;
    max-height: 85dvh;
  }
  .modal__top { padding: 48px 48px 0; }
  .modal__heading h2 { font-size: 32px; padding-bottom: 24px; }
  .modal__body { padding: 12px 48px 0; }
  .modal__footer { padding: 12px 48px 48px; flex-direction: row; justify-content: space-between; }
  .modal__price { font-size: 48px; }
  .modal__enroll { width: 276px; }

  .footer__top { padding-top: 64px; }
}