/**
 * Seminee Market - continut editorial pentru categorii WooCommerce
 * Stiluri generale: functioneaza pe toate categoriile care folosesc campurile
 * pluginului, fara selectori dependenti de o anumita categorie sau de un ID.
 */

.smcseo-category-intro,
.smcseo-category-content,
.smcseo-category-intro *,
.smcseo-category-content * {
    box-sizing: border-box;
}

/* Lead-ul din hero, imediat dupa H1. */
.lte-header-wrapper .smcseo-category-lead {
    width: min(100% - 32px, 920px);
    margin: 10px auto 12px;
    color: #fff;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
    font-weight: 400;
    text-align: center;
    text-wrap: pretty;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.48);
}

.lte-header-wrapper .smcseo-category-lead a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Blocul scurt dintre hero si grila de categorii/produse. */
.smcseo-category-intro {
    clear: both;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto 58px;
    padding-top: clamp(36px, 4vw, 54px);
    color: #203635;
}

.smcseo-category-intro h2,
.smcseo-category-content h2 {
    margin: 0 0 18px;
    color: #203635;
    font-size: clamp(28px, 2.35vw, 38px);
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.smcseo-category-intro p {
    max-width: 920px;
    margin: 0 0 12px;
    color: #425553;
    font-size: clamp(15px, 1.12vw, 17px);
    line-height: 1.78;
    text-wrap: pretty;
}

/* Continutul amplu de dupa grila. */
.smcseo-category-content {
    clear: both;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 clamp(48px, 5vw, 72px) !important;
    color: #314543;
}

.smcseo-category-intro > :first-child,
.smcseo-category-content > :first-child,
.smcseo-section > :first-child,
.smcseo-card > :first-child,
.smcseo-note > :first-child,
.smcseo-cta > :first-child,
.smcseo-faq__answer > :first-child {
    margin-top: 0;
}

.smcseo-category-intro > :last-child,
.smcseo-category-content > :last-child,
.smcseo-section > :last-child,
.smcseo-card > :last-child,
.smcseo-note > :last-child,
.smcseo-cta > :last-child,
.smcseo-faq__answer > :last-child {
    margin-bottom: 0;
}

.smcseo-category-content h3 {
    margin: 0 0 12px;
    color: #203635;
    font-size: clamp(20px, 1.7vw, 25px);
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.smcseo-category-content h4 {
    margin: 0 0 10px;
    color: #203635;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

.smcseo-category-content p,
.smcseo-category-content li,
.smcseo-category-content td,
.smcseo-category-content th {
    color: #425553;
    font-size: clamp(15px, 1.08vw, 17px);
    line-height: 1.75;
}

.smcseo-category-content p {
    margin: 0 0 16px;
}

.smcseo-category-content a:not(.lte-btn):not(.button) {
    color: #e9520d;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.smcseo-category-content a:not(.lte-btn):not(.button):hover,
.smcseo-category-content a:not(.lte-btn):not(.button):focus {
    color: #b83d07;
}

/* Sectiuni editoriale reutilizabile. */
.smcseo-section {
    margin: 0;
    padding: clamp(44px, 5.5vw, 72px) 0;
    border-top: 1px solid #e5eae8;
}

.smcseo-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.smcseo-section:last-child {
    padding-bottom: 0;
}

.smcseo-section > p:not([class]) {
    max-width: 920px;
}

/* Grid generic pentru 2 sau 3 coloane. */
.smcseo-grid {
    display: grid;
    gap: clamp(18px, 2.2vw, 28px);
    width: 100%;
    margin-top: 28px;
    align-items: stretch;
}

.smcseo-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smcseo-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Card generic pentru tipuri, beneficii si criterii. */
.smcseo-card {
    height: 100%;
    padding: clamp(24px, 2.8vw, 34px);
    border: 1px solid #e4e9e7;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(25, 52, 49, 0.07);
}

.smcseo-card--soft {
    background: #f7f4ef;
    box-shadow: none;
}

.smcseo-card p:last-child {
    margin-bottom: 0;
}

/* Liste cu marcator vizual, reutilizabile in orice categorie. */
.smcseo-check-list {
    display: grid;
    gap: 11px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.smcseo-check-list li {
    position: relative;
    margin: 0;
    padding-left: 28px;
}

.smcseo-check-list li::before {
    content: "";
    position: absolute;
    top: 0.78em;
    left: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5a13;
    transform: translateY(-50%);
}

/* Nota editoriala/tehnica. */
.smcseo-note {
    margin: 30px 0 0;
    padding: clamp(22px, 2.6vw, 30px);
    border-left: 4px solid #ff5a13;
    background: #f7f4ef;
}

/* Tabele optionale. */
.smcseo-category-content table {
    width: 100%;
    margin: 28px 0 0;
    border-collapse: collapse;
    border: 1px solid #e4e9e7;
    background: #fff;
}

.smcseo-category-content th,
.smcseo-category-content td {
    padding: 15px 17px;
    border-bottom: 1px solid #e4e9e7;
    text-align: left;
    vertical-align: top;
}

.smcseo-category-content th {
    color: #203635;
    background: #f7f4ef;
    font-weight: 700;
}

/* FAQ generic, afisat dupa continut. */
.smcseo-faq {
    margin: clamp(56px, 7vw, 88px) 0 0;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid #e4e9e7;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(25, 52, 49, 0.06);
}

.smcseo-faq > h2 {
    margin-bottom: 26px;
}

.smcseo-faq__list {
    border-top: 1px solid #e4e9e7;
}

.smcseo-faq__item {
    margin: 0;
    border-bottom: 1px solid #e4e9e7;
}

.smcseo-faq__item summary {
    position: relative;
    cursor: pointer;
    padding: 21px 52px 21px 0;
    color: #203635;
    font-size: clamp(17px, 1.3vw, 19px);
    line-height: 1.45;
    font-weight: 700;
    list-style: none;
}

.smcseo-faq__item summary::-webkit-details-marker {
    display: none;
}

.smcseo-faq__item summary:focus-visible {
    outline: 2px solid #ff5a13;
    outline-offset: 5px;
}

.smcseo-faq__icon,
.smcseo-faq__icon::after {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 18px;
    height: 2px;
    background: #ff5a13;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.smcseo-faq__icon::after {
    content: "";
    top: 0;
    right: 0;
    transform: rotate(90deg);
}

.smcseo-faq__item[open] .smcseo-faq__icon::after {
    transform: rotate(0deg);
}

.smcseo-faq__answer {
    max-width: 920px;
    padding: 0 48px 22px 0;
}

/* CTA final, reutilizabil. */
.smcseo-cta {
    margin: clamp(56px, 7vw, 88px) 0 0;
    padding: clamp(30px, 4vw, 48px);
    border-radius: 6px;
    background: #142c2b;
    color: #fff;
}

.smcseo-cta h2,
.smcseo-cta h3,
.smcseo-cta h4,
.smcseo-cta p,
.smcseo-cta li {
    color: #fff;
}

.smcseo-cta p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.82);
}

.smcseo-cta .lte-btn,
.smcseo-cta .button {
    margin-top: 10px;
}

@media (max-width: 991px) {
    .smcseo-category-intro {
        margin-bottom: 48px;
    }

    .smcseo-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lte-header-wrapper .smcseo-category-lead {
        width: min(100% - 28px, 680px);
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.48;
    }

    .smcseo-category-intro {
        margin-bottom: 38px;
        padding-top: 32px;
    }


    .smcseo-grid--2,
    .smcseo-grid--3 {
        grid-template-columns: 1fr;
    }

    .smcseo-section {
        padding: 44px 0;
    }

    .smcseo-card,
    .smcseo-faq,
    .smcseo-cta {
        padding: 24px 20px;
    }

    .smcseo-category-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .smcseo-faq__item summary {
        padding-right: 42px;
    }

    .smcseo-faq__answer {
        padding-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smcseo-faq__icon,
    .smcseo-faq__icon::after {
        transition: none;
    }
}
