/*
Theme Name: Digitalub Landing Page
Theme URI: https://digitalub.ao/
Author: Gemini
Author URI: https://gemini.google.com/
Description: Tema de uma página para a Digitalub, criado para capturar leads e apresentar os serviços da empresa.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-background, custom-menu, editor-style, featured-images, post-formats, translation-ready
Text Domain: digitalub-lp
*/

/* --- Geral & Variáveis --- */
:root {
    --primary-color: #0a7cff;
    --secondary-color: #0056b3;
    --dark-blue: #0d1b2a;
    --light-gray: #f4f4f9;
    --text-color: #333;
    --white-color: #ffffff;
    --dark-gray-text: #555; /* Novo */
    --font-main: 'Poppins', sans-serif; /* Uma fonte moderna e limpa */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}

*, *:before, *:after {
    box-sizing: inherit;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; margin-bottom: 40px; text-align: center; }
h3 { font-size: 1.5rem; }

section {
    padding: 80px 0;
}

/* --- Botões --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.btn-secondary:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* --- Cabeçalho (Header) --- */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    padding: 5px 0;
    background-color: transparent; /* Fundo transparente por defeito */
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background-color: var(--dark-blue);
    padding: 2px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 120px; /* Altura máxima do logo para desktop */
    width: auto; /* Mantém proporção */
    transition: max-height 0.3s ease;
}

.site-header.scrolled .logo img {
    max-height: 100px; /* Logo um pouco menor ao rolar */
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.main-nav a:hover {
    border-color: var(--primary-color);
}

.header-cta {
    margin-left: 30px;
}

/* --- Secção Hero --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero {
    color: var(--white-color);
    background: linear-gradient(45deg, #0d1b2a, #1a3a5f);
    padding: 200px 0 150px;
    padding-top: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 3.5rem;
}

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

.hero-buttons .btn {
    margin: 0 10px;
}

/* Animação de Ondas */
.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}
@keyframes move-forever {
    0% { transform: translate3d(-90px,0,0); }
    100% { transform: translate3d(85px,0,0); }
}

/* --- Formulário de Contacto (Hero) --- */
.hero-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-form-container h3 {
    color: var(--white-color);
    text-align: center;
    margin-top: 0;
}

.hero-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-form input, .hero-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
}

.hero-form .form-group {
    flex: 1 1 200px;
}

.hero-form .full-width {
    flex-basis: 100%;
}

.hero-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-form button:hover {
    background-color: var(--secondary-color);
}

.form-message {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    text-align: center;
}
.form-message.success { background-color: #d4edda; color: #155724; }
.form-message.error { background-color: #f8d7da; color: #721c24; }


/* --- Secção de Serviços --- */
#servicos {
    background-color: #F4F8FF; /* Azul bem suave */
}

.services-grid {
    display: flex;
    gap: 30px;
}

.service-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    color: #0056D2; /* Cor da marca */
    margin-bottom: 20px;
}

.service-card h3 {
    color: #333; /* Cinza escuro */
    margin-bottom: 15px;
}

/* Estilo para o botão "Detalhes do Serviço" */
.service-details-btn {
    background-color: var(--primary-color); /* Azul primário */
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Empurra o botão para o final do card */
}

.service-details-btn:hover {
    background-color: var(--secondary-color); /* Azul secundário ao passar o mouse */
    transform: translateY(-2px);
}

.service-details-btn .fas {
    font-size: 1rem; /* Tamanho do ícone */
}

/* Estilos para o Carrossel de Serviços */
.services-carousel .slick-slide {
    margin: 0 15px;
}

.services-carousel .slick-prev,
.services-carousel .slick-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.services-carousel .slick-prev:hover,
.services-carousel .slick-next:hover {
    background-color: var(--secondary-color);
}

.services-carousel .slick-prev:before,
.services-carousel .slick-next:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    color: white;
}

.services-carousel .slick-prev:before {
    content: '\f104'; /* Seta para a esquerda */
}

.services-carousel .slick-next:before {
    content: '\f105'; /* Seta para a direita */
}

