/* styles.css - shared across all pages
   Colors: White, Blue (#0b57a4), Gold (#c79a2b)
   Larger base font for readability, accessible sizes.
*/

:root{
  --blue: #0b57a4;
  --gold: #c79a2b;
  --white: #ffffff;
  --bg: #f8fbff;
  --text: #0b1b2a;
  --muted: #5a6b80;
  --max-width: 1100px;
  --base-font: 18px;
  --heading-font-weight: 700;
}

/* Reset */
*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  font-size: var(--base-font);
  line-height:1.55;
}

/* Layout */
.container{
  width:92%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:1.5rem 0;
}

/* Header */
.header{
  background: var(--white);
  border-bottom: 1px solid rgba(11,87,164,0.06);
  position:sticky; top:0; z-index:50;
}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.6rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  text-decoration:none;
  color:var(--blue);
}
.brand .logo{
  width: 265px;height:60px;display:flex;align-items:center;justify-content:center;
}
.brand .logo img{max-width:100%; height:auto; display:block;}
.brand .formation{font-size:0.9rem;font-style:italic;color:var(--muted);margin-top:4px}

/* Nav */
.navlinks{
  display:flex;gap:1rem;align-items:center;
}
.navlinks a{
  text-decoration:none;color:var(--text);padding:.45rem .7rem;border-radius:6px;
}
.navlinks a:hover{background: rgba(11,87,164,0.06); color:var(--blue)}
.cta{
  background:var(--gold); color:var(--white); padding:.45rem .7rem;border-radius:6px;
  text-decoration:none; font-weight:600;
}

/* Mobile menu */
.menu-toggle{display:none;background:none;border:0;font-size:1.2rem;color:var(--blue)}

/* Hero carousel-like */
.hero-wrap{margin-top:1rem}
.hero-carousel{display:grid;grid-template-columns:1fr;gap:1rem}

.hero-slide{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  min-height:320px;
  background:#000;
  display:flex;
  align-items:center;
}

/* Hero image */
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0.92;
}

/* Hero text container with gradient behind it */
.hero-content{
  position:absolute;
  left:2rem;                 /* updated */
  top:2rem;
  max-width:720px;           /* updated */
  color:var(--white);
  padding:1.2rem 1.4rem;
  border-radius:10px;

  /* Subtle dark gradient background */
  background:linear-gradient(
    to bottom right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25)
  );

  text-shadow:0 6px 18px rgba(0,0,0,0.55);
}

/* Larger H2 on desktop */
.hero-content h2{
  font-size:2.6rem;
  font-weight:800;
  margin:0 0 .4rem;
  line-height:1.2;
}

.hero-content p{
  margin:0 0 1rem;
  font-size:1.1rem;
  color:rgba(255,255,255,0.95);
}

.hero-buttons{
  display:flex;
  gap:.6rem;
  flex-wrap:wrap;
}

/* ABOUT PAGE STRUCTURE */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.about-lead {
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
  color: var(--text);
}

.founder-heading {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue);
  margin: 1.5rem 0 1rem;
}

.founder-row {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.founder-photo img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(11,87,164,0.15);
}

.founder-note {
  flex: 1;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
}

.signature {
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  font-style: normal;
}

.sub-heading {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 1.8rem;
  color: var(--blue);
}

.sub-mini {
  font-size: 1.25rem;
  margin-top: 1.2rem;
  font-weight: 600;
}

/* Responsive Mobile */
@media (max-width:720px) {
  .founder-row {
    flex-direction: column;
    text-align: center;
  }
  .founder-note {
    text-align: center;
  }
  .founder-photo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
  }
}

/* Responsive */
@media (max-width:520px){
  .hero-content{
    left:1.2rem;
    right:1.2rem;
    padding:1rem;
  }
  .hero-content h2{
    font-size:1.6rem;
  }
  .hero-content p{
    font-size:1rem;
  }
}

/* Intro text after hero */
.intro-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--blue);
}

.intro{
  margin-top:1rem;padding:0;text-align:left;color:var(--text);
  font-size:1.02rem;
}

/* What we do */
.what-we-do{margin-top:1rem}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card {
  border-radius: 10px;
  padding: 1.4rem 1rem;
  color: var(--white);
  display: flex;
  flex-direction: column;   /* change to vertical layout */
  align-items: center;       /* center everything */
  text-align: center;        /* center text */
  gap: 0.9rem;
  min-height: 220px;
}
.card .icon {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Text styling */
.card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.card p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
}

