/**
 * TSW About Page Styles
 *
 * Ported from static site, adapted for theme CSS variables.
 * Used on: page-templates/template-about.php
 *
 * @package TSW
 * @since   1.0.0
 */

/* ============ ABOUT HERO ============ */
.abt-hero {
  position: relative;
  padding: 120px 0 90px;
  background: linear-gradient(155deg, #111820 0%, #162230 35%, #1a3a25 70%, #234D20 100%);
  overflow: hidden;
}

.abt-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.abt-hero-shapes .tsw-shape { opacity: .06; }

.abt-breadcrumb {
  font-size: .8rem;
  margin-bottom: 28px;
}

.abt-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}

.abt-breadcrumb .breadcrumb-item a:hover { color: var(--tsw-white); }
.abt-breadcrumb .breadcrumb-item.active { color: var(--tsw-green-bright); font-weight: 600; }
.abt-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

.abt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tsw-green-bright);
  background: rgba(149,191,71,.12);
  border: 1px solid rgba(149,191,71,.2);
  border-radius: 50px;
  margin-bottom: 18px;
}

.abt-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--tsw-white);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  max-width: 620px;
}

.abt-hero-title .tsw-highlight { color: var(--tsw-green-bright); }

.abt-hero-desc {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

/* Hero Stats Strip */
.abt-hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.abt-hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.abt-hero-stat:first-child { padding-left: 0; }
.abt-hero-stat:last-child { border-right: none; padding-right: 0; }

.abt-hero-stat strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--tsw-green-bright);
  font-family: var(--tsw-font-display, 'Qilka', serif);
  line-height: 1;
}

.abt-hero-stat span {
  font-size: .76rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}

/* Hero Visual — Right Side */
.abt-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 20px;
}

/* Ambient glow */
.abt-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,191,71,.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: spPulseGlow 6s ease-in-out infinite;
}

/* Dot-grid pattern */
.abt-hero-visual::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 90%;
  height: 80%;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 20px;
  pointer-events: none;
  opacity: .5;
}

/* Main card */
.abt-hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 36px 30px;
  backdrop-filter: blur(12px);
  box-shadow:
    0 25px 60px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.05),
    inset 0 1px 0 rgba(255,255,255,.1);
}

/* Top shine */
.abt-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

/* Central shield icon */
.abt-hero-card-badge {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--tsw-green-bright);
  background: rgba(149,191,71,.15);
  border: 1px solid rgba(149,191,71,.2);
  margin-bottom: 20px;
}

.abt-hero-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tsw-white);
  margin-bottom: 6px;
  font-family: var(--tsw-font-body, 'Inter', sans-serif);
}

.abt-hero-card-sub {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Mini stat rows inside card */
.abt-hero-card-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.abt-hero-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  transition: all .3s ease;
}

.abt-hero-card-row:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(149,191,71,.2);
}

.abt-hero-card-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  color: var(--tsw-white);
}

/* Default icon background (first card row uses no modifier) */
.abt-hero-card-row-icon { background: linear-gradient(135deg, #5e8e3e, #95bf47); }
.abt-hero-card-row-icon--green { background: linear-gradient(135deg, #5e8e3e, #95bf47); }
.abt-hero-card-row-icon--teal { background: linear-gradient(135deg, #0f4f4f, #1a8a8a); }
.abt-hero-card-row-icon--orange { background: linear-gradient(135deg, #c67d30, #e8a040); }
.abt-hero-card-row-icon--purple { background: linear-gradient(135deg, #6b3fa0, #9b59b6); }

.abt-hero-card-row h5 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--tsw-white);
  margin: 0 0 1px;
}

.abt-hero-card-row p {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  margin: 0;
  line-height: 1.3;
}

/* Floating badges */
.abt-hero-float {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: rgba(20,20,20,.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--tsw-white);
  white-space: nowrap;
  box-shadow: 0 10px 32px rgba(0,0,0,.35);
}

.abt-hero-float i {
  color: var(--tsw-green-bright);
  font-size: 1.05rem;
}

.abt-hero-float--1 {
  top: 30px;
  right: 0;
  animation: abtFloat 5s ease-in-out infinite;
}

.abt-hero-float--2 {
  bottom: 40px;
  left: 0;
  animation: abtFloat 5s ease-in-out infinite 2.5s;
}

@keyframes abtFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ OUR STORY ============ */
.abt-story {
  padding: 100px 0;
  background: var(--tsw-white);
}

.abt-story-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tsw-green);
  margin-bottom: 10px;
}

.abt-story-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--tsw-ink);
  line-height: 1.2;
  margin-bottom: 20px;
}

.abt-story-text {
  font-size: 1rem;
  color: var(--tsw-graphite);
  line-height: 1.8;
  margin-bottom: 16px;
}

.abt-story-text:last-of-type { margin-bottom: 0; }

.abt-story-highlight {
  padding: 24px 28px;
  background: var(--tsw-green-wash);
  border-left: 4px solid var(--tsw-green);
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-size: .95rem;
  color: var(--tsw-forest);
  font-weight: 500;
  line-height: 1.7;
}

/* Story visual side — Image with overlay badge */
.abt-story-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, var(--tsw-cloud) 0%, #e2e8d6 100%);
}

.abt-story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  min-height: 420px;
}

.abt-story-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--tsw-forest);
  color: var(--tsw-white);
  padding: 18px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.abt-story-badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--tsw-font-display, 'Qilka', serif);
  line-height: 1;
  color: var(--tsw-green-bright);
}

