/* ===================================
   INTEGRACJE TELEKOMUNIKACYJNE - CSS
   mobileOn Style Guide
   Bootstrap navbar + custom styles
   =================================== */

/* VARIABLES */
:root {
    --navy: #1a3a52;
    --turquoise: #2dd4a3;
    --light-bg: #f8fafb;
    --white: #ffffff;
    --text-dark: #1a3a52;
    --text-gray: #5a6c7d;
    --border-light: #e2e8f0;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(26, 58, 82, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 58, 82, 0.12);
    --shadow-lg: 0 8px 24px rgba(26, 58, 82, 0.16);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 16px;
}

a {
    color: var(--turquoise);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--navy);
}


@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ===================================
   HERO & SECTIONS
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5f7c 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.hero-visual svg {
    width: 100%;
    height: auto;
}

/* TRUST BAR */
.trust-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-light);
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    font-size: 32px;
    font-weight: 700;
    color: var(--turquoise);
}

.trust-text {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* SECTIONS */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-top: 16px;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--navy);
}

.service-card p {
    margin-bottom: 24px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tags span {
    background: var(--light-bg);
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* PROCESS TIMELINE */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--turquoise);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.step-content p {
    margin: 0;
    font-size: 15px;
}

/* BENEFITS GRID */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 40px 32px;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.benefit-card h3 {
    margin-bottom: 16px;
}

.benefit-card p {
    margin: 0;
}

/* CASE STUDIES */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.case-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-tag {
    display: inline-block;
    background: var(--turquoise);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.case-card h3 {
    margin-bottom: 16px;
    font-size: 22px;
}

.case-card p {
    margin-bottom: 20px;
    font-size: 15px;
}

.case-tech,
.case-result {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.case-tech strong,
.case-result strong {
    color: var(--navy);
    font-weight: 600;
}

/* TECH CATEGORIES */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.tech-category h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--navy);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badges span {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--navy);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.tech-badges span:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
    transform: translateY(-2px);
}

/* CTA FINAL */
.cta-final {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5f7c 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-secondary {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-secondary a {
    color: var(--turquoise);
    font-weight: 600;
}

.cta-secondary a:hover {
    color: var(--white);
}


/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Cases grid stays 2 columns on tablet */
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
     /* Hero */
    .hero {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    /* Grids */
    .services-grid,
    .cases-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Trust bar */
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Process */
    .process-step {
        gap: 16px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .trust-items {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        padding: 24px;
    }
    
    .service-card,
    .case-card {
        padding: 24px;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.case-card,
.benefit-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--turquoise);
    outline-offset: 2px;
}

/* === HERO EYEBROW (mała etykieta nad H1) === */
.hero .hero-eyebrow {
    display: inline-block;
    color: var(--turquoise, #2dd4a3);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(45, 212, 163, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(45, 212, 163, 0.4);
}
 
@media (max-width: 768px) {
    .hero .hero-eyebrow {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}
 
 
/* === HERO - dostosowanie pod fixed-top navbar z style.css === */
.hero {
    padding-top: 120px; /* miejsce na fixed navbar (80px) + breath room */
}
 
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
}
 
 
/* === HERO BUTTONS - override dla Bootstrap btn na ciemnym tle hero === */
.hero .btn-primary {
    background: var(--turquoise, #2dd4a3) !important;
    border-color: var(--turquoise, #2dd4a3) !important;
    color: white !important;
}
 
.hero .btn-primary:hover {
    background: #26bc8d !important;
    border-color: #26bc8d !important;
    color: white !important;
    transform: translateY(-2px);
}
 
.hero .btn-secondary,
.hero a.btn-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}
 
.hero .btn-secondary:hover,
.hero a.btn-secondary:hover {
    background: white !important;
    color: var(--navy, #1a3a52) !important;
    border-color: white !important;
}
 
.hero .btn-secondary i,
.hero a.btn-secondary i {
    color: inherit !important;
}
 
 
/* === CTA-FINAL BUTTONS (na ciemnym navy gradient na dole strony) === */
.cta-final .btn-primary {
    background: var(--turquoise, #2dd4a3) !important;
    border-color: var(--turquoise, #2dd4a3) !important;
    color: white !important;
}
 
.cta-final .btn-primary:hover {
    background: #26bc8d !important;
    border-color: #26bc8d !important;
    color: white !important;
}
 
 
/* === BREADCRUMBS (jeśli styl z style.css się rozjedzie - rezerwa) === */
/* Style główne breadcrumbs są w style.css. Tu tylko fix dla tej strony, 
   gdzie hero ma navy tło - breadcrumbs muszą być widoczne. */
body.page-integracje .breadcrumb-wrapper {
    background: white;
    border-bottom: 1px solid var(--border-light, #e2e8f0);
}
 
 
/* === FAQ ACCORDION (Bootstrap) - dostosowanie do brand === */
.section .accordion-item {
    background: white;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.04);
}
 
.section .accordion-item:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 82, 0.08);
}
 
.section .accordion-button {
    background: transparent;
    color: var(--navy, #1a3a52);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none;
    box-shadow: none;
    line-height: 1.4;
}
 
.section .accordion-button:not(.collapsed) {
    background: rgba(45, 212, 163, 0.05);
    color: var(--navy, #1a3a52);
    box-shadow: none;
}
 
.section .accordion-button:focus {
    box-shadow: none;
    border: none;
}
 
.section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232dd4a3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
 
.section .accordion-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-gray, #5a6c7d);
    font-size: 1rem;
    line-height: 1.7;
}
 
.section .accordion-body a {
    color: var(--turquoise, #2dd4a3);
    font-weight: 600;
}
 
@media (max-width: 768px) {
    .section .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .section .accordion-body {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.95rem;
    }
}
 
 
/* === ICONS w trust-bar i benefit-card (Font Awesome) === */
.trust-icon i {
    font-size: 32px;
    color: var(--turquoise, #2dd4a3);
}
 
.benefit-icon i {
    font-size: 48px;
    color: var(--turquoise, #2dd4a3);
}