/* UID Website - Estilos Principais */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

/* Variáveis CSS para cores da UID */
:root {
    --azul-escuro: #0A2540;
    --verde-uid: #004D40;
    --ciano-uid: #00D4FF;
    --branco: #FFFFFF;
    --cinza-claro: #F6F9FC;
    --cinza-escuro: #333333;
    --cinza-medio: #666666;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--branco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 236px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--azul-escuro);
}

/* Navegação */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--cinza-escuro);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--ciano-uid);
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--azul-escuro);
    color: var(--branco);
}

.btn-primary:hover {
    background-color: #0d2f4a;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--ciano-uid);
    color: var(--branco);
}

.btn-secondary:hover {
    background-color: #00b8e6;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--azul-escuro);
    border: 2px solid var(--azul-escuro);
}

.btn-outline:hover {
    background-color: var(--azul-escuro);
    color: var(--branco);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--branco);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ciano-uid);
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Secções */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--cinza-claro);
}

.section-title {
    font-size: 2.5rem;
    color: var(--azul-escuro);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--cinza-medio);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--branco);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--azul-escuro);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--cinza-medio);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: var(--ciano-uid);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--azul-escuro);
}

/* Setores de Atuação */
.setores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.setor-card {
    background-color: var(--branco);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.setor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.setor-card.expanded {
    grid-column: span 2;
}

.setor-card h4 {
    color: var(--azul-escuro);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.setor-description {
    color: var(--cinza-medio);
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.setor-card.expanded .setor-description {
    max-height: 200px;
    margin-top: 15px;
}

/* Página Sobre Nós */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.about-intro h2 {
    font-size: 2.5rem;
    color: var(--azul-escuro);
    margin-bottom: 20px;
}

.about-intro p {
    font-size: 1.2rem;
    color: var(--cinza-medio);
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 30px;
}

.value-card h4 {
    font-size: 1.3rem;
    color: var(--azul-escuro);
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: var(--cinza-medio);
    line-height: 1.6;
}

/* Página de Contactos */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-details h3 {
    color: var(--azul-escuro);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item strong {
    color: var(--azul-escuro);
    display: block;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--ciano-uid);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Formulário */
.contact-form {
    background-color: var(--cinza-claro);
    padding: 40px;
    border-radius: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--azul-escuro);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ciano-uid);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Mapa */
.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--azul-escuro);
    color: var(--branco);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--ciano-uid);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--ciano-uid);
}

.footer-bottom {
    border-top: 1px solid #2a4a6b;
    padding-top: 30px;
    text-align: center;
    color: #cccccc;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .setor-card.expanded {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}



/* Estilos adicionais para funcionalidades interativas */

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Melhorias para o menu mobile */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Estilos para mensagens de sucesso e erro */
.success-message {
    background-color: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Melhorias para formulários */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--ciano-uid);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

/* Estilos para checkboxes */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Melhorias para botões */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
}

/* Estilos para loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Melhorias para as abas dos serviços */
.service-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-tabs::-webkit-scrollbar {
    display: none;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--azul-escuro);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--azul-escuro);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Melhorias para acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states melhorados */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--ciano-uid);
    outline-offset: 2px;
}

/* Melhorias para impressão */
@media print {
    header,
    footer,
    .btn,
    .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20pt 0;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
}

/* Estilos para modo escuro (preparação futura) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
        --card-background: #2d2d2d;
    }
    
    /* Aplicar apenas se houver uma classe específica para modo escuro */
    .dark-mode {
        background-color: var(--background-color);
        color: var(--text-color);
    }
    
    .dark-mode .service-card,
    .dark-mode .value-card,
    .dark-mode .setor-card {
        background-color: var(--card-background);
        color: var(--text-color);
    }
}