.abt-story-badge-text {
  font-size: .72rem;
  opacity: .8;
  line-height: 1.3;
  margin-top: 4px;
  display: block;
}

/* Decorative inner shapes */
.abt-story-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(149,191,71,.15);
  z-index: 0;
}

.abt-story-visual::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(94,142,62,.1);
  z-index: 0;
}

/* ============ STATS COUNTER STRIP ============ */
.abt-stats {
  padding: 0;
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

.abt-stats-inner {
  background: var(--tsw-forest);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: var(--shadow-xl);
}

.abt-stat-item {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.abt-stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,.12);
}

.abt-stat-value {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--tsw-font-display, 'Qilka', serif);
  color: var(--tsw-green-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.abt-stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.4;
}

/* ============ MISSION & VALUES ============ */
.abt-values {
  padding: 100px 0;
  background: var(--tsw-cloud);
}

.abt-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.abt-value-card {
  background: var(--tsw-white);
  border-radius: 16px;
  padding: 34px 28px;
  border: 1.5px solid transparent;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.abt-value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tsw-green), var(--tsw-green-bright));
  opacity: 0;
  transition: opacity .3s;
}

.abt-value-card:hover {
  border-color: rgba(94,142,62,.2);
  box-shadow: 0 12px 36px rgba(94,142,62,.1);
  transform: translateY(-5px);
}

.abt-value-card:hover::after { opacity: 1; }

.abt-value-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  background: rgba(94,142,62,.1);
  color: var(--tsw-green);
}

.abt-value-card h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 10px;
}

.abt-value-card p {
  font-size: .88rem;
  color: var(--tsw-graphite);
  line-height: 1.65;
  margin: 0;
}

/* ============ WHY CHOOSE US ============ */
.abt-why {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(160deg, #111820 0%, #162230 40%, #1a3a25 100%);
  overflow: hidden;
}

.abt-why .tsw-section-title { color: var(--tsw-white); }
.abt-why .tsw-section-subtitle { color: rgba(255,255,255,.55); }

.abt-why-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.abt-why-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
}

.abt-why-shape--1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--tsw-green-bright) 0%, transparent 70%);
}

.abt-why-shape--2 {
  width: 350px;
  height: 350px;
  bottom: -150px;
  left: -80px;
  background: radial-gradient(circle, var(--tsw-green) 0%, transparent 70%);
}

.abt-why-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.abt-why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.abt-why-card {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 30px 26px;
  backdrop-filter: blur(6px);
  transition: all .4s ease;
  overflow: hidden;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.abt-why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tsw-green-bright), var(--tsw-green));
  opacity: 0;
  transition: opacity .3s;
}

.abt-why-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(149,191,71,.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.abt-why-card:hover::before { opacity: 1; }

.abt-why-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(149,191,71,.15);
  color: var(--tsw-green-bright);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.abt-why-card h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--tsw-white);
  margin-bottom: 8px;
}

.abt-why-card p {
  font-size: .86rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin: 0;
}

/* ============ GLOBAL REACH / COUNTRIES ============ */
.abt-reach {
  padding: 100px 0;
  background: var(--tsw-white);
}

.abt-reach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.abt-reach-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1.5px solid var(--tsw-stone);
  background: var(--tsw-white);
  transition: all .3s ease;
}

.abt-reach-card:hover {
  border-color: var(--tsw-green);
  box-shadow: 0 10px 30px rgba(94,142,62,.08);
  transform: translateY(-4px);
}

