/* ========================================
   SINGLE EQUIPAMENTOS - INDUSTRIAL DESIGN
======================================== */

/* ========================================
   HERO SECTION
======================================== */

.single-equip-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

.single-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.single-equip-layout {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 60px;
    align-items: start;
}

@media (min-width: 1024px) {
    .single-equip-layout {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* IMAGE SECTION */
.single-equip-image {
    position: relative;
}

.single-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 10px 20px rgba(0, 0, 0, 0.08),
        inset 0 0 0 2px rgba(220, 38, 38, 0.1);
    aspect-ratio: 4/3;
}

.single-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.single-image-wrapper:hover .single-main-img {
    transform: scale(1.03);
}

.single-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #64748b;
}

.single-placeholder i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* INFO SECTION */
.single-equip-info {
    position: sticky;
    top: 100px;
}

.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.single-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-breadcrumb a:hover {
    color: #dc2626;
}

.single-breadcrumb i {
    font-size: 0.7rem;
}

.single-breadcrumb span {
    color: #1e293b;
    font-weight: 600;
}

.single-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(185, 28, 28, 0.05));
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #dc2626;
    margin-bottom: 20px;
}

.single-category-badge i {
    font-size: 0.95rem;
}

.single-equip-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #1e293b;
    margin-bottom: 24px;
}

.single-equip-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 32px;
}

/* CTA Buttons */
.single-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ========================================
   CONTENT SECTION
======================================== */

.single-content-section {
    padding: 80px 0;
    background: #ffffff;
}

.single-content-grid {
    display: grid;
    gap: 60px;
}

@media (min-width: 1024px) {
    .single-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.content-header i {
    font-size: 1.8rem;
    color: #dc2626;
}

.content-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin: 0;
}

/* Description */
.single-description .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
}

.single-description .entry-content p {
    margin-bottom: 20px;
}

.single-description .entry-content ul,
.single-description .entry-content ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.single-description .entry-content li {
    margin-bottom: 10px;
}

/* Specifications Table */
.specs-table {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.spec-row:hover {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.02), transparent);
}

.spec-row:hover::before {
    transform: scaleY(1);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #1e293b;
    font-size: 0.95rem;
}

.spec-label i {
    font-size: 1rem;
    color: #dc2626;
}

.spec-value {
    font-weight: 600;
    color: #64748b;
    text-align: right;
    font-size: 0.95rem;
}

.specs-empty {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
}

.specs-empty i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.specs-empty p {
    color: #64748b;
    font-style: italic;
    margin: 0;
}

/* ========================================
   CTA CONTACT BANNER
======================================== */

.single-cta-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.single-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.02) 3px,
            rgba(255, 255, 255, 0.02) 6px
        );
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(220, 38, 38, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.cta-banner-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.cta-banner-text {
    flex: 1;
}

.cta-banner-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cta-banner-text p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin: 0;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #1e293b;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   RELATED EQUIPMENTS
======================================== */

.related-equipments {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa, #ffffff);
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1023px) {
    .single-equip-hero {
        padding: 80px 0 60px;
    }

    .single-equip-info {
        position: static;
    }

    .cta-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-icon {
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .single-equip-title {
        font-size: 1.75rem;
    }

    .content-header h2 {
        font-size: 1.5rem;
    }

    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .spec-value {
        text-align: left;
    }

    .single-breadcrumb {
        font-size: 0.75rem;
    }
}

/* ========================================
   MODAL DE ORÇAMENTO
======================================== */

.quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.quote-modal.active {
    opacity: 1;
}

.quote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.quote-modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    margin: auto;
}

.quote-modal.active .quote-modal-content {
    transform: translateY(0);
}

.quote-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.quote-modal-close:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    transform: rotate(90deg);
}

.quote-modal-close i {
    font-size: 20px;
    color: #64748b;
}

.quote-modal-close:hover i {
    color: #dc2626;
}

.quote-modal-header {
    padding: 40px 40px 30px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.quote-modal-header i {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 16px;
}

.quote-modal-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.quote-modal-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.quote-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group label i {
    color: #dc2626;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input::placeholder {
    color: #cbd5e1;
}

.btn-submit {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
}

/* Estilizar botão como button ao invés de link */
#open-quote-modal {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Responsivo do Modal */
@media (max-width: 767px) {
    .quote-modal {
        padding: 10px;
    }

    .quote-modal-content {
        width: 100%;
        max-width: none;
        margin: auto;
    }

    .quote-modal-header {
        padding: 30px 24px 24px;
    }

    .quote-modal-header i {
        font-size: 2.5rem;
    }

    .quote-modal-header h3 {
        font-size: 1.5rem;
    }

    .quote-modal-header p {
        font-size: 0.9rem;
    }

    .quote-form {
        padding: 24px;
    }

    .quote-modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}
