/* ==========================================================================
   OfficeGest Modern — Prose Enhancements
   Aplicado pelo prose-enhancer.js às páginas Master e verticais.
   ========================================================================== */

/* ==========================================================================
   1. BENEFITS GRID — "Para o seu negócio" + "Para o seu cliente" lado-a-lado
   ========================================================================== */
.og-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0 !important;
    padding: 2rem;
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: var(--og-r-lg, 14px);
}

.og-benefits-grid .og-benefits-heading {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brand-secondary) !important;
}

.og-benefits-grid .og-benefits-heading::before {
    content: "// ";
}

.og-benefits-grid .og-benefits-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.og-benefits-grid .og-benefits-list li {
    position: relative;
    padding: 0.625rem 0 0.625rem 2rem;
    margin: 0 !important;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--wp--preset--color--text);
    border-bottom: 1px solid var(--wp--preset--color--border);
}

.og-benefits-grid .og-benefits-list li:last-child {
    border-bottom: none;
}

.og-benefits-grid .og-benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    background: linear-gradient(135deg, var(--wp--preset--color--brand-secondary), var(--wp--preset--color--brand-accent));
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 75%;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 75%;
}

@media (max-width: 781px) {
    .og-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* ==========================================================================
   2. FEATURES LIST — "Funcionalidades do Software" como cards 2-col
   ========================================================================== */
.og-features-heading {
    text-align: center;
    margin-top: 3.5rem !important;
    margin-bottom: 0.5rem !important;
}

.og-features-heading + p {
    text-align: center;
    color: var(--wp--preset--color--muted) !important;
    margin-bottom: 2rem !important;
}

ul.og-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

ul.og-features-list li {
    margin: 0 !important;
    padding: 1.25rem 1.25rem 1.25rem 3rem !important;
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: var(--og-r-md, 10px);
    position: relative;
    line-height: 1.5;
    font-size: 0.9375rem;
    transition: border-color 180ms ease, transform 180ms ease;
}

ul.og-features-list li:hover {
    border-color: var(--wp--preset--color--brand-secondary);
    transform: translateY(-2px);
}

ul.og-features-list li::before {
    content: "";
    display: block;
    position: absolute;
    left: 1rem;
    top: 1.4rem;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, var(--wp--preset--color--brand-secondary), var(--wp--preset--color--brand-accent));
    border-radius: 6px;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 11 12 14 22 4'/><path d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/></svg>") no-repeat center / 65%;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 11 12 14 22 4'/><path d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/></svg>") no-repeat center / 65%;
}

ul.og-features-list li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--wp--preset--color--text);
}

@media (max-width: 781px) {
    ul.og-features-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   3. RELATED MODULES — H3 com link como cards horizontais
   ========================================================================== */
.og-related-modules-heading {
    text-align: center;
    margin-top: 4rem !important;
    margin-bottom: 0.5rem !important;
    font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
}

.og-related-modules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
    margin: 2rem 0 !important;
}

.og-related-modules .og-module-card {
    margin: 0 !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    line-height: 1.4;
}

/* Cards SEM link (so texto) - aplicar background/border ao H3 directamente */
.og-related-modules .og-module-card:not(:has(a)) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: var(--og-r-md, 10px);
    color: var(--wp--preset--color--text) !important;
    transition: all 180ms ease;
    cursor: default;
}

.og-related-modules .og-module-card:not(:has(a))::after {
    content: "•";
    color: var(--wp--preset--color--brand-secondary);
    font-size: 1.125rem;
    flex-shrink: 0;
    opacity: 0.5;
}

.og-related-modules .og-module-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border);
    border-radius: var(--og-r-md, 10px);
    text-decoration: none !important;
    color: var(--wp--preset--color--text) !important;
    transition: all 180ms ease;
}

.og-related-modules .og-module-card a::after {
    content: "→";
    color: var(--wp--preset--color--brand-secondary);
    font-size: 1.125rem;
    transition: transform 180ms ease;
    flex-shrink: 0;
}

