/* ============================================
   ABOUT PAGE - Specific Styles
   Matches homepage (index) design language
   ============================================ */

/* First section (hero) always visible; other sections animate in on scroll via .is-visible */
main > section:first-child {
  opacity: 1 !important;
  transform: none !important;
}

/* Page hero – two columns: text left, image right; matches homepage hero gradient */
.page-hero {
  position: relative;
  padding: calc(200px) var(--space-xl) var(--space-3xl);
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #164942 0%, #1e5c54 35%, #2a6b5e 55%, #4b774e 75%, #6b9068 90%, #9dc48b 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(157, 196, 139, 0.12), transparent 50%),
              radial-gradient(ellipse 60% 40% at 100% 60%, rgba(75, 119, 78, 0.15), transparent 50%);
  pointer-events: none;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.page-hero-content {
  text-align: left;
  max-width: 520px;
}

/* Match homepage .hero-label: same accent color and pill */
.page-hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9dc48b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  padding: var(--space-xs) var(--space-md);
  background: rgba(75, 119, 78, 0.4);
  border-radius: var(--radius-full);
  width: fit-content;
}

.page-hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* Match homepage .hero-highlight: same gradient */
.page-hero-highlight {
  background: linear-gradient(90deg, #4b774e, #9dc48b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* Image: tilt, blend, and floating effect */
.page-hero-image-wrap {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 4 / 3;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 20px;
  overflow: hidden;
  transform: perspective(800px) rotateY(-4deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 24px 48px -8px rgba(0, 0, 0, 0.35),
    0 48px 80px -24px rgba(0, 0, 0, 0.4),
    0 0 120px -20px rgba(75, 119, 78, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-hero-image-wrap:hover {
  transform: perspective(800px) rotateY(-2deg) translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 32px 64px -8px rgba(0, 0, 0, 0.4),
    0 64px 100px -24px rgba(0, 0, 0, 0.45),
    0 0 140px -16px rgba(75, 119, 78, 0.3);
}

.page-hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 85% at 60% 50%,
    transparent 50%,
    rgba(15, 23, 42, 0.25) 75%,
    rgba(15, 23, 42, 0.7) 100%
  );
  pointer-events: none;
}

.page-hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: brightness(1);
}

@media (max-width: 900px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .page-hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-hero-label {
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero-image-wrap {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* About intro – Our mission section, bubble decor */
.about-intro {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, white 100%);
}

.about-intro-container {
  position: relative;
  z-index: 1;
}

.about-intro-header {
  margin-bottom: var(--space-3xl);
  text-align: center;
}

.about-intro-header .section-label {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.about-intro-header .section-title {
  color: var(--color-primary);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.about-intro-header .section-desc {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* Two rows: mission card (row 1), value cards (row 2) */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

/* Row 1: full-width mission card */
.about-mission-card {
  background: white;
  border-radius: 20px;
  padding: var(--space-2xl) var(--space-3xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(75, 119, 78, 0.1);
}

.about-mission-inner {
  max-width: 72ch;
  margin: 0 auto;
}

.about-mission-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.about-mission-text {
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.85;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.about-mission-text:last-child {
  margin-bottom: 0;
}

/* Row 2: four horizontal value cards */
.about-values-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Flip card: front = icon + title, back = description (darker), horizontal flip on hover */
.about-value-card {
  perspective: 800px;
  min-height: 200px;
}

.about-value-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

.about-value-card:hover .about-value-card-inner {
  transform: rotateY(180deg);
}

.about-value-card-front,
.about-value-card-back {
  position: absolute;
  inset: 0;
  padding: var(--space-xl) var(--space-lg);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-value-card-front {
  background: white;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.about-value-card-back {
  background:
    linear-gradient(135deg, rgba(75, 119, 78, 0.12) 0%, transparent 100%, rgba(157, 196, 139, 0.08) 0%),
    linear-gradient(180deg, var(--color-primary-light) 100%, var(--color-primary) 50%);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
  transform: rotateY(180deg);
}

.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(75, 119, 78, 0.35);
  color: white;
}

.about-value-icon svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.about-value-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.about-value-card-back .about-value-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 600;
  margin: 0;
}

@media (max-width: 900px) {
  .about-values-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-mission-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .about-values-row {
    grid-template-columns: 1fr;
  }
}

/* Stats – modern cards with number animation */
.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f1f5f9 100%);
  padding: var(--space-3xl) 0;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

/* Fireflies flowing right to left (same look as index, different motion) */
.stats-section .fireflies--flow-left .firefly {
  left: 100%;
  margin-left: -6px; /* so firefly starts fully visible at right edge */
  animation-name: stats-firefly-flow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: normal;
}

.stats-section .fireflies--flow-left .firefly:nth-child(1)  { top: 8%;  animation-duration: 22s; animation-delay: 0s; }
.stats-section .fireflies--flow-left .firefly:nth-child(2)  { top: 22%; animation-duration: 26s; animation-delay: -3s; }
.stats-section .fireflies--flow-left .firefly:nth-child(3)  { top: 38%; animation-duration: 20s; animation-delay: -7s; }
.stats-section .fireflies--flow-left .firefly:nth-child(4)  { top: 52%; animation-duration: 28s; animation-delay: -1s; }
.stats-section .fireflies--flow-left .firefly:nth-child(5)  { top: 68%; animation-duration: 24s; animation-delay: -5s; }
.stats-section .fireflies--flow-left .firefly:nth-child(6)  { top: 82%; animation-duration: 19s; animation-delay: -9s; }
.stats-section .fireflies--flow-left .firefly:nth-child(7)  { top: 15%; animation-duration: 30s; animation-delay: -12s; }
.stats-section .fireflies--flow-left .firefly:nth-child(8)  { top: 45%; animation-duration: 23s; animation-delay: -4s; }
.stats-section .fireflies--flow-left .firefly:nth-child(9)  { top: 5%;  animation-duration: 21s; animation-delay: -2s; }
.stats-section .fireflies--flow-left .firefly:nth-child(10) { top: 28%; animation-duration: 27s; animation-delay: -6s; }
.stats-section .fireflies--flow-left .firefly:nth-child(11) { top: 58%; animation-duration: 18s; animation-delay: -10s; }
.stats-section .fireflies--flow-left .firefly:nth-child(12) { top: 72%; animation-duration: 25s; animation-delay: -14s; }
.stats-section .fireflies--flow-left .firefly:nth-child(13) { top: 92%; animation-duration: 29s; animation-delay: -8s; }
.stats-section .fireflies--flow-left .firefly:nth-child(14) { top: 42%; animation-duration: 20s; animation-delay: -11s; }
.stats-section .fireflies--flow-left .firefly:nth-child(15) { top: 12%; animation-duration: 31s; animation-delay: -15s; }
.stats-section .fireflies--flow-left .firefly:nth-child(16) { top: 35%; animation-duration: 22s; animation-delay: -2s; }
.stats-section .fireflies--flow-left .firefly:nth-child(17) { top: 62%; animation-duration: 26s; animation-delay: -6s; }
.stats-section .fireflies--flow-left .firefly:nth-child(18) { top: 78%; animation-duration: 19s; animation-delay: -13s; }
.stats-section .fireflies--flow-left .firefly:nth-child(19) { top: 18%; animation-duration: 24s; animation-delay: -9s; }
.stats-section .fireflies--flow-left .firefly:nth-child(20) { top: 88%; animation-duration: 28s; animation-delay: -4s; }
.stats-section .fireflies--flow-left .firefly:nth-child(21) { top: 48%; animation-duration: 21s; animation-delay: -16s; }
.stats-section .fireflies--flow-left .firefly:nth-child(22) { top: 25%; animation-duration: 27s; animation-delay: -8s; }
.stats-section .fireflies--flow-left .firefly:nth-child(23) { top: 75%; animation-duration: 23s; animation-delay: -1s; }
.stats-section .fireflies--flow-left .firefly:nth-child(24) { top: 2%;  animation-duration: 20s; animation-delay: -5s; }
.stats-section .fireflies--flow-left .firefly:nth-child(25) { top: 95%; animation-duration: 30s; animation-delay: -10s; }
.stats-section .fireflies--flow-left .firefly:nth-child(26) { top: 32%; animation-duration: 25s; animation-delay: -17s; }
.stats-section .fireflies--flow-left .firefly:nth-child(27) { top: 55%; animation-duration: 18s; animation-delay: -3s; }
.stats-section .fireflies--flow-left .firefly:nth-child(28) { top: 65%; animation-duration: 29s; animation-delay: -11s; }
.stats-section .fireflies--flow-left .firefly:nth-child(29) { top: 10%; animation-duration: 22s; animation-delay: -7s; }
.stats-section .fireflies--flow-left .firefly:nth-child(30) { top: 40%; animation-duration: 24s; animation-delay: -12s; }
.stats-section .fireflies--flow-left .firefly:nth-child(31) { top: 70%; animation-duration: 21s; animation-delay: -4s; }
.stats-section .fireflies--flow-left .firefly:nth-child(32) { top: 4%;  animation-duration: 27s; animation-delay: -15s; }
.stats-section .fireflies--flow-left .firefly:nth-child(33) { top: 50%; animation-duration: 19s; animation-delay: -8s; }
.stats-section .fireflies--flow-left .firefly:nth-child(34) { top: 85%; animation-duration: 26s; animation-delay: -2s; }
.stats-section .fireflies--flow-left .firefly:nth-child(35) { top: 16%; animation-duration: 23s; animation-delay: -14s; }
.stats-section .fireflies--flow-left .firefly:nth-child(36) { top: 60%; animation-duration: 28s; animation-delay: -6s; }
.stats-section .fireflies--flow-left .firefly:nth-child(37) { top: 34%; animation-duration: 20s; animation-delay: -10s; }
.stats-section .fireflies--flow-left .firefly:nth-child(38) { top: 76%; animation-duration: 25s; animation-delay: -1s; }
.stats-section .fireflies--flow-left .firefly:nth-child(39) { top: 14%; animation-duration: 31s; animation-delay: -9s; }
.stats-section .fireflies--flow-left .firefly:nth-child(40) { top: 44%; animation-duration: 22s; animation-delay: -13s; }
.stats-section .fireflies--flow-left .firefly:nth-child(41) { top: 90%; animation-duration: 18s; animation-delay: -5s; }
.stats-section .fireflies--flow-left .firefly:nth-child(42) { top: 6%;  animation-duration: 29s; animation-delay: -11s; }
.stats-section .fireflies--flow-left .firefly:nth-child(43) { top: 54%; animation-duration: 24s; animation-delay: -16s; }
.stats-section .fireflies--flow-left .firefly:nth-child(44) { top: 80%; animation-duration: 21s; animation-delay: -3s; }
.stats-section .fireflies--flow-left .firefly:nth-child(45) { top: 26%; animation-duration: 27s; animation-delay: -7s; }
.stats-section .fireflies--flow-left .firefly:nth-child(46) { top: 66%; animation-duration: 20s; animation-delay: -12s; }
.stats-section .fireflies--flow-left .firefly:nth-child(47) { top: 36%; animation-duration: 30s; animation-delay: -4s; }
.stats-section .fireflies--flow-left .firefly:nth-child(48) { top: 98%; animation-duration: 23s; animation-delay: -8s; }
.stats-section .fireflies--flow-left .firefly:nth-child(49) { top: 20%; animation-duration: 26s; animation-delay: -14s; }
.stats-section .fireflies--flow-left .firefly:nth-child(50) { top: 74%; animation-duration: 19s; animation-delay: -6s; }

@keyframes stats-firefly-flow {
  from { transform: translateX(0) scale(0.65); }
  to   { transform: translateX(-120vw) scale(0.65); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(75, 119, 78, 0.2);
}

.stat-number {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
  min-height: 1.2em;
}

.stat-number--text {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--color-primary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.stats-section.is-visible .stat-number--text {
  opacity: 1;
  transform: translateY(0);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .stat-card {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Why Choose Us – one big card, text left, image right, darker background */
.why-choose-section {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.why-choose-container {
  position: relative;
  z-index: 1;
}

.why-choose-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(75, 119, 78, 0.1) 0%, transparent 50%, rgba(157, 196, 139, 0.08) 100%),
    linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
}

.why-choose-content {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) var(--space-3xl);
  text-align: left;
}

/* Match homepage hero highlight gradient */
.why-choose-content .section-label {
  background: #9dc48b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.why-choose-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.why-choose-intro {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.why-choose-trust {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xl);
}

.why-choose-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-choose-list li {
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-choose-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.why-choose-item-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.why-choose-item-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin: 0;
}

.why-choose-image-wrap {
  min-height: 320px;
  background: rgba(0, 0, 0, 0.2);
}

.why-choose-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}


@media (max-width: 900px) {
  .why-choose-card {
    grid-template-columns: 1fr;
  }

  .why-choose-image-wrap {
    order: -1;
    min-height: 280px;
  }

  .why-choose-content {
    padding: var(--space-2xl) var(--space-xl);
  }
}
