/* ===================================================================
 * Mathias Díaz Software - Editorial Minimalist Theme Enhancements
 * Blends seamlessly with Flare template (Clean, typographic, no generic blue)
 * =================================================================== */

/* Header Tweaks */
.s-header__logo a {
    font-family: var(--font-2, "Montserrat", sans-serif);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: none;
    display: inline-block;
}

.s-header__logo a span.sub-tag {
    font-weight: 300;
    color: var(--color-1, #9ecba6);
    font-size: 1.1rem;
    margin-left: 4px;
}

/* Editorial Products Detailed Section */
.products-editorial-wrapper {
    padding-top: var(--vspace-2);
    padding-bottom: var(--vspace-2);
}

.product-editorial-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 3.6rem 3.2rem;
    margin-bottom: 3.6rem;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-editorial-card:hover {
    border-color: #d1d1d1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-editorial-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 1.6rem;
    margin-bottom: 2rem;
    gap: 1.2rem;
}

.product-editorial-header h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
    margin: 0;
    letter-spacing: -0.5px;
}

.product-editorial-cat {
    font-family: var(--font-2, "Montserrat", sans-serif);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888888;
    font-weight: 600;
}

.product-editorial-slogan {
    font-size: 1.25rem;
    font-weight: 400;
    color: #444444;
    margin-bottom: 1.8rem;
    font-style: italic;
}

.product-editorial-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555555;
    margin-bottom: 2.4rem;
}

.product-editorial-features {
    list-style: none;
    margin: 0 0 2.4rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem 2rem;
}

.product-editorial-features li {
    font-size: 1.05rem;
    color: #333333;
    line-height: 1.6;
    padding-left: 1.8rem;
    position: relative;
}

.product-editorial-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--color-1, #9ecba6);
    font-weight: 700;
}

.product-editorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid #f0f0f0;
}

.product-editorial-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    font-family: var(--font-2, "Montserrat", sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    background-color: #f6f6f6;
    color: #555555;
    border: 1px solid #e8e8e8;
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.btn-gitlab-editorial {
    font-family: var(--font-2, "Montserrat", sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #111111 !important;
    border: 1px solid #111111;
    padding: 0.7rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    transition: all 0.25s ease;
    border-radius: 3px;
}

.btn-gitlab-editorial:hover {
    background-color: #111111;
    color: #ffffff !important;
}

/* Portfolio grid adjustments */
.folio-item__thumb img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    background: #111111;
}

.folio-item__thumb a::before {
    background-color: rgba(17, 17, 17, 0.9);
}

.folio-item__title {
    font-family: var(--font-2, "Montserrat", sans-serif);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.folio-item__cat {
    color: var(--color-1, #9ecba6);
    font-weight: 600;
    letter-spacing: 1.2px;
}

/* Clean divider */
.editorial-divider {
    height: 1px;
    background-color: #e5e5e5;
    width: 100%;
    margin: 4rem 0;
}

/* Responsive adjustments */
@media screen and (max-width: 800px) {
    .product-editorial-card {
        padding: 2.4rem 1.8rem;
    }
    .product-editorial-header h3 {
        font-size: 1.8rem;
    }
    .folio-item__thumb img {
        height: 260px;
    }
}

/* ===================================================================
 * Contact Form Styles
 * =================================================================== */
.s-contact__form {
    max-width: 780px;
    margin: 3.6rem auto 0 auto;
    text-align: left;
}

.s-contact__form input[type="text"],
.s-contact__form input[type="email"],
.s-contact__form textarea {
    background-color: #17191b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 4px;
    margin-bottom: 2rem;
    width: 100%;
    transition: all 0.25s ease;
}

.s-contact__form input[type="text"]:focus,
.s-contact__form input[type="email"]:focus,
.s-contact__form textarea:focus {
    border-color: var(--color-1, #9ecba6) !important;
    background-color: #1c1e20 !important;
    box-shadow: 0 0 10px rgba(158, 203, 166, 0.15) !important;
}

.s-contact__form label {
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-2, "Montserrat", sans-serif);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.s-contact__alert {
    padding: 1.4rem 1.8rem;
    border-radius: 4px;
    margin-bottom: 2.4rem;
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
}

.s-contact__alert--success {
    background: rgba(158, 203, 166, 0.12);
    border: 1px solid var(--color-1, #9ecba6);
    color: var(--color-1, #9ecba6);
}

.s-contact__alert--error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

