/*
Theme Name: Osefafo
Theme URI: https://osefafo.org
Author: Oselobua Family Foundation
Author URI: https://osefafo.org
Description: Official WordPress theme for the Oselobua Family Foundation — modern, warm, and mission-driven.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osefafo
*/

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

body {
  background-color: #fafaf9;
  color: #1c1917;
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

/* ============================================================
   SCROLL REVEAL  (IntersectionObserver adds .is-visible)
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FADE-IN ANIMATION  (used on hero, page header)
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================================
   INFINITE HORIZONTAL SCROLL (team carousel)
   ============================================================ */
@keyframes osefafo-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  animation: osefafo-scroll 40s linear infinite;
  width: max-content;
  display: flex;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* ============================================================
   SCROLLBAR HIDE (team carousel)
   ============================================================ */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================================
   TYPING CURSOR BLINK
   ============================================================ */
.typing-cursor {
  animation: blink 0.75s step-end infinite;
  font-weight: 300;
  color: #0079B2;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   NAV ACTIVE / SCROLLED STATE  (set by theme.js)
   ============================================================ */
#osefafo-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: transparent;
}

#osefafo-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: block;
}

/* ============================================================
   DONATE PAGE — DONATION TYPE SLIDER KNOB
   ============================================================ */
.donate-toggle-knob {
  transition: transform 0.3s ease;
}

.donate-toggle-knob.monthly {
  transform: translateX(100%);
}

/* ============================================================
   EVENTS TAB ACTIVE STATE  (set by theme.js)
   ============================================================ */
.events-tab-btn.active {
  background-color: #0079B2;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,121,178,0.25);
}

/* ============================================================
   CONTACT FORM — Focus border handled by Tailwind, but keep
   a consistent outline removal
   ============================================================ */
.osefafo-input:focus {
  outline: none;
}

/* ============================================================
   WORDPRESS CORE ALIGNMENT HELPERS
   ============================================================ */
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { text-align: center; }
.wp-caption { max-width: 100%; }