.services-carousel .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary-color);
}

.services-carousel .slick-dots li.slick-active button:before {
    color: var(--secondary-color);
}

/* --- Secção de Destaque (Porquê nós?) --- */
#sobre-nos {
    background: var(--dark-blue); /* Fundo azul escuro */
    color: var(--white-color);
}

#sobre-nos h2 {
    color: var(--white-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.feature-item {
    background: rgba(255, 255, 255, 0.08); /* Fundo semi-transparente */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
}

.feature-item .icon {
    font-size: 3rem;
    color: var(--primary-color); /* Cor da marca */
    margin-bottom: 15px;
}

.feature-item .icon img {
    max-width: 80px; /* Adjust the size as needed */
    height: auto;
}

.feature-item h3 {
    color: var(--white-color);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* --- Secção de Testemunhos --- */
#testemunhos {
    background-color: var(--light-gray);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
}

.author-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-photo {
    width: 60px; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
    border-radius: 50%; /* Make it circular */
    object-fit: cover; /* Ensure the image covers the area */
    margin-right: 15px;
    border: 2px solid var(--primary-color); /* Optional: add a border */
}

.author-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* Animation for Testimonials Section */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Secção de Preços --- */
.pricing-section {
    background-color: var(--light-gray);
    padding: 80px 0;
    text-align: center;
}

.pricing-section h2 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.pricing-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* Ensure cards stretch to same height */
}

.pricing-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.pricing-card .pricing-model {
    font-size: 1rem;
    color: var(--dark-gray-text);
    margin-bottom: 25px;
    font-style: italic;
}

.pricing-plans {
    margin-bottom: 30px;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 0.9rem; /* Reduced from 1.1rem */
    color: var(--text-color);
}

.plan-item .plan-name {
    font-weight: 600;
    color: var(--dark-blue);
}

.plan-item .plan-details {
    font-weight: 400;
}

.pricing-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-benefits li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--dark-gray-text);
    position: relative;
    padding-left: 25px;
}

.pricing-benefits li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: green;
    font-weight: bold;
}

.pricing-card .btn {
    margin-top: auto; /* Push button to the bottom */
    width: 100%;
}

/* Responsive adjustments for pricing section */
@media (max-width: 768px) {
    .pricing-section .section-subtitle {
        margin-bottom: 40px;
    }

    .pricing-card {
        padding: 30px;
    }

    .pricing-card h3 {
        font-size: 1.5rem;
    }

    .plan-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-item .plan-details {
        margin-left: 0;
    }
}

