/* ===== Home Page – Human Shaper Action Society ===== */

:root {
  --hs-orange: #f26522;
  --hs-orange-dark: #d95518;
  --hs-navy: #0a2540;
  --hs-navy-light: #1a3a5c;
  --hs-teal: #2d6a4f;
  --hs-gray-bg: #f5f6f8;
  --hs-text: #333333;
  --hs-text-muted: #666666;
  --hs-white: #ffffff;
  --hs-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --hs-radius: 12px;
}

body.home-page header.home-header {
  border-bottom: none;
}

.home-logo .logo-img {
  display: block;
}

.home-footer-brand .logo-img--footer {
  display: block;
}
.top-bar {
  background: #f8f9fb;
  color: var(--hs-text-muted);
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e8eaed;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.top-bar-contacts a,
.top-bar-social a {
  color: var(--hs-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.top-bar-contacts a:hover,
.top-bar-social a:hover {
  color: var(--hs-orange);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-social span {
  opacity: 0.8;
}

.social-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hs-navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===== Main Header ===== */
.home-header {
  background: var(--hs-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 200;
}

.home-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 2rem;
  min-height: 100px;
}

.home-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 220px;
}

.home-logo img {
  height: auto;
  width: auto;
  max-height: 105px;
  min-height: 85px;
  max-width: 300px;
  object-fit: contain;
  object-position: left center;
}

.home-logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--hs-navy);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.home-logo-fallback .logo-mark {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--hs-orange), #ffb347);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.home-nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  justify-content: center;
  flex: 1;
}

.home-nav-links a {
  color: var(--hs-navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.home-nav-links a:hover,
.home-nav-links a.active {
  color: var(--hs-orange);
  border-bottom-color: var(--hs-orange);
}

.home-nav-cta {
  flex-shrink: 0;
}

.btn-get-involved {
  display: inline-block;
  background: var(--hs-orange);
  color: white;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-get-involved:hover {
  background: var(--hs-orange-dark);
  color: white;
  transform: translateY(-1px);
}

.home-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--hs-navy);
  justify-self: end;
}

/* ===== Hero ===== */
.home-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #111 url('/images/hero-bg.png') center/cover no-repeat;
  overflow: visible;
}

/* Black overlay — stronger near left edge, lighter toward right */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.78) 24%,
    rgba(0, 0, 0, 0.42) 48%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
}

.home-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  padding: 5rem 0 6.5rem;
  text-align: left;
  margin-right: auto;
  margin-left: 5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  text-align: left;
}

.home-hero h1 .line-white { color: white; display: block; }
.home-hero h1 .line-orange { color: var(--hs-orange); display: block; }
.home-hero h1 .line-green { color: #6fcf97; display: block; }

.home-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
  text-align: left;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--hs-orange);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-hero-primary:hover {
  background: var(--hs-orange-dark);
  color: white;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--hs-orange);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--hs-orange);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.btn-hero-outline:hover {
  background: var(--hs-orange);
  color: white;
}

/* ===== Stats Strip ===== */
.stats-strip {
  position: relative;
  margin-top: -3.5rem;
  z-index: 10;
  padding-bottom: 1rem;
}

.stats-strip-inner {
  background: white;
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem 1.5rem;
  gap: 1rem;
}

.stat-card {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid #eee;
}

.stat-card:last-child {
  border-right: none;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  background: #fff3ec;
  color: var(--hs-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hs-navy);
  margin-bottom: 0.15rem;
}

.stat-card p {
  font-size: 0.85rem;
  color: var(--hs-text-muted);
  font-weight: 500;
}

/* ===== Section Headers ===== */
.section-label {
  display: block;
  text-align: center;
  color: var(--hs-orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--hs-navy);
  margin-bottom: 2.5rem;
}

/* ===== Initiatives ===== */
.initiatives-section {
  padding: 4rem 0;
  background: var(--hs-gray-bg);
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.initiative-card {
  background: white;
  border-radius: var(--hs-radius);
  overflow: hidden;
  box-shadow: var(--hs-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.initiative-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.initiative-img {
  height: 180px;
  background: #ddd center/cover no-repeat;
  position: relative;
}

.initiative-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.15));
}

.initiative-body {
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
}

.initiative-icon {
  width: 44px;
  height: 44px;
  background: var(--hs-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: absolute;
  top: -22px;
  left: 1.25rem;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.initiative-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hs-navy);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.initiative-body p {
  font-size: 0.82rem;
  color: var(--hs-text-muted);
  line-height: 1.55;
}

.btn-view-all {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: var(--hs-orange);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.btn-view-all:hover {
  background: var(--hs-orange-dark);
  color: white;
}

/* ===== Featured Initiative Section ===== */
.initiative-spotlight {
  padding: 4.5rem 0;
  background: var(--hs-gray-bg);
}

.initiative-spotlight-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.initiative-spotlight-media {
  width: 100%;
}

.initiative-spotlight-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.initiative-spotlight-gallery img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow);
  display: block;
}

.initiative-spotlight-content .section-heading {
  text-align: left;
  margin-bottom: 1rem;
}

