/* ============================================
   SAFE PARTNER - GŁÓWNY PLIK CSS
   Kolory: Niebieski #1e3a5f, Żółty/Pomarańczowy #ed8936
   ============================================ */

/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a5f;
    --primary-yellow: #ed8936;
    --light-blue: #2c5282;
    --dark-blue: #152a45;
    --light-yellow: #f6ad55;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --text-gray: #4a5568;
    --border-color: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAWIGACJA
   ============================================ */
.navbar {
    background: var(--primary-blue);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.logo-nav span {
    color: var(--primary-yellow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-yellow);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ============================================
   SEKCJA HERO I SLIDER - PEŁNY EKRAN
   ============================================ */
.hero {
    margin-top: 70px;
    width: 100%;
    position: relative;
}

/* Slider na pełną szerokość */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Nakładka z tytułem głównym */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px;
    text-align: center;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(30, 58, 95, 0.8) 0%, transparent 100%);
}

.slide-overlay h1 {
    font-size: 4rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.slide-overlay h1 span {
    color: var(--primary-yellow);
}

.slide-overlay p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

/* Podpis slajdu na dole */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 58, 95, 0.95));
    color: var(--white);
    padding: 40px 60px;
    text-align: left;
    z-index: 5;
}

.slide-caption h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary-yellow);
}

.slide-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Przyciski slidera */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: var(--primary-blue);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: var(--primary-yellow);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

/* Kropki nawigacji */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background: var(--primary-yellow);
    border-color: var(--white);
    transform: scale(1.3);
}


/* ============================================
   SEKCJA USŁUGI
   ============================================ */
.services-section {
    padding: 80px 20px;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-yellow);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-yellow);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-yellow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-bhp {
    border-left: 5px solid var(--primary-blue);
}

.service-web {
    border-left: 5px solid var(--primary-yellow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    margin-bottom: 25px;
}

.service-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-gray);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
    font-weight: bold;
}

.service-link {
    display: inline-block;
    color: var(--primary-yellow);
    font-weight: 600;
    transition: transform 0.3s;
}

.service-card:hover .service-link {
    transform: translateX(10px);
}

/* ============================================
   SEKCJA KONTAKT
   ============================================ */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-box,
.contact-form-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-box h3,
.contact-form-box h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-yellow);
}

.address-title {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item .icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.contact-item strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 3px;
}

.contact-item a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-yellow);
    transform: translateY(-3px);
}

/* Formularz */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.checkbox-label input {
    width: auto;
    margin-top: 3px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--light-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.4);
}


/* ============================================
   KOMUNIKATY FORMULARZA
   ============================================ */

/* Komunikat sukcesu */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-message h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Komunikat błędu */
.error-message {
    background: #fed7d7;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   PRZYCISK POWROTU (identyczny jak submit-btn)
   ============================================ */

.home-tile {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.home-tile:hover {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--light-yellow) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.4);
}


/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 30px 20px;
    text-align: center;
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-overlay h1 {
        font-size: 2.5rem;
    }
    
    .slide-overlay p {
        font-size: 1.1rem;
    }
    
    .slide-caption {
        padding: 30px;
    }
    
    .slide-caption h3 {
        font-size: 1.5rem;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .slider-btn.prev { left: 15px; }
    .slider-btn.next { right: 15px; }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .slider-container {
        height: 50vh;
        min-height: 350px;
    }
    
    .slide-overlay {
        padding: 25px 20px;
    }
    
    .slide-overlay h1 {
        font-size: 1.8rem;
    }
    
    .slide-overlay p {
        font-size: 0.95rem;
    }
    
    .slide-caption {
        padding: 20px;
    }
    
    .slide-caption h3 {
        font-size: 1.2rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .contact-info-box,
    .contact-form-box {
        padding: 25px;
    }
}