/*
Theme Name: MATPOL Child
Theme URI: https://matpol.radom.pl/
Description: Motyw potomny dla Hello Elementor przygotowany dla MATPOL Centrum Budowlane. Zawiera paletę kolorów, typografię i style globalne oparte na identyfikacji wizualnej marki. Kompatybilny z Elementor Pro 4.x.
Author: MATPOL
Author URI: https://matpol.radom.pl/
Template: hello-elementor
Version: 1.0.0
Text Domain: matpol-child
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: elementor, construction, business
*/

/* =========================================================
   MATPOL – ZMIENNE GLOBALNE (paleta z identyfikacji marki)
   ========================================================= */
:root {
    /* Kolory główne */
    --matpol-red:          #C1272D;  /* czerwień MATPOL (loga, przyciski, akcenty) */
    --matpol-red-dark:     #9E1F24;  /* czerwień hover / ciemniejszy wariant */
    --matpol-red-light:    #E63946;  /* jaśniejsza czerwień pomocnicza */

    /* Grafit / ciemne tła */
    --matpol-dark:         #1F2A33;  /* ciemny grafit – sekcje tła, footer */
    --matpol-dark-2:       #263440;  /* grafit karty / pasek partnerów */
    --matpol-dark-3:       #2E3D49;  /* jaśniejszy grafit */

    /* Szarości */
    --matpol-gray:         #8A8A8A;  /* szary z loga (litera M) */
    --matpol-gray-text:    #4A4A4A;  /* tekst podstawowy */
    --matpol-gray-muted:   #6B7680;  /* tekst pomocniczy / opisy */
    --matpol-gray-line:    #E2E5E8;  /* linie, obramowania, separatory */
    --matpol-gray-bg:      #F4F5F6;  /* jasne tło sekcji */

    /* Neutralne */
    --matpol-white:        #FFFFFF;
    --matpol-black:        #111417;

    /* Stany funkcyjne */
    --matpol-success:      #2E7D32;
    --matpol-super:        #8A8A8A;  /* badge "SUPER CENA" */

    /* Typografia */
    --matpol-font-heading: 'Barlow', 'Segoe UI', Arial, sans-serif;
    --matpol-font-body:    'Open Sans', 'Segoe UI', Arial, sans-serif;

    /* Promienie i cienie */
    --matpol-radius:       4px;
    --matpol-radius-lg:    8px;
    --matpol-shadow:       0 4px 18px rgba(31, 42, 51, 0.08);
    --matpol-shadow-hover: 0 8px 28px rgba(31, 42, 51, 0.14);

    /* Kontener */
    --matpol-container:    1200px;

    /* Przejścia */
    --matpol-transition:   all .25s ease;
}

/* =========================================================
   RESET / BAZA
   ========================================================= */
body {
    font-family: var(--matpol-font-body);
    color: var(--matpol-gray-text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--matpol-font-heading);
    color: var(--matpol-dark);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .6em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
    color: var(--matpol-red);
    text-decoration: none;
    transition: var(--matpol-transition);
}
a:hover { color: var(--matpol-red-dark); }

/* =========================================================
   KONTENER
   ========================================================= */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con {
    max-width: var(--matpol-container);
}

/* =========================================================
   PRZYCISKI – STYL GLOBALNY MATPOL
   ========================================================= */
.matpol-btn,
.elementor-button.matpol-btn,
button.matpol-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--matpol-red);
    color: var(--matpol-white);
    font-family: var(--matpol-font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 12px 26px;
    border: none;
    border-radius: var(--matpol-radius);
    cursor: pointer;
    transition: var(--matpol-transition);
    line-height: 1.2;
}
.matpol-btn:hover,
.elementor-button.matpol-btn:hover {
    background: var(--matpol-red-dark);
    color: var(--matpol-white);
    transform: translateY(-1px);
}

