/* ============================================================
   pages.css — Assistgest
   Estilos específicos das páginas públicas.
   Carregado depois do custom.css do tema.
   ============================================================ */

/* ============================================================
   Header — Login + Criar conta
   ============================================================ */

.ag-header-actions {
    display: flex;
    margin-left: auto;
    padding-left: 28px;
    align-items: center;
    gap: 18px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

.ag-header-login {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition: color .2s ease;
}

.ag-header-login:hover,
.ag-header-login:focus {
    color: #ffffff !important;
}

.ag-header-register {
    display: inline-flex;
    height: 42px;
    padding: 0 19px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 7px;
    background: #ffffff;
    color: #0D5E95 !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .10);
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ag-header-register:hover,
.ag-header-register:focus {
    border-color: #ffffff;
    background: #f5f9fb;
    color: #0D5E95 !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 19px rgba(0, 0, 0, .14);
}

@media (max-width: 991px) {
    .ag-header-actions {
        margin-top: 10px;
        margin-left: 0;
        padding: 16px 0 4px;
        align-items: center;
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, .08);
    }

    .ag-header-login {
        color: #52646c !important;
    }

    .ag-header-login:hover,
    .ag-header-login:focus {
        color: #0D5E95 !important;
    }

    .ag-header-register {
        border-color: #0D5E95;
        background: #0D5E95;
        color: #ffffff !important;
    }

    .ag-header-register:hover,
    .ag-header-register:focus {
        background: #0a507f;
        color: #ffffff !important;
    }
}

@media (max-width: 575px) {
    .ag-header-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .ag-header-login {
        width: 100%;
    }

    .ag-header-register {
        width: 100%;
    }
}

/* ============================================================
   opt5 — navbar transparente (homepage)
   ============================================================ */

.opt5 .navbar-nav .nav-link {
    color: #fff !important;
}

.opt5.fixed .navbar-nav .nav-link {
    color: #556665 !important;
}

.opt5.fixed .ag-header-login {
    color: #556665 !important;
}

.opt5.fixed .ag-header-actions {
    border-left-color: #556665;
}

/* Homepage opt5 — menu mobile expandido */
@media (max-width: 991px) {
    .opt5 .navbar-nav .nav-link {
        color: #556665 !important;
    }

    .opt5 .navbar-nav .nav-link:hover {
        color: #0D5E95 !important;
    }
}

/* ============================================================
   Footer
   ============================================================ */

.ag-footer {
    background: #283b43;
    color: #aebbc0;
}

.ag-footer-main {
    padding: 64px 0 52px;
}

.ag-footer-brand {
    padding-right: 50px;
}

.ag-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.ag-footer-logo img {
    width: auto;
    max-height: 45px;
}

.ag-footer-brand p {
    max-width: 320px;
    margin: 0 0 22px;
    color: #aebbc0;
    font-size: 13px;
    line-height: 1.75;
}

.ag-footer-column h4 {
    margin: 4px 0 20px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
}

.ag-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ag-footer-column li {
    margin-bottom: 11px;
}

.ag-footer-column a {
    color: #aebbc0;
    font-size: 13px;
    text-decoration: none !important;
    transition: color .2s ease;
}

.ag-footer-column a:hover {
    color: #ffffff;
}

.ag-footer-social {
    display: flex;
    gap: 8px;
}

.ag-footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    color: #ffffff;
    font-size: 13px;
    transition: background .2s ease, border-color .2s ease;
}

.ag-footer-social a:hover {
    border-color: #0D5E95;
    background: #0D5E95;
}

.ag-status-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff !important;
    font-weight: 500;
}

.ag-status-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #42d79e;
    box-shadow: 0 0 0 4px rgba(66, 215, 158, .10);
}

.ag-footer-status p {
    margin: 12px 0 0;
    color: #899aa0;
    font-size: 11px;
    line-height: 1.6;
}

.ag-footer-bottom {
    padding: 19px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .08);
}

.ag-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #88999f;
    font-size: 11px;
}

.ag-footer-partner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ag-footer-partner span {
    color: #75868c;
    font-size: 10px;
    text-transform: uppercase;
}

.ag-footer-partner img {
    width: auto;
    max-height: 25px;
    opacity: .8;
    transition: opacity .2s ease;
}

.ag-footer-partner a:hover img {
    opacity: 1;
}

