/* =========================================
   ABOUT PAGE
   ULINZI 360 — PREMIUM CONSULTANCY STYLE
========================================= */


/* =========================================
   PAGE HERO
========================================= */

.page-hero {
  min-height: 78vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-top: 150px;
  padding-bottom: 110px;

  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";

  position: absolute;

  width: 850px;
  height: 850px;

  top: -420px;
  right: -300px;

  background:
    radial-gradient(
      circle,
      rgba(201, 168, 92, 0.12),
      transparent 68%
    );

  pointer-events: none;
  z-index: -1;
}

.page-hero::after {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  bottom: -300px;
  left: -250px;

  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.035),
      transparent 70%
    );

  pointer-events: none;
  z-index: -1;
}

.page-hero h1 {
  font-family: "Merriweather", serif;

  font-weight: 900;

  font-size: clamp(3.8rem, 7vw, 6.8rem);

  line-height: 0.95;

  letter-spacing: -0.055em;

  max-width: 1000px;

  margin: 24px 0 32px;
}

.page-hero p {
  max-width: 760px;

  color: var(--muted);

  font-size: 1.08rem;

  line-height: 1.9;
}


/* =========================================
   STORY / WHO WE ARE
========================================= */

.about-story {
  padding: 110px 0 150px;
}

.about-story {
  position: relative;
}

.about-story::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 90px;
  height: 1px;

  background: var(--accent);
}

.about-story .section-top {
  margin-bottom: 45px;
}

.about-story .section-top h2 {
  max-width: 850px;
}

.about-story p {
  max-width: 900px;

  color: var(--muted);

  font-size: 1.05rem;

  line-height: 2;
}


/* =========================================
   PRINCIPLES
========================================= */

.about-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;

  padding-bottom: 150px;
}

.about-card {
  position: relative;

  min-height: 300px;

  padding: 42px;

  border: 1px solid var(--line);

  border-radius: 24px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.012)
    );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.about-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(201, 168, 92, 0.10),
      transparent 48%
    );

  opacity: 0;

  transition: opacity 0.35s ease;

  pointer-events: none;
}

.about-card:hover {
  transform: translateY(-8px);

  border-color: rgba(201, 168, 92, 0.38);

  box-shadow:
    0 25px 65px rgba(0, 0, 0, 0.28);
}

.about-card:hover::before {
  opacity: 1;
}

.about-number {
  position: relative;
  z-index: 1;

  display: inline-flex;

  align-items: center;

  gap: 12px;

  color: var(--accent);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.22em;

  margin-bottom: 30px;
}

.about-number::after {
  content: "";

  width: 38px;
  height: 1px;

  background: rgba(201, 168, 92, 0.5);
}

.about-card h3 {
  position: relative;
  z-index: 1;

  font-family: "Merriweather", serif;

  font-size: 1.65rem;

  line-height: 1.3;

  margin-bottom: 18px;
}

.about-card p {
  position: relative;
  z-index: 1;

  max-width: 520px;

  color: var(--muted);

  line-height: 1.85;
}


/* =========================================
   TIMELINE
========================================= */

.timeline {
  padding-bottom: 150px;
}

.timeline .section-top {
  margin-bottom: 60px;
}

.timeline-grid {
  position: relative;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;
}

.timeline-grid::before {
  content: "";

  position: absolute;

  left: 50%;

  top: 0;
  bottom: 0;

  width: 1px;

  background: var(--line);

  transform: translateX(-50%);
}

.timeline-item {
  position: relative;

  padding: 40px;

  border: 1px solid var(--line);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.012)
    );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.timeline-item:nth-child(odd) {
  margin-right: 24px;
}

.timeline-item:nth-child(even) {
  margin-left: 24px;
}

.timeline-item::before {
  content: "";

  position: absolute;

  top: 38px;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 0 6px rgba(201, 168, 92, 0.10);
}

.timeline-item:nth-child(odd)::before {
  right: -30px;
}

.timeline-item:nth-child(even)::before {
  left: -30px;
}

.timeline-item:hover {
  transform: translateY(-7px);

  border-color: rgba(201, 168, 92, 0.35);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.25);
}

.timeline-item h3 {
  font-family: "Merriweather", serif;

  font-size: 2rem;

  line-height: 1;

  color: var(--accent);

  margin-bottom: 18px;
}

.timeline-item p {
  color: var(--muted);

  line-height: 1.85;
}


/* =========================================
   TEAM / LEADERSHIP
========================================= */

.team-section {
  padding-bottom: 150px;
}

.team-section .section-top {
  margin-bottom: 55px;
}

.team-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 24px;

  margin-top: 55px;
}

.team-card {
  position: relative;

  padding: 38px;

  border: 1px solid var(--line);

  border-radius: 24px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.012)
    );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.team-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: var(--accent);

  transform: scaleX(0);

  transform-origin: left;

  transition: transform 0.35s ease;
}

.team-card:hover {
  transform: translateY(-7px);

  border-color: rgba(201, 168, 92, 0.35);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.28);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.avatar {
  width: 76px;
  height: 76px;

  margin-bottom: 25px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      rgba(201, 168, 92, 0.18),
      rgba(201, 168, 92, 0.05)
    );

  border: 1px solid rgba(201, 168, 92, 0.32);

  color: var(--accent);

  font-family: "Merriweather", serif;

  font-size: 1.25rem;

  font-weight: 900;
}

.team-card h3 {
  font-family: "Merriweather", serif;

  font-size: 1.35rem;

  line-height: 1.35;

  margin-bottom: 15px;
}