.initiative-spotlight-content p {
  color: var(--hs-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ===== Change Section ===== */
.change-section {
  padding: 4.5rem 0;
  background: white;
}

.change-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.change-content .section-label,
.change-content .section-heading {
  text-align: left;
}

.change-content .section-heading {
  margin-bottom: 1rem;
}

.change-content > p {
  color: var(--hs-text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.change-features {
  list-style: none;
  margin-bottom: 2rem;
}

.change-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.change-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.change-feature-icon.teal { background: #e8f5ef; color: var(--hs-teal); }
.change-feature-icon.blue { background: #e8eef5; color: var(--hs-navy); }

.change-features h4 {
  font-size: 0.95rem;
  color: var(--hs-navy);
  margin-bottom: 0.2rem;
}

.change-features p {
  font-size: 0.85rem;
  color: var(--hs-text-muted);
}

.btn-about-us {
  display: inline-block;
  background: var(--hs-orange);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-about-us:hover {
  background: var(--hs-orange-dark);
  color: white;
}

.change-images {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  min-height: 380px;
}

.change-img-main {
  grid-row: 1 / 3;
  border-radius: var(--hs-radius);
  background: #ccc center/cover no-repeat;
  min-height: 100%;
}

.change-img-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.change-img-small {
  flex: 1;
  border-radius: var(--hs-radius);
  background: #bbb center/cover no-repeat;
  min-height: 120px;
}

.vision-box {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: var(--hs-navy);
  color: white;
  padding: 1.5rem;
  border-radius: var(--hs-radius);
  max-width: 260px;
  box-shadow: var(--hs-shadow);
}

.vision-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--hs-orange);
}

.vision-box p {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===== Testimonials ===== */
.testimonials-section {
  padding: 4.5rem 0;
  background: var(--hs-gray-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--hs-radius);
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: var(--hs-shadow);
  position: relative;
  min-height: 220px;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--hs-orange);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
}

.testimonial-card blockquote {
  font-size: 0.88rem;
  color: var(--hs-text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
  padding-top: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.testimonial-author-info h4 {
  font-size: 0.9rem;
  color: var(--hs-navy);
  font-weight: 700;
}

.testimonial-author-info span {
  font-size: 0.78rem;
  color: var(--hs-text-muted);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddd center/cover no-repeat;
  flex-shrink: 0;
  border: 2px solid var(--hs-orange);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}

.testimonial-dots span.active {
  background: var(--hs-orange);
}

/* ===== Donate CTA ===== */
.donate-cta {
  background: var(--hs-navy);
  padding: 2.5rem 0;
}

.donate-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.donate-cta-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.donate-cta-text h2 {
  color: white;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.donate-cta-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--hs-orange);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-donate:hover {
  background: var(--hs-orange-dark);
  color: white;
}

/* ===== Home Footer ===== */
.home-footer {
  background: white;
  padding-top: 3.5rem;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.home-footer-brand img {
  height: auto;
  width: auto;
  max-height: 130px;
  max-width: 260px;
  margin-bottom: 1.25rem;
  object-fit: contain;
  object-position: left center;
}

.home-footer-brand p {
  font-size: 0.88rem;
  color: var(--hs-text-muted);
  line-height: 1.7;
}

.home-footer-col h4 {
  font-size: 0.95rem;
  color: var(--hs-navy);
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--hs-orange);
  display: inline-block;
}

.home-footer-col ul {
  list-style: none;
}

.home-footer-col li {
  margin-bottom: 0.6rem;
}

.home-footer-col a {
  color: var(--hs-text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.home-footer-col a:hover {
  color: var(--hs-orange);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--hs-text-muted);
}

.footer-contact-item .icon {
  color: var(--hs-orange);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.home-footer-bottom {
  background: var(--hs-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 1rem 0;
  font-size: 0.82rem;
}

.home-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-footer-bottom .heart {
  color: var(--hs-orange);
}

/* ===== Modal / Popup Form ===== */
.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 999;
}

.contact-modal.open {
  display: flex;
}

.contact-modal-card {
  width: min(640px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--hs-navy);
}

.contact-modal-card h3 {
  margin-bottom: 0.5rem;
  color: var(--hs-navy);
}

.contact-modal-card p {
  margin-bottom: 1.25rem;
  color: var(--hs-text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .initiatives-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2) {
    border-right: none;
  }

  .stat-card {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
  }

  .stat-card:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .home-hero-content {
    margin: 0 auto;
    text-align: center;
    align-items: center;
    max-width: 720px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero h1,
  .home-hero p {
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .change-content .section-label,
  .change-content .section-heading,
  .change-content > p {
    text-align: center;
  }

  .initiative-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .initiative-spotlight-content .section-heading {
    text-align: center;
  }

  .change-features li {
    justify-content: center;
    text-align: center;
  }

  .btn-about-us {
    display: block;
    margin: 0 auto;
    width: fit-content;
  }
}

@media (max-width: 768px) {
  .home-navbar {
    flex-wrap: wrap;
    min-height: auto;
    gap: 0.75rem;
  }

  .home-logo {
    min-width: auto;
    flex: 1;
  }

  .home-logo img {
    max-height: 72px;
    min-height: 60px;
    max-width: 200px;
  }

  .home-nav-links,
  .home-nav-cta {
    display: none;
  }

  .home-nav-toggle {
    display: block;
  }

  .home-nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: var(--hs-shadow);
    gap: 0;
    z-index: 300;
  }

  .home-nav-links.open li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .home-header .container {
    position: relative;
  }

  .home-hero {
    min-height: 460px;
  }

  .home-hero-content {
    padding: 3rem 0 5rem;
    max-width: 100%;
    text-align: left;
  }

  .home-hero h1,
  .home-hero p {
    text-align: left;
  }

  .hero-btns {
    justify-content: flex-start;
  }

  .change-grid,
  .testimonials-grid,
  .home-footer-grid {
    grid-template-columns: 1fr;
  }

  .change-images {
    min-height: 300px;
  }

  .vision-box {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }

  .donate-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .initiatives-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip-inner {
    grid-template-columns: 1fr 1fr;
  }
}
