/* ═══════════════════════════════════════════════════
   RESET & ZMIENNE
════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #faf8f4;
    --bg-alt:      #f4eee1;
    --card:        #ffffff;
    --border:      #e7ddc8;
    --primary:     #c1502e;
    --primary-h:   #a4401f;
    --primary-dim: rgba(193, 80, 46, 0.08);
    --primary-glow:rgba(193, 80, 46, 0.25);
    --text:        #2a241c;
    --text-m:      #6b6152;
    --text-d:      #4a4136;
    --font-body:   'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --font-display:'Fraunces', Georgia, serif;
    --radius:      10px;
    --shadow-md:   0 4px 24px rgba(43, 33, 20, 0.10);
    --shadow-lg:   0 12px 40px rgba(43, 33, 20, 0.14);
    --max-w:       1100px;
    --section-py:  96px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; }
ul     { list-style: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════
   PRZYCISKI
════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.22s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary:hover {
    background: var(--primary-h);
    transform: translateY(-2px);
    box-shadow: 0 9px 26px var(--primary-glow);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 12px 30px;
}
.btn-outline:hover {
    background: var(--primary-dim);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   ELEMENTY SEKCJI
════════════════════════════════════════════════════ */
.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.18;
}
.section-header p {
    color: var(--text-m);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   NAWIGACJA
════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}

#navbar.scrolled {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(43, 33, 20, 0.08);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
}
.nav-logo span { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links a {
    color: var(--text-d);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.btn-nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s !important;
}
.btn-nav-cta:hover {
    background: var(--primary-h) !important;
    transform: translateY(-1px);
}

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* tło – kostka brukowa (SVG pattern inline jako data-URI), tony piaskowo-kamienne */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40'%3E%3Crect width='60' height='40' fill='%23efe6d3'/%3E%3Crect x='1' y='1' width='27' height='18' rx='2' fill='%23e7dcc2' stroke='%23cdbb98' stroke-width='0.8'/%3E%3Crect x='30' y='1' width='29' height='18' rx='2' fill='%23eadfc7' stroke='%23cdbb98' stroke-width='0.8'/%3E%3Crect x='1' y='21' width='14' height='18' rx='2' fill='%23e2d5b8' stroke='%23cdbb98' stroke-width='0.8'/%3E%3Crect x='17' y='21' width='27' height='18' rx='2' fill='%23e4d8bd' stroke='%23cdbb98' stroke-width='0.8'/%3E%3Crect x='46' y='21' width='13' height='18' rx='2' fill='%23e9ddc4' stroke='%23cdbb98' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 60px 40px;
    opacity: 0.9;
}

/* gradient nakładka – fade z lewej, otwarta po prawej */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(250, 248, 244, 0.98) 0%,
        rgba(250, 248, 244, 0.82) 15%,
        rgba(250, 248, 244, 0.45) 40%
    );
}

/* dekoracyjna linia po prawej */
#hero::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 0;
    width: 3px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, var(--primary) 40%, transparent);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 150px 24px 100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-dim);
    border: 1px solid rgba(193, 80, 46, 0.3);
    color: var(--primary);
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 26px;
    max-width: 680px;
}
.hero-content h1 em {
    color: var(--primary);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--text-d);
    margin-bottom: 46px;
    max-width: 560px;
    line-height: 1.72;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* ═══════════════════════════════════════════════════
   USŁUGI
════════════════════════════════════════════════════ */
#uslugi {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 54px;
    height: 54px;
    background: var(--primary-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--primary);
    transition: background 0.25s;
}
.service-card:hover .service-icon {
    background: rgba(193, 80, 46, 0.16);
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-m);
    font-size: 0.95rem;
    line-height: 1.62;
}

/* ═══════════════════════════════════════════════════
   OBSZAR DZIAŁANIA
════════════════════════════════════════════════════ */
#obszar {
    padding: var(--section-py) 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.obszar-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.obszar-text { flex: 1; }

.obszar-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.18;
}
.obszar-text > p {
    color: var(--text-m);
    margin-bottom: 24px;
}

.obszar-tags {
    display: flex;
    gap: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: #fff;
    padding: 10px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}
.tag svg { width: 16px; height: 16px; }

.obszar-note {
    color: var(--text-m);
    font-size: 0.95rem;
    line-height: 1.65;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
}

.obszar-graphic {
    flex: 0 0 160px;
    color: var(--primary);
    opacity: 0.7;
}
.obszar-graphic svg { width: 160px; height: 160px; }

/* ═══════════════════════════════════════════════════
   REALIZACJE / GALERIA
════════════════════════════════════════════════════ */
#realizacje {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(193, 80, 46, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    padding: 36px 14px 13px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.2px;
}

/* ═══════════════════════════════════════════════════
   KONTAKT
════════════════════════════════════════════════════ */
#kontakt {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 44px;
    color: var(--text);
    box-shadow: var(--shadow-md);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    min-width: 280px;
}
.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.25s;
}
.contact-card:hover .contact-icon { background: rgba(193, 80, 46, 0.16); }
.contact-icon svg { width: 22px; height: 22px; }

.contact-info {
    display: flex;
    flex-direction: column;
}
.contact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-m);
    margin-bottom: 5px;
    font-weight: 600;
}
.contact-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
footer {
    padding: 28px 0;
    background: #211b14;
    border-top: 2px solid var(--primary);
    text-align: center;
    color: #cbbfa8;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════
   RESPONSYWNOŚĆ
════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .obszar-inner { flex-direction: column; gap: 48px; }
    .obszar-graphic { display: none; }
}

@media (max-width: 768px) {
    :root { --section-py: 72px; }

    /* menu mobilne – pełny ekran */
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(250, 248, 244, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 36px;
        z-index: 1000;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.25rem; }
    .btn-nav-cta { padding: 14px 40px !important; font-size: 1.15rem !important; }

    .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-cta-group { flex-direction: column; align-items: flex-start; }

    .contact-card { min-width: auto; width: 100%; max-width: 400px; padding: 26px 28px; }
    .contact-cards { flex-direction: column; align-items: center; }
}

@media (max-width: 560px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .obszar-tags { flex-direction: column; }
}