.team-card p {
  color: var(--muted);

  line-height: 1.8;

  margin-bottom: 22px;
}

.team-tag {
  display: inline-flex;

  align-items: center;

  padding: 8px 14px;

  border-radius: 100px;

  border: 1px solid var(--line);

  background: rgba(201, 168, 92, 0.055);

  color: var(--accent);

  font-size: 0.64rem;

  font-weight: 700;

  letter-spacing: 0.16em;
}


/* =========================================
   EXPERTISE GRID
   For the redesigned About HTML
========================================= */

.expertise-section {
  padding-bottom: 150px;
}

.expertise-grid {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 16px;

  margin-top: 55px;
}

.expertise-card {
  position: relative;

  min-height: 190px;

  padding: 28px;

  border: 1px solid var(--line);

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.01)
    );

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-6px);

  border-color: rgba(201, 168, 92, 0.32);

  background:
    linear-gradient(
      145deg,
      rgba(201, 168, 92, 0.07),
      rgba(255, 255, 255, 0.015)
    );
}

.expertise-card span {
  display: block;

  color: var(--accent);

  font-size: 0.68rem;

  font-weight: 700;

  letter-spacing: 0.18em;

  margin-bottom: 22px;
}

.expertise-card h3 {
  font-family: "Merriweather", serif;

  font-size: 1.05rem;

  line-height: 1.45;

  margin-bottom: 12px;
}

.expertise-card p {
  color: var(--muted);

  font-size: 0.88rem;

  line-height: 1.7;
}


/* =========================================
   ABOUT CTA
========================================= */

.about-cta {
  padding-bottom: 120px;
}

.about-cta-inner {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 50px;

  padding: 70px;

  border: 1px solid rgba(201, 168, 92, 0.25);

  border-radius: 30px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(201, 168, 92, 0.08),
      rgba(255, 255, 255, 0.025)
    );
}

.about-cta-inner::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  top: -300px;
  right: -150px;

  background:
    radial-gradient(
      circle,
      rgba(201, 168, 92, 0.12),
      transparent 70%
    );

  pointer-events: none;
}

.about-cta-content {
  position: relative;

  max-width: 700px;
}

.about-cta-content h2 {
  font-family: "Merriweather", serif;

  font-size: clamp(2rem, 4vw, 3.5rem);

  line-height: 1.15;

  margin-bottom: 18px;
}

.about-cta-content p {
  color: var(--muted);

  line-height: 1.8;
}

.about-cta-action {
  position: relative;

  flex-shrink: 0;
}


/* =========================================
   SHARED SECTION HEADING SUPPORT
========================================= */

.section-top {
  position: relative;
}

.section-top h2 {
  font-family: "Merriweather", serif;

  font-size: clamp(2rem, 4vw, 3.5rem);

  line-height: 1.15;

  letter-spacing: -0.035em;

  margin-top: 14px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

  .page-hero {
    min-height: 72vh;
  }

  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* =========================================
   TABLET / SMALL LAPTOP
========================================= */

@media (max-width: 900px) {

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

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

  .timeline-grid::before {
    display: none;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .timeline-item::before,
  .timeline-item:nth-child(odd)::before,
  .timeline-item:nth-child(even)::before {
    display: none;
  }

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

  .about-cta-inner {
    flex-direction: column;

    align-items: flex-start;

    padding: 55px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  .page-hero {
    min-height: auto;

    padding-top: 135px;
    padding-bottom: 90px;
  }

  .page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);

    line-height: 0.98;
  }

  .page-hero p {
    font-size: 0.98rem;

    line-height: 1.8;
  }


  .about-story {
    padding-top: 85px;
    padding-bottom: 100px;
  }

  .about-story p {
    font-size: 0.98rem;
  }


  .about-grid {
    gap: 18px;

    padding-bottom: 100px;
  }

  .about-card {
    min-height: auto;

    padding: 32px;

    border-radius: 20px;
  }

  .about-card h3 {
    font-size: 1.45rem;
  }


  .timeline {
    padding-bottom: 100px;
  }

  .timeline .section-top {
    margin-bottom: 40px;
  }

  .timeline-item {
    padding: 30px;

    border-radius: 20px;
  }

  .timeline-item h3 {
    font-size: 1.7rem;
  }


  .team-section {
    padding-bottom: 100px;
  }

  .team-grid {
    grid-template-columns: 1fr;

    gap: 18px;

    margin-top: 40px;
  }

  .team-card {
    padding: 30px;

    border-radius: 20px;
  }


  .expertise-section {
    padding-bottom: 100px;
  }

  .expertise-grid {
    grid-template-columns: 1fr;

    gap: 14px;

    margin-top: 40px;
  }

  .expertise-card {
    min-height: auto;

    padding: 25px;
  }


  .about-cta {
    padding-bottom: 80px;
  }

  .about-cta-inner {
    padding: 38px 28px;

    border-radius: 22px;

    gap: 30px;
  }

  .about-cta-content h2 {
    font-size: 2rem;
  }

}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 420px) {

  .page-hero {
    padding-top: 120px;
    padding-bottom: 75px;
  }

  .page-hero h1 {
    font-size: 2.8rem;
  }

  .about-card,
  .timeline-item,
  .team-card {
    padding: 25px;
  }

  .about-card h3 {
    font-size: 1.3rem;
  }

  .section-top h2 {
    font-size: 1.9rem;
  }

  .about-cta-inner {
    padding: 30px 22px;
  }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

  .about-card,
  .timeline-item,
  .team-card,
  .expertise-card {
    transition: none;
  }

  .team-card::before {
    transition: none;
  }

}