/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* === STRONA === */
html { scroll-behavior: smooth; }

body {
    background: linear-gradient(135deg, #2c2c2c, #434343);
    color: #eee;
}

/* === HEADER === */
header {
    background: #222;
    padding: 15px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.logo img { width: 170px; }

nav ul { list-style: none; display: flex; justify-content: center; }
nav ul li { margin: 0 15px; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; transition: 0.3s; }
nav ul li a:hover { color: #FFC107; }

.hamburger { display: none; font-size: 30px; color: white; cursor: pointer; }

.lang-toggle { margin-left: 20px; }
.lang-toggle button {
    background: #FFC107; border: none; padding: 5px 10px; margin: 0 2px;
    cursor: pointer; font-weight: bold; border-radius: 5px;
}

/* === CANVAS ISKIER === */
#sparks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* nie blokuje klikania menu */
    z-index: 0;
}
/* treść nagłówka nad canvasem */
.logo, nav, .lang-toggle, .hamburger { position: relative; z-index: 1; }

/* === HERO === */
.hero {
    position: relative;
    background: url('assets/welding-bg.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.hero h1, .hero-subtext, .cta-button { position: relative; z-index: 2; }
.hero h1 { font-size: 3em; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); }
.hero-subtext {
    color: #FFC107; font-size: 1.2em; margin-top: 10px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7); letter-spacing: 0.5px;
}
.cta-button {
    background: #FFC107; color: #222; padding: 12px 24px; font-size: 1.2em;
    border-radius: 5px; text-decoration: none; margin-top: 15px;
    display: inline-block; font-weight: bold; animation: pulse 2s infinite;
}
@keyframes pulse { 0%{transform:scale(1)} 50%{transform:scale(1.05)} 100%{transform:scale(1)} }

/* === SEKCJE === */
section { color:#222;
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* === BADGES (smaczki) === */
.badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: rgba(255,255,255,0.95);
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px dashed #ddd;
    border-radius: 10px;
    background: #fff;
}
.badge-ico { font-size: 28px; }
.badge-text { color: #222; text-align: left; }

.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 60px;
    text-align: center;
}
.about h2 { font-size: 2.2em; margin-bottom: 30px; color: #222; }
.about img {
    max-width: 100%; width: 600px; height: auto; margin-bottom: 30px;
    border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.about p {
    font-size: 1.15em; line-height: 1.8; max-width: 800px; text-align: justify;
    margin-bottom: 10px; color: #333;
}

/* === GALERIA === */
.gallery-container {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.gallery-item img {
    width: 250px; height: auto; border-radius: 10px; transition: transform 0.3s;
}
.gallery-item img:hover { transform: scale(1.1); }

/* === OPINIE === */
.reviews .reviews-header {
    background: #222;
    padding: 15px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.rating-box{
    display:flex; align-items: center; gap:16px; background: #111; color: #fff; padding: 12px 16px;
    border-radius: 10px; box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.rating-score{ font-size: 2.2rem; font-weight: 800; }
.rating-stars{ font-size: 1.6rem; letter-spacing: 2px; }
.rating-count{ opacity: 0.9; }
.btn{
    background: #FFC107; color:#222; border: none; padding: 10px 14px; border-radius: 8px; font-weight: 700; cursor:pointer;
}
.btn.outline{
    background: transparent; color:#FFC107; border: 2px solid #FFC107;
}
.reviews-filters select{ padding: 8px 10px; border-radius: 8px; border:1px solid #ddd; }

.reviews-list{
    margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.review-card{
    background: #fff; border-radius: 12px; padding: 16px; text-align: left; color:#222;
    border: 1px solid #eee; box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.review-head{ display:flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-stars{ color: #ffb400; font-size: 1.1rem; }
.review-name{ font-weight: 700; }
.review-text{ line-height: 1.6; }

/* Modal */
.modal{
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.show{ display:flex; }
.modal-content{
    width: 100%; max-width: 520px; background: #fff; color:#222; border-radius: 14px; padding: 20px; position: relative;
}
.modal-close{
    position: absolute; top: 8px; right: 10px; border: none; background: transparent; font-size: 28px; cursor: pointer;
}
.stars-input button{
    font-size: 26px; background: transparent; border: none; cursor: pointer; color: #bbb;
}
.stars-input button.active{ color: #ffb400; }
.modal-actions{ display:flex; justify-content: flex-end; margin-top: 10px; }
.modal-note{ font-size: 0.9em; opacity: 0.8; margin-top: 6px; }

/* === FORMULARZ KONTAKTOWY === */
form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
form input, form textarea { padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; }
form button { background: #FFC107; padding: 10px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }

/* === KOLORY SEKCJI KONTAKT === */
#kontakt { color: #222; }
#kontakt strong { color: #FFC107; }
#kontakt a { color: #1e90ff; text-decoration: none; font-weight: 700; }
#kontakt a:hover { color: #ff5733; }

/* === STOPKA === */
footer { background: #222; color: white; text-align: center; padding: 15px; }

/* === FAB (przyciski pływające) === */
.fab{
    position: fixed; right: 16px; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; text-decoration: none; font-size: 24px; box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}
.fab-call{ bottom: 86px; background: #25d366; color: #fff; }
.fab-wa{ bottom: 24px; background: #128c7e; color: #fff; }

/* === RESPONSYWNOŚĆ === */
@media (max-width: 900px){
    .badges{ grid-template-columns: repeat(2, 1fr); }
    .reviews-list{ grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav ul {
        display: none; flex-direction: column; background: #222;
        position: absolute; top: 60px; right: 20px; border-radius: 10px;
        overflow: hidden; padding: 10px;
    }
    nav ul.show { display: flex; }
    .hamburger { display: block; }
}

/* === ANIMACJA FADE-IN-UP === */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease-out; }
.fade-in-up.visible { animation: fadeInUp 1s forwards; }

/* Fix for Opinie Klientów header visibility */
.reviews h2 {
    color: #222 !important;
    font-size: 2em;
    margin-bottom: 20px;
}

/* === ZAUFALI NAM === */
.trusted h2 { color:#222; margin-bottom:20px; }
.trusted-logos { display:flex; flex-wrap:wrap; justify-content:center; gap:30px; }
.trusted-logos img {
    max-height:60px; filter: grayscale(100%); opacity:0.7;
    transition: all 0.3s;
}
.trusted-logos img:hover {
    filter:none; opacity:1; transform: scale(1.05);
}

/* === FAQ Accordion === */
.accordion { text-align: left; max-width: 900px; margin: 0 auto; }
.acc-item { border: 1px solid #e7e7e7; border-radius: 10px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.acc-head {
    width: 100%; text-align: left; background: #f7f7f7; border: none; padding: 14px 16px;
    font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
}
.acc-icon { font-weight: 900; }
.acc-body { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.acc-item.open .acc-body { padding: 14px 16px; max-height: 240px; }

/* === Sticky CTA Ribbon === */
.cta-ribbon{
    position: fixed; left: 16px; right: 16px; bottom: 96px;
    background: #111; color: #fff; padding: 10px 14px; border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35); z-index: 50;
}
.cta-ribbon .btn.small{ padding: 8px 12px; font-size: 0.95rem; border-radius: 8px; }
.cta-ribbon-actions{ display: flex; gap: 8px; }
@media(max-width: 560px){
  .cta-ribbon{ flex-direction: column; align-items: stretch; bottom: 96px; }
  .cta-ribbon-actions{ width: 100%; justify-content: space-between; }
}

header .logo{ margin-top: 4px; }
header nav{ margin-top: 10px; }
header .lang-toggle{ margin-top: 8px; }

/* === MAPA === */
.map-wrap{ position: relative; width:100%; height: 360px; overflow:hidden; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.map-wrap iframe{ border:0; width:100%; height:100%; }
.map-actions{ display:flex; gap:10px; justify-content:center; margin-top:14px; flex-wrap:wrap; }