/* Wariant outline */
.matpol-btn--outline {
    background: transparent;
    color: var(--matpol-white);
    border: 2px solid rgba(255,255,255,.6);
    padding: 10px 24px;
}
.matpol-btn--outline:hover {
    background: var(--matpol-white);
    color: var(--matpol-dark);
    border-color: var(--matpol-white);
}

/* Wariant szary (badge / SUPER CENA style) */
.matpol-btn--gray {
    background: var(--matpol-gray);
}
.matpol-btn--gray:hover {
    background: var(--matpol-gray-text);
}

/* =========================================================
   NADPISANIE DOMYŚLNYCH PRZYCISKÓW ELEMENTOR
   (kolor akcentu = czerwień MATPOL)
   ========================================================= */
.elementor-button {
    border-radius: var(--matpol-radius);
    font-family: var(--matpol-font-heading);
    font-weight: 600;
    letter-spacing: .4px;
}

/* =========================================================
   KARTY PRODUKTÓW (styl z wizualizacji)
   ========================================================= */
.matpol-card {
    background: var(--matpol-white);
    border: 1px solid var(--matpol-gray-line);
    border-radius: var(--matpol-radius);
    padding: 18px;
    text-align: center;
    transition: var(--matpol-transition);
}
.matpol-card:hover {
    box-shadow: var(--matpol-shadow-hover);
    transform: translateY(-3px);
}
.matpol-card__title {
    font-family: var(--matpol-font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--matpol-dark);
    margin: 14px 0 12px;
}
.matpol-card__meta {
    font-size: 13px;
    color: var(--matpol-gray-muted);
    margin-top: 12px;
}

/* Badge na karcie (np. KLEJ W PIANIE GRATIS) */
.matpol-badge {
    display: inline-block;
    background: var(--matpol-red);
    color: #fff;
    font-family: var(--matpol-font-heading);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: var(--matpol-radius);
}

/* =========================================================
   SEKCJE TŁA
   ========================================================= */
.matpol-bg-dark  { background: var(--matpol-dark);  color: #fff; }
.matpol-bg-dark2 { background: var(--matpol-dark-2); color: #fff; }
.matpol-bg-red   { background: var(--matpol-red);   color: #fff; }
.matpol-bg-gray  { background: var(--matpol-gray-bg); }

.matpol-bg-dark h1, .matpol-bg-dark h2, .matpol-bg-dark h3,
.matpol-bg-red h1, .matpol-bg-red h2, .matpol-bg-red h3 {
    color: #fff;
}

/* =========================================================
   NAGŁÓWEK SEKCJI z czerwoną kreską (styl "POZOSTAŁE PRODUKTY")
   ========================================================= */
.matpol-heading {
    position: relative;
    display: inline-block;
    font-family: var(--matpol-font-heading);
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 10px;
}
.matpol-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--matpol-red);
}
.matpol-heading--center { display: block; text-align: center; }
.matpol-heading--center::after { left: 50%; transform: translateX(-50%); }

/* Akcent słowa na czerwono */
.matpol-accent { color: var(--matpol-red); }

/* =========================================================
   PASEK TOP (kontakt / hasła)
   ========================================================= */
.matpol-topbar {
    background: var(--matpol-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
}
.matpol-topbar a { color: rgba(255,255,255,.85); }
.matpol-topbar a:hover { color: #fff; }

/* =========================================================
   FOOTER – baza
   ========================================================= */
.matpol-footer {
    background: var(--matpol-dark);
    color: rgba(255,255,255,.75);
    font-size: 14px;
}
.matpol-footer a { color: rgba(255,255,255,.75); }
.matpol-footer a:hover { color: var(--matpol-red-light); }
.matpol-footer h4 {
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: .5px;
}

/* =========================================================
   IKONY-CECHY (NA CZAS / NA MIEJSCE / NA PEWNO)
   ========================================================= */
.matpol-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--matpol-font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}
.matpol-feature i,
.matpol-feature svg { color: var(--matpol-red); }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1024px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
}
@media (max-width: 767px) {
    body { font-size: 15px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .matpol-btn { padding: 11px 20px; font-size: 13px; }
}
