/*
 Theme Name: GeneratePress Child
 Theme URI: https://example.com/
 Description: Motyw potomny dla GeneratePress
 Author: Twoja nazwa
 Author URI: https://example.com/
 Template: generatepress
 Version: 1.0.0
 Text Domain: generatepress-child
*/

/* Tu możesz dodawać swój CSS */

/* Przyciski */
/* Przyciski */
.btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid currentColor;
    font-size: 15px;
}

/* .btn--primary {
    background: var(--accent);
    color: #ffffff;
} */

.btn--primary:hover {
    opacity: 0.9;
}

.btn--ghost {
    background: transparent;
}

/* Sekcja hero na stronie głównej */
.home-hero {
    padding: 2rem;
}

.home-hero__inner {
    /* max-width: 900px; */
    margin: 0 auto;
}

.home-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    margin-bottom: 10px;
}

.home-hero__title {
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 15px;
}

.home-hero__text {
    font-size: 16px;
    /* max-width: 700px; */
    margin-bottom: 20px;
}

.home-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .home-hero__inner {
        text-align: left;
    }
}

/* Homepage news section */
.home-news {
    padding: 40px 20px;
}

.home-news__header {
    /* max-width: 1100px; */
    margin: 0 auto 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.home-news__header h2 {
    margin: 0;
}

.home-news__desc {
    /* max-width: 1100px; */
    margin: 0 auto 20px;
}

.home-news__grid {
    /* max-width: 1100px; */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.home-news__item {
    padding: 16px;
    border-radius: 10px;
    background: #f5f5f5;
}

.home-news__meta {
    font-size: 12px;
    opacity: 0.7;
    margin: 0 0 4px;
}

.home-news__title {
    font-size: 18px;
    margin: 0 0 8px;
}

.home-news__title a {
    text-decoration: none;
}

.home-news__excerpt {
    font-size: 14px;
    margin-bottom: 8px;
}

/* Reuse home-link style from hero section */
.home-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.home-link:hover {
    text-decoration: underline;
}

.custom-social-icons {
    position: relative;
    display: flex;
    gap: 10px;
}
.custom-social-icons li {
    margin-bottom: 0!important;
}
.custom-social-icons i {
    font-size: 18px;
}


/* Członkowie – tabela */
.members-table {
    width: 100%;
    border-collapse: collapse;
}

/* odstępy + separatory między wierszami */
.members-table td {
    padding: 18px 16px;
    vertical-align: middle;
}

.members-table tr+tr td {
    border-top: 1px solid rgba(0, 0, 0, .08);
}

/* kolumny */
.members-table__details {
    vertical-align: top;
}

.members-table__logo {
    width: 260px;
    /* stała szerokość na logo */
    text-align: center;
}

/* SPÓJNE LOGA: jedna wysokość, proporcje zachowane */
.members-table__logo img {
    display: inline-block;
    max-height: 72px;
    /* docelowa wysokość logotypów */
    width: auto;
    height: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Nazwa firmy większa */
.member-name {
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}

/* linie danych teleadresowych */
.member-line {
    margin: 0 0 4px;
    line-height: 1.45;
    word-break: break-word;
}

/* linki w liniach (www / mail / tel) */
.member-line a {
    text-decoration: none;
}

/* www delikatnie wyróżnione */
.member-www {
    font-weight: 600;
}

/* mobile: kolumna logo pod danymi */
@media (max-width: 768px) {

    .members-table,
    .members-table tbody,
    .members-table tr,
    .members-table td {
        display: block;
        width: 100%;
    }

    /* ubij wszystkie bordery / cienie narzucane przez WP/motyw */
    .members-table,
    .members-table * {
        border: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
        background: transparent !important;
    }

    /* jedna "karta" na firmę: ramka + padding (bez radius i bez tła) */
    .members-table tr {
        margin: 0 0 14px;
        padding: 16px 14px;
        border: 1px solid rgba(0, 0, 0, .12) !important;
        border-radius: 0 !important;
    }

    /* upewnij się, że nie ma pseudo-elementów robiących kreski */
    .members-table tr::before,
    .members-table tr::after {
        content: none !important;
        display: none !important;
    }

    /* komórki bez paddingu — padding jest na <tr> */
    .members-table td {
        padding: 0 !important;
    }

    /* logo większe i na środku */
    .members-table__logo {
        margin-top: 12px;
        text-align: center;
    }

    .members-table__logo img {
        max-height: 80px;
        /* <- większe logo */
        width: auto;
        height: auto;
        max-width: 100%;
        display: inline-block;
        object-fit: contain;
    }
}