/* Variáveis globais de cores modernas */
:root {
    --primary-color: #0A2540; /* Azul marinho muito escuro e elegante */
    --accent-color: #0052FF; /* Azul tech vibrante */
    --info-color: #00D4FF; /* Ciano para destaques */
    --text-dark: #2A3B4C;
    --bg-light: #F8F9FA;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #128c7e;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.py-6 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.tracking-wide {
    letter-spacing: 2px;
}

.text-info { color: var(--info-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Títulos */
.section-title {
    color: var(--primary-color);
}

/* Hero Section Moderno com Imagem */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../assets/img/ABN.jpg') no-repeat center center/cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Mudamos o 0.92 e 0.75 para 0.3 */
    background: linear-gradient(135deg, rgba(231, 235, 239, 0.3) 0%, rgba(54, 54, 54, 0.3) 100%);
    z-index: 1;
}

/* Botões Customizados */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #0043D1;
    border-color: #0043D1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.3) !important;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3) !important;
}

/* Floating WhatsApp */
.whatsapp-floating {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-floating:hover {
    background-color: var(--whatsapp-hover);
    color: white;
    transform: scale(1.15);
}

/* Animações JS */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================
   RESPONSIVIDADE (Media Queries)
   ========================================= */

/* Para Tablets (ecrãs menores que 992px) */
@media (max-width: 991.98px) {
    .py-6 {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .hero-section {
        min-height: 500px;
    }
}

/* Para Telemóveis em modo paisagem e Tablets pequenos (ecrãs menores que 768px) */
@media (max-width: 767.98px) {
    .py-6 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .hero-section {
        height: auto; /* Permite que o conteúdo dite a altura */
        min-height: 400px;
        padding: 60px 15px; /* Adiciona respiro interno */
    }
    
    /* Reduz o botão flutuante do WhatsApp para não obstruir o conteúdo */
    .whatsapp-floating {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* Para Telemóveis pequenos (ecrãs menores que 576px) */
@media (max-width: 575.98px) {
    /* Faz os botões ocuparem a largura total no telemóvel para facilitar o toque */
    .btn-whatsapp, 
    .btn-primary {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .hero-section::before {
        /* Opcional: Escurece um pouco mais o fundo em telemóveis para melhorar a leitura do texto */
        background: linear-gradient(135deg, rgba(231, 235, 239, 0.4) 0%, rgba(54, 54, 54, 0.5) 100%);
    }
}
/* =========================================
   PÁGINA DE INSTALAÇÃO - DESIGN MODERNO
   ========================================= */

/* Utilitários e Cabeçalho */
.text-muted { color: #5A6B7C; line-height: 1.8; }
.text-light { color: #E0E6ED; }
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 30px; }
.mt-5 { margin-top: 50px; }
.mt-6 { margin-top: 80px; }
.mb-1 { margin-bottom: 5px; }
.mb-4 { margin-bottom: 30px; }
.d-block { display: block; }
.fw-bold { font-weight: 700; }
.text-small { font-size: 0.85rem; }

.badge-top {
    background: rgba(0, 212, 255, 0.15);
    color: var(--info-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #03101C 100%);
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

/* Grelha Principal Superior */
.modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-intro h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Imagem e Efeito Glassmorphism */
.service-image-container {
    position: relative;
    z-index: 1;
}

.modern-radius {
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.12);
    width: 100%;
    display: block;
    object-fit: cover;
}

.glass-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 2;
}

.glass-badge i {
    font-size: 1.8rem;
}

/* Cards de Funcionalidades (Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #FFFFFF;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #EAEFEF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.08);
    border-color: var(--info-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: rgba(0, 82, 255, 0.05);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: all 0.4s ease;
}

.feature-card:hover .icon-box {
    background: var(--accent-color);
    color: #FFFFFF;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: #5A6B7C;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action Premium */
.premium-cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, #003099 100%);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 25px 50px rgba(0, 82, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.premium-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--info-color) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    filter: blur(40px);
}

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

.btn-whatsapp-large {
    background-color: var(--whatsapp-green);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    color: white;
}

/* =========================================
   RESPONSIVIDADE MELHORADA
   ========================================= */

@media (max-width: 991.98px) {
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .service-image-container {
        order: -1;
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 100px 20px 60px;
    }
    
    .service-intro h2 {
        font-size: 1.8rem;
    }
    
    .glass-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -30px;
        width: 80%;
    }
    
    .premium-cta {
        padding: 40px 20px;
    }
    
    .btn-whatsapp-large {
        width: 100%;
        justify-content: center;
    }
}