/* --- Secção de Suporte --- */
.support-section {
    background-color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.support-section h2 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.support-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 60px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.support-block {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.support-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.support-block .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-block .icon img {
    max-width: 80px; /* Adjust size as needed */
    height: auto;
    display: block; /* To remove extra space below image */
    margin: 0 auto; /* Center the image */
}

.support-block h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.support-block p {
    color: var(--text-color);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.support-block .btn {
    width: 100%;
    max-width: 200px; /* Limit button width */
}

.support-cta-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.support-cta-footer p {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.support-cta-footer .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Estilo para o botão de Suporte Imediato WhatsApp */
.whatsapp-support-btn {
    background-color: #25D366; /* Cor verde do WhatsApp */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espaço entre o ícone e o texto */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-support-btn:hover {
    background-color: #128C7E; /* Tom mais escuro ao passar o mouse */
    transform: translateY(-3px);
}

.whatsapp-support-btn .whatsapp-icon {
    width: 24px; /* Tamanho da imagem do WhatsApp */
    height: auto;
    vertical-align: middle;
}

/* Responsividade para o botão */
@media (max-width: 768px) {
    .whatsapp-support-btn {
        font-size: 1rem;
        padding: 12px 25px;
        width: 90%; /* Ocupa mais largura em telas menores */
    }
}

/* Responsive adjustments for support section */
@media (max-width: 768px) {
    .support-section .section-subtitle {
        margin-bottom: 40px;
    }

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

/* --- Secção CTA (Call to Action) --- */
#cta {
    background-color: var(--dark-blue);
    color: var(--white-color);
    text-align: center;
}

#cta h2 {
    color: var(--white-color);
    margin-bottom: 20px;
}

#cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* --- Rodapé (Footer) --- */
.site-footer {
    background-color: #06121f;
    color: #a9b3c1;
    padding: 60px 0;
    text-align: left; /* Alinhamento à esquerda para o novo layout */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: space-between;
    align-items: flex-end; /* Alinhar colunas à parte inferior */
}

.footer-col h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col li {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-col a {
    color: #a9b3c1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.useful-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.useful-links li {
    margin-bottom: 10px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white-color);
    transition: background-color 0.3s, color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.social-links a img {
    width: 100%;
    height: auto;
}

.copyright {
    margin-top: 40px;
    text-align: center;
    grid-column: 1 / -1; /* Ocupa toda a largura no grid */
    font-size: 0.75rem;
    opacity: 0.8;
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .site-footer {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col {
        margin-bottom: 30px;
    }
    .social-links {
        justify-content: center;
    }
    .copyright {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 80px;
    }

    .site-header.scrolled .logo img {
        max-height: 60px;
    }
}

.header-container {
    max-width: 100%;
    padding: 0 20px 0 0;
}

.service-icon {
    max-height: 150px;
    margin-bottom: 20px;
}

/* --- Secção de Contacto --- */
#contacto {
    background-color: var(--light-gray);
}

#contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 124, 255, 0.2);
}

#contact-form button {
    display: block;
    margin: 0 auto;
}

/* --- Secção de Blog --- */
#blog {
    background-color: #fdfdfd;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white-color);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-card-content {
    padding: 30px;
}

.blog-card-content h3 {
    margin-top: 0;
}

.blog-card-content h3 a {
    text-decoration: none;
    color: var(--dark-blue);
    transition: color 0.3s;
}

.blog-card-content h3 a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

.entry-content {
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* --- ESTILOS RESPONSIVOS ADICIONAIS --- */

.menu-toggle {
    display: none; /* Escondido por padrão */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    margin: 5px 0;
    transition: all 0.3s;
}

/* --- Media Query para Tablets e Telemóveis (breakpoint principal) --- */
@media (max-width: 992px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block; /* Mostra o botão hamburger */
        order: 2; /* Ordem no flexbox */
    }

    .main-nav {
        display: none; /* Esconde a navegação normal */
        width: 100%;
        order: 3; /* Ordem no flexbox */
        flex-basis: 100%;
    }

    .main-nav.toggled {
        display: block; /* Mostra a navegação quando ativada */
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        background-color: var(--dark-blue);
        padding: 20px 0;
        margin-top: 10px;
    }

    .main-nav li {
        margin: 10px 0;
    }

    .header-cta {
        display: none; /* Opcional: esconder o botão CTA principal no mobile */
    }

    .logo {
        order: 1; /* Ordem no flexbox */
    }
}

/* --- Media Query para ajustes finos em telemóveis --- */
@media (max-width: 768px) {
    h1, .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 150px 0 100px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%;
    }

    .services-grid {
        flex-direction: column;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

#servicos {
    position: relative; /* Para conter as partículas posicionadas absolutamente */
    overflow: hidden; /* Esconde partículas fora da secção */
    /* Remover background-color: #F4F8FF; se ainda estiver lá, pois as partículas o cobrirão */
}

#particles-js-servicos {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Atrás do conteúdo */
    background-color: #F4F8FF; /* Ou qualquer cor que deseje para o fundo de partículas */
}

#servicos .container {
    position: relative; /* Para garantir que o conteúdo esteja acima das partículas */
    z-index: 1;
}





/* Ajustar o grid do rodapé para a nova coluna */
.site-footer .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: space-between;
    align-items: flex-end; /* Alinhar colunas à parte inferior */
}



/* Ajustes responsivos para a nova coluna de branding */
@media (max-width: 768px) {
    .footer-col-branding {
        align-items: center; /* Centralizar no telemóvel */
        margin-bottom: 20px; /* Adicionar algum espaço abaixo */
    }
    .footer-logo {
        max-width: 120px;
    }
}