@media (max-width: 991px) {
    .ag-footer-main {
        padding: 50px 0 35px;
    }

    .ag-footer-brand {
        margin-bottom: 38px;
        padding-right: 15px;
    }

    .ag-footer-column {
        margin-bottom: 30px;
    }

    .ag-footer-status {
        margin-top: 5px;
    }
}

@media (max-width: 767px) {
    .ag-footer-main {
        padding: 42px 0 25px;
    }

    .ag-footer-brand {
        margin-bottom: 32px;
    }

    .ag-footer-column h4 {
        margin-bottom: 15px;
    }

    .ag-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}

/* ============================================================
   Página Sobre
   ============================================================ */

.who-we-are {
    padding: 50px 0;
}

.about-cta-text {
    margin: 20px 0 30px;
}

.about-cta-note {
    margin-top: 12px;
    font-size: 13px;
    color: #999;
}

.about-counters {
    margin-top: 60px;
}

/* ============================================================
   Privacidade e Termos
   ============================================================ */

.privacy-content {
    color: #556665;
}

.privacy-content h2 {
    font-size: 20px;
    margin: 36px 0 12px;
}

.privacy-content address {
    font-style: normal;
    line-height: 2;
    margin-top: 12px;
}

.privacy-table th {
    background: #f8f9fa;
}

.privacy-intro {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
}

.privacy-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.privacy-date .fa {
    margin-right: 6px;
}

.privacy-summary {
    background: #f8f9fa;
    border-left: 3px solid #57bce2;
    padding: 20px 24px;
    border-radius: 0 5px 5px 0;
    margin: 32px 0 40px;
}

.privacy-summary h3 {
    font-size: 15px;
    font-weight: 600;
    color: #00324c;
    margin-bottom: 10px;
}

.privacy-summary p {
    font-size: 13px;
    color: #556665;
    margin-bottom: 8px;
}

.privacy-summary p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Hub de Funcionalidades e Sectores
   ============================================================ */

.ag-hub-intro-section {
    background: #fff;
    padding: 48px 0 40px;
}

.ag-hub-intro-section p {
    font-size: 15px;
    color: #556665;
    line-height: 1.8;
    margin: 0;
}

.ag-hub-section-title {
    font-size: 24px;
    color: #00324c;
    margin-bottom: 10px;
}

ul.ag-hub-list {
    text-align: left;
    list-style: none;
    padding: 0;
}

ul.ag-hub-list li {
    margin-bottom: 52px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

ul.ag-hub-list li .ico-block {
    width: 44px;
    min-width: 44px;
    height: 44px;
    background: #57bce2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'icomoon';
    font-size: 19px;
    color: #fff;
    flex-shrink: 0;
}

ul.ag-hub-list li .cnt-block {
    flex: 1;
}

ul.ag-hub-list li h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.4;
}

ul.ag-hub-list li h3 a {
    color: #00324c;
    text-decoration: none;
}

ul.ag-hub-list li h3 a:hover {
    color: #57bce2;
}

ul.ag-hub-list li p {
    font-size: 13px;
    color: #687377;
    line-height: 1.6;
    margin: 0 0 6px;
}

ul.ag-hub-list li .ag-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #57bce2;
    text-decoration: none !important;
    transition: gap 0.2s;
}

ul.ag-hub-list li .ag-hub-link:hover {
    gap: 7px;
}

