/* ============================================================
   O-NAS.CSS — Strona /o-nas (bio Mateusza Gorskiego)
   etap 1.14
   ============================================================ */

/* ── Shared section layout ── */
.about-hero,
.about-bio,
.about-services,
.about-cta {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .about-hero,
  .about-bio,
  .about-services,
  .about-cta {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

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

.about-hero {
  padding-top: calc(var(--header-height) + var(--space-16));
  text-align: left;
}

.about-hero__title {
  font-size: var(--text-subhero);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--foreground);
  margin-bottom: var(--space-6);
}

.about-hero__lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--muted-foreground);
  max-width: 720px;
}

.about-hero__lead a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-hero__lead a:hover {
  color: var(--primary-hover);
}

/* ============================================================
   BIO
   ============================================================ */

.about-bio {
  background: var(--surface-alt);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.about-bio > * {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (min-width: 768px) {
  .about-bio {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-12);
    max-width: var(--container-max);
  }
}

.about-bio__photo {
  flex-shrink: 0;
  margin: 0;
}

.about-bio__photo img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--border);
}

.about-bio__text {
  flex: 1;
}

.about-bio__heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--foreground);
  margin-bottom: var(--space-6);
  line-height: var(--leading-snug);
}

.about-bio__text p {
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
}

.about-bio__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SERVICES (2 filary)
   ============================================================ */

.about-services__heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--foreground);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}

.about-services__intro {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 640px;
}

.about-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .about-services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-services__card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.about-services__card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
}

.about-services__card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.about-services__card p {
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.about-services__link {
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
}

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

.about-cta {
  background: var(--section-alt);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.about-cta__heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--foreground);
  margin: 0 auto var(--space-4);
  line-height: var(--leading-snug);
}

.about-cta__text {
  color: var(--muted-foreground);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

.about-cta__button {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.about-cta__button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ============================================================
   FAQ (etap 1.14b)
   ============================================================ */

.about-faq {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-16) var(--container-padding);
}

.about-faq__heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--foreground);
  margin-bottom: var(--space-8);
  text-align: center;
  line-height: var(--leading-snug);
}

.about-faq__item {
  border-bottom: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.about-faq__item:first-of-type {
  border-top: 1px solid var(--border);
}

.about-faq__question {
  cursor: pointer;
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  color: var(--foreground);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.about-faq__question::-webkit-details-marker {
  display: none;
}

.about-faq__question::after {
  content: "+";
  color: var(--primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-normal);
  flex-shrink: 0;
  line-height: 1;
}

.about-faq__item[open] .about-faq__question::after {
  content: "−";
}

.about-faq__answer {
  margin-top: var(--space-4);
  padding-right: var(--space-8);
}

.about-faq__answer p {
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}
