/* ===================================================
   CRF Ghana – Main Stylesheet
   Redesigned by G Online Sites
   =================================================== */

/* ---- Variables & Base ---- */
:root {
  --red:       #C8201A;
  --red-dark:  #9E160F;
  --red-light: #f5e6e5;
  --blue:      #003580;
  --blue-mid:  #005DAA;
  --blue-light:#E8F0FA;
  --gold:      #F0A500;
  --text:      #2c2c2c;
  --muted:     #666;
  --bg:        #f7f8fb;
  --white:     #ffffff;
  --border:    #dde3ef;
  --radius:    8px;
  --shadow:    0 4px 24px rgba(0,53,128,.10);
  --transition:0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

h1, h2, h3, h4, h5 {
  font-family: 'Inter', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
}

/* ---- Utility ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 60px 0; }
.section-pad-sm { padding: 36px 0; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue-mid); }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }

/* ---- Top bar ---- */
.topbar {
  background: var(--blue);
  color: #cfe0ff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfe0ff; }
.topbar a:hover { color: var(--gold); }
.topbar .radio-link {
  background: var(--red);
  color: #fff;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.topbar .radio-link:hover { background: var(--red-dark); color: #fff; }

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

/* Logo: constrain height, never let it grow wide */
.logo-wrap {
  flex-shrink: 0;
}
.logo-wrap img {
  height: 60px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

/* ---- Navigation ---- */
.nav-wrap {
  flex: 1;               /* take remaining space */
  min-width: 0;          /* allow shrinking */
}
.nav-wrap nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;     /* single row — hamburger handles mobile */
  justify-content: flex-end;
}
.nav-wrap nav ul li a {
  display: block;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--blue);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav-wrap nav ul li a:hover,
.nav-wrap nav ul li a.active {
  background: var(--red);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  transition: all var(--transition);
  display: block;
}

/* Switch to hamburger when nav would overflow */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    z-index: 999;
    flex: none;
  }
  .nav-wrap.open { display: block; }
  .nav-wrap nav ul {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 12px 16px;
    gap: 2px;
  }
  .nav-wrap nav ul li a { font-size: 15px; padding: 10px 14px; }
}

/* ---- Hero / Slider ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: #1a2740;
}
.hero-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
  height: 480px;
}
.hero-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .85;
}
.hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  padding: 40px 40px 28px;
}
.hero-caption h2 { color: #fff; font-size: 1.8rem; }
.hero-caption p { color: rgba(255,255,255,.85); font-size: 1rem; margin-top: 4px; }

.slider-controls { display: none; } /* unused wrapper */

/* Left / right arrow buttons — centred vertically on their edge */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
  padding: 0;
}
.slider-btn:hover  { background: var(--red); border-color: var(--red); }
.slider-btn.prev   { left: 16px; }
.slider-btn.next   { right: 16px; left: auto; }

.slider-dots {
  position: absolute;
  bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.slider-dots .dot.active { background: #fff; transform: scale(1.3); }

@media (max-width: 600px) {
  .hero-slider { height: 240px; }
  .hero-caption { padding: 20px 16px 14px; }
  .hero-caption h2 { font-size: 1.1rem; }
}

/* ---- Section headings ---- */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 60px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 6px;
}
.section-title.centered::after { margin: 6px auto 0; }

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,53,128,.14); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; }

/* Icon cards */
.icon-card { text-align: center; padding: 32px 24px; }
.icon-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-mid);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.icon-card.red .icon-wrap { background: var(--red-light); color: var(--red); }

/* ---- Grid helpers ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-mid); border-color: var(--blue-mid); }
.btn-outline:hover { background: var(--blue-mid); color: #fff; }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---- Home sections ---- */
.welcome-section { background: var(--white); }
.welcome-section .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .welcome-section .split { grid-template-columns: 1fr; }
}

.mission-vision-box {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}
.mission-vision-box h4 { color: var(--gold); margin-bottom: 6px; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.mission-vision-box p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.mission-vision-box .divider { border: none; border-top: 1px solid rgba(255,255,255,.2); margin: 20px 0; }

.respite-section { background: var(--blue-light); }
.respite-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.respite-inner img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 768px) {
  .respite-inner { grid-template-columns: 1fr; }
}

