/* ROSAM Uganda Professional Multi-Page Website */

:root{
  --blue:#1878df;
  --deep-blue:#064f96;
  --green:#22c55e;
  --deep-green:#15803d;
  --light-green:#dcfce7;
  --dark:#10233f;
  --muted:#667085;
  --light:#f3f8ff;
  --soft:#eef7ff;
  --white:#ffffff;
  --border:#e4edf8;
  --shadow:0 18px 45px rgba(16,35,63,.12);
  --green-shadow:0 18px 35px rgba(34,197,94,.22);
  --radius:22px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--dark);
  line-height:1.65;
  background:white;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

.container{
  width:min(1120px,92%);
  margin:auto;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 22px rgba(16,35,63,.06);
}

.top-bar{
  background:linear-gradient(90deg,var(--deep-green),var(--green));
  color:white;
  font-size:.88rem;
}

.top-bar-inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
  flex-wrap:wrap;
}

.nav-wrap{
  min-height:84px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand img{
  width:62px;
  height:62px;
  object-fit:contain;
  animation:logoFloat 4s ease-in-out infinite;
}

.brand strong{
  display:block;
  font-size:1.35rem;
  color:var(--blue);
}

.brand span{
  display:block;
  color:var(--deep-green);
  font-style:italic;
  margin-top:-2px;
  font-weight:700;
}

.main-nav{
  display:flex;
  align-items:center;
  gap:24px;
  font-weight:800;
}

.main-nav a{
  padding:10px 4px;
  position:relative;
  transition:.3s ease;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:2px;
  width:0;
  height:3px;
  background:var(--green);
  border-radius:10px;
  transition:.3s ease;
}

.main-nav a:hover,
.main-nav .active{
  color:var(--green);
}

.main-nav a:hover::after,
.main-nav .active::after{
  width:100%;
}

.nav-donate{
  background:linear-gradient(135deg,var(--green),var(--deep-green));
  color:#fff!important;
  border-radius:999px;
  padding:12px 22px!important;
  box-shadow:var(--green-shadow);
}

.nav-donate::after{
  display:none;
}

.nav-donate:hover{
  transform:translateY(-3px);
}

.menu-toggle{
  display:none;
  border:0;
  background:var(--light-green);
  color:var(--deep-green);
  font-size:1.8rem;
  border-radius:12px;
  padding:6px 12px;
}

/* HERO */
.hero,
.page-hero{
  padding:90px 0;
}

.hero-bg,
.page-hero,
.about-hero,
.programs-hero,
.impact-hero,
.events-hero,
.donate-hero,
.contact-hero{
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  color:white;
  overflow:hidden;
}

.hero-bg{
  min-height:90vh;
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image3.jpeg") center/cover no-repeat;
}

.about-hero{
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image15.jpeg") center/cover no-repeat;
}

.programs-hero{
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image3.jpeg") center/cover no-repeat;
}

.impact-hero{
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image10.jpeg") center/cover no-repeat;
}

.events-hero{
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image18.jpeg") center/cover no-repeat;
}

.donate-hero{
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image1.jpeg") center/cover no-repeat;
}

.contact-hero{
  background:
    linear-gradient(rgba(5,34,75,.78),rgba(5,34,75,.78)),
    url("img/image2.jpeg") center/cover no-repeat;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top right,rgba(34,197,94,.42),transparent 34%),
    radial-gradient(circle at bottom left,rgba(24,120,223,.35),transparent 38%);
  animation:softGlow 8s ease-in-out infinite alternate;
}

.hero-content{
  position:relative;
  z-index:2;
  max-width:820px;
}

.hero-content h1,
.page-hero h1{
  text-shadow:0 12px 35px rgba(0,0,0,.28);
}

/* TEXT */
.eyebrow,
.section-label{
  color:var(--green);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.8rem;
}

.hero-content .eyebrow{
  display:inline-block;
  color:white;
  background:rgba(34,197,94,.24);
  border:1px solid rgba(255,255,255,.28);
  padding:10px 18px;
  border-radius:999px;
  backdrop-filter:blur(8px);
}

h1,h2,h3{
  line-height:1.15;
  margin:0 0 18px;
}

h1{
  font-size:clamp(2.35rem,5.8vw,4.8rem);
}

