
html{
   scroll-behavior: smooth;
}
body{
    margin: 0;
    padding-top: 100px;
}

header {
    z-index: 1000;
    position: fixed; /* fixed para ficar sempre visível */
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* logo à esq, nav à dir */
    padding: 0 60px;
    border-bottom: 2px solid rgb(0, 0, 80);
    background-color: #ffffff; /* precisa de fundo se for fixed */
    box-sizing: border-box;
}

nav {
    display: flex;
    gap: 16px; /* reduz o gap para não sair */
    /* REMOVE o position: absolute, left e transform */
}
.logo{
    display: flex;
    align-items: start;
}
.logo img{
    width: 150px;
    height: auto;
}  
header a {
text-decoration: none;
font-weight: 500;
font-size: 12px;
color: aliceblue;
transition: color 0.3s ease;
width: 70px;
height: auto;
background-color: rgb(0, 14, 58);
display: flex;
justify-content: center;
padding: 15px;
border-radius: 20px;

}

header nav a:hover{
  
   color: rgb(255, 153, 0);

   
}
#hero-section{
    height: 90vh;
    margin-top: 100px;
}

#hero-section h1{
    font-size: 75px;
    line-height: 2.1;
    margin-bottom: 20px;
    color: #00123a;
     padding-left:50px ;
    line-height: 1.1;

}
#hero-section h1 .accent {
  color: #008cff;
}
.hero-badge {
  display: inline-block;
  background: rgba(0, 13, 43, 0.07);
  color: #00123a;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  padding-left: 50px;
}
#hero-section p {
    width: 800px;
    padding-left:50px ;
   font-size: 20px;
   font-weight: 700;
}
#hero-section img{
    position: absolute;
     transform: translateY(-100px);
    width: 700px;
    z-index: 1;
    opacity: 0.190;
}
.butao_home{
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.butao_home button{
    margin-top: 80px;
    width: 150px;
    height: 60px;
    border-radius: 30px;
    border: none;
    background-color: #000d2b;
    color: aliceblue;
    font-size: 20px;
    font-weight: 600;
   box-shadow: 0 8px 24px rgba(78, 70, 229, 0.925);
    transition: transform 0.18s ease,box-shadow 0.18s ease;
    
}

.butao_home button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(78, 70, 229, 0.95);
}

