/* FOLHA DE ESTILOS DA SERVICES */

/* CONFIGURAÇÕES GERAIS E VARIÁVEIS */
:root {
    --primary: #003366;
    --secondary: #0056b3;
    --accent: #00b4d8;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-body: #f1f2f6;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background-color: var(--bg-body); color: var(--text-dark); overflow-x: hidden; }

body::-webkit-scrollbar {
    display: none;
    overflow: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.hero-services {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0% 90%);
    margin-bottom: 50px;
}

.hero-services h1 { 
    font-size: 2.8rem; 
    text-transform: uppercase; 
    letter-spacing: 3px;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

/* CARD */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-10px); }

.card-media { height: 220px; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.service-card:hover .card-media img { scale: 1.08; }

.card-info { padding: 30px; text-align: center; flex-grow: 1; }
.icon-box { 
    width: 70px; height: 70px; background: var(--bg-body); color: var(--secondary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: -65px auto 20px; position: relative; z-index: 2; font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 4px solid var(--white);
}

.card-info h3 { margin-bottom: 15px; font-size: 1.5rem; color: var(--primary); }
.card-info p { color: var(--text-light); margin-bottom: 25px; min-height: 50px; }

.btn-open {
    background: var(--secondary); color: var(--white); border: none;
    padding: 12px 30px; border-radius: 30px; font-weight: 600;
    transition: var(--transition); text-transform: uppercase; font-size: 0.8rem;
}
.service-card:hover .btn-open { background: var(--accent); }

/* MODAL ESTRUTURA */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; transition: opacity 0.3s ease;
}

.modal-content {
    background: var(--white); width: 90%; max-width: 1000px; height: 85vh;
    border-radius: var(--radius); position: relative;
    transform: scale(0.8); transition: transform 0.3s ease;
    overflow: hidden; display: flex; flex-direction: column;
}

.modal-overlay.active { display: flex; opacity: 1; }
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-header {
    padding: 15px 25px; background: var(--primary); color: var(--white);
    display: flex; justify-content: space-between; align-items: center;
}

.close-modal { 
    background: none; border: none; color: var(--white); 
    font-size: 2rem; cursor: pointer; line-height: 1;
}

/* IFRAME DENTRO DO MODAL */
#service-iframe { width: 100%; flex-grow: 1; border: none; background: #fff; }

@media (max-width: 768px) {
    .hero-services h1 { font-size: 2rem; }
    .modal-content { width: 95%; height: 90vh; }
}