@media (max-width: 767px) {
    ul.ag-hub-list li .ico-block {
        width: 38px;
        min-width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Grupos */

.ag-hub-group {
    padding: 48px 0;
}

.ag-hub-group-alt {
    background: #fff;
}

.ag-hub-group-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #00324c;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 2px solid #57bce2;
    display: inline-block;
}

/* Anular margin-bottom nos últimos itens de cada grupo */

.ag-hub-group ul.ag-hub-list li:last-child,
.ag-hub-group ul.ag-hub-list li:nth-last-child(2):nth-child(odd) {
    margin-bottom: 0;
}

/* CTA */

.ag-hub-cta {
    padding: 64px 0 56px;
    margin-top: 8px;
    background: #fff;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.ag-hub-cta h3 {
    font-size: 22px;
    color: #00324c;
    margin-bottom: 10px;
}

.ag-hub-cta p {
    color: #687377;
    font-size: 15px;
    margin-bottom: 28px;
}

/* ============================================================
   Cartões de módulos relacionados
   ============================================================ */

.ag-sectors-bar {
    background: #f4f9fc;
    padding-top: 72px;
    padding-bottom: 64px;
    border-top: 1px solid #e5f0f5;
    border-bottom: 1px solid #e5f0f5;
    box-shadow: none;
}

.features-hub-related {
    padding: 56px 0 64px;
    background: #f5f5f5;
    border-top: 1px solid #edf1f3;
}

.features-hub-related .related-title {
    font-size: 22px;
    line-height: 1.35;
    color: #00324c;
    margin-bottom: 32px;
    text-align: center;
}

.features-hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 20px;
    background: #fff;
    border: 1px solid #e2e8ec;
    border-radius: 8px;
    text-decoration: none !important;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.features-hub-card:hover {
    border-color: #57bce2;
    box-shadow: 0 4px 16px rgba(87, 188, 226, .12);
    transform: translateY(-2px);
}

.features-hub-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef8fc;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.features-hub-icon i {
    font-size: 18px;
    color: #57bce2;
}

.features-hub-body {
    flex: 1;
}

.features-hub-body h2 {
    font-size: 15px;
    font-weight: 600;
    color: #00324c;
    margin-bottom: 6px;
    line-height: 1.4;
}

.features-hub-body p {
    font-size: 13px;
    color: #687377;
    line-height: 1.6;
    margin: 0;
}

.features-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #57bce2;
    text-decoration: none !important;
}

.features-hub-link i {
    font-size: 10px;
    transition: transform .2s;
}

.features-hub-card:hover .features-hub-link i {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .features-hub-card {
        padding: 18px 16px;
        margin-bottom: 16px;
    }
}

/* ============================================================
   Formulário de contacto — validação inline
   ============================================================ */

.contact-form-wrapper input.is-invalid,
.contact-form-wrapper textarea.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .15);
}

.invalid-feedback {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

/* Ícone de email na sidebar de contactos */

.info-contact-box li:nth-child(3):before {
    content: "\e923";
}

/* ============================================================
   Botão flutuante WhatsApp
   ============================================================ */

.ag-whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .20);
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    z-index: 999;
}

.ag-whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
    color: #fff !important;
}

/* ============================================================
   Imagens de contexto nas subpáginas
   ============================================================ */

.how-it-work-items figure img {
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

/* ============================================================
   provide-features nas subpáginas de sector/módulo
   ============================================================ */

.provide-features ul.features-listing.ico-bg li {
    display: flex;
}

.provide-features ul.features-listing.ico-bg li .inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.provide-features ul.features-listing.ico-bg li h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #00324c !important;
    padding: 12px 0 10px !important;
    line-height: 1.4 !important;
}

.provide-features ul.features-listing.ico-bg li p {
    color: #687377 !important;
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================================
   Homepage — Barra de confiança
   ============================================================ */

.ag-trust-bar {
    padding: 36px 0;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.ag-trust-item {
    text-align: center;
    padding: 12px 0;
}

.ag-trust-item strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #00324c;
    line-height: 1;
    margin-bottom: 6px;
}

.ag-trust-item span {
    font-size: 12px;
    color: #687377;
    text-transform: uppercase;
    letter-spacing: .5px;
}

@media (max-width: 575px) {
    .ag-trust-item {
        border-bottom: 1px solid #f0f0f0;
        padding: 16px 0;
    }

    .ag-trust-item:last-child {
        border-bottom: 0;
    }
}

/* ============================================================
   Homepage — Sectores
   ============================================================ */

.ag-sector-link a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #00324c;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
    padding: 8px;
}

.ag-sector-link a:hover {
    color: #57bce2;
}

.ag-sector-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #57bce2;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.ag-sector-link a:hover .ag-sector-icon {
    background: #57bce2;
    border-color: #57bce2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(87, 188, 226, .25);
}

/* ============================================================
   Homepage — Reconhece estes problemas
   ============================================================ */

.how-it-works-sec .marketing-list3 li h3 {
    color: #00324c !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.how-it-works-sec .marketing-list3 li p {
    color: #687377 !important;
    font-size: 13px !important;
}

ul.marketing-list3 li .ico-block .ag-ico {
    width: 46px !important;
    height: 46px !important;
}

/* ============================================================
   Header — padding e logo uniformes em opt2 e opt5
   ============================================================ */

/* Garante padding igual em todas as páginas */
.ag-header .navbar,
.opt5 .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

/* Logo igual em todas as páginas */
.opt2 .ag-navbar-brand img,
.opt5 .ag-navbar-brand img {
    max-height: 38px;
}