#sobre_servicos{
    height: 80vh;
    margin-top: -10;
   
}
#sobre_servicos h1{
    font-size: 95px;
    line-height: 2.1;
    margin-bottom: 0px;
    color: #00123a;
    padding-left:50px ;
    display: flex;
    justify-content: center;

}
.holdersteps{
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 100px;
}
.steps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.step {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 360px;
}
.step-numero {
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background-color:#000750;
    color: white;
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step strong { font-size: 34px; color: #1a1a2e; }
.step span { font-size: 22px; color: #555; text-align: center; }
.step-seta { font-size: 24px; color: white; }


#why_us h1{
    font-size: 95px;
    line-height: 2.1;
    margin-bottom: 20px;
    color: #00123a;
    display: flex;
    justify-content: center;

}
#why_us p {
    width: 800px;
   font-size: 20px;
  font-weight: 400;
  color: #444;
  line-height: 1.75;
    justify-content: center;
   
}
.holder_bt_texto-2{
    display: flex;
    justify-content: center;
}

footer {
  background-color: #1a1a2e;
  padding: 50px 40px;
}

.holder_footer {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ÍCONES REDES SOCIAIS */
.icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.icon {
  display: flex;
  align-items: center;
}

.icons img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.icon img:hover {
  opacity: 1;
}

/* EMAILS */
.email {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmail a {
  text-decoration: none;
  color: #aaa;
  font-family: "Lato", sans-serif;
  font-size: 18px;
  transition: color 0.3s ease;
}

.gmail a:hover {
  color: #f5a623;
}

/* CONTACTOS */
.contacos {
  display: flex;
  flex-direction: column;
}

.holdercontact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wordcontact span {
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.numero span {
  color: #aaa;
  font-family: "Lato", sans-serif;
  font-size: 15px;
}

/* LOGO */
.logo_footer img {
  height: 100px;
  width: auto;
  opacity: 0.9;
}
.logo_footer_2 img {
  height: 100px;
  width: auto;
  opacity: 0.9;
}
/* ══════════════════════════════════════════════
   RESPONSIVE – André Alemão Créditos e Seguros
   Breakpoints: 1024px | 768px | 480px
   ══════════════════════════════════════════════ */

/* ── TABLET (≤ 1024px) ───────────────────────── */
@media (max-width: 1024px) {

  /* HEADER */
  header {
    padding: 0 30px;
  }

  header a {
    width: 60px;
    padding: 12px;
    font-size: 11px;
  }

  nav {
    gap: 10px;
  }

  /* HERO */
  #hero-section {
    height: auto;
    padding-bottom: 60px;
    margin-top: 60px;
  }

  #hero-section h1 {
    font-size: 54px;
    padding-left: 30px;
  }

  .hero-badge {
    font-size: 16px;
    padding-left: 30px;
  }

  #hero-section p {
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
    font-size: 17px;
  }

  #hero-section img {
    width: 450px;
  }

  /* STEPS */
  #sobre_servicos {
    height: auto;
    padding-bottom: 60px;
  }

  #sobre_servicos h1 {
    font-size: 60px;
    padding-left: 30px;
  }

  .holdersteps {
    padding: 40px 30px;
    flex-wrap: wrap;
  }

  .steps-row {
    gap: 12px;
  }

  .step {
    width: 280px;
  }

  /* WHY US */
  #why_us h1 {
    font-size: 60px;
    padding-left: 30px;
  }

  #why_us p {
    width: 100%;
    padding: 0 30px;
  }

  /* SERVIÇOS */
  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .servico-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding-right: 0;
    padding-bottom: 32px;
  }

  /* SOBRE */
  #sobre {
    flex-direction: column;
  }

  .sobre-foto {
    flex: 0 0 340px;
    width: 100%;
  }

  .sobre-conteudo {
    padding: 48px 30px;
  }

  .sobre-conteudo h2 {
    font-size: 32px;
  }

  /* CONTACTO */
  #contacto {
    padding: 60px 30px;
    flex-direction: column;
    align-items: center;
  }

  .cta-lateral {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
  }

  .section-container {
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 12px 12px;
  }

  /* DEVERES / POLITICAS */
  .deveres-grid {
    grid-template-columns: 1fr;
  }

  .dev-card.wide {
    grid-column: 1;
  }

  #deveres-hero,
  #politicas-hero {
    padding: 48px 30px 36px;
  }

  #deveres-hero h1,
  #politicas-hero h1 {
    font-size: 38px;
  }

  #deveres-conteudo,
  #politicas-conteudo {
    padding: 40px 30px 60px;
  }

  /* FOOTER */
  .holder_footer {
    gap: 24px;
  }
}


