/* =================== */
/* ACABAMENTOS.CSS     */
/* =================== */

:root{
  --page-bg-image: url("../img/acabamentos/acabamentos1.webp");
  --page-bg-size: 150%;
  --page-bg-opacity: 0.40;
  --page-bg-pos-y: -300px;
}

/* Anchor offset */
#processos{
  scroll-margin-top: 90px;
}

/* HERO spacing */
.acab-section{
  padding-top: 54px;
  padding-bottom: 72px;
}

/* ---------- */
/* HERO NOTE  */
/* ---------- */
.hero-note{
  margin-top: 14px;
  max-width: 84ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-highlights{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 2fr));
  gap: 10px;
}

.hero-hl{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.75);
  font-weight: 650;
  font-size: 13px;
  text-align: center;
  min-height: 48px;
  display: grid;
  place-items: center;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

/* ---------------- */
/* GRID + CARDS     */
/* ---------------- */
.acab-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: stretch;
}

.acab-card{
  border-radius: 18px;
  padding: 18px;
}

.acab-card-title{
  margin: 0 0 6px;
  font-size: 19px;
}

.acab-inline-actions{
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

/* Make aside card a flex column so button can stick to bottom */
.acab-grid > aside.acab-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ---------------- */
/* FEATURES LAYOUT  */
/* ---------------- */
.acab-features{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.acab-feature{
  border-radius: 18px;
  padding: 18px;
  height: 100%;
}

.acab-feature-title{
  margin: 0 0 8px;
  font-size: 18px;
}

.acab-feature-text{
  margin: 0;
  color: rgba(15,23,42,.72);
}

/* -------------------------------------------------------
   BACKGROUND SAFETY RULES
   ------------------------------------------------------- */

@media (orientation: portrait) and (max-aspect-ratio: 3/4){
  :root{
    --page-bg-image: url("../img/acabamentos/acabamentos1m.webp");
    --page-bg-size: 180%;
    --page-bg-pos-y: 50%;
  }
}

@media (orientation: landscape) and (max-aspect-ratio: 4/3){
  :root{
    --page-bg-size: 170%;
    --page-bg-pos-y: 50%;
  }
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */
@media (max-width: 980px),(max-width: 1440px) and (hover: none) and (pointer: coarse){

  :root{
    --page-bg-size: 200%;
    --page-bg-pos-y: -400px;
  }

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

  .hero-highlights .hero-hl:last-child{
    grid-column: 1 / -1;
  }

  .hero-actions{
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .hero-actions .btn{
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
  }

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

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

  .acab-inline-actions{
    margin-top: 18px;
    justify-content: center;
  }

  .acab-inline-actions .btn{
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 980px){
  :root{
    --page-bg-image: url("../img/acabamentos/acabamentos1m.webp");
    --page-bg-size: 150%;
    --page-bg-pos-y: -700px;
  }
}

@media (max-width: 450px){
  :root{
    --page-bg-image: url("../img/acabamentos/acabamentos1m.webp");
    --page-bg-size: 150%;
    --page-bg-pos-y: 10px;
  }
}