/* ABOUT PAGE */
.about-section {
  padding-top: 1rem;
}

/* Top row: photo left + name/title right */
.about-top {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Photo styling */
.about-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(11,87,164,0.12);
}

/* Name + Titles */
.about-info {
  flex: 1;
  margin-bottom: 8px;
}

.founder-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--blue);
}

.founder-title {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.founder-org {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: var(--text);
}

/* Description BELOW */
.about-description {
  margin-top: 0.5rem;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--text);
}

.about-description strong {
  color: var(--blue);
}

/* Mobile Responsive */
@media (max-width: 720px) {
  .about-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-info {
    text-align: center;
  }
  .about-photo img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
}

/* Justice in Numbers section */
.justice-numbers {
  margin-top: 1.25rem;
  text-align: center;
}

/* Section title (matches What We Do title) */
.justice-numbers .intro-title {
  margin-bottom: 1.2rem;
}

/* Grid layout */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Individual cards */
.number-card {
  background: var(--blue);
  color: var(--white);
  padding: 1.6rem 1rem;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 150px;
  justify-content: center;
}

/* The large gold figure */
.number-figure {
  font-size: 4.4rem;   /* doubled size */
  font-weight: 800;
  color: var(--gold);
  margin: 0;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .numbers-grid {
    grid-template-columns: 1fr;
  }
}

.number-figure {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@media (max-width: 980px) {

  .navlinks {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: var(--white);
    flex-direction: column;      /* 👈 THIS fixes horizontal issue */
    align-items: flex-start;

    padding: 0.8rem 1rem;
    gap: 0.6rem;

    display: none;
    border-bottom: 1px solid rgba(11,87,164,0.08);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    width: 100%;
    padding: 0.6rem 0.4rem;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 520px) {

  .brand .logo {
    width: 200px;   /* reduced from 265px */
    height: auto;
  }

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

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

/* Card backgrounds */
.card.support{background:var(--blue)}
.card.advocacy{background:#065a9a}
.card.education{background:#0b57a4}

/* Panels */
.panel{background:var(--white);border-radius:12px;padding:1rem;box-shadow:0 6px 20px rgba(11,87,164,0.04);border-left:6px solid var(--gold)}

/* Two-column layouts */
.two-col{display:grid;grid-template-columns:320px 1fr;gap:1.25rem;align-items:start}
.avatar{width:100%;height:320px;object-fit:cover;border-radius:10px}

/* Work items with image left */
.work-item{display:flex;gap:1rem;align-items:flex-start;margin-bottom:1rem}
.work-item img{width:280px;height:180px;object-fit:cover;border-radius:8px;flex-shrink:0}

/* Note box */
.note-box{background:#f5f8fb;border:1px solid rgba(11,87,164,0.06);padding:1rem;border-radius:8px;margin-top:1rem}

/* Stories grid */
.stories-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.story-card{background:var(--white);border-radius:10px;padding:1rem;border:1px solid rgba(11,87,164,0.04)}
.align-right {
  display: block;
  text-align: right;
}

/* Forms and buttons */
.button{background:var(--gold);color:var(--white);padding:.6rem .9rem;border-radius:8px;text-decoration:none;font-weight:700}

/* Footer */
footer{background:var(--white);border-top:1px solid rgba(11,87,164,0.06);padding:1rem 0;margin-top:2rem}
.footer-grid{display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}

.italic-text {
  font-style: italic;
}

.footer-social {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social span {
  font-size: 0.95rem;
  color: var(--text);
}

.footer-social .social-icon img {
  width: 42px;
  height: 42px;
  display: block;
}

/* Responsive */
@media (max-width:980px){
  .cards{grid-template-columns:1fr 1fr}
  .two-col{grid-template-columns:1fr}
  .stories-grid{grid-template-columns:1fr 1fr}
  .navlinks{display:none}
  .menu-toggle{display:block}
  .work-item{flex-direction:column}
}
@media (max-width:520px){
  :root{--base-font:17px}
  .cards{grid-template-columns:1fr}
  .stories-grid{grid-template-columns:1fr}
  .hero-content h2{font-size:1.5rem}
  .hero-content p{font-size:1rem}
}

