/* CSS */
/* Ścieżka: /css/o-nas.css */

:root {
    --about-clr-primary: #f26522;
    --about-clr-dark: #2d3748;
    --about-clr-light: #ffffff;
    --about-clr-bg: #f7fafc;
    --about-clr-text: #4a5568;
    --about-clr-border: #e2e8f0;
    --about-container-max: 1200px; 
    --about-gap: 1.3rem; /* Zaktualizowano na podstawie dostarczonego kodu */
    --about-radius: 0.75rem; /* Lekko zwiększono dla bardziej nowoczesnego wyglądu kart */
    --about-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --about-shadow-hover: 0 10px 25px rgba(45, 55, 72, 0.1);
    --about-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dapal-about-page [class$="__container"] {
    max-width: var(--about-container-max);
    margin: 0 auto;
    padding: 0 var(--about-gap);
}

.dapal-about-page a {
    color: var(--about-clr-primary);
    text-decoration: none;
    transition: opacity 0.2s;
    outline-offset: 4px;
    border-radius: 2px;
}

.dapal-about-page a:hover { opacity: 0.8; }
.about-hero {
    padding: clamp(2rem, 8vw, 4rem) 0;
    text-align: center;
    background-color: var(--about-clr-light);
}
.about-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--about-clr-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.about-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    max-width: 800px;
    margin: 0 auto;
    color: var(--about-clr-text);
}

/* Sekcja Timeline (bez zmian) */
.timeline-section { padding: clamp(3rem, 10vw, 6rem) 0; background-color: var(--about-clr-bg); overflow: hidden; }
.timeline-section__title { text-align: center; font-size: clamp(1.75rem, 5vw, 2.5rem); color: var(--about-clr-dark); margin-bottom: clamp(3rem, 8vw, 5rem); font-weight: 700; }
.timeline { position: relative; max-width: var(--about-container-max); margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: var(--about-clr-border); top: 0; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 1; }
.timeline-item { position: relative; margin-bottom: 4rem; width: 100%; }
.timeline-item::after { content: ''; position: absolute; width: 18px; height: 18px; top: 2rem; left: 50%; transform: translateX(-50%); background-color: var(--about-clr-bg); border: 4px solid var(--about-clr-primary); border-radius: 50%; z-index: 2; }
.timeline-item__body { display: flex; justify-content: space-between; width: 100%; gap: 4rem; align-items: flex-start; }
.timeline-item__text-content, .timeline-item__gallery { flex: 1; min-width: 0; }
.timeline-item:nth-child(even) .timeline-item__body { flex-direction: row-reverse; }
.timeline-item__text-content { padding: 1.5rem; background-color: var(--about-clr-light); border-radius: var(--about-radius); box-shadow: var(--about-shadow); }
.timeline-item__text-content time { display: inline-block; background: var(--about-clr-primary); color: var(--about-clr-light); padding: 0.25rem 0.75rem; border-radius: 50px; font-weight: 600; margin-bottom: 1rem; font-size: 0.875rem; }
.timeline-item__title { font-size: 1.5rem; color: var(--about-clr-dark); margin-bottom: 0.75rem; }
.timeline-item__text-content p { line-height: 1.6; color: var(--about-clr-text); }
.timeline-item__gallery { margin: 0; background-color: transparent; }
.timeline-item__gallery--two-images { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.timeline-item__gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.3s ease; border-radius: var(--about-radius); box-shadow: var(--about-shadow); background-color: var(--about-clr-light); }
.timeline-item__gallery img.img--portrait { aspect-ratio: unset; object-fit: unset; height: auto; }
.timeline-item__gallery--two-images img { height: 100%; }
.timeline-item__gallery img:hover { transform: scale(1.05); }

/* ==========================================================================
  SEKCJA "DLACZEGO MY?" - WERSJA ZREFRAKTORYZOWANA (UX/UI)
========================================================================== */

.why-us { 
    padding: clamp(3rem, 10vw, 6rem) 0; 
    background-color: var(--about-clr-bg); /* Używamy tła sekcji */
}

