:root {
    --navy: #12213A;
    --navy-soft: #1D3155;
    --steel: #57647A;
    --paper: #F1EFE9;
    --paper-dim: #E7E4DC;
    --accent: #C4622D;
    --accent-dim: #DD8C5F;
    --white: #FFFFFF;
    --line: rgba(18,33,58,0.14);
    --red:  rgba(222, 22, 32, 0.949); 
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  * { 
    box-sizing: inherit;
     margin: 0;
    padding: 0;
     }

  body{
    background: var(--paper);
    color: var(--navy);
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
  }
  
  main{
    flex: 1;
  }

  h1, h2, h3{
    font-family: 'Fraunces', Georgia, serif; 
    font-weight: 500; color: var(--navy); 
    letter-spacing: -0.01em;;
  }
  a{
    text-decoration: none;
    color: inherit;
  }
  img{
    max-width: 20%; display: block;
  }
  
  @media (max-width: 760px) {
    .brand img {
        width: 180px;
        max-width: 100%;
        height: auto;
    }
}

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

  /* ---------- Header ---------- */


/* ---------- Header ---------- */

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    background: rgba(241, 239, 233, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1120px;
    margin: 0 auto;
}

.brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Menu normal: computadores e ecrãs maiores */
nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
}

nav a {
    font-size: 0.95rem;
    color: var(--steel);
    transition: color .2s;
}

nav a:hover {
    color: var(--red);
}

/* Três barras: escondidas por defeito */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
}