h2{
  font-size:clamp(1.9rem,4vw,3rem);
}

h3{
  font-size:1.35rem;
}

.lead{
  font-size:1.13rem;
  color:#475467;
  max-width:760px;
}

.hero-content .lead,
.page-hero .lead{
  color:#eaf4ff;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  border-radius:999px;
  font-weight:900;
  transition:.3s ease;
  gap:8px;
}

.btn-primary{
  background:linear-gradient(135deg,var(--green),var(--deep-green));
  color:#fff;
  box-shadow:var(--green-shadow);
}

.btn-primary:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 45px rgba(34,197,94,.32);
}

.btn-secondary{
  background:#fff;
  color:var(--blue);
  border:1px solid #d8e9ff;
}

.btn-secondary:hover{
  color:white;
  background:var(--blue);
  transform:translateY(-4px);
}

.actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:30px;
}

/* SECTIONS */
.section{
  padding:84px 0;
  position:relative;
}

.soft-bg{
  background:
    radial-gradient(circle at top right,rgba(34,197,94,.12),transparent 28%),
    #f7fbff;
}

.blue-section{
  background:linear-gradient(135deg,var(--deep-blue),var(--blue));
  color:#fff;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:42px;
  align-items:start;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

/* CARDS */
.hero-card,
.card,
.contact-card,
.donate-card,
.event-card,
.program-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px;
  box-shadow:var(--shadow);
  transition:.35s ease;
}

.card:hover,
.contact-card:hover,
.donate-card:hover,
.event-card:hover,
.program-card:hover{
  transform:translateY(-8px);
  box-shadow:0 25px 55px rgba(16,35,63,.18);
}

.card h3,
.program-card h3,
.event-card h3{
  color:var(--deep-blue);
}

/* STATS */
.stat-strip{
  background:linear-gradient(135deg,var(--deep-green),var(--green));
  color:white;
  padding:30px 0;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  text-align:center;
}

.stats div{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  transition:.3s ease;
}

.stats div:hover{
  transform:translateY(-6px);
  background:rgba(255,255,255,.2);
}

.stats strong{
  font-size:1.65rem;
  display:block;
}

.stats span{
  color:#eaffef;
}

/* PROGRAMS */
.program-card{
  position:relative;
  overflow:hidden;
}

.program-card::before{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:120px;
  height:120px;
  background:rgba(34,197,94,.12);
  border-radius:50%;
}

.program-card .num{
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--green),var(--deep-green));
  color:white;
  font-weight:900;
  margin-bottom:16px;
  box-shadow:var(--green-shadow);
}

.program-icon{
  font-size:2.2rem;
  margin-bottom:14px;
}

/* IMPACT */
.impact-list{
  display:grid;
  gap:18px;
}

.impact-list div{
  border-left:6px solid var(--green);
  background:var(--light);
  padding:22px;
  border-radius:16px;
  box-shadow:0 10px 25px rgba(16,35,63,.06);
  transition:.3s ease;
}

.impact-list div:hover{
  transform:translateX(8px);
  background:var(--light-green);
}

.impact-list strong{
  display:block;
  color:var(--deep-green);
  margin-bottom:6px;
}

/* GALLERY */
.gallery{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.gallery figure{
  margin:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:.35s ease;
}

.gallery figure:hover{
  transform:translateY(-10px);
}

.gallery img{
  width:100%;
  height:290px;
  object-fit:cover;
  transition:.45s ease;
}

.gallery figure:hover img{
  transform:scale(1.08);
}

.gallery figcaption{
  padding:18px;
  color:#475467;
}

/* LISTS */
.check-list{
  padding-left:0;
  list-style:none;
}

.check-list li{
  margin-bottom:12px;
  padding-left:30px;
  position:relative;
}

.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:white;
  background:var(--green);
  width:20px;
  height:20px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.8rem;
  font-weight:900;
}

