/* ============================================================
   PAGE: about — /o-nas.html
   Style specyficzne dla podstrony „O nas".
   Komponenty wspólne siedzą w components.css — tu wyłącznie unikalne.
   ============================================================ */


/* ===== HERO KOMPAKTOWY (wspólny patten dla 3 podstron) ===== */
.hero-compact {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #1e2a18 0%, var(--green-dark) 100%);
  color: #ffffff;
  overflow: hidden;
}
.hero-compact::before {
  /* Subtelny pattern - kropkowany, semi-transparent */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}
.hero-compact::after {
  /* Delikatne winietowanie dla głębi */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(122, 179, 88, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero-compact .hero-compact-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 130px 24px 50px;
  width: 100%;
}
.hero-compact .tag {
  color: var(--green-light);
  margin-bottom: 14px;
}
.hero-compact h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 900px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero-compact h1 .accent { color: var(--green-light); }
.hero-compact .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 18px;
}


/* ===== BREADCRUMBS (pod h1) ===== */
.breadcrumbs {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--green-light); }
.breadcrumbs .sep {
  margin: 0 8px;
  opacity: 0.6;
}
.breadcrumbs .current {
  color: rgba(255, 255, 255, 0.7);
}


/* ===== HISTORIA — split tekst+zdjęcie ===== */
.about-history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-history-text h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 22px;
}
.about-history-text p {
  color: var(--text-medium);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 500;
}
.about-history-text p:last-child { margin-bottom: 0; }
.about-history-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--green-bg);
}


/* ===== ZAŁOŻYCIELE — 3 karty ===== */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.founder-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.founder-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}
.founder-card .founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  letter-spacing: -0.04em;
  background-size: cover;
  background-position: center;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
}
.founder-card .founder-photo.has-image {
  color: transparent;
}
.founder-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.founder-card .founder-role {
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: block;
  margin-bottom: 16px;
}
.founder-card .founder-bio {
  color: var(--text-medium);
  font-size: 0.97rem;
  line-height: 1.65;
  margin-bottom: 20px;
  font-weight: 500;
}
.founder-card .founder-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.02rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-bg);
  transition: background 0.2s, color 0.2s;
}
.founder-card .founder-phone:hover {
  background: var(--green);
  color: #ffffff;
}


/* ===== STATS na /o-nas (ciemne tło – reuzeable z home) ===== */
.about-stats-section {
  background: linear-gradient(135deg, #1e2a18 0%, var(--green-dark) 100%);
  color: #ffffff;
  padding: var(--section-padding) 0;
}
.about-stats-section .tag { color: var(--green-light); }
.about-stats-section .section-title { color: #ffffff; }
.about-stats-section .section-title .accent { color: var(--green-light); }
.about-stats-section .section-subtitle { color: rgba(255, 255, 255, 0.85); }
.about-stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.about-stats-section .stat-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.about-stats-section .stat-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--green-light);
}
.about-stats-section .stat-tile .stat-num { color: var(--green-light); }
.about-stats-section .stat-tile .stat-label { color: rgba(255, 255, 255, 0.92); }


/* ===== WARTOŚCI — 2×2 grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.value-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}
.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--green-bg);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.value-card:hover .value-icon {
  background: var(--green);
  color: #ffffff;
  transform: rotate(-6deg) scale(1.05);
}
.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.value-card p {
  color: var(--text-medium);
  font-size: 0.97rem;
  line-height: 1.65;
  font-weight: 500;
  margin: 0;
}


/* ===== CTA STRIP (przed footerem) ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #ffffff;
  padding: 64px 0;
  text-align: center;
}
.cta-strip h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin-bottom: 12px;
}
.cta-strip h2 .accent { color: #ffffff; }
.cta-strip p.lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 500;
}
.cta-strip .cta-strip-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cta-strip .btn-primary {
  background: #ffffff;
  color: var(--green-dark);
}
.cta-strip .btn-primary:hover {
  background: var(--green-bg);
  color: var(--green-dark);
}
.cta-strip .btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}
.cta-strip .btn-outline:hover {
  background: #ffffff;
  color: var(--green-dark);
  border-color: #ffffff;
}


/* ===== DEV STACK (reuzeable z home, ale 3 sztuki) =====
   Style są już w components.css (.dev-tile, .dev-stack).
   Tu tylko ewentualne nadpisania – nic nie potrzebne. */


/* ============================================================
   RESPONSIVE — about
   ============================================================ */
@media (max-width: 1024px) {
  .hero-compact { min-height: auto; }
  .hero-compact .hero-compact-inner { padding: 110px 24px 50px; }

  .about-history-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-history-image {
    aspect-ratio: 16/10;
    max-width: 560px;
    margin: 0 auto;
  }

  .founders-grid { grid-template-columns: 1fr; gap: 20px; }

  .about-stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-compact .hero-compact-inner { padding: 100px 20px 40px; }
  .about-stats-section .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .value-card {
    grid-template-columns: 56px 1fr;
    padding: 24px;
    gap: 16px;
  }
  .value-card .value-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .founder-card { padding: 28px 22px; }
  .cta-strip { padding: 48px 0; }
}

/* ============================================================
   HISTORIA — split tekst (60%) + zdjęcie pionowe (40%)
   ============================================================ */
.history-split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.history-text > .tag {
  display: inline-block;
  margin-bottom: 12px;
}

.history-text h2 {
  margin-bottom: 24px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.history-text p {
  color: var(--text-medium);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.history-text p:last-child {
  margin-bottom: 0;
}

.history-image {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .history-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .history-image {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ============================================================
   NASZE LOKALIZACJE — 3 kafelki miast (zastąpiło sekcję „Zespół")
   ============================================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.06));
  text-align: center;
}

.location-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light, #e8f3e0);
  color: var(--accent, #3d6b2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}

.location-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-dark, #1a1a1a);
}

.location-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.location-card ul li {
  padding: 8px 0;
  color: var(--text-medium, #555);
  border-bottom: 1px solid #eee;
}

.location-card ul li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   ZESPÓŁ — 2 kafelki tekstowe, bez zdjęć
   ============================================================ */
.zespol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.zespol-karta {
  background: #fff;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid var(--border, #e6e3dc);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.04));
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.zespol-karta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.zespol-karta h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--text-dark, #1a1a1a);
}

.zespol-rola {
  margin: 0 0 8px;
  color: var(--green, #3d6b2e);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.zespol-opis {
  margin: 0;
  color: var(--text-medium, #555);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .zespol-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
