/* =========================================================
   MPal Resources — Stylesheet
   Sections: Reset, Variables, Base, Layout, Header/Nav,
   Buttons, Hero, About, Opportunities, Contact, Footer,
   Utilities, Responsive
   ========================================================= */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ----- Variables ----- */
:root {
  --color-orange: #ffa101;
  --color-orange-dark: #e88f00;
  --color-yellow: #f9d933;
  --color-dark: #272525;
  --color-dark-soft: #3a3838;
  --color-text: #2b2a29;
  --color-text-muted: #625f5d;
  --color-bg: #ffffff;
  --color-bg-alt: #faf9f7;
  --color-border: #ececea;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-pill: 999px;
  --radius-card: 18px;

  --shadow-sm: 0 2px 8px rgba(39, 37, 37, 0.06);
  --shadow-md: 0 12px 32px rgba(39, 37, 37, 0.10);

  --container-width: 1180px;
  --transition: 0.2s ease;
}

/* ----- Base ----- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--color-dark); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-orange);
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-orange-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}
.btn-outline:hover {
  background: var(--color-dark);
  color: #fff;
}

.btn-accent {
  background: var(--color-yellow);
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background: #f0c800;
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ----- Header / Navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 44px;
  width: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--color-orange-dark); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-apply { padding: 11px 24px; font-size: 0.95rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 100px;
  background: linear-gradient(180deg, #fffaf2 0%, var(--color-bg) 60%);
}

.hero-shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; opacity: 0.16; }
.shape-orange {
  width: 480px; height: 480px;
  background: var(--color-orange);
  top: -180px; right: -140px;
}
.shape-dark {
  width: 340px; height: 340px;
  background: var(--color-dark);
  bottom: -160px; left: -120px;
  opacity: 0.08;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--color-orange-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-logo { width: 260px; height: auto; }

/* ----- Section headings (shared) ----- */
.section-label {
  display: inline-block;
  font-weight: 700;
  color: var(--color-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.section-intro {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 44px;
}

/* ----- About ----- */
.about { padding: 96px 0; background: var(--color-bg); }

.about-grid { margin-bottom: 56px; }
.about-text { max-width: 800px; }
.about-text p { color: var(--color-text-muted); font-size: 1.05rem; margin-bottom: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 161, 1, 0.14);
  color: var(--color-orange-dark);
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.98rem; }

/* ----- Opportunities ----- */
.opportunities { padding: 96px 0; background: var(--color-bg-alt); }

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.role-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-dark);
  color: var(--color-orange);
  margin-bottom: 18px;
}
.role-icon svg { width: 26px; height: 26px; }

.role-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.role-card p { color: var(--color-text-muted); font-size: 0.98rem; }

.opportunities-note {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 720px;
  margin-bottom: 36px;
}

.opportunities-cta { display: flex; }

/* ----- Contact ----- */
.contact {
  padding: 100px 0;
  background: var(--color-dark);
  color: #fff;
}

.section-label-light { color: var(--color-orange); }
.section-heading-light { color: #fff; }

.contact-cta { margin-bottom: 28px; }

.contact-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}
.contact-card h3 {
  color: var(--color-orange);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.contact-card p { font-size: 1.05rem; }
.contact-card a { text-decoration: underline; text-underline-offset: 3px; }
.contact-card a:hover { color: var(--color-orange); }

/* ----- Footer ----- */
.site-footer {
  background: #1c1a1a;
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-fb { color: rgba(255, 255, 255, 0.72); text-decoration: underline; text-underline-offset: 3px; }
.footer-fb:hover { color: var(--color-orange); }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual-card { padding: 32px; }
  .hero-visual-logo { width: 200px; }
  .feature-grid, .role-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hamburger { display: inline-flex; }

  .primary-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #fff;
    padding: 28px 24px;
    gap: 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    overflow-y: auto;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-link::after { display: none; }

  .nav-apply { align-self: flex-start; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .hero { padding: 64px 0 72px; }
  .about, .opportunities, .contact { padding: 64px 0; }
  .feature-grid, .role-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
