/* =========================================================
   Smokefactory - redizajn 2026, v3: newsletter, články, pätička
   Rovnaký jazyk ako zvyšok redizajnu: biele plochy, jemné rámiky,
   zaoblenie 16 až 24 px, zelená iba ako akcent.
   Platí iba keď je na <body> trieda .sf-redesign.
   ========================================================= */

/* ---------- Newsletter ---------- */
body.sf-redesign #newsletter.sf-news {
    margin: 0;
    padding: 48px 0 56px;
    background: #fff;
    color: var(--sf-dark);
}
body.sf-redesign .sf-news__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(300px, 460px);
    align-items: center;
    gap: 20px 32px;
    padding: 32px 40px;
    background: var(--sf-gl);
    border: 1px solid #cdeedb;
    border-radius: 24px;
}
body.sf-redesign .sf-news__ico {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sf-g);
    color: #fff;
}
body.sf-redesign #newsletter.sf-news strong.title {
    display: block;
    margin: 0;
    color: var(--sf-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}
body.sf-redesign #newsletter.sf-news p.desc {
    margin: 6px 0 0;
    color: var(--sf-muted);
    font-size: 15px;
    line-height: 1.5;
}
body.sf-redesign .sf-news__form {
    min-width: 0;
}

/* MailerLite formulár (štýly vkladá služba, preto !important) */
body.sf-redesign #newsletter .ml-form-embedContainer {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
body.sf-redesign #newsletter .ml-form-embedContainer .ml-form-align-center,
body.sf-redesign #newsletter .ml-form-embedContainer .ml-form-align-default {
    display: block !important;
    text-align: left !important;
}
body.sf-redesign #newsletter .ml-form-embedWrapper,
body.sf-redesign #newsletter .ml-form-embedWrapper.embedForm {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.sf-redesign #newsletter .ml-form-embedBody,
body.sf-redesign #newsletter .ml-form-successBody {
    padding: 0 !important;
}
body.sf-redesign #newsletter .ml-form-embedBody .ml-form-embedContent {
    display: none !important;
}
body.sf-redesign #newsletter .ml-form-formContent.horozintalForm {
    margin: 0 !important;
    padding: 0 !important;
}
body.sf-redesign #newsletter .ml-form-horizontalRow {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
}
body.sf-redesign #newsletter .ml-input-horizontal {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
}
body.sf-redesign #newsletter .ml-input-horizontal .horizontal-fields,
body.sf-redesign #newsletter .ml-input-horizontal .ml-field-group {
    width: 100% !important;
    margin: 0 !important;
}
body.sf-redesign #newsletter .ml-field-email input.form-control {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    border: 1.5px solid var(--sf-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--sf-dark) !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
}
body.sf-redesign #newsletter .ml-field-email input.form-control::placeholder {
    color: #8a8a8a !important;
}
body.sf-redesign #newsletter .ml-field-email input.form-control:focus {
    border-color: var(--sf-dark) !important;
    outline: 0 !important;
}
body.sf-redesign #newsletter .ml-button-horizontal {
    flex: none;
    width: auto !important;
    padding: 0 !important;
}
body.sf-redesign #newsletter .ml-button-horizontal button.primary,
body.sf-redesign #newsletter .ml-mobileButton-horizontal button.primary {
    width: auto !important;
    height: 52px !important;
    padding: 0 26px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--sf-dark) !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: background-color .15s;
}
body.sf-redesign #newsletter .ml-button-horizontal button.primary:hover,
body.sf-redesign #newsletter .ml-mobileButton-horizontal button.primary:hover {
    background: #000 !important;
}
/* MailerLite nastavuje farbu tlačidla s !important a ID selektorom, preto rovnako silný selektor */
body.sf-redesign #newsletter #mlb2-19944182.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button,
body.sf-redesign #newsletter #mlb2-19944182.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-mobileButton-horizontal button {
    background-color: var(--sf-dark) !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    height: 52px !important;
    padding: 0 26px !important;
}
body.sf-redesign #newsletter #mlb2-19944182.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-horizontalRow button:hover,
body.sf-redesign #newsletter #mlb2-19944182.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-mobileButton-horizontal button:hover {
    background-color: #000 !important;
}
body.sf-redesign #newsletter .ml-form-successBody .ml-form-successContent {
    margin: 0 !important;
    text-align: left !important;
}
body.sf-redesign #newsletter .ml-form-successBody h4 {
    margin: 0 0 4px !important;
    color: var(--sf-dark) !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}
body.sf-redesign #newsletter .ml-form-successBody p {
    margin: 0 !important;
    color: var(--sf-dark) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

@media (max-width: 991.98px) {
    body.sf-redesign .sf-news__card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 28px 28px;
    }
    body.sf-redesign .sf-news__form {
        grid-column: 1 / -1;
    }
}
@media (max-width: 575.98px) {
    body.sf-redesign #newsletter.sf-news {
        padding: 28px 0 36px;
    }
    body.sf-redesign .sf-news__card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 18px;
        border-radius: 20px;
    }
    body.sf-redesign .sf-news__ico {
        width: 46px;
        height: 46px;
    }
    body.sf-redesign #newsletter.sf-news strong.title {
        font-size: 20px;
    }
    body.sf-redesign #newsletter .ml-form-horizontalRow {
        flex-direction: column;
    }
    body.sf-redesign #newsletter .ml-button-horizontal {
        display: block !important;
    }
    body.sf-redesign #newsletter .ml-button-horizontal button.primary {
        width: 100% !important;
    }
    body.sf-redesign #newsletter .ml-mobileButton-horizontal {
        display: none !important;
    }
}

