/* =====================================================================
   Enterdian - componentes e animações "tech"
   Cores da marca: azul #033bee  |  laranja #ff8b00
   ===================================================================== */

:root{
    --atel-blue: #033bee;
    --atel-orange: #ff8b00;
    --ink: #0a0a23;
}

/* ---- Evitar scroll/faixa branca horizontal (mobile) ---- */
html, body{ overflow-x: hidden; max-width: 100%; }

/* texto sempre em minúsculas (ex.: email) apesar do capitalize global */
.lower{ text-transform: none !important; }

/* dropdown "Serviço de Interesse" no formulário de contacto */
.contact-form-select{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color: #555;
    font-size: 1.5rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23033bee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.6rem center;
    background-size: 1.3rem;
    /* centra o texto verticalmente (sem o padding de 15px do input) */
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 1.5rem;
    padding-right: 4rem;
    line-height: 38px;
}
.contact-form-select:focus{ border-color: var(--atel-blue); }

/* ---- Seletor de país (intl-tel-input) no formulário de contacto ---- */
.contact-form .iti{
    display: block;
    width: 95%;
    margin-left: 2rem;
    margin-bottom: 20px;
}
.contact-form .iti .contact-form-phone{
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
}
.iti__country-list{ text-transform: none; font-size: 1.4rem; }
.iti__country{ padding: 8px 10px; }
.iti--separate-dial-code .iti__selected-dial-code{ font-size: 1.5rem; }

/* rodapé: uma linha só no desktop, mas pode quebrar no telemóvel */
.footer .copyright{ white-space: normal; }
@media (min-width: 992px){
    .footer .copyright{ white-space: nowrap; }
}

/* ---- Logo em texto (marca Enterdian) ---- */
.header .logo.brand{
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: #fff;
    text-transform: none;
}
.header .logo.brand .brand-mark{
    width: 1.1rem;
    height: 2.4rem;
    border-radius: .3rem;
    background: linear-gradient(180deg, var(--atel-blue), var(--atel-orange));
    box-shadow: 0 0 1rem rgba(3,59,238,.8);
    animation: brandPulse 2.4s ease-in-out infinite;
}
/* "Enter" e "dian" coladas, mas com cores separadas */
.header .logo.brand .brand-text{ white-space: nowrap; }
.header .logo.brand .brand-text b{ color: var(--atel-orange); font-weight: 600; }
@keyframes brandPulse{
    0%,100%{ box-shadow: 0 0 .6rem rgba(3,59,238,.7); }
    50%    { box-shadow: 0 0 1.6rem rgba(255,139,0,.9); }
}

/* ---- Menu: linha iluminada por baixo do texto ---- */
.header .navbar ul li a{
    position: relative;
}
.header .navbar ul li a::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -.5rem;
    width: 0;
    height: .25rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--atel-blue), var(--atel-orange));
    box-shadow: 0 0 .8rem rgba(3,59,238,.95), 0 0 1.4rem rgba(255,139,0,.55);
    transition: width .3s ease;
}
.header .navbar ul li a:hover{
    color: #fff !important;
    text-decoration: none !important;
}
.header .navbar ul li a:hover::after,
.header .navbar ul li a.active::after{
    width: 100%;
}
/* item ativo (secção atual) com a linha sempre acesa */
.header .navbar ul li a.active{
    color: #fff !important;
}

/* ---- Títulos de secção animados (efeito tecnológico no hover) ---- */
.heading,
.section-head h1,
.section-head-1 h4,
.clients .section-header h2,
.testimonials .section-header h2,
.niche .niche-head h2,
.services-tabs > h2{
    cursor: default;
    transition: color .3s ease, letter-spacing .3s ease, text-shadow .3s ease;
}

.heading:hover,
.section-head h1:hover,
.section-head-1 h4:hover,
.clients .section-header h2:hover,
.testimonials .section-header h2:hover{
    color: var(--atel-blue);
    letter-spacing: .45rem;
    animation: techGlitch .55s ease;
}

