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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2A2A2A;
    background: linear-gradient(135deg, #0A2F4F 0%, #1BBFA0 100%);
    min-height: 100vh;
}

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

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

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Header */
.main-header {
    background: rgba(10, 47, 79, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD93D;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #F9F9F9;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: #FFD93D;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD93D;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Botões */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #FFD93D;
    color: #2A2A2A;
}

.btn-primary:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #F9F9F9;
    border: 2px solid #F9F9F9;
}

.btn-secondary:hover {
    background: #F9F9F9;
    color: #2A2A2A;
}

/* Fix para botão secundário em página clara */
.btn-secondary-dark {
    background: linear-gradient(135deg, #1BBFA0, #0A2F4F);
    color: #F9F9F9;
    border: none;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(27, 191, 160, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary-dark:hover {
    background: linear-gradient(135deg, #0A2F4F, #1BBFA0);
    color: #F9F9F9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 191, 160, 0.4);
}

.btn-secondary-dark::before {
    content: '📞';
    font-size: 1.1em;
    filter: brightness(1.2);
}

.btn-secondary-dark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-secondary-dark:hover::after {
    width: 300px;
    height: 300px;
}

.btn-secondary-dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(27, 191, 160, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0A2F4F 0%, #1BBFA0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./img/TeJdSQ.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #F9F9F9;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Seções Gerais */
.section {
    padding: 80px 0;
    animation: fadeInUp 0.8s ease-out;
}

.section-alt {
    background: #F9F9F9;
}

.section-dark {
    background: linear-gradient(135deg, #0A2F4F 0%, #1BBFA0 100%);
    color: #F9F9F9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #2A2A2A;
}

.section-dark .section-title {
    color: #F9F9F9;
}

.section-dark .section-subtitle {
    color: #F9F9F9;
}

.section-dark p {
    color: #F9F9F9;
}

.section-dark h3 {
    color: #F9F9F9;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: #F9F9F9;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A2F4F, #1BBFA0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #F9F9F9;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2A2A2A;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* Formulário */
.form-container {
    background: #F9F9F9;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2A2A2A;
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1BBFA0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    margin: 0;
    font-weight: normal;
}

/* Processo de Trabalho */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: #FFD93D;
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #FFD93D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2A2A2A;
}

/* Testemunhos */
.testimonial {
    background: #F9F9F9;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #666;
}

.testimonial-author {
    font-weight: 600;
    color: #2A2A2A;
}

/* Mapa de Contacto */
.contact-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.main-footer {
    background: #0A2F4F;
    color: #F9F9F9;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #FFD93D;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #F9F9F9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFD93D;
}

/* Contatos escuros */
.contact-dark {
    color: #2A2A2A !important;
}

.contact-dark a {
    color: #2A2A2A !important;
}

.contact-dark a:hover {
    color: #0A2F4F !important;
}

.legal-links {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(249, 249, 249, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.875rem;
    color: #ccc;
    margin-top: 0.5rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #2A2A2A;
    color: #F9F9F9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-content h4 {
    color: #FFD93D;
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cookie-content a {
    color: #FFD93D;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons button {
    flex: 1;
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
    
    .main-nav,
    .header-cta {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cookie-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
