/* ===== KONTAKT - KOMPLETNY NOWY STYL ===== */

/* Zmienne CSS */
:root {
    --primary-color: #7e7edc;
    --secondary-color: #838eeb;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --dark-bg: #222;
    --nav-bg: rgba(30, 30, 60, 0.97);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
}

/* Reset i podstawowe style */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #fff;
}

/* ===== NAWIGACJA ===== */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 70px;
}

nav li {
    margin: 0 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 25px;
    transition: var(--transition);
    letter-spacing: 1px;
    display: block;
}

nav a:hover,
nav a:focus {
    background: var(--primary-color);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 20px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

nav ul.active {
    backdrop-filter: blur(8px);
    background: rgba(20, 20, 40, 0.95);
}

body.menu-open {
    overflow: hidden;
}

/* ===== SEKCJA 1 - HEADER ===== */
#sekcja1 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 40vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
}

#sekcja1 h2 {
    font-size: 4em;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#sekcja1 p {
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FORMULARZ KONTAKTOWY ===== */
#contact-form-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.form-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
}

.form-header h2 {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-header p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Formularz */
.contact-form {
    padding: 3rem 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(126, 126, 220, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e7edc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Checkbox */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.5;
    font-size: 0.95em;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Przycisk submit */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 126, 220, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(5px);
}

/* Honeypot */
.hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* ===== DANE KONTAKTOWE ===== */
#contact-info-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1em;
    color: #666;
}

/* Siatka kart kontaktowych */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Karta kontaktowa */
.contact-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(126, 126, 220, 0.15);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

/* Ikonka karty */
.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Zawartość karty */
.card-content {
    color: #555;
}

.card-content p {
    margin: 0.5rem 0;
    font-size: 1em;
    line-height: 1.6;
}

.company-name {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1em !important;
}

/* Linki */
.card-link,
.phone-number,
.email-address {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
    font-size: 1.05em;
}

.card-link:hover,
.phone-number:hover,
.email-address:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.phone-number,
.email-address {
    font-size: 1.15em;
    display: block;
    margin: 1rem 0;
}

/* Godziny pracy */
.hours {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.hours p {
    margin: 0.25rem 0;
    font-size: 0.95em;
}

.hours strong {
    color: var(--text-color);
}

/* Dostępność */
.availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.availability span {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.note {
    font-size: 0.85em !important;
    color: #888 !important;
    font-style: italic;
    margin-top: 0.5rem !important;
}

/* ===== RESPONSYWNOŚĆ ===== */

/* Tablety */
@media (max-width: 968px) {
    #sekcja1 h2 {
        font-size: 3em;
    }

    .form-header h2 {
        font-size: 2em;
    }

    .section-header h2 {
        font-size: 2em;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .nav-container {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(30, 30, 60, 0.98);
        z-index: 1000;
        padding: 80px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 15px 0;
    }

    nav a {
        font-size: 1.5em;
        padding: 15px;
    }

    #sekcja1 {
        padding: 3rem 1.5rem;
        min-height: 35vh;
    }

    #sekcja1 h2 {
        font-size: 2.5em;
    }

    #sekcja1 p {
        font-size: 1.2em;
    }

    #contact-form-section,
    #contact-info-section {
        padding: 3rem 1rem;
    }

    .form-header {
        padding: 2rem 1.5rem;
    }

    .form-header h2 {
        font-size: 1.75em;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75em;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
    #sekcja1 h2 {
        font-size: 2em;
    }

    .form-header h2 {
        font-size: 1.5em;
    }

    .form-header p {
        font-size: 0.95em;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95em;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1em;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .card-icon {
        width: 70px;
        height: 70px;
    }

    nav a {
        font-size: 1.2em;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Placeholder styling */
::placeholder {
    color: #aaa;
    opacity: 1;
}

/* Focus dla dostępności */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.submit-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}