/* ============================================================
   OLENGIN — STYLE v2 (nowe sekcje)
   Ładowany po assets/css/style.css.
   Zmienne :root (--brand-dark, --brand-orange) są w header.php.
   ============================================================ */


/* ---------- Dostępność: link "przejdź do treści" ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 2000;
    background: var(--brand-orange);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 10px; color: #fff; }


/* ---------- Telefon: bez poziomego przewijania ----------
   .row.g-5 ma ujemne marginesy większe niż padding .container,
   co na wąskich ekranach wypychało stronę o 12 px w bok. */
@media (max-width: 991.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* ---------- Menu: pozycje w jednej linii ---------- */
.navbar-custom .nav-link,
.navbar-custom .btn-brand-outline { white-space: nowrap; }

/* Telefon: odstęp pod przyciskiem „Zadzwoń” w rozwiniętym menu. Menu przewija się
   wewnątrz paska, gdy z rozwiniętą „Ofertą” jest wyższe niż ekran (pasek jest przypięty u góry). */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse { padding-bottom: 14px; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; }
}

/* Laptop z niskim ekranem: lista „Oferta” przewija się zamiast wychodzić poza okno */
@media (min-width: 992px) {
    .dropdown-menu-custom { max-height: calc(100vh - 80px); overflow-y: auto; }
}