.abt-reach-flag {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.abt-reach-card h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin-bottom: 2px;
}

.abt-reach-card p {
  font-size: .74rem;
  color: var(--tsw-graphite);
  margin: 0;
}

/* ============ CERTIFICATIONS / PARTNERS ============ */
.abt-certs {
  padding: 80px 0;
  background: var(--tsw-cloud);
  border-top: 1px solid var(--tsw-stone);
}

.abt-certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.abt-cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--tsw-white);
  border-radius: 14px;
  border: 1.5px solid var(--tsw-stone);
  transition: all .3s ease;
}

.abt-cert-card:hover {
  border-color: var(--tsw-green);
  box-shadow: 0 8px 24px rgba(94,142,62,.08);
  transform: translateY(-3px);
}

.abt-cert-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.abt-cert-icon--green { background: linear-gradient(135deg, #5e8e3e, #95bf47); color: var(--tsw-white); }
.abt-cert-icon--teal { background: linear-gradient(135deg, #0f4f4f, #1a8a8a); color: var(--tsw-white); }
.abt-cert-icon--orange { background: linear-gradient(135deg, #c67d30, #e8a040); color: var(--tsw-white); }
.abt-cert-icon--purple { background: linear-gradient(135deg, #6b3fa0, #9b59b6); color: var(--tsw-white); }
.abt-cert-icon--ink { background: linear-gradient(135deg, #1b221e, #2d3538); color: var(--tsw-white); }

.abt-cert-card h4 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--tsw-ink);
  margin: 0 0 2px;
}

.abt-cert-card p {
  font-size: .76rem;
  color: var(--tsw-graphite);
  margin: 0;
  line-height: 1.4;
}

/* ============ FAQ ============ */
.abt-faq {
  padding: 80px 0;
  background: var(--tsw-cloud, #f8f9fa);
}
.abt-faq .accordion-item {
  border: none;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.abt-faq .accordion-button {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ts-ink);
  background: var(--ts-white);
  padding: 18px 24px;
  border: none;
  box-shadow: none;
}
.abt-faq .accordion-button:not(.collapsed) {
  color: var(--ts-forest);
  background: var(--ts-white);
  box-shadow: none;
}
.abt-faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235e8e3e' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
}
.abt-faq .accordion-body {
  padding: 0 24px 20px;
  font-size: .9rem;
  color: var(--ts-slate);
  line-height: 1.7;
}

/* ============ BOTTOM CTA ============ */
.abt-cta {
  padding: 90px 0;
  background: var(--tsw-forest);
  text-align: center;
}

.abt-cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--tsw-white);
  margin-bottom: 14px;
}

.abt-cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* CTA buttons now use global .tsw-btn-primary / .tsw-btn-outline + .tsw-dark-cta context */

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .abt-hero { padding: 90px 0 60px; }
  .abt-hero-visual { display: none; }
  .abt-story, .abt-values, .abt-reach { padding: 70px 0; }
  .abt-why { padding: 80px 0; }
  .abt-cta { padding: 60px 0; }
  .abt-stats { margin-top: -30px; }
  .abt-stats-inner { grid-template-columns: repeat(2, 1fr); padding: 36px 28px; }
  .abt-stat-item:nth-child(2)::after { display: none; }
  .abt-why-grid { grid-template-columns: 1fr; }
  .abt-reach-grid { grid-template-columns: repeat(2, 1fr); }
  .abt-hero-stat { padding: 0 18px; }
}

@media (max-width: 575.98px) {
  .abt-hero { padding: 85px 0 50px; }
  .abt-hero-title { font-size: 1.8rem; }
  .abt-hero-stat { padding: 0 14px; }
  .abt-hero-stat strong { font-size: 1.4rem; }
  .abt-story, .abt-values, .abt-reach { padding: 50px 0; }
  .abt-why { padding: 60px 0; }
  .abt-cta { padding: 50px 0; }
  .abt-stats { margin-top: -24px; }
  .abt-stats-inner { grid-template-columns: 1fr 1fr; padding: 28px 20px; gap: 20px; }
  .abt-stat-value { font-size: 2rem; }
  .abt-stat-item::after { display: none; }
  .abt-values-grid { grid-template-columns: 1fr; gap: 16px; }
  .abt-reach-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .abt-certs-grid { flex-direction: column; }
  .abt-certs { padding: 50px 0; }
}
