/* ============================================
   COMPONENTES - Cards, Carrossel, etc
   ============================================ */

/* ============================================
   CARROSSEL DE PROJETOS
   ============================================ */

.section-projects {
    padding: 80px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
}

.carousel-control {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.carousel-control:hover {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.project-card {
    min-width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: var(--orange);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(0, 201, 167, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.card-image img + .placeholder-image {
    display: none;
}

.placeholder-image {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--muted);
    text-align: center;
    z-index: 1;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text);
}

.card-category {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    color: var(--orange);
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-description {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.card-specs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.spec {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    background: var(--surface2);
    padding: 8px 14px;
    border-radius: 3px;
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ============================================
   SERVIÇOS
   ============================================ */

.section-services {
    padding: 80px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    border-color: var(--orange);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--orange);
    display: inline-block;
}

.service-icon i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.service-card p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    font-size: 11px;
    color: var(--muted);
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.service-features li:last-child {
    border: none;
}

.service-features li::before {
    content: '✓ ';
    color: var(--teal);
    font-weight: bold;
    margin-right: 6px;
}

/* ============================================
   MATERIAIS
   ============================================ */

.section-materials {
    padding: 80px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 48px;
}

.material-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.material-badge:hover {
    border-color: var(--orange);
    background: var(--surface2);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.material-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: var(--text);
    display: block;
    margin-bottom: 8px;
}

.material-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

/* ============================================
   CTA SECTION
   ============================================ */

.section-cta {
    padding: 80px 48px;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(0, 201, 167, 0.05) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text);
}

.cta-subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 48px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-section p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--orange);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.social-links a:hover {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.tagline {
    color: var(--orange);
    font-family: 'Space Mono', monospace;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-projects,
    .section-services,
    .section-materials,
    .section-cta,
    .footer {
        padding: 60px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--orange);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--orange);
    color: #000;
    border-color: var(--orange);
    transform: translateY(-3px);
}

/* Contact Icons */
.footer-section p i {
    color: var(--orange);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* ============================================
   MODAL DE ENCOMENDA
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
    z-index: -1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(255, 107, 0, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--orange);
}

/* ============================================
   FORMULÁRIO
   ============================================ */

.order-form {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--text);
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.form-info {
    background: rgba(255, 107, 0, 0.05);
    border-left: 3px solid var(--orange);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
}

.form-info p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-buttons .btn {
    flex: 1;
    padding: 14px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        width: 95%;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .order-form {
        padding: 16px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-buttons {
        flex-direction: column;
    }
}