.og-related-modules .og-module-card a:hover {
    border-color: var(--wp--preset--color--brand-secondary);
    background: var(--wp--preset--color--elevated);
    transform: translateY(-1px);
    color: var(--wp--preset--color--brand-secondary) !important;
}

.og-related-modules .og-module-card a:hover::after {
    transform: translateX(3px);
}

.og-module-cta {
    text-align: center !important;
    margin-top: 1rem !important;
    font-size: 0.9375rem !important;
    font-family: var(--wp--preset--font-family--mono);
}

.og-module-cta a {
    color: var(--wp--preset--color--brand-secondary) !important;
    text-decoration: none !important;
    border-bottom: 1px dashed var(--wp--preset--color--brand-secondary);
    padding-bottom: 2px;
    transition: all 180ms ease;
}

.og-module-cta a:hover {
    color: var(--wp--preset--color--brand-accent) !important;
    border-bottom-color: var(--wp--preset--color--brand-accent);
}

/* ==========================================================================
   4. TESTEMUNHO — quote elegante com autor
   ========================================================================== */
.og-testimonial {
    margin: 3rem 0 !important;
    padding: 2.5rem 2rem;
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border);
    border-left: 3px solid var(--wp--preset--color--brand-secondary);
    border-radius: var(--og-r-md, 10px);
    position: relative;
    overflow: hidden;
}

.og-testimonial::before {
    content: """;
    position: absolute;
    top: -1.5rem;
    right: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7rem;
    line-height: 1;
    color: var(--wp--preset--color--brand-secondary);
    opacity: 0.15;
    pointer-events: none;
}

.og-testimonial .og-testimonial-quote {
    margin: 0 0 1rem !important;
    font-size: 1.125rem !important;
    line-height: 1.6;
    font-style: italic;
    color: var(--wp--preset--color--text) !important;
    position: relative;
    z-index: 1;
}

.og-testimonial .og-testimonial-author {
    margin: 0 !important;
    font-size: 0.875rem !important;
    font-family: var(--wp--preset--font-family--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--brand-secondary) !important;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.og-testimonial .og-testimonial-author::before {
    content: "— ";
}

/* ==========================================================================
   5. STANDALONE LINK CTAs — paragrafos com so um link
   ========================================================================== */
.og-link-cta {
    text-align: center;
    margin: 2rem 0 !important;
}

.og-link-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--wp--preset--color--brand-primary), var(--wp--preset--color--brand-secondary));
    color: var(--wp--preset--color--white) !important;
    text-decoration: none !important;
    border-radius: var(--og-r-md, 10px);
    font-weight: 500;
    font-size: 0.9375rem;
    border: none !important;
    transition: all 180ms ease;
}

.og-link-cta a::after {
    content: "→";
    transition: transform 180ms ease;
}

.og-link-cta a:hover {
    transform: translateY(-1px);
    box-shadow: var(--og-shadow-md, 0 4px 8px rgba(0, 0, 0, 0.3));
    color: var(--wp--preset--color--white) !important;
}

.og-link-cta a:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   POLISH ADICIONAL no .og-prose para verticais
   ========================================================================== */

/* Headings H1 muito longos (titulos de verticais) — diminuir padding-top
   quando logo seguidos de H2 */
.og-prose > h1:first-child + h2 {
    margin-top: 1rem !important;
}

/* Paragrafos pos-headings — primeira linha mais destacada */
.og-prose h1 + p:first-of-type,
.og-prose h2 + p:first-of-type {
    font-size: 1.0625rem;
}

/* Headings vazios (apenas com texto curto sem conteudo) — estes resultaram
   da conversao md e sao ruido. NAO escondemos por defeito porque podem ter
   significado, mas podemos reduzir o impacto visual. */
.og-prose h2:empty,
.og-prose h3:empty {
    display: none;
}
