/* ======================================================
   RESET + PODSTAWY
====================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #ECEFF1;
    color: #2C2C2C;
    line-height: 1.6;
}

/* ======================================================
   ZMIENNE KOLORÓW
====================================================== */

:root {
    --bg-main: #ECEFF1;
    --bg-card: #FFFFFF;
    --bg-footer: #1F1F1F;

    --text-main: #2C2C2C;
    --text-muted: #1b232e;
	/*    --text-muted: #5F6368; */
    --text-light: #FFFFFF;

    --accent: #E67E22;
    --accent-hover: #CF6D17;

    --border-light: #CFD8DC;
}

/* ======================================================
   TYPOGRAFIA
====================================================== */

h1, h2, h3 {
    margin-top: 0;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 { font-size: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(26px, 3vw, 36px); }

p {
    color: var(--text-muted);
}

/* ======================================================
   SEKCJE
====================================================== */

section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================================================
   HERO
====================================================== */

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

/* Overlay hero */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.15)
    );
}

.hero-overlay h1,
.hero-overlay p {
    color: #FFFFFF;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.7),
        0 0 10px rgba(0,0,0,0.4);
}


/* Logo */
.site-branding img {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    text-decoration: none;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* ======================================================
   KAFELKI USŁUG – 4x2
====================================================== */

.services-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.services-tiles .tile {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.services-tiles .tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(0,0,0,0.18);
}

.tile-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.services-tiles .tile:hover img {
    transform: scale(1.1);
}

/* Overlay na obrazie */
.tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.0)
    );
}

/* Tekst na obrazie – KLUCZOWE */
.tile-overlay span {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.7),
        0 0 8px rgba(0,0,0,0.4);
    transition: background .3s ease, padding .3s ease;
}

/* Hover – akcent CNC */
.services-tiles .tile:hover .tile-overlay span {
    background: rgba(230,126,34,0.85);
    padding: 6px 12px;
    border-radius: 4px;
    text-shadow: none;
}
/* ======================================================
   HEADER / MENU
====================================================== */

.site-header {
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo / nazwa */
.site-branding a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Menu */
.main-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-menu li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
}

/* Linia pod aktywnym linkiem */
.main-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}

.main-menu li a:hover::after,
.main-menu li.current-menu-item a::after {
    width: 100%;
}

/* Aktywny link */
.main-menu li.current-menu-item a {
    color: var(--accent);
}
/* OFFSET DLA ANCHORÓW – STICKY HEADER FIX */
:target {
    scroll-margin-top: 120px;
}
@media (max-width: 768px) {
    .service-section {
        scroll-margin-top: 140px;
    }
}

/* ======================================================
   HEADER – KONTENER I POZYCJONOWANIE
====================================================== */

.site-header {
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* OGRANICZENIE SZEROKOŚCI */
.site-header .header-inner {
    max-width: 1200px;          /* ← TO JEST KLUCZ */
    margin: 0 auto;             /* ← CENTROWANIE */
    padding: 14px 20px;         /* ← ODSTĘP OD KRAWĘDZI */
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.header-inner {
    flex-wrap: wrap;   /* ← POZWALA ŁAMAĆ */
}

.main-navigation {
    flex-shrink: 0;
}

.main-menu {
    display: flex;
    gap: 26px;
    white-space: nowrap; /* ← menu nie łamie się w dziwnych miejscach */
}

@media (max-width: 1100px) {
    .header-inner {
        justify-content: center;
    }

    .site-branding {
        text-align: center;
    }

    .main-navigation {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* ======================================================
   SEKCJE USŁUG – KARTY
====================================================== */

.service-section {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

/* ======================================================
   PRZYCISKI / CTA
====================================================== */

button,
.btn {
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease, transform .2s ease;
}

button:hover,
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ======================================================
   FORMULARZ
====================================================== */

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #FAFAFA;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ======================================================
   STOPKA
====================================================== */

footer {
    background-color: var(--bg-footer);
    color: #BDBDBD;
    padding: 60px 20px;
}

footer h3 {
    color: #FFFFFF;
}

footer a {
    color: var(--accent);
}

/* ======================================================
   RESPONSYWNOŚĆ
====================================================== */

@media (max-width: 1024px) {
    .services-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-tiles {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 16px;
    }

    .hero-overlay {
        padding: 30px;
    }
}

/* ======================================================
   STRONA KONTAKTOWA
====================================================== */

.contact-hero {
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.2)
    ),
    url('../img/contact-hero.webp') center/cover no-repeat;
    padding: 120px 20px;
    color: #fff;
}

.contact-hero h1 {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.contact-hero p {
    max-width: 620px;
    font-size: 19px;
    font-weight: 500;
    color: #F5F7F8;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.8),
        0 0 12px rgba(0,0,0,0.6);
}

.contact-section {
    background: var(--bg-main);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
}

.contact-card h2 {
    margin-bottom: 20px;
}

.contact-card p {
    margin-bottom: 14px;
    color: var(--text-main);
}

.contact-card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.contact-card .nip {
    font-size: 14px;
    color: var(--text-muted);
}


/* ======================================================
   TARGEO MAP – WYŚRODKOWANIE W POZIOMIE
====================================================== */

.contact-map {
    display: flex;
    justify-content: center;   /* ← KLUCZ */
    align-items: center;

    padding: 0 !important;
    margin: 0 auto !important;
    background: #ffffff !important;
}

/* Kontener mapy */
.contact-map .targeo-map-lite {
    display: block !important;

    /* szerokość maksymalna mapy */
    max-width: 1200px;
    width: 100%;

    height: 450px !important;

    margin: 0 auto !important;

    background: #ffffff !important;
}

/* Zabijamy wszystko co może przesuwać */
.contact-map .targeo-map-lite * {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ======================================================
   STOPKA / MAPA STRONY
====================================================== */

.site-footer {
    background: #1F1F1F;
    color: #BDBDBD;
    padding: 70px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h3 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

/* MAPA STRONY */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: #BDBDBD;
    text-decoration: none;
    font-size: 14px;
    transition: color .3s ease;
}

.footer-menu li a:hover {
    color: #E67E22;
}

/* DÓŁ STOPKI */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: #9E9E9E;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ======================================================
   FIX: KOLORY TEKSTU W STOPCE
====================================================== */

.site-footer,
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer div {
    color: #BDBDBD;
}

.site-footer h3 {
    color: #FFFFFF;
}

/* linki w stopce */
.site-footer a {
    color: #E67E22;
    text-decoration: none;
}

.site-footer a:hover {
    color: #FF9F43;
}

/* lista mapy strony */
.site-footer ul {
    list-style: disc;
    padding-left: 18px;
}

.site-footer li::marker {
    color: #E67E22;
}

/* dolna belka */
.footer-bottom {
    color: #E0E0E0;
}


/* ======================================================
   RESPONSYWNOŚĆ
====================================================== */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero {
        padding: 80px 20px;
    }
}
