:root {
  --bg: #0b0f14;
  --card: #0f1621;
  --alt: #0d141e;
  --text: #e8eef7;
  --muted: #a9b6c7;
  --line: rgba(255, 255, 255, .08);
  --accent: #F8D867;
  --accent2: #6A6B6E;
  --shadow: 0 18px 60px rgba(0, 0, 0, .45);
  --radius: 18px;
  --radius2: 2px;
  --max: 1120px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(255, 204, 0, .18), transparent 55%),
    radial-gradient(900px 700px at 110% 10%, rgba(52, 211, 153, .16), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}

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


/*#################################################################################### (1)TOP BAR ###########################################################################################*/


.topbar {
  margin-top: 75px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .7);
  backdrop-filter: saturate(140%) blur(10px);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

.topbar__left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
}

.muted {
  color: var(--muted)
}

.topbar__right {
  display: flex;
  gap: 14px;
  align-items: center
}

.small {
  font-size: .92rem
}

.toplink {
  color: var(--muted)
}

.toplink:hover {
  color: var(--text)
}

.accent {
  color: var(--accent)
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

@media (max-width: 980px) {
  #toplinkNumber {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .topbar__right {
    flex-direction: column;
  }
}


/*######################################################################################## (2)HEADER ###########################################################################################*/


.header {
  position: fixed;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, .72);
  backdrop-filter: saturate(160%) blur(14px);
  width: 100%;
  height: 80px;
  padding: 0px;
  display: flex;
}

/*A classe (container) não está sendo usada  Atenção!!*/

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0;
  gap: 14px;
}

/*################## Brand ###################*/

.brand {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/*O id (brand-a) não está sendo usado  Atenção!!*/

.brand__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 204, 0, .22), rgba(52, 211, 153, .16));
  border: 1px solid var(--line);
  font-weight: 800;
  letter-spacing: .5px;
  margin-right: 10px;
}

/*################## Brand_text ###################*/

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

#h1-brand_text {
  font-size: clamp(16px, 2vw, 20px);
  margin: 0;
}

#h2-brand_text {
  font-size: clamp(13px, 2vw, 15px);
  margin: 0;
}

/*#################### nav #######################*/

.nav {
  display: flex;
  align-items: center;
  gap: 16px
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem
}

.nav a:hover {
  color: var(--text)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  font-weight: 700;
  gap: 10px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .18)
}

.btn--primary {
  background: linear-gradient(135deg, rgba(255, 204, 0, .92), rgba(52, 211, 153, .65));
  color: #081016;
  border-color: transparent;
}

/*#################### iconbtn #######################*/

.iconbtn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}

.iconbtn__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

/*#################### Mobile menu #######################*/

.mobile {
  position: fixed;
  top: 75px;
  left: 0;
  width: 100vw;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  transform: translate3d(100vw, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

.mobile.is-open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

/*O id (mobileMenu) não está sendo usado  Atenção!!*/
/*A classe (container) não está sendo usada  Atenção!!*/

.mobile__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 18px;
  gap: 10px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.70);
}

.mobile__link {
  display: flex;
  justify-content: flex-start;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(11, 15, 20);
  color: var(--muted);
  font-weight: 700;
  width: 75%;
}

.mobile__link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .18);
}

.image-icons-menu {
  width: 20px;
  margin-right: 15px;
}

.btn--block {
  width: 100%
}

#btn-budget {
  background: linear-gradient(135deg, rgba(255, 204, 0, .92), rgba(52, 211, 153));
  color: #081016;
  width: 80%;
}


/*##################################################################################### Mobile menu style ################################################################################*/


body.menu-open {
  overflow: hidden;
}

.mobile__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
}

.mobile__close:hover {
  opacity: 1;
}


/*######################################################################################## (3)MAIN ####################################################################################*/

/*O id (inicio) da tag main não está sendo usado  Atenção!!*/

/*#################### Hero #######################*/









/*O id (brand-a) não está sendo usado  Atenção!!*/

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  color: var(--text)
}




/* MOBILE MENU */

/*Menu style*/

/* trava scroll quando aberto */




.hero {
  position: relative;
  padding: 54px 0 10px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -120px -120px auto -120px;
  height: 420px;
  background:
    radial-gradient(500px 280px at 15% 30%, rgba(255, 204, 0, .24), transparent 70%),
    radial-gradient(520px 300px at 75% 10%, rgba(52, 211, 153, .18), transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: start;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  letter-spacing: -.02em;
}

.lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin: 18px 0 18px;
  flex-wrap: wrap
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius);
  padding: 12px 12px;
}

.stat strong {
  display: block;
  margin-bottom: 6px
}

.stat span {
  color: var(--muted);
  font-size: .92rem
}

.card {
  border: 1px solid var(--line);
  background: rgba(15, 22, 33, .62);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem
}


/*######################################################################################## INICIO MICROCIMENTO #############################################################################*/

.hero-microcimento {
  padding: 0 0 10px;
}