.why-us__title { 
    text-align: center; 
    font-size: clamp(1.75rem, 5vw, 2.5rem); 
    color: var(--about-clr-dark); 
    margin-bottom: 3rem; 
    font-weight: 700; 
}

.why-us__grid { 
    display: grid; 
    gap: 1.5rem; /* Zwiększamy odstęp między kartami */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
}

/* 1. STYLOWANIE KARTY (Card UI) */
.why-us-item { 
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkowanie zawartości karty */
    text-align: center; 
    padding: 2.5rem 1.5rem; /* Więcej przestrzeni wewnątrz karty */
    background-color: var(--about-clr-light);
    border-radius: var(--about-radius);
    border: 1px solid var(--about-clr-border);
    box-shadow: var(--about-shadow);
    transition: var(--about-transition); /* Płynne przejścia dla wszystkich właściwości */
}

/* 2. EFEKT HOVER DLA KARTY */
.why-us-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--about-shadow-hover);
}

/* 3. STYLOWANIE IKONY */
.why-us-item__icon-wrapper { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 72px; /* Zwiększamy rozmiar koła */
    height: 72px;
    margin-bottom: 1.5rem; /* Odstęp od nagłówka */
    border-radius: 50%; 
    border: 2px solid var(--about-clr-border); /* Subtelna ramka domyślnie */
    color: var(--about-clr-primary); /* Ikona domyślnie ma kolor główny */
    background-color: var(--about-clr-light);
    transition: var(--about-transition);
}

.why-us-item__icon-wrapper svg {
    width: 32px; /* Zwiększamy rozmiar samego SVG */
    height: 32px;
}

/* Efekt hover dla ikony */
.why-us-item:hover .why-us-item__icon-wrapper {
    background-color: var(--about-clr-primary);
    color: var(--about-clr-light);
    border-color: var(--about-clr-primary);
}

/* 4. TYPOGRAFIA WEWNĄTRZ KARTY */
.why-us-item h3 { 
    font-size: 1.25rem; 
    color: var(--about-clr-dark); 
    margin: 0 0 0.75rem 0; /* Uporządkowane marginesy */
    font-weight: 600;
}

.why-us-item p {
    color: var(--about-clr-text);
    line-height: 1.6;
    margin: 0;
}

/* 5. ANIMACJE KASKADOWE */
/* Domyślnie wszystkie karty mają te same właściwości animacji */
.why-us-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.why-us-item.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dodajemy opóźnienia dla kolejnych kart, tworząc efekt kaskady */
.why-us-item:nth-child(2) { transition-delay: 0.1s; }
.why-us-item:nth-child(3) { transition-delay: 0.2s; }
.why-us-item:nth-child(4) { transition-delay: 0.3s; }

/* Sekcja CTA (bez zmian) */
.cta-section { padding: clamp(3rem, 10vw, 5rem) 0; background-color: var(--about-clr-dark); text-align: center; color: var(--about-clr-light); }
.cta-section h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 700; margin-bottom: 0.75rem; }
.cta-section p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-section__button { display: inline-flex; align-items: center; gap: 0.75rem; background-color: var(--about-clr-light); color: var(--about-clr-primary); padding: 1rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.cta-section__button:hover, .cta-section__button:focus { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); background-color: var(--about-clr-primary); color: var(--about-clr-light); }
.cta-section__button:hover .arrow-icon { transform: translateX(5px); }

/* Media query dla osi czasu (bez zmian) */
@media (max-width: 992px) {
    .timeline::after { left: 15px; }
    .timeline-item::after { left: 15px; }
    .timeline-item__body, .timeline-item:nth-child(even) .timeline-item__body { display: block; width: auto; padding-left: calc(15px + 1rem); gap: 0; }
    .timeline-item__gallery { margin-top: 1.5rem; }
    .timeline-item__gallery img, .timeline-item__gallery img.img--portrait { width: 100%; height: auto; aspect-ratio: unset; object-fit: unset; }
    .timeline-item__gallery--two-images { gap: 1rem; }
}