/* ============================================
   BOR COMMUNITY CANADA — GLOBAL STYLES
   Shared across all pages
   Designed by Achiek Kuol
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #0d2b20;
  --accent: #D4A017;
  --accent-light: #f0c040;
  --red: #C0392B;
  --white: #ffffff;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --mid-gray: #ADB5BD;
  --dark-gray: #495057;
  --text: #212529;
  --text-light: #6C757D;
  --border: #DEE2E6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', sans-serif;
  --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  padding-bottom: 80px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ANNOUNCEMENT BANNER --- */
.announcement-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  z-index: 1000;
}

.announcement-banner a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: underline;
}

.announcement-banner i { color: var(--accent); flex-shrink: 0; }

.close-banner {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  opacity: 0.8;
  flex-shrink: 0;
}

.close-banner:hover { opacity: 1; }

/* --- NAVBAR --- */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand { display: flex; align-items: center; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--off-white);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: var(--font);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover { background: var(--off-white); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

/* --- HAMBURGER --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 2px solid var(--light-gray);
  padding: 16px 20px;
  gap: 4px;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  z-index: 998;
  box-shadow: var(--shadow);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: var(--transition);
}

.mobile-menu a:hover { background: var(--off-white); color: var(--primary); }

.mobile-menu hr {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 8px 0;
}

.mobile-join {
  background: var(--primary) !important;
  color: var(--white) !important;
  justify-content: center;
}

/* --- PAGE HERO (Shared for inner pages) --- */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 0 50px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(212,160,23,0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.07;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.2);
  border: 1px solid rgba(212,160,23,0.35);
  color: var(--accent-light);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.page-hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.page-hero-breadcrumb a {
  color: var(--accent-light);
  transition: var(--transition);
}

.page-hero-breadcrumb a:hover { color: var(--white); }
.page-hero-breadcrumb i { font-size: 0.65rem; }

/* --- SECTION SHARED --- */
.section { padding: 60px 0; }

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.section-sub {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- JOIN CTA (Shared) --- */
.join-cta {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  margin-top: 60px;
}

.join-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.join-cta-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.join-cta-text p {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
}

.join-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* --- FOOTER --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
  margin-bottom: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 14px 0;
  color: rgba(255,255,255,0.65);
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-brand .logo-title { color: var(--white); }
.footer-brand .logo-sub { color: var(--accent); }

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.65);
}

.footer-contact i { color: var(--accent); width: 16px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom strong { color: var(--accent); }

/* --- MOBILE BOTTOM NAV --- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 997;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  padding: 10px 4px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mid-gray);
  transition: var(--transition);
}

.mobile-nav-item i { font-size: 1.2rem; }

.mobile-nav-item.active,
.mobile-nav-item:hover { color: var(--primary); }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- GLOBAL RESPONSIVE --- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-bottom-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { flex-direction: column; }
  .join-cta-content { flex-direction: column; text-align: center; }
  .join-cta-actions { justify-content: center; }
  body { padding-bottom: 70px; }
}