/*
 * ALG — About Us page styles
 * Loaded only on the About Us page via functions.php conditional enqueue.
 * Sections: [alg_about_hero], [alg_why_us], [alg_faq]
 *
 * Tokens (colors, fonts, spacing) live in the parent style.css :root block.
 * If a token is missing here, add it there — never hardcode pixel/hex values.
 */

/* ── ABOUT HERO ─────────────────────────────── */
.alg-about-hero {
  background-color: var(--c-bg-page);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--c-white);
  padding: 7rem 0 6rem;
  min-height: 70vh;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Dark gradient overlay so the text stays legible on any image */
.alg-about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.alg-about-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

@media (max-width: 768px) {
  .alg-about-hero { padding: 5rem 0 4rem; min-height: 55vh; }
  .alg-about-hero__inner { padding: 0 20px; }
}

.alg-about-hero h1.alg-about-hero__title,
.alg-about-hero .alg-about-hero__title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
  font-weight: var(--fw-black) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  line-height: 1.1 !important;
  color: var(--c-white) !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
}

.alg-about-hero__body p {
  font-family: var(--font-sans) !important;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem) !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 0 0 1.25rem !important;
}
.alg-about-hero__body p:last-child { margin-bottom: 0 !important; }

/* ── WHY WORK WITH US ───────────────────────── */
.alg-why {
  background: var(--c-bg-page);
  color: var(--c-white);
  padding: 4rem 0 5rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
  text-align: center;
}

.alg-why__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.alg-why h2.alg-why__heading,
.alg-why .alg-why__heading {
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 3vw, 2.4rem) !important;
  font-weight: var(--fw-bold) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: var(--c-white) !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
}

.alg-why__intro {
  font-family: var(--font-sans) !important;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem) !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 820px;
  margin: 0 auto 3rem !important;
}

.alg-why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.alg-why__stat {
  background: var(--c-gray-500);
  border-radius: 8px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.alg-why__stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--c-white);
  letter-spacing: 0.01em;
}

.alg-why__stat-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

@media (max-width: 768px) {
  .alg-why__stats { grid-template-columns: 1fr; gap: 16px; }
  .alg-why__stat { padding: 28px 20px; }
}

/* ── FAQ ────────────────────────────────────── */
.alg-faq {
  background: var(--c-bg-page);
  color: var(--c-white);
  padding: 4rem 0 6rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
}

.alg-faq__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.alg-faq h2.alg-faq__heading,
.alg-faq .alg-faq__heading {
  font-family: var(--font-display) !important;
  font-size: clamp(1.75rem, 3vw, 2.4rem) !important;
  font-weight: var(--fw-bold) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: var(--c-white) !important;
  margin: 0 0 2.5rem !important;
  padding: 0 !important;
  text-align: center;
}

.alg-faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.alg-faq__item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}

.alg-faq__item[open] {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.02);
}

.alg-faq__item summary.alg-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: var(--fw-medium);
  color: var(--c-white);
  line-height: 1.4;
}

.alg-faq__item summary::-webkit-details-marker { display: none; }
.alg-faq__item summary::marker { content: ''; }

.alg-faq__q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: transform var(--t-fast) ease;
  flex: 0 0 auto;
}

.alg-faq__item[open] .alg-faq__q-icon {
  transform: rotate(180deg);
}

.alg-faq__a {
  padding: 0 22px 22px;
}

.alg-faq__a p {
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  line-height: 1.65 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  .alg-faq { padding: 3rem 0 4rem; }
  .alg-faq__inner { padding: 0 20px; }
  .alg-faq__item summary.alg-faq__q { padding: 16px 18px; font-size: 0.9rem; }
}
