/* Alfiliyn brand overrides — works with Tailwind CDN */

:root {
  --cream: #f5f0e8;
  --olive: #3d3d29;
  --body: #5a5a48;
  --bronze: #a68966;
  --gold: #c18540;
  --ribbon: #c18540;
  --header-h: 4.75rem;
  --font-sans: "Inter", system-ui, sans-serif;
}

html {
  scroll-padding-top: var(--header-h);
  font-family: var(--font-sans);
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
  color: var(--body);
  background-color: var(--cream);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Subtle paper grain */
.bg-paper {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* Navbar — logo only, larger mark */
.brand-logo {
  max-width: min(320px, 68vw);
}

@media (min-width: 1024px) {
  .brand-logo {
    max-width: 360px;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 7.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 10.75rem;
  }
}

/* ── Ecobank-style 3-tier header (Alfiliyn colors) ── */
.site-header-mega {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.header-tier1 {
  background: #1a1f14;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-segment {
  padding: 0.15rem 0.35rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.header-segment:hover,
.header-segment.is-active {
  color: var(--gold);
}

.header-segment.is-active {
  position: relative;
}

.header-segment.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #3d3d29;
}

.header-sep {
  color: rgba(255, 255, 255, 0.25);
  user-select: none;
}

.header-social {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.header-social:hover {
  color: var(--gold);
}

.header-tier2 {
  background: linear-gradient(180deg, #454530 0%, #3d3d29 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-utility {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s;
}

.header-utility:hover {
  color: var(--gold);
}

.header-menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.375rem;
  color: #fff;
}

.header-tier3 {
  background: #4a4a36;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.header-primary-nav {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  min-height: 3rem;
}

.nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  color: rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s;
}

.nav-home:hover,
.nav-home.is-active {
  background: rgba(0, 0, 0, 0.12);
  color: var(--gold);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger,
.nav-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 3rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-primary-link {
  align-self: center;
}

.nav-dropdown-trigger:hover,
.nav-primary-link:hover,
.nav-dropdown-trigger.is-active,
.nav-primary-link.is-active {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

.nav-chevron {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.75;
}

.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 15rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid rgba(166, 137, 102, 0.25);
  border-radius: 0 0 0.5rem 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel,
.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel .nav-link {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--olive);
  border-radius: 0;
}

.nav-dropdown-panel .nav-link:hover,
.nav-dropdown-panel .nav-link.is-active {
  background: rgba(193, 133, 64, 0.1);
  color: var(--gold);
}

.header-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem 1rem;
  background: #3d3d29;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.header-mobile-nav.is-open {
  display: flex;
}

.header-mobile-nav .nav-link {
  padding: 0.65rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 0.375rem;
}

.header-mobile-nav .nav-link:hover,
.header-mobile-nav .nav-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.header-mobile-nav .nav-link-cta {
  margin-top: 0.25rem;
  background: var(--gold);
  color: #fff;
  text-align: center;
}

.header-mobile-nav .nav-link-cta:hover {
  background: #a86f35;
  color: #fff;
}

/* Active nav link (tier 3 + mobile) */
.nav-link.is-active {
  color: var(--gold);
  font-weight: 600;
}

.nav-dropdown-trigger.is-active,
.nav-primary-link.is-active {
  color: var(--gold);
}

/* Left orange ribbon (letterhead motif) */
.brand-ribbon::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ribbon) 0%, #a86f35 100%);
  z-index: 40;
  pointer-events: none;
}

@media (max-width: 640px) {
  .brand-ribbon::before {
    width: 4px;
  }
}

/* Gold dot-line divider */
.dot-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.dot-line::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.dot-line::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(193, 133, 64, 0.15));
}

.dot-line--hero {
  margin: 1rem 0 0.25rem;
}

/* Bronze icon badge */
.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #c9a06a, #8c6f45);
  color: #fff;
  flex-shrink: 0;
}

.icon-badge svg {
  width: 1.35rem;
  height: 1.35rem;
}