/* brilho nos colchetes decorativos ao passar o rato */
.heading:hover::before, .heading:hover::after,
.section-head h1:hover::before, .section-head h1:hover::after,
.section-head-1 h4:hover::before, .section-head-1 h4:hover::after,
.testimonials .section-header h2:hover::before, .testimonials .section-header h2:hover::after{
    border-color: var(--atel-orange) !important;
    box-shadow: 0 0 1.2rem rgba(255,139,0,.85);
}

@keyframes techGlitch{
    0%, 100%{ text-shadow: 0 0 1rem rgba(3,59,238,.45); }
    20%     { text-shadow: -.25rem 0 rgba(255,139,0,.8), .25rem 0 rgba(3,59,238,.8); }
    40%     { text-shadow:  .25rem 0 rgba(255,139,0,.8), -.25rem 0 rgba(3,59,238,.8); }
    60%     { text-shadow: -.15rem 0 rgba(255,139,0,.7), .15rem 0 rgba(3,59,238,.7); }
}

/* =====================================================================
   Sobre Nós — lista com marcadores e espaçamento justo
   ===================================================================== */
.about .row .content .about-list{
    list-style: none;
    max-width: 95rem;
    margin: 1.5rem auto 0;
    text-align: left;
    line-height: 1.6;
}
.about .row .content .about-list li{
    position: relative;
    font-size: 1.8rem;
    color: #333;
    line-height: 1.6;
    padding: .5rem 0 .5rem 2.6rem;
}
/* botão "Consultar Serviços" — largura automática para não cortar no hover */
.about .row .content .btn{
    width: auto;
    min-width: 15rem;
    padding: 0 2.6rem;
    white-space: nowrap;
    line-height: 3.3rem;
}
.about .row .content .about-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 1.4rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--atel-blue), var(--atel-orange));
    box-shadow: 0 0 .6rem rgba(3,59,238,.5);
}

/* =====================================================================
   Secção: NICHO DE CLIENTES
   ===================================================================== */
.niche{
    padding: 6rem 8% 7rem;
    background: #f7f7f9;
}
.niche .niche-head{
    text-align: center;
    margin-bottom: 5rem;
}
.overline{
    display: inline-block;
    color: var(--atel-orange);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: .35rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.niche .niche-head h2{
    font-size: 3.4rem;
    color: var(--ink);
    letter-spacing: .1rem;
}
.niche .niche-head p{
    font-size: 1.6rem;
    color: #5a5a6e;
    max-width: 60rem;
    margin: 1.5rem auto 0;
    line-height: 1.6;
    text-transform: none;
}
.niche-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem 4rem;
    max-width: 110rem;
    margin: 0 auto;
}
.niche-item{
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
}
.niche-icon{
    flex: 0 0 auto;
    width: 5.6rem;
    height: 5.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: .22rem solid var(--atel-blue);
    border-radius: 1.1rem;
    color: var(--atel-blue);
    font-size: 2.3rem;
    background: #fff;
    transition: all .3s ease;
}
.niche-item:hover .niche-icon{
    background: var(--atel-blue);
    color: #fff;
    transform: translateY(-.4rem);
    box-shadow: 0 .6rem 1.6rem rgba(3,59,238,.45), 0 0 1.4rem rgba(255,139,0,.35);
}
.niche-text h3{
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: .6rem;
}
.niche-text p{
    font-size: 1.45rem;
    color: #6b6b7b;
    line-height: 1.6;
    text-transform: none;
}

/* =====================================================================
   Secção: NOSSOS SERVIÇOS (com abas)
   ===================================================================== */
.services-tabs{
    padding: 6rem 8% 7rem;
    text-align: center;
}
.services-tabs > h2{
    font-size: 3.4rem;
    color: var(--ink);
    letter-spacing: .1rem;
}
.services-tabs .lead{
    font-size: 1.6rem;
    color: #5a5a6e;
    max-width: 62rem;
    margin: 1.5rem auto 0;
    line-height: 1.6;
    text-transform: none;
}
.tab-nav{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
    margin: 4rem 0 1rem;
}
.tab-link{
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--ink);
    padding-bottom: .8rem;
    position: relative;
}
.tab-link::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: .25rem;
    border-radius: 2px;
    background: #d9d9e2;
    transition: all .3s ease;
}
.tab-link:hover{ color: var(--atel-blue); }
.tab-link.active{ color: var(--atel-blue); }
.tab-link.active::after{
    background: linear-gradient(90deg, var(--atel-blue), var(--atel-orange));
    box-shadow: 0 0 .9rem rgba(3,59,238,.75), 0 0 1.4rem rgba(255,139,0,.5);
}

