


/* =========================================================
   Codes4You CSS – limpo e organizado (2025)
   Paleta: primária #005f73 | hover #0a9396
   Tipos: Poppins (body) + Montserrat (headings)
   ========================================================= */

/* =========================
   Variáveis
   ========================= */
:root{
  --c-bg-grad1: #1F1C2C;
  --c-bg-grad2: #928DAB;
  --c-text: #2c2c2c;
  --c-text-invert: rgba(255,255,255,.9);
  --c-primary: #005f73;
  --c-primary-2: #0a9396;
  --c-accent: #C0FF00;
}

/* =========================
   Animações
   ========================= */
@keyframes gradientMove{
  0%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
  100%{ background-position: 0% 50%; }
}

/* =========================
   Base
   ========================= */
html, body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
  box-sizing:border-box;
  font-family:'montserrat',sans-serif;
  color: var(--c-text);

  background: linear-gradient(135deg, #a1c4fd, #c2e9fb, #fbc2eb, #a6c1ee);
  
 
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}
*, *::before, *::after{ box-sizing:inherit; }

/* =========================
   Tipografia
   ========================= */
h1, h2, h3, h4, h5, h6{
  font-family:'Montserrat', sans-serif;
  text-align:center;
  letter-spacing:.3px;
  margin:0 0 .5em 0;
  color: var(--c-primary);
  white-space:normal !important;
  word-break:normal;
  overflow-wrap:anywhere;
}
h1{ font-size:2.25rem; }
.lead{ font-size:1.0rem; }
.intro{ font-size:1.0rem; }


/* =========================
   Hero / Slogan
   ========================= */
.hero-title{
  text-align:center !important;
  margin:0 auto .5rem;
  max-width:900px;
  line-height:1.2;
  font-family:'Montserrat', sans-serif;
  font-weight:800;
  font-size:clamp(3.9rem, 1.9rem + 2.2vw, 2.5rem);
  background:linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  display:block;
}
h1.display-4.hero-title{ font-size:clamp(1.9rem, 1.2rem + 2.2vw, 2.5rem) !important; }

.hero-title + p{
  text-align:center !important;
  max-width:900px;
  margin:0 auto;
  line-height:1.6;
  font-size:clamp(15px, 2.6vw, 20px);
  text-wrap:pretty;
   font-family:'Montserrat', sans-serif;
}

/* Título principal especial (se usado) */


/* =========================
   Navbar / Idiomas
   ========================= */
