/*
Theme Name: Sten-Bruk
Theme URI: http://twojadomena.pl
Author: Twoje Imię
Description: Nowoczesny motyw dla firmy Sten-Bruk (budowa dróg, roboty ziemne).
Version: 1.0
*/

/* ZMIENNE CSS - NOWOCZESNA PALETA BARW */
:root {
    --primary: #FCA311;
    --secondary: #14213D;
    --bg-light: #F8F9FA;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

/* RESET & BAZA */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', sans-serif; color: var(--text-dark); }
body { background-color: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* WSPÓLNE KLASY */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; color: var(--secondary); margin-bottom: 15px; font-weight: 800; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn { display: inline-block; padding: 14px 28px; font-weight: 600; border-radius: 4px; cursor: pointer; transition: var(--transition); border: none; }
.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-primary:hover { background: #e08e0b; transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #0c1424; transform: translateY(-2px); }

/* HEADER & NAWIGACJA */
header { position: fixed; top: 0; width: 100%; background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,0.1); z-index: 1000; transition: var(--transition); }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.8rem; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; color: var(--secondary); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--secondary); }

/* HERO SECTION */
#home { background: linear-gradient(rgba(20, 33, 61, 0.8), rgba(20, 33, 61, 0.8)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80') center/cover; height: 100vh; display: flex; align-items: center; color: var(--white); text-align: center; margin-top: 80px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* TRUST STRIP */
.trust-strip { background: var(--primary); padding: 20px 0; color: var(--secondary); font-weight: 800; }
.trust-grid { display: flex; justify-content: space-around; flex-wrap: wrap; text-align: center; gap: 20px; }
.trust-item { font-size: 1.2rem; }

/* O NAS */
#about { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-text h2 { color: var(--secondary); font-size: 2.2rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: var(--text-light); }
.benefits-list { margin-bottom: 30px; }
.benefits-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.benefits-list li::before { content: "✓"; color: var(--primary); font-weight: bold; }

/* USŁUGI */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }
.service-card { background: var(--white); padding: 40px 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: var(--transition); border-bottom: 4px solid transparent; }
.service-card:hover { transform: translateY(-10px); border-bottom-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.service-card h3 { color: var(--secondary); margin-bottom: 15px; font-size: 1.3rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* JAK DZIAŁAMY / FAQ */
.how-it-works { background: var(--secondary); color: var(--white); padding: 60px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.step-num { width: 50px; height: 50px; background: var(--primary); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 15px; }

/* REALIZACJE (PORTFOLIO) */
#portfolio { background: var(--bg-light); }
.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 2px solid var(--secondary); color: var(--secondary); padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: var(--transition); }
.filter-btn.active, .filter-btn:hover { background: var(--secondary); color: var(--white); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-card { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.portfolio-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(20, 33, 61, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--white); opacity: 0; transition: var(--transition); }
.portfolio-card:hover img { transform: scale(1.1); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* KONTAKT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { background: var(--white); padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--secondary); }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; transition: var(--transition); }
.form-control:focus { border-color: var(--primary); outline: none; }
textarea.form-control { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 30px; }
.info-item { display: flex; gap: 20px; }
.info-icon { width: 50px; height: 50px; background: var(--bg-light); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.2rem; }
.info-text h4 { color: var(--secondary); margin-bottom: 5px; }
.map-container { width: 100%; height: 250px; background: #ddd; border-radius: 8px; overflow: hidden; }

/* FOOTER */
footer { background: var(--secondary); color: var(--white); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; color: var(--primary); }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #aaa; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links { position: absolute; top: 80px; left: -100%; width: 100%; background: var(--white); flex-direction: column; padding: 30px 0; box-shadow: 0 10px 10px rgba(0,0,0,0.1); transition: 0.4s ease; gap: 20px; }
    .nav-links.active { left: 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
}