/* ===== Activeworld Foundation CIC — Brand Theme (Green & Navy) ===== */

:root {
  --navy-dark: #1b355e;
  --navy: #1e3a68;
  --green-dark: #1e7145;
  --green: #2e8b52;
  --green-mid: #4caf6d;
  --green-light: #8cc63f;
  --green-pale: #ecfdf5;
  --green-pale-2: #d1fae5;
  --blue-pale: #e2eaf3;
  --blue-pale-2: #c5d6e8;
  --gray-text: #4b5563;
  --gray-light: #6b7280;
  --dark-text: #1f2937;
  --bg-light: #f9fafb;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  width: auto;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-text);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-dark);
}

.cta-button {
  background-color: var(--green-dark);
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--green);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--green-dark);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-pale-2) 100%);
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.hero-description {
  color: var(--gray-text);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image img,
.welcome-image img,
.why-choose-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  background-color: var(--green-pale);
  object-fit: cover;
  min-height: 200px;
  display: block;
}

.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--green-dark);
  color: white;
}

.btn-primary:hover {
  background-color: var(--green);
}

.btn-secondary {
  background-color: white;
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}

.btn-secondary:hover {
  background-color: var(--green-pale);
}

/* Welcome Section */
.welcome {
  padding: 80px 0;
}

.welcome-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.section-description {
  color: var(--gray-text);
  margin-bottom: 15px;
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-label {
  font-size: 0.875rem;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-tagline {
  font-size: 1.2rem;
  color: var(--gray-text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Override random inline icon colors so everything matches the green/navy brand */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  background-color: var(--green-dark) !important;
}

.service-card:nth-child(2n) .service-icon {
  background-color: var(--navy) !important;
}

.service-card:nth-child(3n) .service-icon {
  background-color: var(--green-mid) !important;
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 10px;
}

.service-description {
  color: var(--gray-light);
  margin-bottom: 20px;
}

.service-image {
  width: 100%;
  border-radius: 12px;
  background-color: var(--green-pale);
  min-height: 160px;
  object-fit: cover;
  display: block;
}

/* Approach Section */
.approach {
  padding: 80px 0;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.approach-card {
  text-align: center;
  padding: 30px;
}

.approach-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  color: var(--green-dark) !important;
}

.approach-icon svg {
  width: 100%;
  height: 100%;
}

.approach-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.approach-description {
  color: var(--gray-light);
}

/* Why Choose Us Section */
.why-choose {
  padding: 80px 0;
  background-color: var(--green-pale);
}

.why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.why-choose-list {
  list-style: none;
}

.why-choose-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--gray-text);
  font-weight: 500;
}

.why-choose-list li::before {
  content: '✓';
  color: var(--green-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Covid-19 Help Team Slideshow */
.covid-help {
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-pale-2) 100%);
  padding: 80px 0;
}

.slideshow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.slideshow-viewport {
  flex: 0 1 auto;
  width: min(440px, calc(70vh * 1105 / 1423), 100%);
  aspect-ratio: 1105 / 1423;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  background: transparent;
}

.slideshow-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  background-color: transparent;
}

.slideshow-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: var(--green-dark);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.slideshow-btn:hover {
  background-color: var(--green);
  transform: scale(1.05);
}

.slideshow-btn svg {
  width: 24px;
  height: 24px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  padding: 0;
}

.slideshow-dot.active {
  background-color: var(--green-dark);
  transform: scale(1.2);
}

.slideshow-dot:hover {
  background-color: var(--green-mid);
}

/* Referrals Section */
.referrals {
  padding: 80px 0;
}

.referrals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.referral-item {
  text-align: center;
  padding: 20px;
}

.referral-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  color: var(--green-dark);
  background: transparent;
}

.referral-icon svg {
  width: 100%;
  height: 100%;
}

.referral-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.referral-text {
  color: var(--gray-text);
  font-weight: 500;
}

/* Footer */
.footer {
  background-color: var(--navy-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-text {
  color: var(--green-pale-2);
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--green-pale-2);
}

.footer .btn-primary {
  background-color: var(--green);
  border: none;
}

.footer .btn-primary:hover {
  background-color: var(--green-mid);
}

/* Fix for broken/loading images showing as black boxes */
img {
  background-color: var(--green-pale);
}

img:not([src]),
img[src=""] {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .cta-button {
    display: none;
  }

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

  .hero-image {
    order: -1;
  }

  .welcome-content {
    grid-template-columns: 1fr;
  }

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

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

  .why-choose-content {
    grid-template-columns: 1fr;
  }

  .slideshow {
    gap: 12px;
  }

  .slideshow-btn {
    width: 40px;
    height: 40px;
  }

  .slideshow-btn svg {
    width: 20px;
    height: 20px;
  }

  .referrals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

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

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}
