@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #F37021; /* FunDex Orange */
    --primary-dark: #d65a0e;
    --dark: #1a1a1a;
    --grey: #2C2C2C;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--white);
    color: var(--grey);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .btn, .logo { font-family: 'Montserrat', sans-serif; }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span { color: var(--primary); }

nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; font-size: 14px; text-transform: uppercase; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(44,44,44,0.7) 100%), 
                url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content { max-width: 800px; animation: fadeInUp 1s ease-out; }
.hero h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; letter-spacing: -2px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: rgba(255,255,255,0.8); }

.btn {
    background: var(--primary);
    color: var(--white);
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(243, 112, 33, 0.4);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 112, 33, 0.6);
}

/* --- SEKCJE --- */
.section { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.bg-light { background: var(--light-grey); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--dark); margin-bottom: 15px; }
.section-header .divider { height: 4px; width: 80px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* --- GALERIA PRZED/PO (Slider) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.gallery-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-item:hover { transform: translateY(-5px); }

.ba-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.ba-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-before { z-index: 1; }
.img-after { 
    z-index: 2; 
    width: 50%; /* Startowa pozycja */
    border-right: 3px solid var(--white);
}

/* Slider range input (niewidoczny, steruje szerokością) */
.slider-range {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3;
    opacity: 0;
    cursor: ew-resize;
}

/* "Rączka" suwaka */
.slider-handle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 4;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: none; /* Klikamy przez niego w input */
    border: 2px solid white;
}

.gallery-info { padding: 25px; }
.gallery-cat { color: var(--primary); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 5px; display: block;}
.gallery-info h3 { margin: 0 0 10px; font-size: 1.4rem; }

/* --- FORMULARZ --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

form { display: flex; flex-direction: column; gap: 20px; }
input, textarea {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus { border-color: var(--primary); outline: none; background: #fffcf9; }
.contact-info h3 { font-size: 2rem; margin-bottom: 20px; }
.contact-item { margin-bottom: 20px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.contact-item span { color: var(--primary); font-size: 1.5rem; }

/* --- FOOTER --- */
footer { background: var(--dark); color: #888; padding: 60px 5%; text-align: center; border-top: 5px solid var(--primary); }
footer strong { color: var(--white); }

/* Animacje */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Responsywność */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* --- NOWOCZESNY FORMULARZ KONTAKTOWY --- */
.contact-section {
    padding: 80px 20px;
    background-color: #f4f7f6;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    overflow: hidden;
    flex-wrap: wrap; /* Dla responsywności */
}

/* Lewa strona - Dane kontaktowe */
.contact-info-box {
    background: #F37021; /* Brand Orange */
    color: #fff;
    flex: 1;
    min-width: 300px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Dekoracyjny wzór w tle */
.contact-info-box::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.contact-info-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 24px;
    margin-right: 20px;
    background: rgba(255,255,255,0.2);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

.info-item a { color: white; text-decoration: none; font-weight: 600; }
.info-item span { font-weight: 600; }

.legal-info {
    margin-top: auto;
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
}

/* Prawa strona - Formularz */
.contact-form-box {
    flex: 1.5;
    min-width: 350px;
    padding: 50px 40px;
    background: #ffffff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width { grid-column: 1 / -1; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    background: #fcfcfc;
    transition: 0.3s;
    font-family: inherit;
    box-sizing: border-box; /* Ważne! */
}

/* Efekt aktywnego pola */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #F37021;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

/* Stylowanie pola pliku */
input[type="file"] {
    padding: 10px;
    background: white;
    border: 2px dashed #ccc;
    cursor: pointer;
}
input[type="file"]:hover { border-color: #F37021; }

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #1a1a1a; /* Ciemny przycisk wygląda elegancko */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #F37021;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.4);
}

/* Responsywność */
@media (max-width: 768px) {
    .contact-container { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
}