 :root {
  --navy: #101d2b;
  --navy-2: #172a3d;
  --ink: #182331;
  --muted: #65717c;
  --paper: #f5f6f4;
  --white: #fff;
  --accent: #e5a33b;
  --accent-dark: #c98722;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================
   2. BARRA SUPERIOR
========================================= */

.topbar {
  background: #0b1520;
  color: #dce3e8;
  font-size: 12px;
  letter-spacing: .04em;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar a {
  color: #f3bd65;
  font-weight: 700;
}


/* =========================================
   3. CABEÇALHO E NAVEGAÇÃO
========================================= */

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 3px 20px #0d1a2910;
}

.nav-wrap {
  height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-mark {
  font: 800 27px "Manrope", sans-serif;
  letter-spacing: -.07em;
  color: var(--navy);
}

.brand-mark span {
  color: var(--accent-dark);
  padding: 0 2px;
}

.brand-caption {
  font-size: 8px;
  letter-spacing: .17em;
  font-weight: 800;
  color: #68727c;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 13px;
  font-weight: 700;
}

.nav a:not(.nav-cta):hover {
  color: var(--accent-dark);
}

.nav-cta {
  padding: 14px 23px;
  background: var(--navy);
  color: #fff;
  border-radius: 3px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px;
  background: var(--navy);
}


/* =========================================
   4. SECÇÃO INICIAL / HERO
========================================= */

.hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy) url("./images/4.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(9,19,30,.94) 0%,
    rgba(9,19,30,.82) 44%,
    rgba(9,19,30,.18) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 120px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f2bd68;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 23px;
}

.eyebrow span {
  display: inline-block;
  width: 27px;
  height: 2px;
  background: var(--accent);
}

.hero h1,
.section h2 {
  font: 700 clamp(42px, 6vw, 72px)/1.08 "Manrope", sans-serif;
  letter-spacing: -.055em;
  margin: 0;
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  max-width: 570px;
  color: #d6dde2;
  font-size: 16px;
  line-height: 1.8;
  margin: 25px 0 30px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 52px;
  padding: 0 23px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 3px;
  transition: .2s;
}

.button-primary {
  background: var(--accent);
  color: #172331;
}

.button-primary:hover {
  background: #f2b957;
  transform: translateY(-2px);
}

.button-ghost {
  border: 1px solid #ffffff75;
  color: #fff;
}

.button-ghost:hover {
  background: #ffffff18;
}

.hero-note {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #e2e7eb;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #76c89b;
  box-shadow: 0 0 0 5px #76c89b26;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid #ffffff32;
}

.hero-bottom-inner {
  display: flex;
  justify-content: space-between;
  padding: 17px 0;
  color: #d3dbe1;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* =========================================
   5. ESTRUTURA DAS SECÇÕES
========================================= */

.section {
  padding: 110px 0;
}

.services {
  background: var(--paper);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 48px;
}

.eyebrow.dark {
  color: #a66c1c;
}

.section h2 {
  font-size: clamp(36px, 4.5vw, 54px);
  color: var(--navy);
}

.section-intro {
  max-width: 340px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}


/* =========================================
   6. CARROSSEL DE SERVIÇOS
========================================= */

.service-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.service-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.service-grid {
  display: flex;
  width: 100%;
  gap: 22px;
  transition: transform .55s ease;
}

.service-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  background: #fff;
  position: relative;
  box-shadow: 0 8px 30px #1424360b;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--navy);
  font-size: 30px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}

.carousel-arrow:hover {
  background: var(--navy);
  color: white;
}

.carousel-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.service-image {
  height: 225px;
  background-size: cover;
  background-position: center;
}

.image-one {
  background-image: url("./images/1.JPG");
}

.image-two {
  background-image: url("./images/2.JPG");
}

.image-three {
  background-image: url("./images/5.jpg");
}

.image-four {
  background-image: url("./images/4.JPG");
}

.image-five {
  background-image: url("./images/3.JPG");
}

.image-six {
  background-image: url("./images/6.JPG");
}

.service-number {
  position: absolute;
  top: 198px;
  right: 22px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--navy);
  font: 800 15px "Manrope";
}

.service-content {
  padding: 35px 26px 31px;
}

.service-content h3 {
  font: 700 19px "Manrope";
  color: var(--navy);
  margin: 0 0 12px;
}

.service-content p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}


/* =========================================
   7. CAIXA DE INFORMAÇÕES ADICIONAIS
========================================= */

.service-info-box {
  margin-top: 65px;
  padding: 50px;
  background: #172a3d;
  color: #fff;
  border: 1px solid #30475c;
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(15, 30, 45, 0.12);
}

.service-info-header {
  max-width: 700px;
  margin-bottom: 38px;
}

.service-info-header .eyebrow {
  color: var(--accent);
}

.service-info-header h3 {
  font: 700 clamp(30px, 4vw, 43px)/1.2 "Manrope";
  letter-spacing: -.04em;
  margin: 15px 0;
  color: #fff;
}

.service-info-header h3 em {
  color: var(--accent);
  font-style: normal;
}

.service-info-header > p:last-child {
  color: #c5ced6;
  font-size: 14px;
  line-height: 1.8;
}