/* ── MOBILE (≤ 768px) ────────────────────────── */
@media (max-width: 768px) {

  body {
    padding-top: 70px;
  }

  /* HEADER */
  header {
    height: 70px;
    padding: 0 20px;
    justify-content: space-between;
  }

  .logo img {
    width: 100px;
  }

  /* HAMBURGER */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000d2b;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* NAV — escondida por defeito, abre como dropdown */
  nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #000d2b;
    padding: 16px 0;
    gap: 0;
    z-index: 999;
    border-bottom: 2px solid rgb(0, 0, 80);
    box-shadow: 0 8px 24px rgba(0, 0, 60, 0.2);
  }

  nav.open {
    display: flex;
  }

  header a {
    width: 100%;
    border-radius: 0;
    padding: 16px 30px;
    font-size: 13px;
    justify-content: flex-start;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
  }

  header nav a:last-child {
    border-bottom: none;
  }

  header nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgb(255, 153, 0);
  }

  /* HEADER SCROLLED */
  header.scrolled {
    height: 56px;
  }

  header.scrolled .logo img {
    width: 70px;
  }

  /* HERO */
  #hero-section {
    margin-top: 40px;
    height: auto;
    padding-bottom: 40px;
  }

  #hero-section h1 {
    font-size: 38px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-badge {
    font-size: 13px;
    padding-left: 20px;
  }

  #hero-section p {
    font-size: 15px;
    padding-left: 20px;
    padding-right: 20px;
    width: 80%;
  }

  #hero-section img {
    display: none;
  }

  .butao_home button {
    margin-top: 40px;
    width: 130px;
    height: 52px;
    font-size: 16px;
  }

  /* STEPS */
  #sobre_servicos h1 {
    font-size: 40px;
    padding-left: 20px;
    text-align: center;
  }

  .holdersteps {
    padding: 24px 20px;
    flex-direction: column;
    align-items: center;
  }

  .steps-row {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 100%;
    max-width: 320px;
  }

  .step-numero {
    width: 90px;
    height: 90px;
    font-size: 30px;
  }

  .step strong {
    font-size: 24px;
  }

  .step span {
    font-size: 16px;
  }

  /* WHY US */
  #why_us h1 {
    font-size: 40px;
    padding-left: 10px;
    text-align: center;
    justify-content: center;
  }

  #why_us p {
    font-size: 15px;
    padding: 0 20px;
    width: 90%;
  }

  /* SERVIÇOS */
  #servicos {
    padding: 48px 20px;
  }

  .servico-header h3 {
    font-size: 18px;
  }

  /* SOBRE */
  #sobre {
    flex-direction: column;
  }

  .sobre-foto {
    flex: 0 0 260px;
  }

  .sobre-conteudo {
    padding: 36px 20px;
  }

  .sobre-conteudo h2 {
    font-size: 26px;
  }

  .sobre-conteudo p.sobre-desc {
    font-size: 13px;
  }

  /* CONTACTO */
  #contacto {
    padding: 40px 20px;
  }

  .bgform {
    padding: 24px 20px 32px;
  }

  .section-icon {
    padding: 24px 20px 0;
  }

  .section-icon h2 {
    font-size: 20px;
  }

  /* DEVERES / POLITICAS */
  #deveres-hero,
  #politicas-hero {
    padding: 36px 20px 28px;
  }

  #deveres-hero h1,
  #politicas-hero h1 {
    font-size: 30px;
  }

  #deveres-conteudo,
  #politicas-conteudo {
    padding: 28px 20px 48px;
  }
  section{
    
     overflow: hidden; 

  }

  .dev-card {
    padding: 24px 20px;
  }

  .dev-card .bancos-list {
    grid-template-columns: 1fr;
  }

  .politica-secao {
    padding: 24px 20px;
  }

  /* CTA lateral */
  .cta-lateral {
    padding: 36px 24px;
  }

  .cta-lateral .cta-telefone {
    font-size: 22px;
  }

  /* FOOTER */
  footer {
    padding: 40px 20px;
  }

  .holder_footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .icons {
    flex-direction: row;
    justify-content: center;
  }

  .logo_footer img {
    height: 100px;
  }

  .gmail a {
    font-size: 14px;
  }

  .numero span {
    font-size: 13px;
  }
}


/* Esconde hamburguer em desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

/* ── MOBILE PEQUENO (≤ 480px) ────────────────── */
@media (max-width: 480px) {

  /* HERO */
  #hero-section h1 {
    font-size: 30px;
  }

  .hero-badge {
    font-size: 11px;
  }

  #hero-section p {
    font-size: 13px;
    width: 80%;
    
  }

  /* STEPS */
  #sobre_servicos h1,
  #why_us h1 {
    font-size: 32px;
  }

  /* SOBRE */
  .sobre-conteudo h2 {
    font-size: 22px;
  }

  /* DEVERES / POLITICAS */
  #deveres-hero h1,
  #politicas-hero h1 {
    font-size: 26px;
  }

  .dev-card h3,
  .politica-secao h2 {
    font-size: 16px;
  }
}