/* ========================= 
   HOME PAGE STYLES
   (Uses global.css variables)
========================= */

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  background: url(/shared/images/east-african-digital-marketing.jpg) no-repeat center center / cover;
  color: #fff;
  z-index: 1;
}

.hero .hero-image {
  display: none; /* Hide redundant HTML <img> tag */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 15px auto;
  line-height: 1.6;
}

/* ========================= 
   SERVICES GRID
========================= */
.services-overview {
  padding: 60px 40px;
  text-align: left;
}

.services-overview h2 {
  font-size: 1.75rem;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary);
}

.services-overview p {
  max-width: 700px;
  margin: 0 auto 30px;
  color: #555;
}

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

.service-card {
  position: relative;
  display: block;
  background: #fff;
  padding: 25px 20px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-card::after {
  content: "→";
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 2rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.service-card:hover::after {
  color: var(--primary, #118AB2);
}

/* Brand hover accents */
.service-card.bg-brand-blue:hover   { border-top-color: var(--brand-blue); }
.service-card.bg-accent-coral:hover { border-top-color: var(--accent-coral); }
.service-card.bg-brand-green:hover  { border-top-color: var(--brand-green); }
.service-card.bg-brand-yellow:hover { border-top-color: var(--brand-yellow); }
.service-card.bg-brand-navy:hover   { border-top-color: var(--brand-navy); }

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* =========================
   TRUST SECTION
========================= */
.trust {
  display: flex;
  justify-content: center;
  background: #f4f4f4;
  padding: 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

.trust .container {
  max-width: 800px;
  width: 100%;
  text-align: left;
}

.trust h2 {
  font-size: 1.625rem;
  margin-bottom: 20px;
  text-align: left;
  color: var(--primary, #118AB2);
}

.trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust li {
  position: relative;
  padding-left: 25px;
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.trust li::before {
  content: '\f00c';
  font-family: "Font Awesome 6 Free", sans-serif;
  font-weight: 900;
  color: var(--primary, #118AB2);
  position: absolute;
  left: 0;
  top: 0.2rem;
}

/* =========================
   INSIGHTS SECTION
========================= */
.insights {
  padding: 60px 40px;
  text-align: center;
}

.insights h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.insight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.insight-list article {
  flex: 1 1 280px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.insight-list article:hover {
  transform: translateY(-4px);
}

.insight-list article a {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary, #118AB2);
  font-weight: 600;
  text-decoration: none;
}

.insight-list article a:hover {
  text-decoration: underline;
}

/* ========================= 
   SUCCESS STORIES SECTION
========================= */
.success-stories {
  padding: 4rem 2rem;
  background-color: #f9fafb;
  text-align: center;
}

.success-stories h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: var(--primary);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.story {
  background: var(--light, #fff);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.story h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  color: var(--dark, #333);
}

.story p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  color: var(--dark, #333);
}

.story-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* =========================
   PROGRESS BARS
========================= */
.progress {
  margin-bottom: 1.2rem;
}

.progress span {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary, #118AB2);
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 22px;
  background-color: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar div {
  height: 100%;
  line-height: 22px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  text-align: right;
  padding-right: 10px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary, #118AB2), var(--brand-green, #21B6A8));
  transition: width 1s ease-in-out;
}

.progress-bar .w-70,
.progress-bar .w-65 {
  border-radius: 20px 0 0 20px;
}

.success-cta {
  margin-top: 3rem;
}

.success-cta p {
  font-size: 1.125rem;
  color: var(--dark, #333); 
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.success-cta .cta-btn {
  background: var(--brand-green, #21B6A8);
  transition: background 0.3s ease, transform 0.2s ease;
}

.success-cta .cta-btn:hover {
  background: #1a9c8d;
  transform: translateY(-3px);
}

/* =========================
   CONTACT CTA & BUTTONS
========================= */
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transition: background 0.25s ease;
}

.cta-btn:hover {
  background: var(--accent);
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.contact-cta {
  text-align: center;
  padding: 70px 20px;
  background: var(--primary);
  color: #fff;
}

.contact-cta h2 {
  font-size: 1.875rem;
  margin-bottom: 15px;
}

.contact-cta p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
  }

  .hero h1 { font-size: 32px; }
  .hero p  { font-size: 1rem; }

  .services-overview,
  .trust,
  .insights,
  .success-stories {
    padding: 40px 20px;
  }

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

  .contact-cta { padding: 50px 15px; }
  .trust h2    { font-size: 1.4rem; }
}
