/* ==========================================================================
   CRM-EDPO — components.css
   Komponenty wielokrotnego użytku: przyciski, karty, formularze, badge, tabsy
   ========================================================================== */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-brand-primary {
    background: var(--brand-morski);
    color: white;
    border-radius: 14px;
    padding: 12px 28px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-left: 10px;
}

.btn-brand-primary:hover {
    background: var(--brand-accent);
    transform: translateY(-3px);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--brand-dark);
    border-radius: 14px;
    padding: 12px 40px;
    font-weight: 700;
    background: transparent;
    width: 100%;
    transition: 0.3s;
    text-decoration: none;
    color: var(--brand-dark);
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--brand-dark);
    color: white;
}

/* ============================================================
   PILLAR TITLE (uppercase tag z ikoną)
   ============================================================ */
.pillar-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-morski);
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pillar-title.inline {
    display: inline-flex;
}

/* ============================================================
   SECTION GROUP TITLE
   ============================================================ */
.section-group-title {
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 40px;
    border-left: 5px solid var(--brand-morski);
    padding-left: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   AREA CARD (4 obszary na home)
   ============================================================ */
.area-card {
    background: white;
    padding: 35px;
    border-radius: 30px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.area-card:hover {
    /*transform: translateY(-10px);*/
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.1);
    border-color: var(--brand-morski);
}

.area-header {
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--brand-dark);
}

.function-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.function-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.function-item i {
    color: var(--brand-morski);
    font-size: 1.2rem;
}

.function-name {
    font-weight: 700;
    display: block;
    font-size: 0.95rem;
}

.function-desc {
    color: #64748b;
    line-height: 1.4;
}

/* ============================================================
   FEATURE CARD (lista modułów — funkcjonalnosci.php)
   ============================================================ */
.feature-card {
    background: white;
    border-radius: 30px;
    padding: 35px;
    border: 1px solid var(--brand-morski);
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.04);
    transition: 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-morski);
    box-shadow: 0 20px 40px rgba(1, 138, 128, 0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-light);
    color: var(--brand-morski);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--brand-dark);
    font-size: 1.15rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}

/* ============================================================
   BENEFIT CARD (cennik.php)
   ============================================================ */
.benefit-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.08);
    transition: 0.3s;
}

.benefit-card.active {
    border: 2px solid var(--brand-morski);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--brand-morski);
    margin-bottom: 20px;
    display: block;
}

/* ============================================================
   INFO BOX (kontakt.php)
   ============================================================ */
.info-box {
    padding: 30px;
    border-radius: 30px;
    background: var(--brand-light);
    height: 100%;
    transition: 0.3s;
    border: 1px solid transparent;
}

.info-box:hover {
    border-color: var(--brand-morski);
    background: white;
    transform: translateY(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--brand-morski);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-box.featured {
    border-color: var(--brand-morski);
    background: white;
    box-shadow: 0 20px 40px rgba(1, 138, 128, 0.08);
}

.info-box.featured .info-icon {
    background: var(--brand-morski);
    color: white;
}

.info-box-blue {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 20px;
    font-size: 0.9rem;
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control {
    border-radius: 12px;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--brand-morski);
    box-shadow: 0 0 0 4px rgba(1, 138, 128, 0.1);
    background: white;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge-unique {
    background: rgba(1, 138, 128, 0.1);
    color: var(--brand-morski);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 5px;
}

.tag-indiv {
    background: rgba(1, 138, 128, 0.1);
    color: var(--brand-morski);
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

/* ============================================================
   MODULE PILL (index hero)
   ============================================================ */
.module-pill {
    background: white;
    padding: 14px 24px;
    border-radius: 30px;
    box-shadow: -10px 10px 30px rgba(10, 37, 64, 0.12);
    border: 1px solid rgba(1, 138, 128, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.module-pill:hover {
    transform: translateX(-15px);
    border-color: var(--brand-morski);
    background: #fbfdfd;
}

.module-pill i {
    min-width: 32px;
    color: var(--brand-morski);
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
}

.module-pill span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-dark);
    white-space: nowrap;
}

/* ============================================================
   FLOATING STATUS (index hero)
   ============================================================ */
.floating-status {
    position: absolute;
    bottom: 10%;
    left: -15%;
    background: white;
    padding: 18px 28px;
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 11;
    border-left: 6px solid #27c93f;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

/* ============================================================
   LOGO SLIDER (index)
   ============================================================ */
.logo-slider {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.logo-track {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
    width: max-content;
}


.logo-item img {
    filter: grayscale(100%) brightness(0.9);
    opacity: 0.6;
    transition: all 0.35s ease;
    height: 50px;
}

.logo-item img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}
 
@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   NAV PILLS (Bootstrap override — branze tabs)
   ============================================================ */
.nav-pills .nav-link {
    border-radius: 16px;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    text-align: left;
    transition: 0.3s;
}

.nav-pills .nav-link.active {
    background: var(--brand-morski);
    border-color: var(--brand-morski);
    box-shadow: 0 10px 20px rgba(1, 138, 128, 0.2);
    color: white !important;
}

/* ============================================================
   ACCORDION (Bootstrap override)
   ============================================================ */
.accordion-button:not(.collapsed) {
    background-color: rgba(1, 138, 128, 0.1);
    color: var(--brand-morski);
}
