<script setup lang="ts">
import { useLanguage } from '@/composables/useLanguage'

const { t } = useLanguage()
</script>

<template>
  <div class="about">
    <div class="about-item">
      <div class="details">
        <h3>{{ t.infoHeading }}</h3>
        <p>{{ t.infoText }}</p>
      </div>
    </div>

    <div class="about-item">
      <div class="details">
        <h3>{{ t.valuesHeading }}</h3>
        <ul>
          <li>
            <strong>{{ t.value1Label }}</strong> {{ t.value1Text }}
          </li>
          <li>
            <strong>{{ t.value2Label }}</strong> {{ t.value2Text }}
          </li>
          <li>
            <strong>{{ t.value3Label }}</strong> {{ t.value3Text }}
          </li>
        </ul>
      </div>
    </div>

    <div class="about-item">
      <div class="details">
        <h3>{{ t.visionHeading }}</h3>
        <p>{{ t.visionText }}</p>
      </div>
    </div>
  </div>
</template>

<style scoped>
strong {
  font-weight: 600;
}

.about-item {
  margin-top: 2rem;
  display: flex;
  position: relative;
}

.about-item:first-of-type {
  margin-top: 0;
}

.details {
  flex: 1;
  margin-left: 1rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

p {
  color: var(--color-text);
  line-height: 1.6;
}

ul {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.8rem;
}

@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .about-item {
    margin-top: 0;
    padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
  }

  .about-item:before {
    content: ' ';
    border-left: 1px solid var(--color-border);
    position: absolute;
    left: 0;
    bottom: calc(50% + 25px);
    height: calc(50% - 25px);
  }

  .about-item:after {
    content: ' ';
    border-left: 1px solid var(--color-border);
    position: absolute;
    left: 0;
    top: calc(50% + 25px);
    height: calc(50% - 25px);
  }

  .about-item:first-of-type:before {
    display: none;
  }

  .about-item:last-of-type:after {
    display: none;
  }
}
</style>