/* ---------- Linki w treści ---------- */
.text-link {
    color: var(--brand-orange);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { color: #d35400; text-decoration: underline; }


/* ---------- Nagłówki sekcji ---------- */
.section-eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.section-heading {
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 16px;
}
.section-lead {
    color: #6c757d;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 760px;
}


/* ============================================================
   STRONA GŁÓWNA
   ============================================================ */

/* Hero */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 150px 0 90px 0;
    display: flex;
    align-items: center;
}
@media (min-width: 992px) {
    .hero-section { min-height: 88vh; }
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(30, 45, 60, 0.88);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    color: var(--brand-orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}
.hero-title {
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.hero-title span { color: var(--brand-orange); }
.hero-lead {
    font-size: 1.15rem;
    line-height: 1.75;
    opacity: 0.85;
    max-width: 760px;
    margin-bottom: 36px;
}
.btn-hero {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 28px;
    border-radius: 6px;
    transition: 0.3s;
}
.btn-hero-primary { background-color: var(--brand-orange); color: #fff; border: 2px solid var(--brand-orange); }
.btn-hero-primary:hover { background-color: #d35400; border-color: #d35400; color: #fff; }
.btn-hero-ghost { background-color: rgba(255,255,255,0.05); color: #fff; border: 2px solid rgba(255,255,255,0.35); }
.btn-hero-ghost:hover { background-color: rgba(255,255,255,0.15); color: #fff; }

/* Pasek faktów pod hero */
.trust-bar {
    background-color: #1a252f;
    padding: 26px 0;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.88);
    font-size: 0.93rem;
    line-height: 1.5;
}
.trust-item i {
    color: var(--brand-orange);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Karty oferty */
.offer-section { background-color: #f8f9fa; padding: 80px 0; }

/* Nagłówki grup oferty na stronie głównej: Inżynieria / Wykonawstwo */
.offer-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 18px 0;
}
.offer-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #dee2e6;
}
.offer-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 34px 30px;
    height: 100%;
    border-top: 4px solid var(--brand-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(0,0,0,0.12); }
.offer-card .icon-wrap {
    width: 56px; height: 56px;
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--brand-orange);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 20px;
}
.offer-card h3 { color: var(--brand-dark); font-weight: 700; font-size: 1.25rem; margin-bottom: 12px; }
.offer-card p { color: #6c757d; font-size: 0.95rem; line-height: 1.65; flex-grow: 1; }
.offer-more { color: var(--brand-orange); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; }
/* 2.7: bez wyróżnionej karty (dawne .offer-card.featured i .offer-badge). 2.7.1: bez kafelków odbiorców (.audience-*). */

/* Kroki procesu (główna, automatyka, serwis, prefabrykacja) */
.process-section { background-color: #fff; padding: 80px 0; }
.process-section.alt { background-color: #f8f9fa; }
.process-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: krok;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.process-steps li {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 26px 22px 22px;
    counter-increment: krok;
}
.process-section.alt .process-steps li { background-color: #fff; }
.process-steps li::before {
    content: counter(krok, decimal-leading-zero);
    display: block;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--brand-orange);
    margin-bottom: 10px;
}
.process-steps h3 { font-size: 1.05rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.process-steps p { font-size: 0.93rem; color: #6c757d; line-height: 1.6; margin: 0; }

/* Skrót realizacji */
.proof-section { background-color: #fff; padding: 80px 0; }
.proof-item {
    border-left: 4px solid var(--brand-orange);
    background-color: #f8f9fa;
    border-radius: 0 12px 12px 0;
    padding: 24px 26px;
    height: 100%;
}
.proof-item h3 { color: var(--brand-dark); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.proof-meta { color: var(--brand-orange); font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }
.proof-item p { color: #495057; font-size: 0.95rem; line-height: 1.65; margin: 0; }

/* Kontakt na głównej */
.contact-section { background-color: #f8f9fa; padding: 80px 0; }
.contact-title { color: var(--brand-dark); font-weight: 800; margin-bottom: 30px; }
.form-note { font-size: 0.85rem; color: #6c757d; line-height: 1.6; margin: 14px 0 0 0; }
.form-note a { color: var(--brand-orange); }


/* ============================================================
   AUTOMATYKA — lista technologii (przeniesione z automatyka.php)
   ============================================================ */
.tech-stack { max-width: 840px; margin: 0 auto; }
.tech-stack-row { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid #ececec; }
.tech-stack-row:last-child { border-bottom: none; }
.tech-stack-label { flex: 0 0 190px; font-weight: 700; color: #2c3e50; font-size: 1.05rem; }
.tech-stack-label i { color: #e67e22; font-size: 1.7rem; display: block; margin-bottom: 8px; }
.tech-stack-body { flex: 1; color: #6c757d; font-size: 0.97rem; line-height: 1.65; }
.tech-stack-body strong { color: #e67e22; font-weight: 600; }
@media (max-width: 768px) {
    .tech-stack-row { flex-direction: column; gap: 6px; padding: 18px 0; }
    .tech-stack-label { flex-basis: auto; }
}


/* ============================================================
   PODSTRONY — drobne uzupełnienia
   ============================================================ */

/* Ciemne pole z listą typowych sytuacji (serwis) */
.symptom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.symptom-list li {
    position: relative;
    padding: 14px 0 14px 34px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    line-height: 1.6;
}
.symptom-list li:last-child { border-bottom: none; }
.symptom-list li > i {
    position: absolute;
    left: 0;
    top: 14px;
    color: var(--brand-orange);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Link w pomarańczowym polu (highlight-box) */
.highlight-box a { color: #fff; font-weight: 700; }
.highlight-box a:hover { color: #fff; opacity: 0.85; }


/* ============================================================
   KONTAKT — dane spółki
   ============================================================ */
.company-data {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.7;
}
.company-data strong { color: var(--brand-dark); }


/* ============================================================
   POLITYKA PRYWATNOŚCI
   ============================================================ */
.legal-section { background-color: #fff; padding: 70px 0 90px 0; }
.legal-text h2 { font-size: 1.3rem; font-weight: 700; color: var(--brand-dark); margin: 38px 0 14px 0; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { color: #495057; line-height: 1.75; }
.legal-text ul { padding-left: 1.2rem; }


/* ============================================================
   STOPKA — dane rejestrowe
   ============================================================ */
.footer-legal {
    font-size: 0.8rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-top: 6px;
}
