/* ============================================================
   CMC GROUP – Główny Arkusz Stylów
   Kolory: #341E10 (brąz), #B45309 (złoty), #FFFFFF (biały)
   Fonty:  Lato Regular 400, Bold 700, Heavy/Black 900
   ============================================================ */

:root {
    --cmc-brown:   #341E10;
    --cmc-gold:    #B45309;
    --cmc-white:   #FFFFFF;
    --cmc-light:   #F9F6F3;
    --cmc-muted:   #7C6555;
    --cmc-nav-bg:  #2A1A0C;
    --font-main:   'Lato', sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-weight: 400;
    color: var(--cmc-brown);
    background: var(--cmc-white);
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--cmc-gold); }

/* ============================================================
   HEADER
   ============================================================ */
.cmc-header {
    background: var(--cmc-white);
    border-bottom: 1px solid rgba(52, 30, 16, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(52, 30, 16, 0.06);
}

.cmc-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px; 
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.cmc-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cmc-logo img {
    max-height: 60px;
    width: auto;
}

.cmc-logo__text {
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--cmc-gold);
    border: 2px solid var(--cmc-gold);
    padding: 4px 14px;
    border-radius: 6px;
    line-height: 1;
}

/* Kontener obejmujący flagi i menu */
.cmc-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Wyrównanie całości do prawej */
    gap: 12px; 
    margin-left: auto; 
}

/* Przełączniki języka - usunięcie kropek i zwiększenie flag */
.cmc-lang ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.cmc-lang li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

.cmc-lang img,
.cmc-lang a img {
    width: 32px !important; /* Wymuszenie większego rozmiaru */
    height: auto !important; /* Zachowanie proporcji */
    border-radius: 2px;
    opacity: .75;
    transition: opacity .2s;
    display: block;
}

.cmc-lang a:hover img,
.cmc-lang a.active img,
.cmc-lang li.current-lang img {
    opacity: 1;
}

/* Nawigacja główna */
.cmc-nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 6px;
    align-items: center;
}

.cmc-nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cmc-nav a {
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--cmc-brown);
    color: var(--cmc-white);
    letter-spacing: .4px;
    transition: background .2s, color .2s;
    display: block;
    white-space: nowrap;
}

.cmc-nav a:hover {
    background: var(--cmc-gold);
    color: var(--cmc-white);
}

/* Hamburger – mobile */
.cmc-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.cmc-hamburger span {
    display: block;
    height: 3px;
    background: var(--cmc-brown);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* Mobile menu overlay */
.cmc-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--cmc-brown);
    z-index: 1999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.77,0,.18,1);
}

.cmc-mobile-menu.is-open {
    transform: translateX(0);
}

.cmc-mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    font-size: 42px;
    color: var(--cmc-white);
    cursor: pointer;
    line-height: 1;
}

.cmc-mobile-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.cmc-mobile-menu a {
    font-weight: 900;
    font-size: 24px;
    color: var(--cmc-white);
    letter-spacing: 1px;
    padding: 10px 20px;
    display: block;
    text-transform: uppercase;
}

.cmc-mobile-menu a:hover {
    color: var(--cmc-gold);
}

/* ============================================================
   MAIN – wrapper treści Elementora
   ============================================================ */
.cmc-main {
    min-height: 60vh;
}

.elementor-section.elementor-section-full_width,
.e-con.e-con-full_width {
    max-width: 100%;
}

/* ============================================================
   FOOTER (Tylko białe tło i logo na środku)
   ============================================================ */
.cmc-footer {
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid rgba(52, 30, 16, 0.08); /* Delikatna linia oddzielająca od sekcji wyżej */
}

.cmc-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column; /* Układa menu i logo jedno pod drugim */
    justify-content: center;
    align-items: center;
    gap: 32px; /* Odstęp między menu a logo */
}

/* Style dla nowego menu w stopce */
.cmc-footer__nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.cmc-footer__nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cmc-footer__nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--cmc-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.cmc-footer__nav a:hover {
    color: var(--cmc-gold);
}

.cmc-footer__logo {
    text-align: center;
}

.cmc-footer__logo img {
    margin: 0 auto;
}

.cmc-footer__logo-text {
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 3px;
    color: var(--cmc-gold);
    border: 2px solid var(--cmc-gold);
    padding: 6px 18px;
    border-radius: 6px;
    display: inline-block;
}

/* ============================================================
   GLOBALNE STYLE PRZYCISKÓW (do użycia w Elementorze)
   ============================================================ */
.cmc-btn {
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 14px 34px;
    border-radius: 999px;
    background: var(--cmc-gold);
    color: var(--cmc-white);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(180, 83, 9, .35);
}

.cmc-btn:hover {
    background: var(--cmc-brown);
    color: var(--cmc-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 30, 16, .3);
}

.cmc-btn--outline {
    background: transparent;
    color: var(--cmc-gold);
    border: 2px solid var(--cmc-gold);
    box-shadow: none;
}

.cmc-btn--outline:hover {
    background: var(--cmc-gold);
    color: var(--cmc-white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .cmc-nav { display: none; }
    .cmc-hamburger { display: flex; margin-left: 16px; }
}

@media (max-width: 600px) {
    .cmc-header__inner { padding: 12px 20px; }
}



/* Styl pól formularza */
.ds-form-container input:not([type="submit"]), 
.ds-form-container textarea {
    border: 2px solid #341E10; /* Kolor obramowania z projektu */
    border-radius: 30px;
    width: 100%;
    padding: 10px 20px;
    margin-top: 5px;
    font-size:20px;
    line-height:30px;
}

.ds-form-container textarea {
    border-radius: 20px;
    height: 150px;
}
.ds-form-container label {
    text-align: left;
    color: #B45309;
    font-size:18px;
    padding-left: 20px;
}
/* Przycisk Wyślij */
.ds-submit-wrapper input[type="submit"] {
    background-color: #3d2b1f;
    color: #fff;
    border-radius: 50px;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: block;
    margin: 20px auto;
}

/* Styl Popupa z załącznika */
.ds-custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #b05513; /* Brąz z Twojego screena */
    color: white;
    padding: 40px 60px;
    border-radius: 40px;
    z-index: 9999;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ds-popup-content p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.ds-close-popup {
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    font-size: 20px;
}

/* Ukrycie domyślnego powiadomienia CF7 */
.wpcf7-response-output {
    display: none !important;
}