/* Oficjalna paleta barw SobiVolt */
:root {
    --bg-dark: #121212;
    --bg-card: #161616;
    --accent-yellow: #ffcc00;
    --text-white: #ffffff;
    --text-gray: #aaaaaa;
    --border-gray: #262626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Pływający pasek szybkiego kontaktu */
.sticky-contact {
    position: fixed;
    left: 0;
    top: 35%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sticky-item {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 12px 18px;
    margin-bottom: 3px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.sticky-item:hover {
    transform: translateX(8px);
    background-color: #f1c40f;
}

/* Nawigacja / Header */
header {
    background-color: rgba(18, 18, 18, 0.98);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-gray);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

.logo-text {
    color: var(--text-white);
    font-size: 32px;
    font-weight: 800;
    margin-left: 12px;
    letter-spacing: 0.5px;
}

.text-yellow {
    color: var(--accent-yellow);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-yellow);
}

/* Sekcja Główna / Hero */
.hero {
    padding: 160px 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--accent-yellow);
}

.hero p {
    font-size: 22px;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.btn-cta {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 16px 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.features-bar {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    padding: 22px 20px;
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Kontenery sekcji */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 55px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--accent-yellow);
    margin: 15px auto 0;
}

/* Sekcja: O firmie */
.about-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gray);
    padding: 45px;
    border-radius: 8px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.about-box p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.sep-badge {
    display: inline-block;
    border: 2px solid var(--accent-yellow);
    color: var(--accent-yellow);
    padding: 12px 28px;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 15px;
}

/* Sekcja: Nasze Usługi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-gray);
    padding: 35px 25px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
}

.service-icon {
    font-size: 45px;
    color: var(--accent-yellow);
    margin-bottom: 22px;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-white);
}

.service-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* --- GALERIA REALIZACJI --- */
.gallery-section {
    padding: 80px 20px;
    background-color: #121212;
}

.gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background-color: #1a1a1a;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Opis wysuwający się na kafelkach */
.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 25px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    color: var(--accent-yellow);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.is-visible .gallery-overlay {
    bottom: 0;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- UNIWERSALNE ANIMACJE (SCROLL) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sekcja: Kontakt */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-method {
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-method span {
    color: var(--accent-yellow);
    font-weight: 700;
}

.map-container {
    width: 100%;
    height: 320px;
    border-radius: 6px;
    border: 1px solid var(--border-gray);
    overflow: hidden;
    margin-top: 35px;
}

/* Formularz */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-gray);
    color: var(--text-white);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
}

textarea.form-control {
    resize: vertical;
}

.btn-submit {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-yellow);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 13px !important;
    color: var(--text-gray) !important;
    line-height: 1.5;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}

.checkbox-group a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit:hover {
    background-color: #e6b800;
}

.btn-submit:active {
    transform: scale(0.99);
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.alert-success {
    background-color: #1e4620;
    color: #a3cfbb;
    border: 1px solid #1e4620;
}

.alert-danger {
    background-color: #4c1d1d;
    color: #f8d7da;
    border: 1px solid #4c1d1d;
}

/* --- STOPKA --- */
.site-footer {
    background-color: #0d0d0d;
    color: #d1d1d1;
    padding: 60px 20px 20px;
    font-size: 15px;
    border-top: 1px solid var(--border-gray);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-yellow);
    display: inline-block;
    padding-bottom: 8px;
}

.footer-col p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-col strong {
    color: var(--accent-yellow);
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: transparent;
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-yellow);
    color: #0d0d0d;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #1a1a1a;
    font-size: 13px;
    color: #777;
}

/* --- LIGHTBOX (POWIĘKSZANIE ZDJĘĆ) --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); 
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--accent-yellow);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-yellow);
}

.lightbox-caption {
    margin-top: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 300;
    text-align: center;
    max-width: 80%;
    letter-spacing: 0.5px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- RESPONSYWNOŚĆ (RWD) --- */
@media (max-width: 992px) {
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 40px; }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 20px; padding: 20px; }
    nav a { margin: 0 10px; font-size: 14px; }
    .hero { padding: 100px 20px; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 18px; }
    .features-bar { font-size: 16px; letter-spacing: 1.5px; }
    .sticky-contact { display: flex; }
    .sticky-item span { display: none; }
    .sticky-item {
        padding: 12px 15px;
        font-size: 22px;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }
    .footer-col { text-align: center; }
    .footer-col h4 { margin-left: auto; margin-right: auto; }
    .social-links { justify-content: center; }
    .lightbox-close { top: 10px; right: 20px; font-size: 40px; }
}