.contact-icon {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    margin-right: 8px;
    vertical-align: middle; /* Align icon with text */
}

.footer-col.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* Adjust as needed for desired spacing */
}

#sobre-nos {
    position: relative; /* Ensure content is positioned relative to this */
    overflow: hidden; /* Hide overflow from gradient animation */
    background: linear-gradient(270deg, var(--dark-blue), #1a3a5f, var(--dark-blue)); /* Animated gradient */
    background-size: 600% 600%; /* Make gradient larger than element for animation */
    animation: gradientAnimation 15s ease infinite; /* Apply animation */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure content is above the background */
#sobre-nos .container,
#sobre-nos h2,
.features-grid {
    position: relative;
    z-index: 1;
}

.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Space between image and form */
    align-items: center;
    justify-content: center;
    max-width: 1000px; /* Limit overall width */
    margin: 0 auto; /* Center the wrapper */
    flex-direction: row-reverse; /* Image on the right, form on the left */
}

.fale-conosco-image {
    max-width: 45%; /* Take up roughly half the space */
    height: auto;
    flex-shrink: 0; /* Prevent shrinking */
    object-fit: contain; /* Ensure image fits without cropping */
}

#contact-form {
    max-width: 45%; /* Take up roughly half the space */
    flex-grow: 1; /* Allow growing to fill space */
    padding: 20px; /* Add some padding to the form itself */
    background-color: #fff; /* Give form a background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments for contact section */
@media (max-width: 768px) {
    .contact-content-wrapper {
        flex-direction: column; /* Stack image and form vertically */
        gap: 20px;
    }

    .fale-conosco-image,
    #contact-form {
        max-width: 90%; /* Take up more width when stacked */
        margin: 0 auto; /* Center when stacked */
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation-name: animatemodal;
    animation-duration: 0.4s;
}

/* Add Animation */
@keyframes animatemodal {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form specific styles within modal */
#budget-form .form-group {
    margin-bottom: 15px;
}

#budget-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-blue);
}

#budget-form input[type="text"],
#budget-form input[type="email"],
#budget-form input[type="tel"],
#budget-form select,
#budget-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
}

#budget-form textarea {
    resize: vertical;
}

#budget-form .required {
    color: red;
}

#budget-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

#budget-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

#budget-form .form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none; /* Hidden by default */
}
#budget-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
}
#budget-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Service Detail Modal Specific Styles */
#service-detail-modal .modal-content {
    max-width: 700px; /* Adjust as needed */
}

#service-modal-benefits {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

#service-modal-benefits li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    color: var(--text-color);
}

#service-modal-benefits li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: green; /* Or any color you prefer for the checkmark */
}

#service-modal-cta {
    margin-top: 25px;
    width: auto; /* Override default button width */
    padding: 10px 20px;
}

/* --- Botão Scroll-to-Top Flutuante --- */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Movido para a esquerda */
    z-index: 1000;
    padding: 0; /* Remover padding do .btn */
    width: 50px; /* Definir largura */
    height: 50px; /* Definir altura */
    background-color: var(--white-color); /* Fundo branco */
    border: 2px solid var(--primary-color); /* Borda azul */
    border-radius: 50%; /* Torná-lo circular */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

#scroll-to-top:hover {
    background-color: var(--primary-color); /* Fundo azul ao passar o mouse */
}

#scroll-to-top:hover img {
    filter: brightness(0) invert(1); /* Inverte a cor da imagem para branco */
}

#scroll-to-top img {
    max-width: 60%; /* Ajustar o tamanho da imagem dentro do botão */
    height: auto;
    transition: filter 0.3s;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Efeito Flip Card --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px; /* Adjust height as needed */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
}

.flip-card-back p {
    font-size: 1rem;
    line-height: 1.5;
}

.flip-card .icon img {
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.flip-card h3 {
    color: var(--white-color);
    margin-bottom: 10px;
}