/* Mpalo Framework – Fonts */
@font-face {
  font-family: "Eina";
  src: url("/fonts/eina/Eina01-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Eina";
  src: url("/fonts/eina/Eina01-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ASM";
  src: url("/fonts/asm/ASM Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ASM";
  src: url("/fonts/asm/ASM Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Mpalo Framework – Typography Ramp */
/* Font setup – ensure Eina & ASM are loaded elsewhere or fall back */
:root {
  /* Spacing scale (4px baseline) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
}

/* Display – hero moments */
.display-text {
  font-family: "Eina";
  font-weight: 800;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.2;
  margin-bottom: var(--space-12);
}

/* Heading scale */
.heading-1 {
  font-family: "Eina";
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 72px;
  margin-bottom: calc(var(--space-3) * 3);
}

.heading-2 {
  font-family: "Martel", serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 37px);
  line-height: 52px;
  margin-bottom: var(--space-6);
}

.heading-3 {
  font-family: "Martel", serif;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 40px;
  margin-bottom: var(--space-5);
}

.heading-4 {
  font-family: "Martel", serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 32px;
  margin-bottom: var(--space-4);
}

/* Body text */
.body-large {
  font-family: "Martel", serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 32px;
  margin-bottom: var(--space-8);
}

.body-text {
  font-family: "Martel", serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: var(--space-6);
}

.body-small {
  font-family: "Martel", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: var(--space-5);
}

/* Caption */
.caption-text {
  font-family: "Martel", serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}



/* Header Element Style */
#main-header {
  margin: 1rem;
  width: calc(100% - 2rem);
  border-radius: 12px;
}

/* Header Layout */
#main-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem; /* 24px */
}

/* Utility helpers */
.text-center { text-align: center; }
.max-w-prose { max-width: 65ch; }

@keyframes spin-dynamic {
  from { transform: var(--base-transform) rotate(0deg) scale(var(--hover-scale)); }
  to   { transform: var(--base-transform) rotate(360deg) scale(var(--hover-scale)); }
}

@keyframes spin-dynamic-reverse {
  from { transform: var(--base-transform) rotate(0deg) scale(var(--hover-scale)); }
  to   { transform: var(--base-transform) rotate(-360deg) scale(var(--hover-scale)); }
}

@keyframes wobble {
  0% { transform: rotate(-4deg) translateX(-3px); }
  50% { transform: rotate(4deg) translateX(3px); }
  100% { transform: rotate(-4deg) translateX(-3px); }
}

.rotating-flower {
  position: absolute;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  --base-transform: translate(0, 0);
  --rot: 0deg;
  --hover-scale: 1;
  transform: var(--base-transform) rotate(var(--rot)) scale(var(--hover-scale));
  animation: none !important; /* JS will drive animation */
}

.flower-2 { /* Top-right of its button */
  width: 40px; height: 40px; top: -18px; right: -15px;
}
.flower-3 { /* Top-left of its button */
  width: 28px; height: 28px; top: -10px; left: -5px;
}
.flower-5 { /* Bottom-right of its button */
  width: 38px; height: 38px; bottom: -18px; right: 5px;
}
.flower-7 { /* Bottom-left of its button */
  width: 50px; height: 50px; bottom: -25px; left: -20px;
  opacity: 0.6;
}

.relative:hover .rotating-flower {
    opacity: 1;
    --hover-scale: 1.1;
}

.flower-front { z-index: 1; }

@media (max-width: 640px) {
  .flower-3 { display: none; }
}

/* Styles from opportunities pages */
body.opportunity-page {
    padding-top: 6rem;
    background-color: #101017;
    color: #ffffff; 
    font-family: "Martel", serif; 
    font-weight: 400; 
    line-height: 1.6; 
}
@media (min-width: 768px) { body.opportunity-page { padding-top: 8rem; } }

#main-header nav a:not(:has(img)), #mobile-menu a { transition: color 0.3s; }
#main-header nav a:not(:has(img)):hover, #mobile-menu a:hover { color: #f9ebe5; }
footer a:hover { color: #f9ebe5; }

@keyframes fadeInUpStaggered {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Opportunity Page Specifics */
.content-block {
    background-color: rgba(16, 16, 23, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 4px 8px rgba(0,0,0,0.1);
}
.content-block h2, .content-block h3 {
    color: #f3f4f6; 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
}
.content-block p, .content-block li { color: #e5e7eb; font-weight: 300; line-height: 1.7; }
.content-block strong { font-weight: 600; color: #f9fafb; }
.content-block a { color: #f9ebe5; text-decoration: underline; }
.content-block a:hover { text-decoration: none; opacity: 0.8; }

.content-block ul:not(.custom-bullets-list):not(.nested-custom-list) { list-style-position: inside; margin-left: 0.5rem; margin-bottom:1rem;}
.content-block ul:not(.custom-bullets-list):not(.nested-custom-list) li { margin-bottom: 0.5rem; }

.content-block ul.custom-bullets-list { list-style-type: none; padding-left: 0; margin-left:0; margin-bottom:1rem; }
.content-block ul.custom-bullets-list > li { position: relative; padding-left: 1.75em; margin-bottom: 0.75em; }
.content-block ul.custom-bullets-list > li::before {
    content: '•';
    position: absolute;
    left: 0.5em;
    color: #f9ebe5;
    font-weight: bold;
    display: inline-block;
    width: 1em;
}
.content-block ul.custom-bullets-list ul.nested-custom-list { 
    list-style-type: none; 
    padding-left: 1.5em; 
    margin-top: 0.5rem; 
    margin-bottom: 0.5rem;
}
.content-block ul.custom-bullets-list ul.nested-custom-list li { padding-left: 1.75em; margin-bottom: 0.5em;}
.content-block ul.custom-bullets-list ul.nested-custom-list li::before {
    content: '–'; 
    position: absolute;
    left: 0.5em; 
    color: #f9ebe5; 
    font-weight: normal;
    display: inline-block;
    width: 1em;
}

.apply-button { display: inline-block; background-color: #f9ebe5; border: 2px solid #f9ebe5; color: #101017; font-weight: 600; padding: 0.75rem 2rem; border-radius: 0.5rem; transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.2s; font-size: 1rem; text-align: center; }
.apply-button:hover { background-color: transparent; border-color: #f9ebe5; color: #f9ebe5; transform: scale(1.05); }

.breadcrumb a { color: #f9ebe5; }
.breadcrumb span { color: #d1d5db; }

/* Header navigation link stretching */
header nav ul li a {
  transform: scaleX(1.08);
  display: inline-block;
}

/* Increase header navigation spacing */
header nav ul {
  gap: 2rem;
}

@media (min-width: 1024px) {
  header nav ul {
    gap: 1rem;
  }
}