.microcimento-carousel .service {
  min-width: 100%;
  height: 320px;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.microcimento-carousel .service img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.microcimento-carousel .service h3 {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, .55);
  padding: 8px 8px;
  border-radius: 6px;
  z-index: 2;
  width: 90%;
  text-align: center;
  font-size: 18px;
}

.hint {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5
}

.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.field span {
  font-weight: 700;
  color: var(--muted);
  font-size: .9rem
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 14px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, .18);
}

.field--full {
  grid-column: 1/-1
}

.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.section {
  padding: 54px 0;
  overflow-x: visible;

}

.section--alt {
  background: rgba(255, 255, 255, .02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap
}

.section__head h2 {
  margin: 0;
  font-size: 1.75rem
}

.section__head p {
  margin: 0;
  max-width: 60ch
}

.cards {
  margin-top: 18px;
}

.cards.carousel {
  display: flex;
  gap: 14px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}


.cards.carousel>.service {
  flex: 0 0 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
}


.carousel-wrapper {
  position: relative;
  overflow: hidden;
  /* 🔥 ISSO É CRÍTICO */
}


.cards.carousel::-webkit-scrollbar {
  display: none;
}

.carousel,
.service {
  scroll-snap-align: start;
}

.carousel-wrapper {
  position: relative;
  overflow: visible;
}

.carousel-wrapper img {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
}

#right {
  left: -30px;
  transform: translateY(-75%) rotate(180deg);
}

#left {
  right: -30px;
  transform: translateY(-75%);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-dots button.active {
  background: #333;
  transform: scale(1.2);
}

.service {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius2);
  padding: 16px;
}

.service h3 {
  margin: 0 0 8px
}

.service p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55
}

.service ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7
}

.steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.step {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius2);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 204, 0, .16);
  border: 1px solid var(--line);
  font-weight: 800;
}

.gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery__item {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, .03);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease, border-color .12s ease;
}

.gallery__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .18)
}

.gallery__meta {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery__meta span {
  color: var(--muted);
  font-size: .92rem
}








/* ===== GALERIA (IMAGENS RETANGULARES + RESPONSIVO) ===== */

.gallery {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

/* Card clicável */
.gallery__item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, .03);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease, border-color .12s ease;
}

.gallery__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .18);
}

/* IMAGEM RETANGULAR */
.gallery__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Se quiser cantos suaves da imagem e manter o card consistente, já está ok por causa do overflow hidden */

/* Tablet */
@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Telemóvel: UMA EM CIMA DA OUTRA */
@media (max-width: 680px) {
  .gallery {
    grid-template-columns: 1fr !important;
  }

  .gallery__img {
    aspect-ratio: 16 / 10;
    /* um pouco mais “alto” no telemóvel (opcional) */
  }
}








.ph {
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02))
}

.ph--1 {
  background: linear-gradient(135deg, rgba(255, 204, 0, .16), rgba(255, 255, 255, .02))
}

.ph--2 {
  background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(255, 255, 255, .02))
}

.ph--3 {
  background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(255, 255, 255, .02))
}

.ph--4 {
  background: linear-gradient(135deg, rgba(236, 72, 153, .18), rgba(255, 255, 255, .02))
}

.quotes {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quote {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius2);
  padding: 16px;
}

.quote blockquote {
  margin: 0;
  color: var(--text);
  line-height: 1.6
}

.quote figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700
}

.accordion {
  margin-top: 18px;
  display: grid;
  gap: 10px
}

.acc {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 14px 14px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.acc__icon {
  font-size: 1.2rem;
  color: var(--muted)
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, .02);
  padding: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  margin-top: 18px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 16px;
}

.infoCard {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius2);
  padding: 16px;
}

.infoCard h3 {
  margin: 0 0 8px
}

.infoRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line)
}

.infoRow:last-child {
  border-bottom: none
}

.label {
  color: var(--muted);
  font-weight: 800
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 12px 0
}

.error {
  color: #ff9aa2;
  min-height: 18px
}

.formActions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap
}

.select-service {
  background-color: #1a1c20;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(11, 15, 20, .8);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.footer__links {
  display: flex;
  gap: 12px;
  color: var(--muted)
}

.footer__links a:hover {
  color: var(--text)
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.modal[aria-hidden="false"] {
  display: block
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
}

.modal__content {
  position: relative;
  max-width: 820px;
  margin: 8vh auto 0;
  padding: 14px;
}

.modal__body {
  border: 1px solid var(--line);
  background: rgba(15, 22, 33, .92);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;
}

.modal__close {
  position: absolute;
  right: 20px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
}

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;

  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(10, 179, 117, 0.50);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 900;

  will-change: transform;
  transform: translateZ(0);
}


.fab:hover {
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-1px)
}

@keyframes pulse {
  0% {
    transform: translateZ(0) scale(1);
  }

  50% {
    transform: translateZ(0) scale(1.08);
  }

  100% {
    transform: translateZ(0) scale(1);
  }
}



@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .quotes {
    grid-template-columns: 1fr
  }

  .contact {
    grid-template-columns: 1fr
  }

  .nav {
    display: none
  }

  .iconbtn {
    display: block
  }

  .formgrid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 420px) {
  .brand__text small {
    display: none
  }
}