.tab-panel{ display: none; }
.tab-panel.active{
    display: flex;
    align-items: center;
    gap: 5rem;
    text-align: left;
    margin-top: 4rem;
    animation: tabFade .4s ease;
}
@keyframes tabFade{
    from{ opacity: 0; transform: translateY(1.5rem); }
    to  { opacity: 1; transform: translateY(0); }
}
.tab-info{ flex: 1; }
.tab-info h3{
    font-size: 2.6rem;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.tab-info p{
    font-size: 1.55rem;
    color: #5a5a6e;
    line-height: 1.75;
    margin-bottom: 1.4rem;
    text-transform: none;
}
.btn-adesao{
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1rem;
    padding: 1.3rem 2.6rem;
    border: none;
    border-radius: .6rem;
    background: var(--atel-blue);
    color: #fff;
    font-size: 1.55rem;
    cursor: pointer;
    box-shadow: 0 .5rem 1.6rem rgba(3,59,238,.4);
    transition: all .3s ease;
}
.btn-adesao i{ font-size: 1.5rem; }
.btn-adesao:hover{
    background: var(--atel-orange);
    color: #fff;
    transform: translateY(-.2rem);
    box-shadow: 0 .5rem 1.8rem rgba(255,139,0,.6);
}

/* moldura "tech" da imagem das abas */
.tab-img{
    flex: 1;
    position: relative;
    padding: 1rem;
}
.tab-img::before,
.tab-img::after{
    content: '';
    position: absolute;
    width: 4rem;
    height: 4rem;
    pointer-events: none;
}
.tab-img::before{
    top: 0; left: 0;
    border-top: .35rem solid var(--atel-blue);
    border-left: .35rem solid var(--atel-blue);
}
.tab-img::after{
    bottom: 0; right: 0;
    border-bottom: .35rem solid var(--atel-orange);
    border-right: .35rem solid var(--atel-orange);
}
.tab-img img{
    width: 100%;
    height: 38rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.18);
    transition: all .4s ease;
}
.tab-img:hover img{
    box-shadow: 0 1rem 3rem rgba(3,59,238,.35), 0 0 2rem rgba(255,139,0,.25);
}

/* imagem das abas clicável (abre modal) */
.tab-img img{ cursor: pointer; }
.tab-img .zoom-hint{
    position: absolute;
    top: 1.6rem; right: 1.6rem;
    width: 3.6rem; height: 3.6rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(3,59,238,.85);
    color: #fff; font-size: 1.5rem;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    box-shadow: 0 0 1.2rem rgba(3,59,238,.7);
}
.tab-img:hover .zoom-hint{ opacity: 1; }

/* =====================================================================
   MODAL de imagem (lightbox)
   ===================================================================== */
.img-modal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(5,6,20,.92);
    align-items: center;
    justify-content: center;
    padding: 4rem;
    cursor: zoom-out;
    animation: modalFade .25s ease;
}
.img-modal.open{ display: flex; }
@keyframes modalFade{ from{ opacity: 0; } to{ opacity: 1; } }
.img-modal img{
    max-width: 92%;
    max-height: 88%;
    border-radius: 1rem;
    box-shadow: 0 0 0 .3rem rgba(3,59,238,.5), 0 0 4rem rgba(3,59,238,.45), 0 0 6rem rgba(255,139,0,.25);
    animation: modalZoom .3s ease;
}
@keyframes modalZoom{ from{ transform: scale(.85); opacity: 0; } to{ transform: scale(1); opacity: 1; } }
.img-modal .img-modal-close{
    position: absolute;
    top: 2rem; right: 3rem;
    color: #fff;
    font-size: 5rem;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}
.img-modal .img-modal-close:hover{ color: var(--atel-orange); transform: rotate(90deg); }

/* =====================================================================
   Cursor "tech" (anel + ponto que seguem o rato)
   ===================================================================== */