/* Telemóveis e ecrãs pequenos */
@media (max-width: 760px) {
    .nav {
        position: relative;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);

        /* Menu fechado inicialmente */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;

        transition: opacity .25s ease, transform .25s ease,
                    visibility .25s ease;
    }

    nav ul.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav ul li {
        border-top: 1px solid var(--line);
    }

    nav ul a {
        display: block;
        padding: 16px 32px;
    }
}


  /* ---------- Hero ---------- */

  .hero{
    padding: 69px 0 110px;
    position: relative;
    overflow: hidden;

  }

  .hero .wrap{
    display: grid; 
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .hero h1{
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08; 
    max-width: 15ch;
  }
  
  .hero p.lede{
    margin-top: 24px; 
    max-width: 46ch;
    color: var(--steel);
    font-size: 1.08rem;
    text-align: justify;
  }
  
  .hero .cta-row{
    margin-top: 20px;
    max-width: 48ch;
    color: var(--steel);
    font-size: 1.08rem;
  }

  .btn{
    display: inline-block;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(117, 11, 11, 0.274);
  }
  .btn-solid{
    background-color: rgba(255, 0, 0, 0.763);
    color: var(--white);
  }
  .btn-solid:hover{
    background-color: rgb(215, 59, 59);
  }

  .btn-ghost{
    color: var(--navy);
  }
  .btn-ghost:hover{
    background-color: rgba(18,33,58,0.06);
  }


  .hero-visual {
    border: 1px solid var(--line);
    background-color: var(--white);
    width: 90%;
    overflow: hidden;

    /* importante */
    display: block;
    max-width: 100%;
}

.hero-visual .art {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 380px;
    object-fit: cover;
    object-position: center;
}

.hero-visual .stat-row {
    display: flex;
    gap: 24px;
    padding: 22px 26px;
    border-top: 1px solid var(--line);
}

.hero-visual .num {
    font-family: 'Fraunces', serif;
    font-size: 2.3rem;
    color: var(--accent);
    line-height: 1;
}

.hero-visual .cap {
    margin-top: 4px;
    color: var(--steel);
    font-size: 0.86rem;
    max-width: 24ch;
}
  .icon { width: 30px; height: 30px; flex-shrink: 0; }
  .servico { display: grid; grid-template-columns: 44px 0.5fr 1fr 1fr; }
  .servico .icon-wrap { display: flex; align-items: flex-start; padding-top: 4px; }

  @media (max-width: 760px) {
    .hero { padding: 56px 0 64px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  }
  /* contacto css */
  .Contacto-grid{
    display: grid;
    grid-template-columns: 0.85Fr 1.15fr;
    gap: 64px;
  }

  .Contacto-info p{
    color: var(--steel);
    max-width: 40ch;
    margin-bottom: 28px;
    }  

  
  .Contacto-grid .linha{
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
  }

  
  .Contacto-grid .linha span.k{
    color: var(--accent);
    max-width: 100px;
  }
  form{
    display: grid;
    gap: 18px;
  }

  .campo {
    display: grid;
    gap: 8px;

  }
  .campo label {
    font-size: 0.85rem;
    color: var(--steel);

  }
  .campo input, .campo select, .campo textarea{

    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-family: inherit;
    font-size: 1rem;
    padding: 10px 2px;
    outline: none;
    transition: border-color .2s;
  }
  
  .campo input:focus, .campo select:focus, .campo textarea:focus{
    border-color: var(--accent);
  }

  .campo textarea{
    resize: vertical;
    min-height: 90px;
  }

  form .btn-solid{
    margin-top: 8px;
    justify-self: start;
    cursor: pointer;
  }

  .form-msg{
    font-size: 0.9rem;
    color: var(--accent);
    min-height: 1.2rem;
  }

  @media(max-width: 760px){
    .Contacto-grid{
      grid-template-columns: 1fr;
      gap: 40px;
    }
  }

  .section-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }

  .section-head h2{
    font-size: clamp(1.7rem, 3vw, 2.3rem);
  }
  .section-head .idx{
    color: var(--accent-dim);
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
  }
  .contact{
    padding: 40px 0;
  }
  /* contacto css-fim  */

  /* sobre css */

  .sobre-grid{
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
  }

  .sobre-grid p {
    color: var(--steel);
    margin-top: 18px;
    max-width: 56ch;
  }
  .sobre-grid h2{
    font-size: clamp(1.08rem, 3.4vw, 2.6rem);
    max-width: 13ch;
  } 
  .ilustracao{
    display: grid;
    gap: 24px;
    padding: 22px 26px;
    margin: auto;
  }
  .caminhao1{
    max-width: 100%;
    border-radius: 5px;
  }

  /* rodape */
  footer{
    padding: 32px 0;
    background-color: rgb(215, 59, 59);
  }

  footer .wrap{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(241, 239, 233, 0.951);
    font-size: 0.85rem;
  }
  /* sobre */
  #empresa{
    padding: 60px 0;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #clientes{
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .clientes-grupo{
    margin-bottom: 48px;
  }

  .clientes-grupo:last-child{
    margin-bottom: 0;
  }

  .clientes-label{
    font-size: 0.85rem;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    margin-bottom: 18px;
  }

  .logo-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 20px;
  }

  .logo-card {
      height: 140px;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .logo-card .mark {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
  }


  @media (max-width: 760px){
    .logo-grid{
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .logo-card img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

  .vodacom{
    max-width: 200%; display: block;
    transform: scale(1.9);
    
  }

   .trabalhos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trabalhos-card {
  display: block;          /* sem altura fixa: a legenda tem espaço */
}

.trabalhos-card .mark {
  display: flex;
  flex-direction: column;  /* imagem em cima, legenda por baixo */
  gap: 10px;
  text-align: center;
}

.trabalhos-card img {
  display: block;
  width: 100%;
  max-width: none;         /* anula a regra global img { max-width: 20% } */
  aspect-ratio: 4 / 3;     /* todas com a mesma proporção */
  object-fit: cover;       /* preenche a caixa sem esticar */
  object-position: center;
  border-radius: 5px;
}

@media (max-width: 760px) {
  .trabalhos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .trabalhos-grid { grid-template-columns: 1fr; }
}
  
/* Servicos */

.servicos-list{
  display: grid;
  gap: 0;
}
.servico{
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.servicos-list .servico:last-child{
  border-bottom: 1px solid var(--line);
}

.servico .nome{
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
}

.servico .desc{
  color: var(--steel);
  font-size: 0.98rem;
  max-width: 44ch;
  text-align: justify;
}

.servico .meta{
  color: var(--accent);
  text-align: right;
  font-size: 0.88rem;
}

@media (max-width: 760px){
  .servico{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .servico .meta{
    text-align: left;
  }
}

.text-about{
  text-align: justify;
}


  .icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--red);          /* ou var(--accent) para o laranja */
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

label.error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}