.navbar-nav .nav-link{ transition: color .15s ease, transform .15s ease; }
.navbar-nav .nav-link:hover{ color:#0d6efd; transform:translateY(-1px); }

.lang-switch .btn-lang{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.15rem .6rem; border-radius:9999px;
  border:1px solid #041938; background:#fff; color:#0d6efd;
  font-weight:600; transition:.15s;
  white-space:nowrap;
}
.lang-switch .btn-lang.active{ background:#828c9c; color:#fff; }
.lang-switch .btn-lang img{ border:1px solid #e6eaf2; border-radius:3px; }



/* =========================
   Cards
   ========================= */
.card-body{ border:none; border-radius:20px; transition:transform .6s ease; }
.card:hover{ box-shadow:0 10px 20px rgba(0,0,0,.08); }
.card-title{ color:#033e7e; }
.card i{ color:#3e556d; }

/* =========================
   Botões
   ========================= */
.btn-primary{
  background:linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  border:none; color: #fff; font-weight:500;
  padding:6px 15px; border-radius:8px; transition:.3s;
}
.btn-primary:hover{
  background:linear-gradient(135deg, var(--c-primary-2), var(--c-primary));
  transform:translateY(-2px);
}
.btn-outline-primary{ color:var(--c-primary); border-color:var(--c-primary); }
.btn-outline-primary:hover{ color:#fff; background:var(--c-primary-2); border-color:var(--c-primary-2); }

/* =========================
   Formulários
   ========================= */
/* Havia duas .form-container com tamanhos diferentes; unifiquei para uma específica */
.form-container{
  max-width:600px; margin:50px auto; padding:30px;
  background:#fff; border-radius:15px;
  box-shadow:0 0 20px rgba(0,0,0,.05);
  color:var(--c-text);
}
.form-container form .form-control,
.form-container form select,
.form-container form textarea{ width:100%; }

.form-control:focus{ box-shadow:none; border-color:#4b8df8; }
.form-icon{ position:absolute; left:15px; top:50%; transform:translateY(-50%); color:#888; }
.form-group{ position:relative; margin-bottom:25px; }
.form-group input,.form-group textarea{ padding-left:40px; }
.form, input{ font-size:.9rem; }

/* =========================
   Secção Portfólio
   ========================= */
p.intro{ text-align:center; max-width:800px; margin:0 auto 40px; font-size:1.1rem; }
.portfolio-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
  gap:30px; max-width:1200px; margin:0 auto;
}
.project-card{
  border:1px solid #ddd; border-radius:20px; overflow:hidden;
  background:#f9f9f9; transition:all .3s ease;
  box-shadow:0 2px 6px rgba(0,0,0,.05); color:#2c2c2c;
}
.project-card:hover{ transform:translateY(-5px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.project-card img{ width:100%; height:180px; object-fit:cover; }
.project-card h3{
  padding:15px; font-size:1.3rem; color:#333;
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.project-card p{ padding:0 15px 15px; font-size:.95rem; color:#555; }
.project-card a{
  display:inline-block; margin:0 0 15px 15px; background:#222; color:#fff;
  padding:8px 15px; border-radius:5px; font-size:.9rem; text-decoration:none; transition:background .2s;
}
.project-card a:hover{ background:#444; }

/* =========================
   Paleta aplicada a utilitários
   ========================= */
.text-primary{ color:var(--c-primary) !important; }
a.text-primary:hover{ color:var(--c-primary-2) !important; }
.btn-outline-primary{ border-color:var(--c-primary); }

/* =========================
   Métricas / Gráficos
   ========================= */
.metrics-section{ background:#0e8fcf; border-radius:20px; }
.metric-card{
  background:#fff; border-radius:14px; padding:18px 18px 12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}
.metric-card canvas{ max-height:180px; }
.metric-card h5{
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:700;
}

/* =========================
   Counters
   ========================= */
.counters-section{ background:#124881; border-radius:20px; padding-bottom:32px; }
.counter-card{
  background:#fff; border-radius:14px; padding:26px 18px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  color:#000;
}
.counter{
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:800;
  font-size:clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height:1;
  background:linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.counter::after{ content:'+'; opacity:.6; margin-left:2px; }
.counter-card .label{ display:block; margin-top:8px; font-weight:500; opacity:.85; }

.counter-item{
  background:#fff; border-radius:12px; padding:16px 14px;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  text-align:center; height:100%; color:#124881;
}
.counter-value, [id^="count-"]{
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:800;
  font-size:clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height:1;
  background:linear-gradient(90deg, var(--c-primary), var(--c-primary-2));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.counter-label{
  margin-top:6px; font-weight:600; font-size:.95rem; opacity:.85;
}
.counter-icon{ font-size:22px; color:var(--c-primary-2); opacity:.9; margin-right:6px; }
.counters-section .row > [class*="col-"]{ padding-left:8px; padding-right:8px; }

/* =========================
   Calculadora / Estimativa
   ========================= */

   :root{
  --blue:  #0b3b6f;  /* azul Codes4You */
  --green: #7ac943;  /* verde Codes4You */
}
.estimate-section{
    background:
    radial-gradient(900px 600px at 15% 20%, color-mix(in oklab, var(--blue) 80%,  #ffffff) 0%, transparent 50%),
    radial-gradient(900px 600px at 85% 80%, color-mix(in oklab, var(--green) 65%, #ffffff) 0%, transparent 50%),
    linear-gradient(135deg, #f0f7ff 0%, #f4fff3 100%);
  background-size: 120% 120%, 120% 120%, 100% 100%;
  animation: spots 26s ease-in-out infinite;

   border-radius:25px;
}
@keyframes spots{
  0%   { background-position:  0%  0%, 100% 100%, 0% 0%; }
  50%  { background-position: 30% 40%, 70% 60%, 0% 0%;  }
  100% { background-position:  0%  0%, 100% 100%, 0% 0%; }
}
 


.estimate-section .form-label{ color:#333; }
.estimate-section .form-control,
.estimate-section .form-select{
  border-radius:.5rem; border:1px solid #ddd; transition: all .2s ease-in-out;
}
.estimate-section .form-control:focus,
.estimate-section .form-select:focus{
  border-color:#0d6efd;
  box-shadow:0 0 0 .25rem rgba(13,110,253,.15);
}
.estimate-section .btn-primary{ background:#2075a7; border:none; }
.estimate-section .btn-primary:hover{ background:#0ba7d7; }
.estimate-section .btn-outline-primary{ border-width:2px; }
#estimateResult{
  font-weight:500; font-size:1.1rem; border-radius:.5rem; transition:opacity .5s ease;
}

/* =========================
   Depoimentos
   ========================= */
.testimonials-section{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color:#fff;
}
.testimonial-card{
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius:14px; padding:18px; color:#fff;
}

/* =========================
   Avatars
   ========================= */
.avatar-wrap{ min-height:80px; display:flex; align-items:center; justify-content:center; }
.avatar-64{
  width:64px; height:64px; border-radius:50%;
  object-fit:cover; object-position:center; display:block;
  box-shadow:0 0 0 2px #fff;
}
.avatar-box{ min-height:100px; display:flex; align-items:center; justify-content:center; }
.avatar-80{
  width:100px; height:100px;
  border-radius:0 !important; object-fit:cover; object-position:center; display:block; margin:0 auto;
}

/* =========================
   Founder
   ========================= */
.founder-heading {
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 700;              /* reforça o título */
  letter-spacing: normal;        /* evita tracking estranho no iOS */
  line-height: 1.3;              /* dá respiro sem abrir demais */
  text-align: center;
  text-align:center;              /* headings não precisam justify */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


@media (max-width: 480px) {
  .founder-heading {
    letter-spacing: normal;
    font-size: 18px;   /* ligeiro ajuste de tamanho se quiser */
    line-height: 1.3;
  }
}

/* =========================
   Tecnologias (AOS)
   ========================= */
.tech-section{ background:#f8f9fa; }
.tech-card{
  background:#fff; border-radius:12px; padding:20px;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  transition:transform .3s, box-shadow .3s;
}
.tech-card i{ font-size:50px; color:var(--c-primary-2); margin-bottom:10px; }
.tech-card p{
  font-weight:700; margin:0;
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.tech-card:hover{ transform:translateY(-6px); box-shadow:0 10px 22px rgba(0,0,0,.12); }

/* =========================
   Layout / Sticky footer
   ========================= */
html, body{ display:flex; flex-direction:column; }
main{ flex:1; }
footer{ margin-top:auto; }


/* Impede quebrar "Codes4You" ou outras palavras longas nos títulos */
.hero-title {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: normal !important;  /* permite quebrar entre palavras, não dentro */
}

/* Anti-Overflow */
html,body{overflow-x:clip;}@supports not (overflow-x:clip){html,body{overflow-x:hidden}}
:root,html,body,body>*{max-width:100vw!important}
*{min-width:0}
img,video,iframe,svg{max-width:100%;height:auto;display:block}
.carousel,.slider,.hero{overflow:clip}



/* nav baf aside*/
:root{
  --nav-h: 70px;       /* altura aproximada da navbar */
  --c4y-shadow: 0 12px 30px rgba(15,23,42,.10);
}

/* Botão discreto */
.c4y-motiv-btn{
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 14px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: var(--c4y-shadow);
  cursor: pointer;
  opacity: .75;
  transition: all .2s ease;
  z-index: 500;
}
.c4y-motiv-btn:hover{ opacity: 1; background: #f5f5f5; }

/* Caixinha padrão (desktop) */
.c4y-toast{
  position: fixed;
  top: calc(var(--nav-h) + 52px);
  left: 14px;
  max-width: 320px;
  background: #111;
  color:#fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 14px 36px rgba(0,0,0,.25);
  display: none;
  z-index: 600;
}
.c4y-toast.show{ display:block; animation: fadeIn .2s ease both; }
.c4y-toast.hide{ animation: fadeOut .2s ease both; }

/* Mobile: caixa mais estreita e centralizada */
@media (max-width: 768px){
  .c4y-toast{
    left: 50%;
    transform: translateX(-50%);   /* centraliza no ecrã */
    max-width: 300px;              /* mais estreita */
    font-size: 12px;               /* texto menor */
    padding: 10px 12px;
    border-radius: 8px;
    top: calc(var(--nav-h) + 70px); /* um pouco mais abaixo da navbar */
  }
}


/* Botão padrão (desktop) */
.c4y-motiv-btn{
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  left: 14px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: var(--c4y-shadow);
  cursor: pointer;
  opacity: .75;
  transition: all .2s ease;
  z-index: 500;
}
.c4y-motiv-btn:hover{ opacity: 1; background: #f5f5f5; }

/* Versão vertical só em telas pequenas (até 768px) */
@media (max-width: 768px){
  .c4y-motiv-btn{
    writing-mode: vertical-rl;    /* texto na vertical */
    text-orientation: mixed;
    padding: 6px 3px;
    border-radius: 10px;
    font-size: 9px;
    top: calc(var(--nav-h) + 470px);
    left: 3px;
    text-align:justify;
  }  
}
/* Ajuste Foto Founder */
.founder-avatar {
  width: auto !important;        /* deixa a largura natural */
  max-width: 220px !important;   /* limite no desktop */
  height: auto !important;       /* mantém proporção */
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .12);
  margin: 0 auto;                /* centraliza */
}

/* Tablets (até ~992px) */
@media (max-width: 991.98px) {
  .founder-avatar {
    max-width: 200px !important;
  }
}

/* Telemóveis (até ~576px) */
@media (max-width: 575.98px) {
  .founder-avatar {
    max-width: 200px !important;
        
  }
}


/* Até 575px (telemóveis)  para justar botoes no centro*/
@media (max-width: 575.98px){
  .estimate-section .btn,
  .estimate-section .d-grid,
  .estimate-section .btn-group{
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;   /* se quiser que ocupem a largura toda */
    margin: .4rem 0 !important;
  }
}


/* Empurra ligeiramente o botão para a direita só no mobile */
@media (max-width: 575.98px){
  .founder-text > a.btn{
    display: inline-block !important;
    margin-left: 1rem !important;     /* ajusta 1rem → 16px */
  }
}



  /*Anti-barra fantasma apenas neste bloco */

    #orcamento-sandbox{position:relative; width:100%; max-width:100vw; overflow-x:clip;}
    @supports not (overflow-x: clip){ #orcamento-sandbox{ overflow-x:hidden; } }
    #orcamento-sandbox .row{ overflow:hidden; }
    #orcamento-sandbox [class*="col"]{ max-width:100%; }
    #orcamento-sandbox img, #orcamento-sandbox video, #orcamento-sandbox iframe{ max-width:100%; height:auto; }
    @media (max-width:575.98px){
      #orcamento-sandbox .form-control, #orcamento-sandbox .form-select{
        font-size:16px !important; line-height:1.35; min-height:42px; padding:.45rem .65rem; border-radius:.6rem;
      }
      #orcamento-sandbox .col-md-6{ flex:0 0 100%; max-width:100%; }
      #orcamento-sandbox .btn{ padding:.6rem 1rem; border-radius:.7rem; }
    }
    @media (max-width: 767px) {
  #orcamento-form-title {
    font-size: 1.5rem !important;  /* ajusta o tamanho no telemóvel */
    line-height: 1.2;              /* opcional: melhora espaçamento vertical */
  }
}


    

    /* Estilo para o título do orçamento */


/* Distância do form em relação ao cabeçalho */
#orcamento-form-section {
  margin-top: 3rem;   /* aumenta o espaçamento */
}




.stylish-back {
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.stylish-back:hover {
  background-color: #6c757d;
  color: #fff;
  transform: translateX(-2px);
}

@media (max-width: 767px) {
  .stylish-back {
    display: inline-block;     /* botão compacto */
    width: auto !important;    /* nunca ocupar 100% */
    float: none;               /* não flutua para não quebrar o form */
    margin-left: 0;            /* encostado à esquerda */
    margin-right: 0;
    font-size: 0.875rem;       /* opcional: texto menor */
    padding: .25rem .75rem;    /* opcional: mais compacto */
  }
}

/* Ajuste do botão Enviar Mensagem no responsivo */
@media (max-width: 768px) {
  #contact-form button[type="submit"] {
    width: auto !important;        /* não ocupa 100% */
    display: inline-block !important;
          /* encosta à direita */
    margin-right: 15px !important; /* margem de respiro */
  }

  /* força o container do botão a alinhar à direita */
  #contact-form .form-group,
  #contact-form .col-12,
  #contact-form .text-center {
    text-align: right !important;
  }
}

/* esconder visualmente mas manter acessível */
.visually-hidden {
  position:absolute!important; width:1px!important; height:1px!important;
  padding:0!important; margin:-1px!important; overflow:hidden!important;
  clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important;
}


  /* Espaçamento legível, mas sem interferir com layout */
  #formContato input.form-control,
  #formContato textarea.form-control,
  #formContato select.form-select {
    letter-spacing: .015em;
    /* ~+0.24px a 16px */
    word-spacing: .06em;
  }

  @media (max-width:575.98px) {

    #formContato input.form-control,
    #formContato textarea.form-control,
    #formContato select.form-select {
      font-size: 16px;
      /* evita zoom iOS e melhora leitura */
      line-height: 1.5;
      min-height: 48px;
      padding: .65rem .9rem;
      border-radius: .6rem;
    }

    #formContato textarea.form-control {
      min-height: 140px;
    }
  }

  footer { position: relative; }

/* ——— Selo compacto (desktop/tablet) ——— */
.c4y-trusted-textual{
  position: absolute;
  right: 12px;
  bottom: 12px;

  display: inline-flex;
  align-items: center;
  gap: .35rem;

  font-weight: 600;
  font-size: .80rem;              /* ↓ menor */
  line-height: 1.15;
  color: #12b886;

  background: #fff;
  padding: 4px 8px;               /* ↓ menor */
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,.10);
}

.c4y-trusted-textual .c4y-lock{
  font-size: 1rem;                 /* ícone menor */
  line-height: 1;
}

/* ——— Mobile ——— */
@media (max-width: 768px){
  .c4y-trusted-textual{
    right: 8px;
    bottom: 8px;
    font-size: .50rem;             /* ainda menor */
    padding: 2px 4px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.10);
    transform: scale(.85);         /* encolhe ligeiro */
    transform-origin: bottom right;
  }
  .c4y-trusted-textual .c4y-lock{ font-size: .95rem; }
}

/* ——— Telemóveis muito pequenos (≤360px) ——— */
@media (max-width: 360px){
  .c4y-trusted-textual{
    font-size: .60rem;
    padding: 2px 5px;
    transform: scale(.70);
  }
}


/* ——— Relogio css index.php ——— */

footer { 
  position: relative; 
}

.wt-rot {
  position: absolute;
  left: 30px;
  bottom: calc(5px + env(safe-area-inset-bottom, 0px)); /* respeita área segura no iPhone */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #f5f5f5;
  transition: opacity .35s ease;
}

.wt-rot.fade-out { 
  opacity: .1; 
}

.wt-flag { 
  height: 18px; 
  width: auto; 
  display: block; 
  border-radius: 2px; 
}

.wt-city { 
  font-size: .9rem; 
  color: #cfcfcf; 
  font-weight: 600; 
  line-height: 1.1; 
}

.wt-time { 
  font-variant-numeric: tabular-nums; 
  font-size: 1.2rem; 
  font-weight: 800; 
  line-height: 1.05; 
}

@media (max-width:420px) {
  .wt-rot { 
    left: 10px; 
    bottom: calc(5px + env(safe-area-inset-bottom, 0px)); /* idem no mobile */
  }
  .wt-flag { height: 16px; }
  .wt-city { font-size: .85rem; }
  .wt-time { font-size: 1.1rem; }
}

@media (max-width: 576px) {
  .wt-rot {
    bottom: 0; /* encosta mesmo no fundo do footer */
  }
}

/* ——— Payments (escopado) ——— */

body.page-payments {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  margin: 0;
  background: #f6f7fb;
  color: #111;
  font-size: 15px; /* base menor (16px -> 15px) */
}

.page-payments .wrap {
  max-width: 860px;
  margin: 32px auto;
  padding: 16px;
}

.page-payments .card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
  padding: 16px;
  margin-bottom: 16px;
}

.page-payments h1 { font-size: 1.25rem; margin: 0 0 8px; }
.page-payments h2 { font-size: 1.05rem; margin: 0 0 8px; }
.page-payments h3 { font-size: 1rem; margin: 0 0 6px; }

.page-payments label {
  display: block;
  font-size: .92rem;
  margin: 6px 0 4px;
}

.page-payments input,
.page-payments select,
.page-payments button {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: .95rem;
}

.page-payments button {
  cursor: pointer;
  border: none;
}

.page-payments .grid { display: grid; gap: 12px; }
.page-payments .g2 { grid-template-columns: 1fr 1fr; }

.page-payments .muted,
.page-payments .note { font-size: .9rem; color: #6b7280; }

.page-payments .err {
  background: #fee2e2;
  color: #991b1b;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.page-payments .ok {
  background: #dcfce7;
  color: #166534;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.page-payments .btn {
  background:  #005f73;
  color: #fff;
  padding: 10px 14px;
}

.page-payments .btn.alt {
  background:  #005f73;
  filter: saturate(.95);
}

.page-payments .badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #005f73 ;
  font-size: .8rem;
  margin-left: 8px;
}

.page-payments .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.page-payments .lang a {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  margin-left: 6px;
}

.page-payments .lang a.active {
  background: #111;
  color: #fff;
}

.page-payments .title {
  text-align: center;
  margin: 20px 0 0;
}

.page-payments .back-center {
  text-align: center;
  margin: 20px 0 0;
}

.page-payments .back-center a {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(90deg,#007bff,#00c6ff);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.page-payments .back-top {
  text-align: left;
  margin-bottom: 10px;
}

.page-payments .btn-back-top {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg,#007bff,#00c6ff);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.page-payments .btn-back-top:hover {
  background: linear-gradient(90deg,#0062cc,#0099cc);
}

/* Upload de ficheiro */
.page-payments .c4y-file-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin: .25rem 0 .5rem;
}

.page-payments .c4y-file-input { display: none; }

.page-payments .c4y-file-btn {
  display: inline-block;
  padding: .5rem .9rem;
  border-radius: .35rem;
  background: #0a9396;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}

.page-payments .c4y-file-btn:hover { background: #098; }

.page-payments .c4y-file-name {
  font-size: .9rem;
  color: #555;
}

.page-payments .c4y-file-error {
  color: #c92a2a;
  font-size: .9rem;
  margin-top: .35rem;
  display: none;
}

/* Responsividade */
@media (max-width: 760px) {
  .page-payments body { font-size: 14.5px; }
  .page-payments h1 { font-size: 1.2rem; }
  .page-payments h2 { font-size: 1.03rem; }
  .page-payments .g2 { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .page-payments .c4y-file-btn { padding: .45rem .8rem; font-size: .95rem; }
  .page-payments .c4y-file-name { font-size: .85rem; }
}



/* ===== Footer independente (clock + bandeiras) ===== */
.c4y-mini-footer {
  font-size: 14px;            /* base controlada */
  line-height: 1.3;
}

.c4y-mini-footer .c4y-flag {
  width: 22px;                /* tamanho fixo da bandeira */
  height: auto;
  vertical-align: middle;
  display: inline-block;
  /* neutraliza regras globais tipo .img-fluid / max-width */
  max-width: none !important;
}

.c4y-mini-footer img { 
  max-width: none !important; /* impede “esticar” inesperado */
}

.c4y-mini-footer .c4y-clock {
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 8px;
  letter-spacing: .2px;
}

/* Se houver botões dentro do footer, mantém-nos compactos */
.c4y-mini-footer .btn {
  width: auto !important;
  padding: .35rem .6rem;
  font-size: .85rem;
  border-radius: .45rem;
}

/* Mobile: ajusta um pouco mas continua pequeno */
@media (max-width: 576px){
  .c4y-mini-footer { font-size: 13.5px; }
  .c4y-mini-footer .c4y-flag { width: 20px; }
  .c4y-mini-footer .c4y-clock { font-size: 0.92rem; }
}
          

 /* =========================================================
   BLOG
   Escopo: .c4y-blog (page-blog)
   ========================================================= */
.c4y-blog { max-width: 1080px; }
.c4y-blog h1 { font-weight: 800; letter-spacing: -0.02em; }

/* Cards de post */
.c4y-blog .card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 25px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  background: #fff;
}
.c4y-blog .card + .card { margin-top: 18px; }
.c4y-blog .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.12);
}
.c4y-blog .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Títulos e trechos */
.c4y-blog .card-title {
  font-weight: 700;
  margin-bottom: 6px;
}
.c4y-blog .card-text {
  color: #586174;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Botões */
.c4y-blog .btn.btn-primary.btn-sm {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  border: none;
}
.c4y-blog .btn-outline-secondary.btn-sm {
  border-radius: 999px;
  padding: 6px 12px;
}

/* Breadcrumb */
.c4y-blog .breadcrumb {
  --bs-breadcrumb-divider: '›';
  font-size: .92rem;
  margin-bottom: 14px;
}
.c4y-blog .breadcrumb a { text-decoration: none; }
.c4y-blog .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #9aa3b2;
}
.c4y-blog .text-muted time { font-variant-numeric: tabular-nums; }

/* Sidebar widgets */
.c4y-sticky { position: sticky; top: 88px; }
.c4y-blog aside .bg-light {
  background: #f7f9fc !important;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
}
.c4y-blog aside h4 {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #364152;
}
.c4y-blog aside ul li + li { margin-top: 8px; }
.c4y-blog aside a {
  color: #213547;
  text-decoration: none;
}
.c4y-blog aside a:hover { text-decoration: underline; }

/* Chips de idioma */
.c4y-blog .btn-outline-secondary.btn-sm { 
  border-color: #d0d7e2; color: #3b4252;
}
.c4y-blog .btn-outline-secondary.btn-sm:hover {
  background: #eef3ff; border-color: #b7c3ff;
}

/* Meta do post */
.c4y-blog header .text-muted {
  margin-top: 6px; color: #7a859a;
}

/* Responsivo */
@media (max-width: 991px) {
  .c4y-sticky { position: static; }
  .c4y-blog .card + .card { margin-top: 14px; }
  .c4y-blog h1 p { font-size: 14px; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .c4y-blog .card { background:#0f1218; border-color: rgba(255,255,255,.06); }
  .c4y-blog .card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  .c4y-blog .card-text { color:#c8d0e0; }
  .c4y-blog aside .bg-light { background:#121725 !important; border-color: rgba(255,255,255,.06); }
  .c4y-blog aside h4 { color:#e9edf7; }
  .c4y-blog aside a { color:#dfe7ff; }
  .c4y-blog .breadcrumb a { color:#dfe7ff; }
  .c4y-blog .text-muted { color:#a7b0c2 !important; }
}

/* =========================================================
   BLOG — Ajustes responsivos BLOG
   ========================================================= */

/* ===== Ajustes mobile (<=576px) ===== */
@media (max-width: 576px) {
  /* 1) Títulos menores */
  .c4y-blog h1 { font-size: 1.1rem; line-height: 1.2; }
  .c4y-blog .card-title { font-size: 1.02rem; line-height: 1.25; }

  /* 2) Centralizar botão "Ler mais" dentro do card */
  .c4y-blog .card-body { 
    display: flex; 
    flex-direction: column; 
    align-items: center;   /* centra tudo */
    text-align: center;    /* centraliza texto do trecho */
  }
  .c4y-blog .card-body .btn.btn-primary.btn-sm {
    align-self: center;    /* garante centro mesmo com regras do Bootstrap */
    margin-top: 6px;
  }

  /* 3) Respiro antes do rodapé */
  .c4y-blog { padding-bottom: 72px; } /* espaço global no blog */
  .c4y-blog .card:last-child { margin-bottom: 24px; }
}

/* ===== Ajustes tablets (577px–991px) ===== */
@media (min-width: 577px) and (max-width: 991px) {
  .c4y-blog h1 { font-size: 1.6rem; }
  .c4y-blog .card-title { font-size: 1.1rem; }
  .c4y-blog .card-body .btn.btn-primary.btn-sm { 
    align-self: flex-start; 
    background: white; /* estilo mais “editorial” */
  }
}



/* ===== POST 1 ..Overrides específicos do blog ===== */

/* Botão "Ler mais": tamanho e pill em todos os tamanhos */
#blogX .btn.btn-primary.btn-sm{
  border-radius:999px; padding:8px 14px; font-weight:600;
}

/* Respirar acima do rodapé e entre cards */
#blogX { padding-bottom: 72px; }
#blogX .card:last-of-type { margin-bottom: 24px; }

/* === Ajustes mobile === */
@media (max-width: 576px){
  /* 1) Títulos menores */
  #blogX h1{ font-size:1.35rem; line-height:1.2; }
  #blogX .card-title{ font-size:1.04rem; line-height:1.28; }

  /* 2) Centralizar conteúdo do card e o botão "Ler mais" */
  #blogX .card-body{
    display:flex; flex-direction:column; align-items:center; text-align:center;
  }
  #blogX .card-body .btn.btn-primary.btn-sm{
    align-self:center; margin-top:6px;
    /* se quiser full width no telemóvel, descomenta a linha abaixo */
    /* width:100%; */
  }

  /* 3) Garantir espaço entre a listagem e o rodapé */
  #blogX .card:last-of-type{ margin-bottom:24px; }
}

/* === Pequenos tablets === */
@media (min-width:577px) and (max-width:991px){
  #blogX h1{ font-size:1.6rem; }
  #blogX .card-title{ font-size:1.12rem; }
}
/* ===== Ajuste APENAS para os botões PT/EN no mobile ===== */
@media (max-width: 576px){
#blogX .lang-switch .btn {
    padding: 3px 8px;
    font-size: .74rem;
    line-height: 1.1;
    border-radius: 999px;
  }
}


@media (min-width: 992px){
  #blogX .cover-img{
    max-width: 90%;      /* deixa menor no desktop */
    max-height: 280px;   /* ajusta se quiseres 220px/250px */
    display: block;
    margin: 0 auto;      /* centraliza */
    object-fit: cover;   /* corta sem distorcer */
    border-radius: 8px;  /* opcional */
  }
}

/* ===== Pag Construção ===== */
.uc-scope .under-construction-hero {
  background: linear-gradient(180deg,#f8fafc,#eef2f7);
  border:1px solid #e5e7eb;
  border-radius:16px;
}

.uc-scope .thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
  width:100%;
  border-radius:12px;
  border:1px solid #e5e7eb;
  transition:.15s;
  cursor:pointer;
}

.uc-scope .thumb:hover {
  transform: translateY(-2px);
  box-shadow:0 10px 24px rgba(16,24,40,.08);
}

/* ===== QR: ajustes só para telemóvel ===== */

@media (max-width: 480px) {
  /* input um pouco menor */
  #qrInput { font-size: .9rem; padding: .4rem .55rem; }

  /* botões menores */
  #qrBtn, #qrUseSite, #qrUseWa {
    font-size: .75rem;
    line-height: 1.1;
    padding: .35rem .55rem;   /* altura + estreita */
    min-height: 32px;         /* não ficam minúsculos demais */
    border-radius: .4rem;
  }

  /* se usares a classe no grupo, controla o espaçamento */
  .qr-actions { gap: 6px; }

  /* evita que “estiquem” demais em col-auto */
  .qr-actions .col-auto { flex: 0 0 auto; }
}

 /* Centralizar botão Enviar Mensagem só em ecrãs de telemóvel contactos */
@media (max-width: 576px) {
  #contactForm button[type="submit"],
  .btn-i{
    display: block;
    margin: 0 auto;   /* centraliza */
    width: 100%;      /* ocupa a largura toda do input (opcional) */
    max-width: 280px; /* limite para não ficar gigante */
  }
}

/* Só o estimator (index) */
#estimator h2 {
  color: #0b3b6f;           /* azul do logo */
  font-weight: 700;
}

#estimator .btn-primary {
  background: #7ac943;      /* verde do logo */
  border: 0;
  font-weight: 600;
}

#estimator .btn-primary:hover {
  background: #66b536;      /* verde um tom mais escuro */
}

#estimator {
  padding: 2rem;
  border-radius: 12px;
}


/* ===== Estimator: ajustes responsivos só para telemóvel ===== */
@media (max-width: 576px) {

  /* container mais compacto e sem “sobras” nas laterais */
  #estimator{
    margin: 0 12px;
    padding: 16px;
    border-radius: 12px;
  }

  /* títulos e subtítulo */
  #estimator h2{ 
    font-size: 1.15rem; 
    text-align: center; 
  }
  #estimator .lead, 
  #estimator p.desc{
    font-size: .92rem;
    text-align: center;
    margin-bottom: .75rem;
  }

  /* reduzir gutters do Bootstrap dentro do estimator */
  #estimator .row{ --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }

  /* inputs/selects mais baixos e legíveis */
  #estimator .form-control,
  #estimator .form-select{
    height: 40px;
    font-size: .95rem;
  }

  /* checkboxes mais “tapáveis” */
  #estimator .form-check{ margin-bottom: .35rem; }
  #estimator .form-check-input{ width: 1.1rem; height: 1.1rem; }

  /* botões lado a lado → empilhar e ocupar 100% */
  #estimator .btn{ font-weight: 600; }
  #estimator .btn + .btn{ margin-left: 0; }

  /* se os 2 botões (Calcular / Pedir Orçamento) estiverem na mesma linha */
  #estimator .actions{ display: grid; grid-template-columns: 1fr; gap: 8px; }
  #estimator .actions .btn{ width: 100%; }

  /* botão “Ir para Pagamentos” em 100% */
  #estimator .cta-bottom .btn,
  #estimator .btn-cta,
  #estimator .btn.w-100{
    width: 100%;
  }

  /* limita a largura total (evita ficar estreito demais) */
  #estimator form,
  #estimator .container,
  #estimator .card{
    max-width: 540px;
    margin-inline: auto;
  }
}

/* ===== Ajustes do Estimator no responsivo (mobile) ===== */
@media (max-width: 576px) {
  #estimator {
    color: #003366; /* azul escuro do logo */
  }

  #estimator .form-control,
  #estimator .form-select {
    width: 100%;
    height: 40px;
    font-size: 1rem;
    border: 1px solid #003366;
    border-radius: 8px;
    color: #003366;
  }



  #estimator h2,
  #estimator h3,
  #estimator label {
    color: #003366;
    font-weight: 600;
  }
}

/* ===== Ajuste do Estimator no responsivo (mobile) ===== */
@media (max-width: 576px) {
  #estimator .form-control,
  #estimator .form-select {
    width: 100% !important;   /* ocupar 100% */
    max-width: 100% !important;
    min-width: 95%;           /* dá um pequeno respiro nas laterais */
    margin: 0 auto 12px;      /* centraliza e dá espaço entre campos */
    height: 40px;             /* altura maior para conforto */
    font-size: 1rem;          /* texto legível */
  }
}

/* ===== Estimator no Mobile: container + resultado menores ===== */
@media (max-width: 576px) {
  /* container geral */
  #estimator {
    padding: 0.8rem;          /* menos espaço interno */
    margin: 0.4rem auto;      /* quase encostado ao container */
    border-radius: 10px;
  }

  #estimator h2 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    text-align: center;
  }

  #estimator p,
  #estimator .desc {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-align: center;
  }

  /* caixinha de valores (resultado do cálculo) */
  #estimator .result-box,
  #estimator .alert,
  #estimator .calc-output {
    font-size: 0.9rem;       /* texto menor */
    padding: 0.6rem 0.8rem;  /* menos espaço interno */
    border-radius: 9px;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
  }
}

/* Desktop / telas grandes */
@media (min-width: 992px) {
  #estimator {
    max-width: 1650px;   /* largura máxima */
    margin: 1.5rem auto; /* centraliza e dá respiro */
    padding: 2rem;       /* mantém espaço interno */
    border-radius: 15px; /* cantos arredondados */
  }
}

/* apenas no telemóvel footer */
.direitos { font-size: 14px; }

/* bloco final colado no fundo */
.footer-bottom {
  margin-top: 28px;    /* espaço claro da frase até o bloco */
  padding-bottom: 6px; /* cola ao fundo do footer */
}

/* mobile */
@media (max-width: 576px) {
  .direitos { font-size: 11px; }
  .footer-bottom {
    margin-top: 55px;   /* mais afastado ainda em telas pequenas */
    flex-direction: column; /* opcional: relógio em cima, selo em baixo */
    gap: 6px;
  }
}

html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; font-size:16px; }