/* Overview — edge-to-edge image column, white panel vs cream hero */
.overview-split {
  overflow: hidden;
  background-color: #ffffff;
}

.overview-split__content {
  background-color: #ffffff;
}

.overview-split__media {
  isolation: isolate;
  min-height: 22rem;
}

@media (min-width: 640px) {
  .overview-split__media {
    min-height: 26rem;
  }
}

@media (min-width: 1024px) {
  .overview-split__content {
    border-right: 1px solid rgba(166, 137, 102, 0.15);
    min-height: 40rem;
  }

  .overview-split__media {
    min-height: 40rem;
  }
}

@media (min-width: 1280px) {
  .overview-split__content,
  .overview-split__media {
    min-height: 44rem;
  }
}

/* Hero — full viewport height */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
}

/* Hero overlay */
/* Hero slideshow */
.hero-slideshow {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slideshow-controls .hero-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}

.hero-slideshow-controls .hero-slide-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-slide-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.hero-slide-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

.hero-slide-dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Hero — dark overlay for readable light text */
.hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(18, 22, 16, 0.92) 0%,
    rgba(28, 26, 20, 0.78) 42%,
    rgba(12, 14, 12, 0.55) 100%
  );
}

.hero-content .dot-line--hero::after {
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.12));
}

/* Slightly lighter icons on dark hero */
.hero-section .hero-float-icon {
  color: #fff;
  opacity: 0.06;
}

/* Hero — floating army icons (decorative) */
.hero-icons-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.hero-float-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  opacity: 0.07;
  will-change: transform;
}

.hero-float-icon svg {
  width: 100%;
  height: auto;
}

.hero-anim-a {
  animation: hero-drift-a 24s ease-in-out infinite;
}

.hero-anim-b {
  animation: hero-drift-b 28s ease-in-out infinite;
}

.hero-anim-c {
  animation: hero-drift-c 32s ease-in-out infinite;
}

.hero-anim-d {
  animation: hero-drift-d 26s ease-in-out infinite;
}

.hero-anim-e {
  animation: hero-drift-e 30s ease-in-out infinite;
}

.hero-anim-f {
  animation: hero-drift-f 22s ease-in-out infinite;
}

@keyframes hero-drift-a {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(28px, -18px) rotate(4deg);
  }
  50% {
    transform: translate(-12px, 22px) rotate(-3deg);
  }
  75% {
    transform: translate(18px, 14px) rotate(2deg);
  }
}

@keyframes hero-drift-b {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-32px, 12px) rotate(-5deg);
  }
  66% {
    transform: translate(20px, -24px) rotate(3deg);
  }
}

@keyframes hero-drift-c {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(14px, 26px) rotate(2deg);
  }
  55% {
    transform: translate(-24px, -10px) rotate(-4deg);
  }
  80% {
    transform: translate(10px, -20px) rotate(1deg);
  }
}

@keyframes hero-drift-d {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  40% {
    transform: translate(22px, 18px) rotate(-2deg);
  }
  70% {
    transform: translate(-18px, -16px) rotate(5deg);
  }
}

@keyframes hero-drift-e {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  30% {
    transform: translate(-16px, -28px) rotate(3deg);
  }
  60% {
    transform: translate(26px, 8px) rotate(-3deg);
  }
}

@keyframes hero-drift-f {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-20px, 20px) rotate(-4deg);
  }
  50% {
    transform: translate(16px, -14px) rotate(2deg);
  }
  75% {
    transform: translate(-8px, -22px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-icon {
    animation: none !important;
    opacity: 0.05;
  }
}

/* Hero slideshow */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--olive);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Operational steps — thumbnail images */
.step-thumb {
  border: 2px solid rgba(166, 137, 102, 0.35);
  box-shadow: 0 4px 12px rgba(61, 61, 41, 0.08);
}

/* Step timeline connector */
@media (min-width: 768px) {
  .steps-row::before {
    content: "";
    position: absolute;
    top: 1.75rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(166, 137, 102, 0.35);
    z-index: 0;
  }
}