/* DONATE */
.donate-section{
  background:
    radial-gradient(circle at top left,rgba(34,197,94,.22),transparent 34%),
    linear-gradient(135deg,#0759a8,#1878df);
  color:#fff;
}

.donate-card{
  color:var(--dark);
}

/* CONTACT */
.contact-card a{
  color:var(--green);
  font-weight:900;
}

.contact-details{
  margin:22px 0;
}

.form-grid{
  display:grid;
  gap:14px;
}

input,
textarea{
  width:100%;
  padding:15px;
  border:1px solid #d8e3f2;
  border-radius:14px;
  font:inherit;
  outline:none;
  transition:.25s ease;
}

input:focus,
textarea:focus{
  border-color:var(--green);
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

textarea{
  min-height:140px;
}

.form-note{
  font-size:.95rem;
  color:var(--muted);
}

/* EVENTS */
.event-image img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:20px;
}

.event-label{
  display:inline-block;
  background:var(--light-green);
  color:var(--deep-green);
  font-weight:900;
  padding:8px 14px;
  border-radius:999px;
  margin-bottom:12px;
}

/* CTA */
.cta-section{
  background:
    radial-gradient(circle at right,rgba(34,197,94,.35),transparent 35%),
    linear-gradient(135deg,var(--deep-blue),var(--blue));
  color:white;
  text-align:center;
  padding:86px 0;
}

.cta-content{
  max-width:780px;
  margin:auto;
}

.cta-section .btn-secondary{
  margin-left:12px;
}

/* WHATSAPP */
.whatsapp-float{
  position:fixed;
  right:22px;
  bottom:22px;
  width:64px;
  height:64px;
  border-radius:50%;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
  z-index:999;
  transition:.3s ease;
  animation:pulse 2s infinite;
}

.whatsapp-float:hover{
  transform:scale(1.1);
}

.whatsapp-float img{
  width:64px;
  height:64px;
  border-radius:50%;
}

/* FOOTER */
.site-footer{
  background:#071a33;
  color:#dce9ff;
  padding:34px 0;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.footer-grid strong{
  color:white;
}

/* ANIMATIONS */
.animate-fade{
  animation:fadeIn 1.2s ease both;
}

.animate-up{
  animation:fadeUp 1s ease both;
}

.animate-left{
  animation:fadeLeft 1s ease both;
}

.animate-right{
  animation:fadeRight 1s ease both;
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fadeLeft{
  from{
    opacity:0;
    transform:translateX(-40px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes fadeRight{
  from{
    opacity:0;
    transform:translateX(40px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}
  70%{box-shadow:0 0 0 16px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

@keyframes logoFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}

@keyframes softGlow{
  from{opacity:.75}
  to{opacity:1}
}

/* RESPONSIVE */
@media(max-width:900px){
  .menu-toggle{
    display:block;
  }

  .main-nav{
    position:absolute;
    top:118px;
    left:4%;
    right:4%;
    background:white;
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:var(--shadow);
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    padding:18px;
    display:none;
  }

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

  .main-nav a{
    width:100%;
  }

  .hero-grid,
  .grid-2{
    grid-template-columns:1fr;
  }

  .grid-3,
  .grid-4,
  .gallery{
    grid-template-columns:1fr 1fr;
  }

  .stats{
    grid-template-columns:1fr 1fr;
  }

  .top-bar-inner{
    justify-content:center;
    text-align:center;
  }
}

@media(max-width:560px){
  .hero-bg,
  .page-hero,
  .about-hero,
  .programs-hero,
  .impact-hero,
  .events-hero,
  .donate-hero,
  .contact-hero{
    min-height:460px;
  }

  .section{
    padding:58px 0;
  }

  .grid-3,
  .grid-4,
  .gallery,
  .stats{
    grid-template-columns:1fr;
  }

  .brand strong{
    font-size:1.1rem;
  }

  .brand img{
    width:48px;
    height:48px;
  }

  .cta-section .btn-secondary{
    margin-left:0;
    margin-top:12px;
  }
}
/* TOP BAR ICONS */
.top-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-info img {
  width: 18px;
  height: 18px;
}

/* FOOTER */
.footer-logo {
  width: 70px;
  margin-bottom: 10px;
}

.footer-icon {
  width: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  width: 24px;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}
.form-message {
  margin-bottom: 15px;
}

.success-message {
  background: #dcfce7;
  color: #166534;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  border-left: 5px solid #22c55e;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  border-left: 5px solid #ef4444;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-message {
  margin-bottom: 15px;
}

.success-message {
  background: #dcfce7;
  color: #166534;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  border-left: 5px solid #22c55e;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  border-left: 5px solid #ef4444;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}