/*
Theme Name:        Investment
Theme URI:         https://oyjencapital.com
Author:            Laura Kubiat
Author URI:        https://oyjencapital.com
Description:       A premium institutional investment theme for OYJEN Capital — cross-border capital platform focused on U.S.–Africa investment architecture.
Version:           1.0.0
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       investment
Tags:              investment, finance, institutional, custom-menu, featured-images
*/

/* ─────────────────────────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────────────────────────────── */
:root {
  --bg:           #f9f8f5;
  --bg-alt:       #ffffff;
  --navy:         #0a0e14;
  --navy-mid:     #1e2530;
  --green:        #00B82E;
  --green-light:  rgba(0, 184, 46, 0.08);
  --gold:         #FFCC33;
  --gold-dark:    #a07800;
  --text:         #1a202c;
  --muted:        #64748b;
  --border:       rgba(0, 0, 0, 0.08);
  --max-w:        1280px;
  --prose-w:      720px;
  --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* ─────────────────────────────────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 120px 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   EYEBROW
───────────────────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(255, 204, 51, 0.12);
  border: 1px solid rgba(255, 204, 51, 0.28);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: dotPulse 2.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TYPOGRAPHY HELPERS
───────────────────────────────────────────────────────────────────────────── */
.section-heading {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 24px;
}

.section-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

.gold-rule {
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), rgba(255, 204, 51, 0.25));
  border-radius: 2px;
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 184, 46, 0.30);
}

.btn-primary:hover {
  background: #00a027;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 184, 46, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(0, 0, 0, 0.14);
}

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────────────────────────────────────── */
.anim-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-up.in,
.anim-left.in,
.anim-right.in,
.anim-scale.in {
  opacity: 1;
  transform: none;
}

/* Transition delays */
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }
.d5 { transition-delay: 0.50s; }

/* ─────────────────────────────────────────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: 68px;
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.nav-logo span {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 0 18px;
  }

  .nav-cta-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(249, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 20px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────────── */
footer {
  background: var(--green);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-logo span {
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 18px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
