/* =========================================================
   ARTECH – wspólne style całej strony
   (reset, pasek górny, nagłówek z menu, menu boczne "Narzędzia",
   okienko "Zapytaj o ofertę"). Style konkretnej podstrony
   zostają w jej własnym bloku <style> i nadpisują te tutaj.
   ========================================================= */

/* Paleta firmowa (zieleń i granat z ulotki ARTECH).
   Zmiana koloru w tym miejscu zmienia go na całej stronie. */
:root {
    --brand-green: #6ea84f;        /* akcenty, przyciski, ikony */
    --brand-green-dark: #568a3b;   /* najechanie na przycisk */
    --brand-green-light: #eef5e9;  /* jasne tło ikon i kafelków */
    --brand-navy: #1e2838;         /* ciemne sekcje, stopka, pasek górny */
    --brand-navy-dark: #151e2b;
    --brand-navy-line: #2e3b50;    /* linie i elementy na granatowym tle */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animacje wjeżdżające z boku (AOS fade-left/right) nie mogą poszerzać strony
   i powodować przewijania na boki, zwłaszcza na telefonach. */
html {
    overflow-x: hidden;
}

section:has([data-aos^="fade-left"], [data-aos^="fade-right"], [data-aos^="slide-"]) {
    overflow-x: clip;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    scroll-behavior: smooth;
}

/* ---------- Pasek górny ---------- */
.top-bar {
    background: var(--brand-navy);
    color: #c9d1dc;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--brand-green);
}

/* ---------- Nagłówek ---------- */
.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 5px solid var(--brand-green);
    padding-left: 15px;
    line-height: 0.8;
    display: inline-block;
}

.logo:hover {
    text-decoration: none;
    color: var(--brand-green);
}

/* ---------- Menu główne ---------- */
.nav {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--brand-green);
}

.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 250px;
    flex-direction: column;
    z-index: 1000;
    border-top: 3px solid var(--brand-green);
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.nav .dropdown a {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: block;
    text-transform: none;
    font-weight: 500;
    color: #333;
    transition: background 0.3s, padding-left 0.3s;
}

.nav .dropdown a:hover {
    background: #f9f9f9;
    padding-left: 25px;
}

.mobile-only-cta {
    display: none;
}

.mobile-only-cta a {
    color: var(--brand-green);
}

/* ---------- Przycisk CTA ---------- */
.cta-button {
    background: var(--brand-green);
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
    color: white;
}

/* ---------- Menu na telefonie i tablecie (poniżej 992 px menu nie mieści się w jednej linii) ---------- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
        gap: 15px;
    }

    .nav.active {
        display: flex;
    }

    .header .container {
        position: relative;
    }

    .header .cta-button {
        display: none;
    }

    .mobile-only-cta {
        display: block;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        border-top: none;
        background: #f9f9f9;
        width: 100%;
    }
}

/* ---------- Menu boczne "Narzędzia" ---------- */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 990;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 100px;
    overflow-y: auto;
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tile-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 20px;
    margin-top: 50px;
}

.menu-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border: 2px dashed var(--brand-green);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    width: 100%;
    transition: all 0.3s;
}

.menu-tile:hover {
    background: var(--brand-green-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(110, 168, 79, 0.2);
    border-style: solid;
}

.menu-tile.alt {
    border-color: #333;
}

.menu-tile.alt .tile-icon {
    color: #333;
}

.tile-icon {
    font-size: 32px;
    color: var(--brand-green);
    margin-bottom: 10px;
}

.tile-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.tile-desc {
    font-size: 11px;
    color: #666;
    font-weight: normal;
    text-transform: none;
    line-height: 1.4;
}

/* ---------- Okienko "Zapytaj o ofertę" ---------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.offer-modal {
    background: white;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 5px solid var(--brand-green);
    overflow-y: auto;
    height: 100%;
}

.modal-backdrop.active .offer-modal {
    transform: translateX(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

/* ---------- Formularze ---------- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-green);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--brand-green);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--brand-green-dark);
}