/* ---- What we do / Values ---- */
.highlight-bar {
  background: var(--red);
  color: #fff;
  border-radius: 6px 6px 0 0;
  padding: 12px 20px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
}
.list-card {
  background: var(--white);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
  padding: 24px 24px 20px;
}
.list-card ul { padding-left: 20px; }
.list-card ul li { padding: 6px 0; color: var(--text); font-size: .95rem; }

/* ---- Page banner ---- */
.page-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 40px 0 36px;
}
.page-banner h1 { color: #fff; font-size: 2rem; margin-bottom: 6px; }
.page-banner .breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); }
.page-banner .breadcrumb a { color: var(--gold); }
.page-banner img.banner-img {
  width: 100%; border-radius: var(--radius); margin-bottom: 20px;
  max-height: 220px; object-fit: cover;
}

/* ---- Inner page layout ---- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 48px 0;
}
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-card .sidebar-heading {
  background: var(--blue);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
}
.sidebar-card .sidebar-body { padding: 20px; }
.sidebar-card .sidebar-body p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.sidebar-card .sidebar-body strong { color: var(--blue); }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
  transition: all var(--transition);
}
.sidebar-nav li a:hover { background: var(--blue-light); color: var(--blue-mid); padding-left: 28px; }
.sidebar-nav li a.active { background: var(--red); color: #fff; }

/* ---- Contact page ---- */
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item .ci-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  color: var(--blue-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-item .ci-text { font-size: .9rem; line-height: 1.6; }

/* Contact form */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; color: var(--blue); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,93,170,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---- Photo Gallery ---- */
.gallery-list { list-style: none; }
.gallery-list li {
  border-bottom: 1px solid var(--border);
}
.gallery-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-weight: 600;
  color: var(--blue-mid);
  transition: color var(--transition);
}
.gallery-list li a:hover { color: var(--red); }
.gallery-list li a::before {
  content: '📷';
  font-size: 1rem;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.photo-grid a img {
  border-radius: 6px;
  width: 100%;
  height: 160px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.photo-grid a img:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,.22); }

/* ---- Alert / notice ---- */
.notice-bar {
  background: var(--blue-light);
  border-left: 4px solid var(--blue-mid);
  padding: 14px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  margin-bottom: 20px;
}
.alert-success {
  background: #eafaf1;
  border-left: 4px solid #27ae60;
  padding: 14px 20px;
  border-radius: 0 6px 6px 0;
  color: #1a6e3a;
  margin-bottom: 16px;
}
.alert-error {
  background: #fdecea;
  border-left: 4px solid var(--red);
  padding: 14px 20px;
  border-radius: 0 6px 6px 0;
  color: var(--red-dark);
  margin-bottom: 16px;
}

/* ---- CRF Radio banner ---- */
.radio-cta {
  background: linear-gradient(90deg, var(--blue-mid) 0%, var(--blue) 100%);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: .9rem;
}
.radio-cta a {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}
.radio-cta a:hover { color: #fff; }

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--red);
  color: #fff;
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item .stat-num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.stat-item .stat-label { font-size: .85rem; opacity: .88; margin-top: 4px; }
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,.8);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-logo { height: 54px; width: auto; margin-bottom: 16px; /*filter: brightness(0) invert(1);*/ opacity: .85; }
.footer-about { font-size: .88rem; line-height: 1.7; }
.footer-heading {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { font-size: .88rem; line-height: 1.8; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  padding: 16px 0;
  font-size: .82rem;
  text-align: center;
  color: rgba(255,255,255,.45);
}
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--red); color: #fff; }

/* ---- Responsive helpers ---- */
@media (max-width: 600px) {
  .section-pad { padding: 40px 0; }
  .page-banner h1 { font-size: 1.5rem; }
}

/* ---- Print ---- */
@media print {
  .site-header, .topbar, .radio-cta, .site-footer, .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
}
