/* ==========================
   HOME PAGE STYLES
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, #0b3320 0%, #0B6B3A 50%, #145c32 100%); */
  z-index: 0;
  background-image: url(/images/accra-clean-up.jpg);
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: rgba(34, 197, 94, 0.08);
  top: -100px;
  right: -100px;
  animation: morph 12s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
  background: rgba(255, 255, 255, 0.04);
  bottom: 100px;
  left: -80px;
  animation: morph 10s ease-in-out infinite reverse;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eco);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--eco);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-heading em {
  font-style: normal;
  color: var(--eco);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-card-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hero-stat {
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--eco);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.hero-scroll {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 40px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  margin: 10px auto 0;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.intro {
  background: var(--beige);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-visual {
  position: relative;
}

.intro-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.intro-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
}

.intro-badge-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--eco);
  line-height: 1;
}

.intro-badge-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.intro-text .section-sub {
  margin: 16px 0 32px;
}

.intro-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.intro-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 107, 58, 0.1);
}

.intro-pillar-icon {
  width: 36px;
  height: 36px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.intro-pillar-icon i,
.contact-info-icon i,
.project-card-img i,
.project-full-img i,
.value-icon i,
.opportunity-icon i,
.g-inner i,
.gallery-section-label i,
.project-card-meta i,
.quick-contact-card-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
}

.gallery-section-label i {
  margin-right: 0.5rem;
}

.intro-pillar-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.mission-strip {
  background: var(--beige);
  padding: 48px 0;
}

.mission-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.mission-item {
  flex: 1;
  max-width: 260px;
}

.mission-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
  margin: 12px 0 8px;
}

.mission-item p {
  font-size: 0.83rem;
  color: var(--gray-mid);
  line-height: 1.65;
}

.mission-divider {
  width: 1px;
  height: 60px;
  background: rgba(11, 107, 58, 0.2);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  transition: all 0.25s ease-in-out;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-card-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.project-card-main-content {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-expandable {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}

.project-card-expandable > * {
  overflow: hidden;
}

.project-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(34, 197, 94, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.project-card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--eco);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.project-card-toggle:checked ~ .project-card-main-content .project-card-expandable {
  grid-template-rows: 1fr;
}

.stats-bar {
  background: var(--forest);
  padding: 60px 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--eco);
  line-height: 1;
}

.stat-item-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  line-height: 1.4;
}

.testimonials {
  background: var(--beige);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--eco);
  line-height: 0.8;
  font-family: serif;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--eco));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--gray-mid);
}

.partners-strip {
  padding: 48px 0;
  border-top: 1px solid var(--gray-soft);
  border-bottom: 1px solid var(--gray-soft);
}

.partners-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 32px;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--forest);
}

/* ===========================
   RESPONSIVE
   Ordered widest -> narrowest breakpoint on purpose: with
   desktop-first (max-width) media queries, source order acts
   as the tiebreaker whenever more than one query matches the
   same viewport, so a narrower rule listed later will always
   beat a wider one listed earlier. Keeping this order avoids
   the previous bug where the 1200px "2-column" project grid
   rule (defined after the 768px "1-column" rule) was winning
   on phones and squeezing the cards into two cramped columns.
=========================== */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-content { padding: 120px 0 60px; }
  .intro-badge { display: none; }
  .mission-strip-inner { flex-direction: column; }
  .mission-divider { width: 60px; height: 1px; }
  .projects-grid { grid-template-columns: 1fr; }
  .intro-pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonial-card { padding: 24px; }
  .stats-bar { padding: 40px 0; }
  .stat-item-num { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .intro-pillars { grid-template-columns: 1fr; }
  .intro-img-main { height: 280px; }
  .partners-logos { gap: 28px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }
}