/* ---------- Články (titulka, magazín) ---------- */
body.sf-redesign .blog-grid--row {
    row-gap: 24px;
    justify-content: center; /* neúplný riadok (napr. 2 články z 3) ostane vycentrovaný, nie prázdny vpravo */
}
body.sf-redesign .blog-grid--row > [class*="col-"] {
    display: flex;
}
body.sf-redesign .blog-grid--item {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    transition: border-color .2s, box-shadow .2s;
}
body.sf-redesign .blog-grid--item-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sf-soft);
}
body.sf-redesign .blog-grid--item-img a {
    display: block;
    height: 100%;
}
body.sf-redesign .blog-grid--item-img img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    transition: transform .25s ease;
}
body.sf-redesign .blog-grid--item-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
}
body.sf-redesign .blog-grid--item-title {
    padding: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}
body.sf-redesign .blog-grid--item-title a {
    color: var(--sf-dark);
    text-decoration: none;
    transition: color .15s;
}
body.sf-redesign .blog-grid--item-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--sf-muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
body.sf-redesign .blog-grid--item-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--sf-gd);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
body.sf-redesign .blog-grid--item-more svg {
    transition: transform .18s var(--sf-ease);
}
@media (min-width: 768px) {
    body.sf-redesign .blog-grid--item:hover {
        border-color: #cde8d6;
        box-shadow: 0 14px 30px -18px rgba(16, 60, 32, .45);
    }
    body.sf-redesign .blog-grid--item:hover .blog-grid--item-img img {
        transform: scale(1.04);
    }
    body.sf-redesign .blog-grid--item:hover .blog-grid--item-title a {
        color: var(--sf-gd);
    }
    body.sf-redesign .blog-grid--item:hover .blog-grid--item-more svg {
        transform: translateX(3px);
    }
}
/* Mimo redizajnu sa odkaz "Čítať viac" nezobrazuje */
.blog-grid--item-more {
    display: none;
}

/* ---------- Pätička ---------- */
body.sf-redesign footer#footer {
    background: #1b1d1c;
}
body.sf-redesign #kontakt {
    padding: 56px 0 24px;
    background: #1b1d1c;
}
body.sf-redesign #kontakt .row > [class*="col-"] {
    margin-bottom: 32px;
}
body.sf-redesign #kontakt strong.title {
    display: block;
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}
body.sf-redesign #kontakt .inner strong.title ~ strong.title {
    margin-top: 28px;
}
body.sf-redesign #kontakt a {
    color: #b9bfbb;
    font-size: 15px;
    text-decoration: none;
    transition: color .15s;
}
body.sf-redesign #kontakt a:hover {
    color: #fff;
}
body.sf-redesign #kontakt ul.menu {
    margin: 0;
    padding: 0;
}
body.sf-redesign #kontakt ul li a {
    margin-bottom: 10px;
    font-size: 15px;
}
body.sf-redesign #kontakt .fa,
body.sf-redesign #kontakt .fas,
body.sf-redesign #kontakt .fab {
    width: 20px;
    padding-right: 0;
    font-size: 16px;
    color: var(--sf-g);
    text-align: center;
}
body.sf-redesign #kontakt .fa:hover {
    color: var(--sf-g);
}
body.sf-redesign #kontakt .inner a:not(.pe-3) {
    margin-bottom: 8px;
}
/* Sociálne siete ako malé tlačidlá */
body.sf-redesign #kontakt .inner a[href*="facebook"],
body.sf-redesign #kontakt .inner a[href*="instagram"] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px 8px 0 !important;
    padding: 8px 14px 8px 12px;
    border: 1px solid #3a3f3c;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
body.sf-redesign #kontakt .inner a[href*="facebook"]:hover,
body.sf-redesign #kontakt .inner a[href*="instagram"]:hover {
    border-color: var(--sf-g);
}
body.sf-redesign footer#footer .gmap {
    padding-top: 0;
}
body.sf-redesign footer#footer .gmap img {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 16px;
}

body.sf-redesign .sf-foot__bar {
    background: #141615;
    border-top: 1px solid #2a2e2c;
}
body.sf-redesign .sf-foot__bar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 18px;
    padding-bottom: 18px;
    color: #8f9692;
    font-size: 14px;
}
body.sf-redesign .sf-foot__bar a {
    color: #b9bfbb;
    font-weight: 400;
    text-decoration: none;
}
body.sf-redesign .sf-foot__bar a:hover {
    color: #fff;
}
body.sf-redesign footer#footer.admin .sf-foot__bar {
    padding-bottom: 50px;
}
@media (max-width: 767.98px) {
    body.sf-redesign #kontakt {
        padding-top: 36px;
    }
    body.sf-redesign .sf-foot__bar > .container {
        flex-direction: column;
        align-items: flex-start;
    }
}