.service-info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 32px 0;
  border-top: 1px solid #ffffff25;
  border-bottom: 1px solid #ffffff25;
}

.info-column h4 {
  color: var(--accent);
  font: 700 16px "Manrope";
  margin: 0 0 20px;
}

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

.info-column li {
  color: #e0e6eb;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
}

.info-column li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.service-info-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding-top: 30px;
}

.service-info-footer strong {
  font: 700 17px "Manrope";
  color: #fff;
}

.service-info-footer p {
  color: #c5ced6;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 8px;
}

.service-info-note {
  color: #9ba7b1;
  font-size: 10px;
  margin: 25px 0 0;
}


/* =========================================
   8. SECÇÃO SOBRE NÓS
========================================= */

.about {
  background: var(--navy);
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  min-height: 490px;
  position: relative;
}

.about-photo {
  position: absolute;
  inset: 0 42px 25px 0;
  background: url("./images/5.jpg") center/cover no-repeat;
}

.about-visual:after {
  content: "";
  position: absolute;
  inset: 18px 20px 0 18px;
  border: 1px solid #e5a33b;
  pointer-events: none;
}

.about-stamp {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 155px;
  height: 145px;
  background: var(--accent);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.about-stamp strong {
  font: 800 38px "Manrope";
}

.about-stamp span {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-copy h2 {
  font-size: clamp(36px, 4.4vw, 53px);
  color: #fff;
  margin-bottom: 27px;
}

.about-copy p:not(.eyebrow) {
  color: #c5ced6;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 17px;
}

.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}


/* =========================================
   9. SECÇÃO DE COMPROMISSO
========================================= */

.promise {
  background: #e9ecec;
  padding: 55px 0;
}

.promise-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.promise-inner > div {
  position: relative;
  padding-left: 58px;
}

.promise-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d7a14d;
  color: #a66c1c;
  font-size: 22px;
}

.promise h3 {
  font: 700 16px "Manrope";
  margin: 0 0 7px;
  color: var(--navy);
}

.promise p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}


/* =========================================
   10. SECÇÃO DE CONTACTO
========================================= */

.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.contact-copy h2 {
  margin-bottom: 22px;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 27px;
}

.contact-panel {
  background: var(--paper);
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 25px;
  border-top: 3px solid var(--accent);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-item span {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 9px;
  font-weight: 800;
  color: #9a6b2a;
}

.contact-item strong {
  font: 700 15px "Manrope";
  color: var(--navy);
}

.contact-item small {
  color: var(--muted);
  font-size: 11px;
}

.contact-item a:hover {
  color: var(--accent-dark);
}


/* =========================================
   11. RODAPÉ
========================================= */

.footer {
  background: #0b1520;
  color: #c6cfd7;
  padding: 27px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand .brand-mark {
  color: #fff;
  font-size: 23px;
}

.footer-brand .brand-caption {
  color: #9ba7b1;
}

.footer p,
.back-top {
  font-size: 10px;
  color: #9ba7b1;
}

.back-top:hover {
  color: var(--accent);
}


/* =========================================
   12. ADAPTAÇÃO PARA TABLETS
========================================= */

@media(max-width:800px) {

  .nav {
    gap: 20px;
  }

  .about-grid,
  .contact-grid {
    gap: 55px;
  }

  .about-visual {
    min-height: 400px;
  }

  .service-image {
    height: 180px;
  }

  .service-number {
    top: 153px;
  }

}


/* =========================================
   13. ADAPTAÇÃO PARA TELEMÓVEIS
========================================= */

@media(max-width:650px) {

  .container {
    width: min(100% - 36px, 520px);
  }

  .topbar-inner {
    min-height: 34px;
    font-size: 10px;
  }

  .nav-wrap {
    height: 72px;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 22px 25px 27px;
    box-shadow: 0 15px 20px #00000012;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: 640px;
    background-position: 60% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, #09131ef2, #09131ebd);
  }

  .hero-content {
    padding: 85px 0 115px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-bottom-inner {
    font-size: 9px;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-intro {
    margin-top: 18px;
  }

  /* Carrossel: um cartão de cada vez */

  .service-carousel {
    gap: 8px;
  }

  .service-viewport {
    flex: 1;
    min-width: 0;
  }

  .service-grid {
    gap: 22px;
  }

  .service-card {
    flex: 0 0 100%;
  }

  .service-image {
    height: 220px;
  }

  .service-number {
    top: 193px;
  }

  .carousel-arrow {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  /* Caixa de informações */

  .service-info-box {
    padding: 30px 22px;
    margin-top: 45px;
  }

  .service-info-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-info-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Sobre nós e contactos */

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-visual {
    min-height: 370px;
  }

  .about-photo {
    right: 28px;
  }

  .about-stamp {
    width: 125px;
    height: 120px;
  }

  .about-stamp strong {
    font-size: 31px;
  }

  /* Compromisso */

  .promise-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Contactos */

  .contact-panel {
    padding: 28px 23px;
    gap: 25px 15px;
  }

  /* Rodapé */

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer p {
    order: 3;
    width: 100%;
    margin: 5px 0 0;
  }

}