.tech-cursor-ring,
.tech-cursor-dot{
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 12000;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.tech-cursor-ring{
    width: 3.2rem; height: 3.2rem;
    border: .2rem solid rgba(3,59,238,.75);
    border-radius: 50%;
    box-shadow: 0 0 1rem rgba(3,59,238,.5);
    transition: width .2s ease, height .2s ease, border-color .2s ease, background .2s ease;
}
.tech-cursor-dot{
    width: .7rem; height: .7rem;
    background: var(--atel-orange);
    border-radius: 50%;
    box-shadow: 0 0 .8rem rgba(255,139,0,.95);
}
.tech-cursor-ring.is-hover{
    width: 5.4rem; height: 5.4rem;
    border-color: var(--atel-orange);
    background: rgba(255,139,0,.08);
}
.tech-cursor-ring.is-click{ transform: translate(-50%,-50%) scale(.7); }
@media (hover: none), (max-width: 1000px){
    .tech-cursor-ring, .tech-cursor-dot{ display: none !important; }
}

/* =====================================================================
   Secção: NOSSOS PLANOS (carrossel arrastável)
   ===================================================================== */
.plans{
    padding: 6rem 8% 8rem;
    text-align: center;
    background: #f7f7f9;
}
.plans > h2{
    font-size: 3.4rem;
    color: var(--ink);
    letter-spacing: .1rem;
}
.plans .lead{
    font-size: 1.6rem;
    color: #5a5a6e;
    max-width: 62rem;
    margin: 1.5rem auto 0;
    line-height: 1.6;
    text-transform: none;
}
.plans-carousel{
    position: relative;
    max-width: 112rem;
    margin: 3.5rem auto 0;
    padding: 0 1.5rem;
}
.plans-carousel .owl-stage{ display: flex; padding: 1.5rem 0; }
.plans-carousel .owl-item{ display: flex; }

.plan-card{
    background: #fff;
    border-radius: 1.1rem;
    margin: .6rem;
    overflow: hidden;
    box-shadow: 0 .8rem 2.4rem rgba(0,0,0,.07);
    border: .1rem solid #ececf2;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform .3s ease, box-shadow .3s ease;
}
.plan-card:hover{
    transform: translateY(-.5rem);
    box-shadow: 0 1.2rem 3rem rgba(3,59,238,.16);
}
.plan-head{
    padding: 2rem 1.6rem 1.6rem;
    background: linear-gradient(135deg, rgba(3,59,238,.07), rgba(255,139,0,.07));
}
.plan-head h3{
    font-size: 1.7rem;
    color: var(--ink);
    margin-bottom: .6rem;
}
.plan-price{
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--atel-blue);
    line-height: 1;
}
.plan-price small{
    font-size: 1.2rem;
    font-weight: 400;
    color: #8a8a9a;
    text-transform: none;
}
.plan-body{ padding: 1.6rem 1.6rem 2rem; flex: 1; display: flex; flex-direction: column; }
.plan-body ul{ list-style: none; text-align: left; margin-bottom: 1.8rem; }
.plan-body li{
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    padding: .65rem 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    border-bottom: .1rem solid #f2f2f5;
}
.plan-body li i{ font-size: 1.3rem; }
.plan-body li.yes i{ color: var(--atel-blue); }
.plan-body li.no{ color: #b7b7c2; }
.plan-body li.no i{ color: #d3d3dc; }
.plan-btn{
    margin-top: auto;
    align-self: center;
    border: none;
    cursor: pointer;
    padding: 1rem 2.4rem;
    border-radius: .5rem;
    background: var(--atel-blue);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 .4rem 1.4rem rgba(3,59,238,.35);
    transition: all .3s ease;
}
.plan-btn:hover{ background: var(--atel-orange); box-shadow: 0 .4rem 1.6rem rgba(255,139,0,.55); transform: translateY(-.2rem); }

/* setas de navegação (owl usa <div> nesta versão) */
.plans-carousel .owl-nav{ margin: 0; }
.plans-carousel .owl-nav.disabled{ display: block !important; }
.plans-carousel .owl-nav .owl-prev,
.plans-carousel .owl-nav .owl-next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: #fff !important;
    color: var(--atel-blue) !important;
    font-size: 1.6rem;
    box-shadow: 0 .4rem 1.4rem rgba(3,59,238,.25);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}
.plans-carousel .owl-nav .owl-prev{ left: -1.6rem; }
.plans-carousel .owl-nav .owl-next{ right: -1.6rem; }
.plans-carousel .owl-nav .owl-prev:hover,
.plans-carousel .owl-nav .owl-next:hover{
    background: var(--atel-blue) !important;
    color: #fff !important;
    box-shadow: 0 .4rem 1.6rem rgba(3,59,238,.5);
}
.plans-carousel .owl-nav .owl-prev.disabled,
.plans-carousel .owl-nav .owl-next.disabled{ opacity: .35; cursor: default; }

/* plano em destaque (centro) */
.plan-card.featured{
    border: .2rem solid var(--atel-blue);
    box-shadow: 0 1.4rem 4rem rgba(3,59,238,.25);
}
.plan-card.featured .plan-head{
    background: linear-gradient(135deg, var(--atel-blue), #1f5bff);
}
.plan-card.featured .plan-head h3,
.plan-card.featured .plan-price{ color: #fff; }
.plan-card.featured .plan-price small{ color: rgba(255,255,255,.8); }
.plan-card.featured .plan-btn{ background: var(--atel-orange); }
.plan-card.featured .plan-btn:hover{ background: var(--atel-blue); }

.plans-carousel .owl-dots{ margin-top: 2.5rem; text-align: center; line-height: 1; }
.plans-carousel .owl-dots.disabled{ display: block !important; }
.plans-carousel .owl-dot{ display: inline-block !important; vertical-align: middle; }
.plans-carousel .owl-dot span{
    width: 1.1rem; height: 1.1rem; margin: .4rem; background: #cfcfda; border-radius: 50%; display: inline-block; transition: all .3s ease;
}
.plans-carousel .owl-dot.active span{ background: var(--atel-blue); width: 2.6rem; border-radius: 1rem; }
.plans-carousel.owl-carousel .owl-item{ -webkit-user-select: none; user-select: none; }
.plans-carousel.owl-drag .owl-item{ cursor: grab; }
.plans-carousel.owl-drag .owl-item:active{ cursor: grabbing; }

/* =====================================================================
   Carrossel da Equipa (mesmo estilo dos Planos)
   ===================================================================== */
.team-carousel{
    position: relative;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}
.team-carousel .row{
    display: flex !important;
    justify-content: center;
    align-items: flex-start;
}
.team-carousel .card{
    margin: 1rem auto 4rem !important;
}
.team-carousel .owl-stage{ padding: 1.5rem 0; }

.team-carousel .owl-nav{ margin: 0; }
.team-carousel .owl-nav.disabled{ display: block !important; }
.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next{
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    background: #fff !important;
    color: var(--atel-blue) !important;
    font-size: 1.6rem;
    box-shadow: 0 .4rem 1.4rem rgba(0,0,0,.4);
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}
.team-carousel .owl-nav .owl-prev{ left: -.5rem; }
.team-carousel .owl-nav .owl-next{ right: -.5rem; }
.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover{
    background: var(--atel-blue) !important;
    color: #fff !important;
    box-shadow: 0 .4rem 1.6rem rgba(3,59,238,.6);
}
.team-carousel .owl-dots{ margin-top: 1rem; text-align: center; line-height: 1; }
.team-carousel .owl-dots.disabled{ display: block !important; }
.team-carousel .owl-dot{ display: inline-block !important; vertical-align: middle; }
.team-carousel .owl-dot span{
    width: 1.1rem; height: 1.1rem; margin: .4rem; background: #6b6b7b; border-radius: 50%; display: inline-block; transition: all .3s ease;
}
.team-carousel .owl-dot.active span{ background: var(--atel-blue); width: 2.6rem; border-radius: 1rem; }

/* ---- Responsivo ---- */
@media (max-width: 1000px){
    .niche-grid{ grid-template-columns: 1fr; gap: 3rem; max-width: 50rem; }
    .tab-panel.active{ flex-direction: column-reverse; gap: 3rem; }
    .tab-img img{ height: 28rem; }
    .header .logo.brand{ font-size: 2.1rem; }
}
